blob: 22c57eac08660fcd9e78f6ba8480408de7909924 [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003# Generated by GNU Autoconf 2.63 for iperf 3.0a4.
Jon Dugane34c20c2010-07-08 23:26:52 +00004#
5# Report bugs to <iperf-users@lists.sourceforge.net>.
6#
Jon Dugane34c20c2010-07-08 23:26:52 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jef Poskanzer437537f2012-11-30 12:16:17 -08008# 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.
Jef Poskanzer437537f2012-11-30 12:16:17 -080011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000014
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Jef Poskanzer437537f2012-11-30 12:16:17 -080017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +000018 emulate sh
19 NULLCMD=:
Jon Dugan92864152010-09-20 21:50:12 +000020 # 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
Jef Poskanzer437537f2012-11-30 12:16:17 -080025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000027esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080028
Jon Dugane34c20c2010-07-08 23:26:52 +000029fi
30
31
Jef Poskanzer437537f2012-11-30 12:16:17 -080032
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
Jon Dugan92864152010-09-20 21:50:12 +000042as_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
Jef Poskanzer437537f2012-11-30 12:16:17 -080049if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +000050 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;
Jef Poskanzer437537f2012-11-30 12:16:17 -080060 case $arg in
Jon Dugan92864152010-09-20 21:50:12 +000061 *"$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
Jon Dugane34c20c2010-07-08 23:26:52 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Jon Dugan92864152010-09-20 21:50:12 +000076 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 }
Jon Dugane34c20c2010-07-08 23:26:52 +000081fi
82
Jef Poskanzer437537f2012-11-30 12:16:17 -080083# 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.
Jef Poskanzer437537f2012-11-30 12:16:17 -080099case $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=.
Jef Poskanzer437537f2012-11-30 12:16:17 -0800106 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
Jon Dugan92864152010-09-20 21:50:12 +0000118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Jef Poskanzer437537f2012-11-30 12:16:17 -0800119 { (exit 1); exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000120fi
121
Jef Poskanzer437537f2012-11-30 12:16:17 -0800122# 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.
Jon Dugan92864152010-09-20 21:50:12 +0000131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +0000135
Jef Poskanzer437537f2012-11-30 12:16:17 -0800136# 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
Jef Poskanzer437537f2012-11-30 12:16:17 -0800151# 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 ||
Jon Dugan92864152010-09-20 21:50:12 +0000156$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
Jef Poskanzer437537f2012-11-30 12:16:17 -0800171# CDPATH.
172$as_unset CDPATH
Jon Dugane34c20c2010-07-08 23:26:52 +0000173
174
Jef Poskanzer437537f2012-11-30 12:16:17 -0800175if 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" ||
Jef Poskanzer437537f2012-11-30 12:16:17 -0800476 { $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
Jef Poskanzer437537f2012-11-30 12:16:17 -0800487
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=
Jef Poskanzer437537f2012-11-30 12:16:17 -0800495case `echo -n x` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000496-n*)
Jef Poskanzer437537f2012-11-30 12:16:17 -0800497 case `echo 'x\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jef Poskanzer437537f2012-11-30 12:16:17 -0800499 *) ECHO_C='\c';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000500 esac;;
501*)
502 ECHO_N='-n';;
503esac
Jef Poskanzer437537f2012-11-30 12:16:17 -0800504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000510
511rm -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
Jon Dugan92864152010-09-20 21:50:12 +0000516 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000517fi
Jon Dugan92864152010-09-20 21:50:12 +0000518if (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.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
Jon Dugane34c20c2010-07-08 23:26:52 +0000530 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +0000531 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000532else
533 as_ln_s='cp -p'
534fi
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
Jef Poskanzer437537f2012-11-30 12:16:17 -0800539 as_mkdir_p=:
Jon Dugane34c20c2010-07-08 23:26:52 +0000540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if 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
Jon Dugan92864152010-09-20 21:50:12 +0000556 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +0000557 else
Jef Poskanzer437537f2012-11-30 12:16:17 -0800558 case $1 in
Jon Dugan92864152010-09-20 21:50:12 +0000559 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +0000560 esac;
Jef Poskanzer437537f2012-11-30 12:16:17 -0800561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
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
jef56a97f92012-08-20 14:35:58 -0700574
575
Jef Poskanzer437537f2012-11-30 12:16:17 -0800576
jef56a97f92012-08-20 14:35:58 -0700577# Check that we are running under the correct shell.
Jon Dugane34c20c2010-07-08 23:26:52 +0000578SHELL=${CONFIG_SHELL-/bin/sh}
579
jef56a97f92012-08-20 14:35:58 -0700580case X$ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587echo=${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 <<EOF
606$*
607EOF
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 "$ECHO"; then
616if 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 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
Jon Dugane34c20c2010-07-08 23:26:52 +0000729
Jef Poskanzer437537f2012-11-30 12:16:17 -0800730exec 7<&0 </dev/null 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000731
732# Name of the host.
Jef Poskanzer437537f2012-11-30 12:16:17 -0800733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Jon Dugane34c20c2010-07-08 23:26:52 +0000734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
Jef Poskanzer437537f2012-11-30 12:16:17 -0800748SHELL=${CONFIG_SHELL-/bin/sh}
Jon Dugane34c20c2010-07-08 23:26:52 +0000749
750# Identity of this package.
751PACKAGE_NAME='iperf'
752PACKAGE_TARNAME='iperf'
753PACKAGE_VERSION='3.0a4'
754PACKAGE_STRING='iperf 3.0a4'
755PACKAGE_BUGREPORT='iperf-users@lists.sourceforge.net'
Jon Dugane34c20c2010-07-08 23:26:52 +0000756
757# Factoring default headers for most tests.
758ac_includes_default="\
759#include <stdio.h>
760#ifdef HAVE_SYS_TYPES_H
761# include <sys/types.h>
762#endif
763#ifdef HAVE_SYS_STAT_H
764# include <sys/stat.h>
765#endif
766#ifdef STDC_HEADERS
767# include <stdlib.h>
768# include <stddef.h>
769#else
770# ifdef HAVE_STDLIB_H
771# include <stdlib.h>
772# endif
773#endif
774#ifdef HAVE_STRING_H
775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776# include <memory.h>
777# endif
778# include <string.h>
779#endif
780#ifdef HAVE_STRINGS_H
781# include <strings.h>
782#endif
783#ifdef HAVE_INTTYPES_H
784# include <inttypes.h>
785#endif
786#ifdef HAVE_STDINT_H
787# include <stdint.h>
788#endif
789#ifdef HAVE_UNISTD_H
790# include <unistd.h>
791#endif"
792
jef56a97f92012-08-20 14:35:58 -0700793ac_subst_vars='LTLIBOBJS
sethdelliott01ca9722010-07-19 20:38:40 +0000794LIBOBJS
Jon Dugan92864152010-09-20 21:50:12 +0000795LINUX_FALSE
796LINUX_TRUE
jef56a97f92012-08-20 14:35:58 -0700797LIBTOOL
798ac_ct_F77
799FFLAGS
800F77
801CXXCPP
802am__fastdepCXX_FALSE
803am__fastdepCXX_TRUE
804CXXDEPMODE
805ac_ct_CXX
806CXXFLAGS
807CXX
Jon Dugan92864152010-09-20 21:50:12 +0000808CPP
Jon Dugan92864152010-09-20 21:50:12 +0000809AR
jef56a97f92012-08-20 14:35:58 -0700810ECHO
Jon Dugan92864152010-09-20 21:50:12 +0000811EGREP
812GREP
813SED
Jon Dugan92864152010-09-20 21:50:12 +0000814LN_S
815RANLIB
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832host_os
833host_vendor
834host_cpu
835host
836build_os
837build_vendor
838build_cpu
839build
840am__untar
841am__tar
842AMTAR
843am__leading_dot
844SET_MAKE
845AWK
846mkdir_p
Jon Dugan92864152010-09-20 21:50:12 +0000847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
Jon Dugan92864152010-09-20 21:50:12 +0000858INSTALL_DATA
859INSTALL_SCRIPT
860INSTALL_PROGRAM
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
Jon Dugan92864152010-09-20 21:50:12 +0000891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000898ac_subst_files=''
Jon Dugan92864152010-09-20 21:50:12 +0000899ac_user_opts='
900enable_option_checking
901enable_dependency_tracking
902enable_shared
903enable_static
Jon Dugan92864152010-09-20 21:50:12 +0000904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
jef56a97f92012-08-20 14:35:58 -0700907with_pic
908with_tags
Jon Dugan92864152010-09-20 21:50:12 +0000909'
Jon Dugane34c20c2010-07-08 23:26:52 +0000910 ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
jef56a97f92012-08-20 14:35:58 -0700918CPP
919CXX
920CXXFLAGS
921CCC
922CXXCPP
923F77
924FFLAGS'
Jon Dugane34c20c2010-07-08 23:26:52 +0000925
926
927# Initialize some variables set by options.
928ac_init_help=
929ac_init_version=false
Jon Dugan92864152010-09-20 21:50:12 +0000930ac_unrecognized_opts=
931ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000932# The variables have the same names as the options, with
933# dashes changed to underlines.
934cache_file=/dev/null
935exec_prefix=NONE
936no_create=
937no_recursion=
938prefix=NONE
939program_prefix=NONE
940program_suffix=NONE
941program_transform_name=s,x,x,
942silent=
943site=
944srcdir=
945verbose=
946x_includes=NONE
947x_libraries=NONE
948
949# Installation directory options.
950# These are left unexpanded so users can "make install exec_prefix=/foo"
951# and all the variables that are supposed to be based on exec_prefix
952# by default will actually change.
953# Use braces instead of parens because sh, perl, etc. also accept them.
954# (The list follows the same order as the GNU Coding Standards.)
955bindir='${exec_prefix}/bin'
956sbindir='${exec_prefix}/sbin'
957libexecdir='${exec_prefix}/libexec'
958datarootdir='${prefix}/share'
959datadir='${datarootdir}'
960sysconfdir='${prefix}/etc'
961sharedstatedir='${prefix}/com'
962localstatedir='${prefix}/var'
963includedir='${prefix}/include'
964oldincludedir='/usr/include'
965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966infodir='${datarootdir}/info'
967htmldir='${docdir}'
968dvidir='${docdir}'
969pdfdir='${docdir}'
970psdir='${docdir}'
971libdir='${exec_prefix}/lib'
972localedir='${datarootdir}/locale'
973mandir='${datarootdir}/man'
974
975ac_prev=
976ac_dashdash=
977for ac_option
978do
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
984 fi
985
986 case $ac_option in
Jef Poskanzer437537f2012-11-30 12:16:17 -0800987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000989 esac
990
991 # Accept the important Cygnus configure options, so we can diagnose typos.
992
993 case $ac_dashdash$ac_option in
994 --)
995 ac_dashdash=yes ;;
996
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1001
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1006
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1013
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1016
1017 -datadir | --datadir | --datadi | --datad)
1018 ac_prev=datadir ;;
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1021
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1028
1029 -disable-* | --disable-*)
Jon Dugan92864152010-09-20 21:50:12 +00001030 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001031 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Jef Poskanzer437537f2012-11-30 12:16:17 -08001033 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1034 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00001035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001045
1046 -docdir | --docdir | --docdi | --doc | --do)
1047 ac_prev=docdir ;;
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1050
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052 ac_prev=dvidir ;;
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1055
1056 -enable-* | --enable-*)
Jon Dugan92864152010-09-20 21:50:12 +00001057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001058 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Jef Poskanzer437537f2012-11-30 12:16:17 -08001060 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1061 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00001062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066"enable_$ac_useropt"
1067"*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
Jon Dugan92864152010-09-20 21:50:12 +00001262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001263 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Jef Poskanzer437537f2012-11-30 12:16:17 -08001265 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1266 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00001267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271"with_$ac_useropt"
1272"*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001277
1278 -without-* | --without-*)
Jon Dugan92864152010-09-20 21:50:12 +00001279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001280 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Jef Poskanzer437537f2012-11-30 12:16:17 -08001282 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1283 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00001284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288"with_$ac_useropt"
1289"*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
Jef Poskanzer437537f2012-11-30 12:16:17 -08001313 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
Jef Poskanzer437537f2012-11-30 12:16:17 -08001321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
Jon Dugan92864152010-09-20 21:50:12 +00001329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jon Dugan92864152010-09-20 21:50:12 +00001331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Jef Poskanzer437537f2012-11-30 12:16:17 -08001332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Jon Dugane34c20c2010-07-08 23:26:52 +00001333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jef Poskanzer437537f2012-11-30 12:16:17 -08001340 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001342fi
1343
Jon Dugan92864152010-09-20 21:50:12 +00001344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
Jef Poskanzer437537f2012-11-30 12:16:17 -08001347 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1348 { (exit 1); exit 1; }; } ;;
Jon Dugan92864152010-09-20 21:50:12 +00001349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351fi
1352
1353# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1358do
1359 eval ac_val=\$$ac_var
Jon Dugan92864152010-09-20 21:50:12 +00001360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08001371 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
Jef Poskanzer437537f2012-11-30 12:16:17 -08001386 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1390 fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
1399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jef Poskanzer437537f2012-11-30 12:16:17 -08001402 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jef Poskanzer437537f2012-11-30 12:16:17 -08001405 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001407
1408
1409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
Jon Dugan92864152010-09-20 21:50:12 +00001413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
1443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jef Poskanzer437537f2012-11-30 12:16:17 -08001445 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
Jef Poskanzer437537f2012-11-30 12:16:17 -08001450 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001452 pwd)`
1453# When building in place, set srcdir=.
1454if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1456fi
1457# Remove unnecessary trailing slashes from srcdir.
1458# Double slashes in file names in object file debugging info
1459# mess up M-x gdb in Emacs.
1460case $srcdir in
1461*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462esac
1463for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468done
1469
1470#
1471# Report the --help message.
1472#
1473if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
1477\`configure' configures iperf 3.0a4 to adapt to many kinds of systems.
1478
1479Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482VAR=VALUE. See below for descriptions of some of the useful variables.
1483
1484Defaults for the options are specified in brackets.
1485
1486Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
Jef Poskanzer437537f2012-11-30 12:16:17 -08001491 -q, --quiet, --silent do not print \`checking...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496
1497Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001499 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001501 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001502
1503By default, \`make install' will install all the files in
1504\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506for instance \`--prefix=\$HOME'.
1507
1508For better control, use the options below.
1509
1510Fine tuning of the installation directories:
Jon Dugan92864152010-09-20 21:50:12 +00001511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001530_ACEOF
1531
1532 cat <<\_ACEOF
1533
1534Program names:
1535 --program-prefix=PREFIX prepend PREFIX to installed program names
1536 --program-suffix=SUFFIX append SUFFIX to installed program names
1537 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538
1539System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542_ACEOF
1543fi
1544
1545if test -n "$ac_init_help"; then
1546 case $ac_init_help in
1547 short | recursive ) echo "Configuration of iperf 3.0a4:";;
1548 esac
1549 cat <<\_ACEOF
1550
1551Optional Features:
Jon Dugan92864152010-09-20 21:50:12 +00001552 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
sethdelliott01ca9722010-07-19 20:38:40 +00001555 --disable-dependency-tracking speeds up one-time build
1556 --enable-dependency-tracking do not reject slow dependency extractors
Jon Dugane34c20c2010-07-08 23:26:52 +00001557 --enable-shared[=PKGS] build shared libraries [default=yes]
1558 --enable-static[=PKGS] build static libraries [default=yes]
1559 --enable-fast-install[=PKGS]
1560 optimize for fast installation [default=yes]
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
jef56a97f92012-08-20 14:35:58 -07001566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Jon Dugane34c20c2010-07-08 23:26:52 +00001567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
jef56a97f92012-08-20 14:35:58 -07001569 --with-tags[=TAGS] include additional configurations [automatic]
Jon Dugane34c20c2010-07-08 23:26:52 +00001570
1571Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
Jef Poskanzer437537f2012-11-30 12:16:17 -08001577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001578 you have headers in a nonstandard directory <include dir>
1579 CPP C preprocessor
jef56a97f92012-08-20 14:35:58 -07001580 CXX C++ compiler command
1581 CXXFLAGS C++ compiler flags
1582 CXXCPP C++ preprocessor
1583 F77 Fortran 77 compiler command
1584 FFLAGS Fortran 77 compiler flags
Jon Dugane34c20c2010-07-08 23:26:52 +00001585
1586Use these variables to override the choices made by `configure' or to help
1587it to find libraries and programs with nonstandard names/locations.
1588
1589Report bugs to <iperf-users@lists.sourceforge.net>.
1590_ACEOF
1591ac_status=$?
1592fi
1593
1594if test "$ac_init_help" = "recursive"; then
1595 # If there are subdirs, report their specific --help.
1596 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jon Dugan92864152010-09-20 21:50:12 +00001597 test -d "$ac_dir" ||
1598 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1599 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001600 ac_builddir=.
1601
1602case "$ac_dir" in
1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604*)
Jon Dugan92864152010-09-20 21:50:12 +00001605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001606 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +00001607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001608 case $ac_top_builddir_sub in
1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 esac ;;
1612esac
1613ac_abs_top_builddir=$ac_pwd
1614ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615# for backward compatibility:
1616ac_top_builddir=$ac_top_build_prefix
1617
1618case $srcdir in
1619 .) # We are building in place.
1620 ac_srcdir=.
1621 ac_top_srcdir=$ac_top_builddir_sub
1622 ac_abs_top_srcdir=$ac_pwd ;;
1623 [\\/]* | ?:[\\/]* ) # Absolute name.
1624 ac_srcdir=$srcdir$ac_dir_suffix;
1625 ac_top_srcdir=$srcdir
1626 ac_abs_top_srcdir=$srcdir ;;
1627 *) # Relative name.
1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629 ac_top_srcdir=$ac_top_build_prefix$srcdir
1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631esac
1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633
1634 cd "$ac_dir" || { ac_status=$?; continue; }
1635 # Check for guested configure.
1636 if test -f "$ac_srcdir/configure.gnu"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639 elif test -f "$ac_srcdir/configure"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure" --help=recursive
1642 else
Jon Dugan92864152010-09-20 21:50:12 +00001643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001644 fi || ac_status=$?
1645 cd "$ac_pwd" || { ac_status=$?; break; }
1646 done
1647fi
1648
1649test -n "$ac_init_help" && exit $ac_status
1650if $ac_init_version; then
1651 cat <<\_ACEOF
1652iperf configure 3.0a4
Jef Poskanzer437537f2012-11-30 12:16:17 -08001653generated by GNU Autoconf 2.63
Jon Dugane34c20c2010-07-08 23:26:52 +00001654
Jef Poskanzer437537f2012-11-30 12:16:17 -08001655Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16562002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
1660 exit
1661fi
Jon Dugane34c20c2010-07-08 23:26:52 +00001662cat >config.log <<_ACEOF
1663This file contains any messages produced by compilers while
1664running configure, to aid debugging if configure makes a mistake.
1665
1666It was created by iperf $as_me 3.0a4, which was
Jef Poskanzer437537f2012-11-30 12:16:17 -08001667generated by GNU Autoconf 2.63. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001668
1669 $ $0 $@
1670
1671_ACEOF
1672exec 5>>config.log
1673{
1674cat <<_ASUNAME
1675## --------- ##
1676## Platform. ##
1677## --------- ##
1678
1679hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684
1685/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1687
1688/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1689/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1690/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1692/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1693/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1694/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1695
1696_ASUNAME
1697
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08001703 $as_echo "PATH: $as_dir"
1704done
Jon Dugane34c20c2010-07-08 23:26:52 +00001705IFS=$as_save_IFS
1706
1707} >&5
1708
1709cat >&5 <<_ACEOF
1710
1711
1712## ----------- ##
1713## Core tests. ##
1714## ----------- ##
1715
1716_ACEOF
1717
1718
1719# Keep a trace of the command line.
1720# Strip out --no-create and --no-recursion so they do not pile up.
1721# Strip out --silent because we don't want to record it for future runs.
1722# Also quote any args containing shell meta-characters.
1723# Make two passes to allow for proper duplicate-argument suppression.
1724ac_configure_args=
1725ac_configure_args0=
1726ac_configure_args1=
1727ac_must_keep_next=false
1728for ac_pass in 1 2
1729do
1730 for ac_arg
1731 do
1732 case $ac_arg in
1733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1736 continue ;;
1737 *\'*)
Jon Dugan92864152010-09-20 21:50:12 +00001738 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001739 esac
1740 case $ac_pass in
Jef Poskanzer437537f2012-11-30 12:16:17 -08001741 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001742 2)
Jef Poskanzer437537f2012-11-30 12:16:17 -08001743 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001744 if test $ac_must_keep_next = true; then
1745 ac_must_keep_next=false # Got value, back to normal.
1746 else
1747 case $ac_arg in
1748 *=* | --config-cache | -C | -disable-* | --disable-* \
1749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751 | -with-* | --with-* | -without-* | --without-* | --x)
1752 case "$ac_configure_args0 " in
1753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754 esac
1755 ;;
1756 -* ) ac_must_keep_next=true ;;
1757 esac
1758 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08001759 ac_configure_args="$ac_configure_args '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001760 ;;
1761 esac
1762 done
1763done
Jef Poskanzer437537f2012-11-30 12:16:17 -08001764$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1765$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 +00001766
1767# When interrupted or exit'd, cleanup temporary files, and complete
1768# config.log. We remove comments because anyway the quotes in there
1769# would cause problems or look ugly.
1770# WARNING: Use '\'' to represent an apostrophe within the trap.
1771# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772trap 'exit_status=$?
1773 # Save into config.log some information that might help in debugging.
1774 {
1775 echo
1776
Jef Poskanzer437537f2012-11-30 12:16:17 -08001777 cat <<\_ASBOX
1778## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001779## Cache variables. ##
Jef Poskanzer437537f2012-11-30 12:16:17 -08001780## ---------------- ##
1781_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001782 echo
1783 # The following way of writing the cache mishandles newlines in values,
1784(
1785 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1786 eval ac_val=\$$ac_var
1787 case $ac_val in #(
1788 *${as_nl}*)
1789 case $ac_var in #(
Jef Poskanzer437537f2012-11-30 12:16:17 -08001790 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001792 esac
1793 case $ac_var in #(
1794 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +00001795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Jef Poskanzer437537f2012-11-30 12:16:17 -08001796 *) $as_unset $ac_var ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001797 esac ;;
1798 esac
1799 done
1800 (set) 2>&1 |
1801 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802 *${as_nl}ac_space=\ *)
1803 sed -n \
1804 "s/'\''/'\''\\\\'\'''\''/g;
1805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806 ;; #(
1807 *)
1808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809 ;;
1810 esac |
1811 sort
1812)
1813 echo
1814
Jef Poskanzer437537f2012-11-30 12:16:17 -08001815 cat <<\_ASBOX
1816## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001817## Output variables. ##
Jef Poskanzer437537f2012-11-30 12:16:17 -08001818## ----------------- ##
1819_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001820 echo
1821 for ac_var in $ac_subst_vars
1822 do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001825 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001826 esac
Jon Dugan92864152010-09-20 21:50:12 +00001827 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001828 done | sort
1829 echo
1830
1831 if test -n "$ac_subst_files"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001832 cat <<\_ASBOX
1833## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001834## File substitutions. ##
Jef Poskanzer437537f2012-11-30 12:16:17 -08001835## ------------------- ##
1836_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001837 echo
1838 for ac_var in $ac_subst_files
1839 do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001843 esac
Jon Dugan92864152010-09-20 21:50:12 +00001844 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001845 done | sort
1846 echo
1847 fi
1848
1849 if test -s confdefs.h; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001850 cat <<\_ASBOX
1851## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001852## confdefs.h. ##
Jef Poskanzer437537f2012-11-30 12:16:17 -08001853## ----------- ##
1854_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001855 echo
1856 cat confdefs.h
1857 echo
1858 fi
1859 test "$ac_signal" != 0 &&
Jon Dugan92864152010-09-20 21:50:12 +00001860 $as_echo "$as_me: caught signal $ac_signal"
1861 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00001862 } >&5
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865 exit $exit_status
1866' 0
1867for ac_signal in 1 2 13 15; do
Jef Poskanzer437537f2012-11-30 12:16:17 -08001868 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00001869done
1870ac_signal=0
1871
1872# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873rm -f -r conftest* confdefs.h
1874
Jon Dugane34c20c2010-07-08 23:26:52 +00001875# Predefined preprocessor variables.
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_NAME "$PACKAGE_NAME"
1879_ACEOF
1880
Jef Poskanzer437537f2012-11-30 12:16:17 -08001881
Jon Dugane34c20c2010-07-08 23:26:52 +00001882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1884_ACEOF
1885
Jef Poskanzer437537f2012-11-30 12:16:17 -08001886
Jon Dugane34c20c2010-07-08 23:26:52 +00001887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_VERSION "$PACKAGE_VERSION"
1889_ACEOF
1890
Jef Poskanzer437537f2012-11-30 12:16:17 -08001891
Jon Dugane34c20c2010-07-08 23:26:52 +00001892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_STRING "$PACKAGE_STRING"
1894_ACEOF
1895
Jon Dugane34c20c2010-07-08 23:26:52 +00001896
Jon Dugan92864152010-09-20 21:50:12 +00001897cat >>confdefs.h <<_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08001898#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Jon Dugan92864152010-09-20 21:50:12 +00001899_ACEOF
1900
Jon Dugane34c20c2010-07-08 23:26:52 +00001901
1902# Let the site file select an alternate cache file if it wants to.
Jon Dugan92864152010-09-20 21:50:12 +00001903# Prefer an explicitly selected file to automatically selected ones.
1904ac_site_file1=NONE
1905ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00001906if test -n "$CONFIG_SITE"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001907 ac_site_file1=$CONFIG_SITE
Jon Dugane34c20c2010-07-08 23:26:52 +00001908elif test "x$prefix" != xNONE; then
Jon Dugan92864152010-09-20 21:50:12 +00001909 ac_site_file1=$prefix/share/config.site
1910 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001911else
Jon Dugan92864152010-09-20 21:50:12 +00001912 ac_site_file1=$ac_default_prefix/share/config.site
1913 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001914fi
Jon Dugan92864152010-09-20 21:50:12 +00001915for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00001916do
Jon Dugan92864152010-09-20 21:50:12 +00001917 test "x$ac_site_file" = xNONE && continue
Jef Poskanzer437537f2012-11-30 12:16:17 -08001918 if test -r "$ac_site_file"; then
1919 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001920$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001921 sed 's/^/| /' "$ac_site_file" >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -08001922 . "$ac_site_file"
Jon Dugane34c20c2010-07-08 23:26:52 +00001923 fi
1924done
1925
1926if test -r "$cache_file"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001927 # Some versions of bash will fail to source /dev/null (special
1928 # files actually), so we avoid doing that.
1929 if test -f "$cache_file"; then
1930 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001931$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001932 case $cache_file in
1933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934 *) . "./$cache_file";;
1935 esac
1936 fi
1937else
Jef Poskanzer437537f2012-11-30 12:16:17 -08001938 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001939$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001940 >$cache_file
1941fi
1942
1943# Check that the precious variables saved in the cache have kept the same
1944# value.
1945ac_cache_corrupted=false
1946for ac_var in $ac_precious_vars; do
1947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948 eval ac_new_set=\$ac_env_${ac_var}_set
1949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950 eval ac_new_val=\$ac_env_${ac_var}_value
1951 case $ac_old_set,$ac_new_set in
1952 set,)
Jef Poskanzer437537f2012-11-30 12:16:17 -08001953 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001954$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 +00001955 ac_cache_corrupted=: ;;
1956 ,set)
Jef Poskanzer437537f2012-11-30 12:16:17 -08001957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001958$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001959 ac_cache_corrupted=: ;;
1960 ,);;
1961 *)
1962 if test "x$ac_old_val" != "x$ac_new_val"; then
Jon Dugan92864152010-09-20 21:50:12 +00001963 # differences in whitespace do not lead to failure.
1964 ac_old_val_w=`echo x $ac_old_val`
1965 ac_new_val_w=`echo x $ac_new_val`
1966 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001968$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 ac_cache_corrupted=:
1970 else
Jef Poskanzer437537f2012-11-30 12:16:17 -08001971 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001972$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1973 eval $ac_var=\$ac_old_val
1974 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08001975 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001976$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08001977 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001978$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001979 fi;;
1980 esac
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1983 case $ac_new_val in
Jon Dugan92864152010-09-20 21:50:12 +00001984 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001985 *) ac_arg=$ac_var=$ac_new_val ;;
1986 esac
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jef Poskanzer437537f2012-11-30 12:16:17 -08001989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001990 esac
1991 fi
1992done
1993if $ac_cache_corrupted; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08001994 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08001996 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Jon Dugan92864152010-09-20 21:50:12 +00001997$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08001998 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002001fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08002002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Jon Dugane34c20c2010-07-08 23:26:52 +00002026
2027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032
2033
2034
2035# Specify where the auxiliary files created by configure should go. The config
2036# directory is picked so that they don't clutter up more useful directories.
2037ac_aux_dir=
2038for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002039 if test -f "$ac_dir/install-sh"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 break
2043 elif test -f "$ac_dir/install.sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 break
2047 elif test -f "$ac_dir/shtool"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 break
2051 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002052done
2053if test -z "$ac_aux_dir"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002054 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2055$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2056 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002057fi
2058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2066
2067
2068
2069
2070# Initialize the automake system
jef56a97f92012-08-20 14:35:58 -07002071am__api_version="1.9"
Jon Dugane34c20c2010-07-08 23:26:52 +00002072# Find a good install program. We prefer a C program (faster),
2073# so one script is as good as another. But avoid the broken or
2074# incompatible versions:
2075# SysV /etc/install, /usr/sbin/install
2076# SunOS /usr/etc/install
2077# IRIX /sbin/install
2078# AIX /bin/install
2079# AmigaOS /C/install, which installs bootblocks on floppy discs
2080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083# OS/2's system install, which has a completely different semantic
2084# ./install, which can be erroneously created by make from ./install.sh.
Jon Dugan92864152010-09-20 21:50:12 +00002085# Reject install programs that cannot install multiple files.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002086{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002087$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002088if test -z "$INSTALL"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002089if test "${ac_cv_path_install+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002090 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002091else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002097 # Account for people who put trailing slashes in PATH elements.
2098case $as_dir/ in
2099 ./ | .// | /cC/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jef Poskanzer437537f2012-11-30 12:16:17 -08002101 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002102 /usr/ucb/* ) ;;
2103 *)
2104 # OSF1 and SCO ODT 3.0 have their own names for install.
2105 # Don't use installbsd from OSF since it installs stuff as root
2106 # by default.
2107 for ac_prog in ginstall scoinst install; do
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2110 if test $ac_prog = install &&
2111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2112 # AIX install. It has an incompatible calling convention.
2113 :
2114 elif test $ac_prog = install &&
2115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2116 # program-specific install script used by HP pwplus--don't use.
2117 :
2118 else
Jon Dugan92864152010-09-20 21:50:12 +00002119 rm -rf conftest.one conftest.two conftest.dir
2120 echo one > conftest.one
2121 echo two > conftest.two
2122 mkdir conftest.dir
2123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2124 test -s conftest.one && test -s conftest.two &&
2125 test -s conftest.dir/conftest.one &&
2126 test -s conftest.dir/conftest.two
2127 then
2128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2129 break 3
2130 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002131 fi
2132 fi
2133 done
2134 done
2135 ;;
2136esac
Jon Dugan92864152010-09-20 21:50:12 +00002137
Jef Poskanzer437537f2012-11-30 12:16:17 -08002138done
Jon Dugane34c20c2010-07-08 23:26:52 +00002139IFS=$as_save_IFS
2140
Jon Dugan92864152010-09-20 21:50:12 +00002141rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002142
2143fi
2144 if test "${ac_cv_path_install+set}" = set; then
2145 INSTALL=$ac_cv_path_install
2146 else
2147 # As a last resort, use the slow shell script. Don't cache a
2148 # value for INSTALL within a source directory, because that will
2149 # break other packages using the cache if that directory is
2150 # removed, or if the value is a relative name.
2151 INSTALL=$ac_install_sh
2152 fi
2153fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08002154{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002155$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002156
2157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2158# It thinks the first close brace ends the variable substitution.
2159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2160
2161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2162
2163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2164
Jef Poskanzer437537f2012-11-30 12:16:17 -08002165{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002166$as_echo_n "checking whether build environment is sane... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002167# Just in case
2168sleep 1
2169echo timestamp > conftest.file
2170# Do `set' in a subshell so we don't clobber the current shell's
2171# arguments. Must try -L first in case configure is actually a
2172# symlink; some systems play weird games with the mod time of symlinks
2173# (eg FreeBSD returns the mod time of the symlink's containing
2174# directory).
2175if (
jef56a97f92012-08-20 14:35:58 -07002176 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
Jon Dugane34c20c2010-07-08 23:26:52 +00002177 if test "$*" = "X"; then
2178 # -L didn't work.
jef56a97f92012-08-20 14:35:58 -07002179 set X `ls -t $srcdir/configure conftest.file`
Jon Dugane34c20c2010-07-08 23:26:52 +00002180 fi
2181 rm -f conftest.file
2182 if test "$*" != "X $srcdir/configure conftest.file" \
2183 && test "$*" != "X conftest.file $srcdir/configure"; then
2184
2185 # If neither matched, then we have a broken ls. This can happen
2186 # if, for instance, CONFIG_SHELL is bash and it inherits a
2187 # broken ls alias from the environment. This has actually
2188 # happened. Such a system could not be considered "sane".
Jef Poskanzer437537f2012-11-30 12:16:17 -08002189 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2190alias in your environment" >&5
2191$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2192alias in your environment" >&2;}
2193 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002194 fi
2195
2196 test "$2" = conftest.file
2197 )
2198then
2199 # Ok.
2200 :
2201else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002202 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2203Check your system clock" >&5
2204$as_echo "$as_me: error: newly created file is older than distributed files!
2205Check your system clock" >&2;}
2206 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002207fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08002208{ $as_echo "$as_me:$LINENO: result: yes" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002209$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002210test "$program_prefix" != NONE &&
2211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2212# Use a double $ so make ignores it.
2213test "$program_suffix" != NONE &&
2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Jon Dugan92864152010-09-20 21:50:12 +00002215# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002216# By default was `s,x,x', remove it if useless.
Jon Dugan92864152010-09-20 21:50:12 +00002217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002219
2220# expand $ac_aux_dir to an absolute path
2221am_aux_dir=`cd $ac_aux_dir && pwd`
2222
jef56a97f92012-08-20 14:35:58 -07002223test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
Jon Dugane34c20c2010-07-08 23:26:52 +00002224# Use eval to expand $SHELL
2225if eval "$MISSING --run true"; then
2226 am_missing_run="$MISSING --run "
2227else
2228 am_missing_run=
Jef Poskanzer437537f2012-11-30 12:16:17 -08002229 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002230$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002231fi
2232
jef56a97f92012-08-20 14:35:58 -07002233if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2234 # We used to keeping the `.' as first argument, in order to
2235 # allow $(mkdir_p) to be used without argument. As in
2236 # $(mkdir_p) $(somedir)
2237 # where $(somedir) is conditionally defined. However this is wrong
2238 # for two reasons:
2239 # 1. if the package is installed by a user who cannot write `.'
2240 # make install will fail,
2241 # 2. the above comment should most certainly read
2242 # $(mkdir_p) $(DESTDIR)$(somedir)
2243 # so it does not work when $(somedir) is undefined and
2244 # $(DESTDIR) is not.
2245 # To support the latter case, we have to write
2246 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2247 # so the `.' trick is pointless.
2248 mkdir_p='mkdir -p --'
2249else
2250 # On NextStep and OpenStep, the `mkdir' command does not
2251 # recognize any option. It will interpret all options as
2252 # directories to create, and then abort because `.' already
2253 # exists.
2254 for d in ./-p ./--version;
2255 do
2256 test -d $d && rmdir $d
2257 done
2258 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2259 if test -f "$ac_aux_dir/mkinstalldirs"; then
2260 mkdir_p='$(mkinstalldirs)'
2261 else
2262 mkdir_p='$(install_sh) -d'
2263 fi
Jon Dugan92864152010-09-20 21:50:12 +00002264fi
2265
jef56a97f92012-08-20 14:35:58 -07002266for ac_prog in gawk mawk nawk awk
2267do
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269set dummy $ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07002271$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002272if test "${ac_cv_prog_AWK+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07002273 $as_echo_n "(cached) " >&6
2274else
2275 if test -n "$AWK"; then
2276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002283 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07002284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_AWK="$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002287 break 2
2288 fi
2289done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002290done
jef56a97f92012-08-20 14:35:58 -07002291IFS=$as_save_IFS
2292
2293fi
2294fi
2295AWK=$ac_cv_prog_AWK
2296if test -n "$AWK"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002297 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
jef56a97f92012-08-20 14:35:58 -07002298$as_echo "$AWK" >&6; }
2299else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002300 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07002301$as_echo "no" >&6; }
2302fi
2303
2304
2305 test -n "$AWK" && break
2306done
2307
Jef Poskanzer437537f2012-11-30 12:16:17 -08002308{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
jef56a97f92012-08-20 14:35:58 -07002309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2310set x ${MAKE-make}
2311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Jef Poskanzer437537f2012-11-30 12:16:17 -08002312if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
jef56a97f92012-08-20 14:35:58 -07002313 $as_echo_n "(cached) " >&6
2314else
2315 cat >conftest.make <<\_ACEOF
2316SHELL = /bin/sh
2317all:
2318 @echo '@@@%%%=$(MAKE)=@@@%%%'
2319_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08002320# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002321case `${MAKE-make} -f conftest.make 2>/dev/null` in
2322 *@@@%%%=?*=@@@%%%*)
2323 eval ac_cv_prog_make_${ac_make}_set=yes;;
2324 *)
2325 eval ac_cv_prog_make_${ac_make}_set=no;;
2326esac
2327rm -f conftest.make
2328fi
2329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002330 { $as_echo "$as_me:$LINENO: result: yes" >&5
jef56a97f92012-08-20 14:35:58 -07002331$as_echo "yes" >&6; }
2332 SET_MAKE=
2333else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002334 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07002335$as_echo "no" >&6; }
2336 SET_MAKE="MAKE=${MAKE-make}"
2337fi
2338
2339rm -rf .tst 2>/dev/null
2340mkdir .tst 2>/dev/null
2341if test -d .tst; then
2342 am__leading_dot=.
2343else
2344 am__leading_dot=_
2345fi
2346rmdir .tst 2>/dev/null
2347
2348# test to see if srcdir already configured
2349if test "`cd $srcdir && pwd`" != "`pwd`" &&
2350 test -f $srcdir/config.status; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002351 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2352$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2353 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -07002354fi
2355
2356# test whether we have cygpath
2357if test -z "$CYGPATH_W"; then
2358 if (cygpath --version) >/dev/null 2>/dev/null; then
2359 CYGPATH_W='cygpath -w'
2360 else
2361 CYGPATH_W=echo
2362 fi
2363fi
2364
2365
2366# Define the identity of the package.
2367 PACKAGE='iperf'
2368 VERSION='3.0a4'
2369
2370
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE "$PACKAGE"
2373_ACEOF
2374
2375
2376cat >>confdefs.h <<_ACEOF
2377#define VERSION "$VERSION"
2378_ACEOF
2379
2380# Some tools Automake needs.
2381
2382ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2383
2384
2385AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2386
2387
2388AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2389
2390
2391AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2392
2393
2394MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2395
2396install_sh=${install_sh-"$am_aux_dir/install-sh"}
2397
Jon Dugan92864152010-09-20 21:50:12 +00002398# Installed binaries are usually stripped using `strip' when the user
2399# run `make install-strip'. However `strip' might not be the right
2400# tool to use in cross-compilation environments, therefore Automake
2401# will honor the `STRIP' environment variable to overrule this program.
2402if test "$cross_compiling" != no; then
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}strip; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002407$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002408if test "${ac_cv_prog_STRIP+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002409 $as_echo_n "(cached) " >&6
2410else
2411 if test -n "$STRIP"; then
2412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002419 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugan92864152010-09-20 21:50:12 +00002420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002423 break 2
2424 fi
2425done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002426done
Jon Dugan92864152010-09-20 21:50:12 +00002427IFS=$as_save_IFS
2428
2429fi
2430fi
2431STRIP=$ac_cv_prog_STRIP
2432if test -n "$STRIP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002433 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002434$as_echo "$STRIP" >&6; }
2435else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002436 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002437$as_echo "no" >&6; }
2438fi
2439
2440
2441fi
2442if test -z "$ac_cv_prog_STRIP"; then
2443 ac_ct_STRIP=$STRIP
2444 # Extract the first word of "strip", so it can be a program name with args.
2445set dummy strip; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002447$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002448if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002449 $as_echo_n "(cached) " >&6
2450else
2451 if test -n "$ac_ct_STRIP"; then
2452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002459 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugan92864152010-09-20 21:50:12 +00002460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_ac_ct_STRIP="strip"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002463 break 2
2464 fi
2465done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002466done
Jon Dugan92864152010-09-20 21:50:12 +00002467IFS=$as_save_IFS
2468
2469fi
2470fi
2471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2472if test -n "$ac_ct_STRIP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002473 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002474$as_echo "$ac_ct_STRIP" >&6; }
2475else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002476 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002477$as_echo "no" >&6; }
2478fi
2479
2480 if test "x$ac_ct_STRIP" = x; then
2481 STRIP=":"
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08002485{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2487ac_tool_warned=yes ;;
2488esac
2489 STRIP=$ac_ct_STRIP
2490 fi
2491else
2492 STRIP="$ac_cv_prog_STRIP"
2493fi
2494
2495fi
jef56a97f92012-08-20 14:35:58 -07002496INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
Jon Dugane34c20c2010-07-08 23:26:52 +00002497
Jon Dugane34c20c2010-07-08 23:26:52 +00002498# We need awk for the "check" target. The system "awk" is bad on
2499# some platforms.
sethdelliott01ca9722010-07-19 20:38:40 +00002500# Always define AMTAR for backward compatibility.
2501
2502AMTAR=${AMTAR-"${am_missing_run}tar"}
2503
2504am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2505
2506
Jon Dugane34c20c2010-07-08 23:26:52 +00002507
2508
2509
2510
2511ac_config_headers="$ac_config_headers src/config.h"
2512
2513
2514# Make sure we can run config.sub.
2515$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jef Poskanzer437537f2012-11-30 12:16:17 -08002516 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2517$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2518 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002519
Jef Poskanzer437537f2012-11-30 12:16:17 -08002520{ $as_echo "$as_me:$LINENO: checking build system type" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002521$as_echo_n "checking build system type... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002522if test "${ac_cv_build+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002523 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002524else
2525 ac_build_alias=$build_alias
2526test "x$ac_build_alias" = x &&
2527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2528test "x$ac_build_alias" = x &&
Jef Poskanzer437537f2012-11-30 12:16:17 -08002529 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2530$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2531 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002532ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jef Poskanzer437537f2012-11-30 12:16:17 -08002533 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2534$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2535 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002536
2537fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08002538{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002539$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002540case $ac_cv_build in
2541*-*-*) ;;
Jef Poskanzer437537f2012-11-30 12:16:17 -08002542*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2543$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2544 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +00002545esac
2546build=$ac_cv_build
2547ac_save_IFS=$IFS; IFS='-'
2548set x $ac_cv_build
2549shift
2550build_cpu=$1
2551build_vendor=$2
2552shift; shift
2553# Remember, the first character of IFS is used to create $*,
2554# except with old shells:
2555build_os=$*
2556IFS=$ac_save_IFS
2557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2558
2559
Jef Poskanzer437537f2012-11-30 12:16:17 -08002560{ $as_echo "$as_me:$LINENO: checking host system type" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002561$as_echo_n "checking host system type... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002562if test "${ac_cv_host+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002563 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002564else
2565 if test "x$host_alias" = x; then
2566 ac_cv_host=$ac_cv_build
2567else
2568 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jef Poskanzer437537f2012-11-30 12:16:17 -08002569 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2570$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2571 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002572fi
2573
2574fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08002575{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002576$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002577case $ac_cv_host in
2578*-*-*) ;;
Jef Poskanzer437537f2012-11-30 12:16:17 -08002579*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2580$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2581 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +00002582esac
2583host=$ac_cv_host
2584ac_save_IFS=$IFS; IFS='-'
2585set x $ac_cv_host
2586shift
2587host_cpu=$1
2588host_vendor=$2
2589shift; shift
2590# Remember, the first character of IFS is used to create $*,
2591# except with old shells:
2592host_os=$*
2593IFS=$ac_save_IFS
2594case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2595
2596
2597
2598# Checks for tools: c compiler, ranlib (used for creating static libraries),
2599# symlinks and libtool
2600ac_ext=c
2601ac_cpp='$CPP $CPPFLAGS'
2602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002608{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002609$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002610if test "${ac_cv_prog_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002611 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002621 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002625 break 2
2626 fi
2627done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002628done
Jon Dugane34c20c2010-07-08 23:26:52 +00002629IFS=$as_save_IFS
2630
2631fi
2632fi
2633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002635 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002636$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002637else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002638 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002639$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002640fi
2641
2642
2643fi
2644if test -z "$ac_cv_prog_CC"; then
2645 ac_ct_CC=$CC
2646 # Extract the first word of "gcc", so it can be a program name with args.
2647set dummy gcc; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002648{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002649$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002651 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002652else
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002661 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="gcc"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002665 break 2
2666 fi
2667done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002668done
Jon Dugane34c20c2010-07-08 23:26:52 +00002669IFS=$as_save_IFS
2670
2671fi
2672fi
2673ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674if test -n "$ac_ct_CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002675 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002676$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002677else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002678 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002679$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002680fi
2681
2682 if test "x$ac_ct_CC" = x; then
2683 CC=""
2684 else
2685 case $cross_compiling:$ac_tool_warned in
2686yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08002687{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002689ac_tool_warned=yes ;;
2690esac
2691 CC=$ac_ct_CC
2692 fi
2693else
2694 CC="$ac_cv_prog_CC"
2695fi
2696
2697if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}cc; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002702$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002703if test "${ac_cv_prog_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002704 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002705else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002714 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002718 break 2
2719 fi
2720done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002721done
Jon Dugane34c20c2010-07-08 23:26:52 +00002722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002728 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002729$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002730else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002731 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002732$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002733fi
2734
2735
2736 fi
2737fi
2738if test -z "$CC"; then
2739 # Extract the first word of "cc", so it can be a program name with args.
2740set dummy cc; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002742$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002743if test "${ac_cv_prog_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002744 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749 ac_prog_rejected=no
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002755 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2758 ac_prog_rejected=yes
2759 continue
2760 fi
2761 ac_cv_prog_CC="cc"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002763 break 2
2764 fi
2765done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002766done
Jon Dugane34c20c2010-07-08 23:26:52 +00002767IFS=$as_save_IFS
2768
2769if test $ac_prog_rejected = yes; then
2770 # We found a bogon in the path, so make sure we never use it.
2771 set dummy $ac_cv_prog_CC
2772 shift
2773 if test $# != 0; then
2774 # We chose a different compiler from the bogus one.
2775 # However, it has the same basename, so the bogon will be chosen
2776 # first if we set CC to just the basename; use the full file name.
2777 shift
2778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2779 fi
2780fi
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002785 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002786$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002787else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002788 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002789$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002790fi
2791
2792
2793fi
2794if test -z "$CC"; then
2795 if test -n "$ac_tool_prefix"; then
2796 for ac_prog in cl.exe
2797 do
2798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002801$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002802if test "${ac_cv_prog_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002803 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002804else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002813 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002817 break 2
2818 fi
2819done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002820done
Jon Dugane34c20c2010-07-08 23:26:52 +00002821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002827 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002828$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002829else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002830 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002831$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002832fi
2833
2834
2835 test -n "$CC" && break
2836 done
2837fi
2838if test -z "$CC"; then
2839 ac_ct_CC=$CC
2840 for ac_prog in cl.exe
2841do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843set dummy $ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002845$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08002846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00002847 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002848else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002857 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_ac_ct_CC="$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08002860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002861 break 2
2862 fi
2863done
Jef Poskanzer437537f2012-11-30 12:16:17 -08002864done
Jon Dugane34c20c2010-07-08 23:26:52 +00002865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870if test -n "$ac_ct_CC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08002871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002872$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002873else
Jef Poskanzer437537f2012-11-30 12:16:17 -08002874 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002875$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002876fi
2877
2878
2879 test -n "$ac_ct_CC" && break
2880done
2881
2882 if test "x$ac_ct_CC" = x; then
2883 CC=""
2884 else
2885 case $cross_compiling:$ac_tool_warned in
2886yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08002887{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002889ac_tool_warned=yes ;;
2890esac
2891 CC=$ac_ct_CC
2892 fi
2893fi
2894
2895fi
2896
2897
Jef Poskanzer437537f2012-11-30 12:16:17 -08002898test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08002900{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2901See \`config.log' for more details." >&5
2902$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002905
2906# Provide some information about the compiler.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002907$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
Jon Dugan92864152010-09-20 21:50:12 +00002908set X $ac_compile
2909ac_compiler=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08002910{ (ac_try="$ac_compiler --version >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00002911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08002915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
2917 (eval "$ac_compiler --version >&5") 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002918 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08002919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921{ (ac_try="$ac_compiler -v >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927$as_echo "$ac_try_echo") >&5
2928 (eval "$ac_compiler -v >&5") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932{ (ac_try="$ac_compiler -V >&5"
2933case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936esac
2937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2938$as_echo "$ac_try_echo") >&5
2939 (eval "$ac_compiler -V >&5") 2>&5
2940 ac_status=$?
2941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
Jon Dugane34c20c2010-07-08 23:26:52 +00002943
Jef Poskanzer437537f2012-11-30 12:16:17 -08002944cat >conftest.$ac_ext <<_ACEOF
2945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00002949/* end confdefs.h. */
2950
2951int
2952main ()
2953{
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959ac_clean_files_save=$ac_clean_files
Jon Dugan92864152010-09-20 21:50:12 +00002960ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00002961# Try to create an executable without -o first, disregard a.out.
2962# It will help us diagnose broken compilers, and finding out an intuition
2963# of exeext.
Jef Poskanzer437537f2012-11-30 12:16:17 -08002964{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2965$as_echo_n "checking for C compiler default output file name... " >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002966ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967
2968# The possible output files:
2969ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2970
Jon Dugane34c20c2010-07-08 23:26:52 +00002971ac_rmfiles=
2972for ac_file in $ac_files
2973do
2974 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00002975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002976 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977 esac
2978done
2979rm -f $ac_rmfiles
2980
Jef Poskanzer437537f2012-11-30 12:16:17 -08002981if { (ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00002982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08002986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002988 (eval "$ac_link_default") 2>&5
2989 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08002990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002992 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2993# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2994# in a Makefile. We should not override ac_cv_exeext if it was cached,
2995# so that the user can short-circuit this test for compilers unknown to
2996# Autoconf.
2997for ac_file in $ac_files ''
2998do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003002 ;;
3003 [ab].out )
3004 # We found the default executable, but exeext='' is most
3005 # certainly right.
3006 break;;
3007 *.* )
Jef Poskanzer437537f2012-11-30 12:16:17 -08003008 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003009 then :; else
3010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 fi
3012 # We set ac_cv_exeext here because the later test for it is not
3013 # safe: cross compilers may not add the suffix if given an `-o'
3014 # argument, so we may need to know it at that point already.
3015 # Even if this section looks crufty: it has the advantage of
3016 # actually working.
3017 break;;
3018 * )
3019 break;;
3020 esac
3021done
3022test "$ac_cv_exeext" = no && ac_cv_exeext=
3023
3024else
3025 ac_file=''
3026fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003027
3028{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3029$as_echo "$ac_file" >&6; }
3030if test -z "$ac_file"; then
3031 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003032sed 's/^/| /' conftest.$ac_ext >&5
3033
Jef Poskanzer437537f2012-11-30 12:16:17 -08003034{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08003036{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3037See \`config.log' for more details." >&5
3038$as_echo "$as_me: error: C compiler cannot create executables
3039See \`config.log' for more details." >&2;}
3040 { (exit 77); exit 77; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003041fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003042
Jon Dugane34c20c2010-07-08 23:26:52 +00003043ac_exeext=$ac_cv_exeext
3044
Jef Poskanzer437537f2012-11-30 12:16:17 -08003045# Check that the compiler produces executables we can run. If not, either
3046# the compiler is broken, or we cross compile.
3047{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3048$as_echo_n "checking whether the C compiler works... " >&6; }
3049# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3050# If not cross compiling, check that we can run a simple program.
3051if test "$cross_compiling" != yes; then
3052 if { ac_try='./$ac_file'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058$as_echo "$ac_try_echo") >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
3068 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3071If you meant to cross compile, use \`--host'.
3072See \`config.log' for more details." >&5
3073$as_echo "$as_me: error: cannot run C compiled programs.
3074If you meant to cross compile, use \`--host'.
3075See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }; }
3077 fi
3078 fi
3079fi
3080{ $as_echo "$as_me:$LINENO: result: yes" >&5
3081$as_echo "yes" >&6; }
3082
Jon Dugan92864152010-09-20 21:50:12 +00003083rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003084ac_clean_files=$ac_clean_files_save
Jef Poskanzer437537f2012-11-30 12:16:17 -08003085# Check that the compiler produces executables we can run. If not, either
3086# the compiler is broken, or we cross compile.
3087{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3088$as_echo_n "checking whether we are cross compiling... " >&6; }
3089{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3090$as_echo "$cross_compiling" >&6; }
3091
3092{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003093$as_echo_n "checking for suffix of executables... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003094if { (ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08003099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003101 (eval "$ac_link") 2>&5
3102 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08003103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003105 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3107# work properly (i.e., refer to `conftest.exe'), while it won't with
3108# `rm'.
3109for ac_file in conftest.exe conftest conftest.*; do
3110 test -f "$ac_file" || continue
3111 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 break;;
3115 * ) break;;
3116 esac
3117done
3118else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08003121{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3122See \`config.log' for more details." >&5
3123$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3124See \`config.log' for more details." >&2;}
3125 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003126fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003127
3128rm -f conftest$ac_cv_exeext
3129{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003130$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003131
3132rm -f conftest.$ac_ext
3133EXEEXT=$ac_cv_exeext
3134ac_exeext=$EXEEXT
Jef Poskanzer437537f2012-11-30 12:16:17 -08003135{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003136$as_echo_n "checking for suffix of object files... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003137if test "${ac_cv_objext+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003138 $as_echo_n "(cached) " >&6
3139else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.o conftest.obj
Jef Poskanzer437537f2012-11-30 12:16:17 -08003156if { (ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08003161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003163 (eval "$ac_compile") 2>&5
3164 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08003165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003167 for ac_file in conftest.o conftest.obj conftest.*; do
3168 test -f "$ac_file" || continue;
3169 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3172 break;;
3173 esac
3174done
3175else
Jon Dugan92864152010-09-20 21:50:12 +00003176 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003177sed 's/^/| /' conftest.$ac_ext >&5
3178
Jef Poskanzer437537f2012-11-30 12:16:17 -08003179{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08003181{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182See \`config.log' for more details." >&5
3183$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003186fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003187
Jon Dugane34c20c2010-07-08 23:26:52 +00003188rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003190{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003191$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003192OBJEXT=$ac_cv_objext
3193ac_objext=$OBJEXT
Jef Poskanzer437537f2012-11-30 12:16:17 -08003194{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003195$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003196if test "${ac_cv_c_compiler_gnu+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003197 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003198else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209#ifndef __GNUC__
3210 choke me
3211#endif
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08003217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224$as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compile") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003235 ac_compiler_gnu=yes
3236else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003237 $as_echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003241fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003242
Jon Dugane34c20c2010-07-08 23:26:52 +00003243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245
3246fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003247{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003248$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249if test $ac_compiler_gnu = yes; then
3250 GCC=yes
3251else
3252 GCC=
3253fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003254ac_test_CFLAGS=${CFLAGS+set}
3255ac_save_CFLAGS=$CFLAGS
Jef Poskanzer437537f2012-11-30 12:16:17 -08003256{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003257$as_echo_n "checking whether $CC accepts -g... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003258if test "${ac_cv_prog_cc_g+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003259 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003260else
3261 ac_save_c_werror_flag=$ac_c_werror_flag
3262 ac_c_werror_flag=yes
3263 ac_cv_prog_cc_g=no
3264 CFLAGS="-g"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003265 cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08003280rm -f conftest.$ac_objext
3281if { (ac_try="$ac_compile"
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287$as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003298 ac_cv_prog_cc_g=yes
3299else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003300 $as_echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 CFLAGS=""
3304 cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08003319rm -f conftest.$ac_objext
3320if { (ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326$as_echo "$ac_try_echo") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3337 :
Jon Dugan92864152010-09-20 21:50:12 +00003338else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003339 $as_echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003343 CFLAGS="-g"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003349/* end confdefs.h. */
3350
3351int
3352main ()
3353{
3354
3355 ;
3356 return 0;
3357}
3358_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08003359rm -f conftest.$ac_objext
3360if { (ac_try="$ac_compile"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366$as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003377 ac_cv_prog_cc_g=yes
Jef Poskanzer437537f2012-11-30 12:16:17 -08003378else
3379 $as_echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
Jon Dugane34c20c2010-07-08 23:26:52 +00003383fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003384
Jon Dugane34c20c2010-07-08 23:26:52 +00003385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003387
Jon Dugane34c20c2010-07-08 23:26:52 +00003388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003390
Jon Dugane34c20c2010-07-08 23:26:52 +00003391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3393fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003394{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003395$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003396if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003411{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003412$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003413if test "${ac_cv_prog_cc_c89+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003414 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003415else
3416 ac_cv_prog_cc_c89=no
3417ac_save_CC=$CC
Jef Poskanzer437537f2012-11-30 12:16:17 -08003418cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003423/* end confdefs.h. */
3424#include <stdarg.h>
3425#include <stdio.h>
3426#include <sys/types.h>
3427#include <sys/stat.h>
3428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429struct buf { int x; };
3430FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431static char *e (p, i)
3432 char **p;
3433 int i;
3434{
3435 return p[i];
3436}
3437static char *f (char * (*g) (char **, int), char **p, ...)
3438{
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445}
3446
3447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458#define FOO(x) 'x'
3459int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461int test (int i, double x);
3462struct s1 {int (*f) (int a);};
3463struct s2 {int (*f) (double a);};
3464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465int argc;
3466char **argv;
3467int
3468main ()
3469{
3470return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477do
3478 CC="$ac_save_CC $ac_arg"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003479 rm -f conftest.$ac_objext
3480if { (ac_try="$ac_compile"
3481case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486$as_echo "$ac_try_echo") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003497 ac_cv_prog_cc_c89=$ac_arg
Jef Poskanzer437537f2012-11-30 12:16:17 -08003498else
3499 $as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
Jon Dugane34c20c2010-07-08 23:26:52 +00003503fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003504
Jon Dugane34c20c2010-07-08 23:26:52 +00003505rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507done
3508rm -f conftest.$ac_ext
3509CC=$ac_save_CC
3510
3511fi
3512# AC_CACHE_VAL
3513case "x$ac_cv_prog_cc_c89" in
3514 x)
Jef Poskanzer437537f2012-11-30 12:16:17 -08003515 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003516$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003517 xno)
Jef Poskanzer437537f2012-11-30 12:16:17 -08003518 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003519$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003520 *)
3521 CC="$CC $ac_cv_prog_cc_c89"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003522 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003523$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003524esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003525
Jon Dugane34c20c2010-07-08 23:26:52 +00003526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532DEPDIR="${am__leading_dot}deps"
3533
3534ac_config_commands="$ac_config_commands depfiles"
3535
3536
3537am_make=${MAKE-make}
3538cat > confinc << 'END'
3539am__doit:
jef56a97f92012-08-20 14:35:58 -07003540 @echo done
Jon Dugane34c20c2010-07-08 23:26:52 +00003541.PHONY: am__doit
3542END
3543# If we don't find an include directive, just comment out the code.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003544{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003545$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003546am__include="#"
3547am__quote=
3548_am_result=none
3549# First try GNU make style include.
3550echo "include confinc" > confmf
jef56a97f92012-08-20 14:35:58 -07003551# We grep out `Entering directory' and `Leaving directory'
3552# messages which can occur if `w' ends up in MAKEFLAGS.
3553# In particular we don't look at `^make:' because GNU make might
3554# be invoked under some other name (usually "gmake"), in which
3555# case it prints its new name instead of `make'.
3556if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3557 am__include=include
3558 am__quote=
3559 _am_result=GNU
3560fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003561# Now try BSD make style include.
3562if test "$am__include" = "#"; then
3563 echo '.include "confinc"' > confmf
jef56a97f92012-08-20 14:35:58 -07003564 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003569fi
3570
3571
Jef Poskanzer437537f2012-11-30 12:16:17 -08003572{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003573$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003574rm -f confinc confmf
3575
3576# Check whether --enable-dependency-tracking was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003577if test "${enable_dependency_tracking+set}" = set; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003578 enableval=$enable_dependency_tracking;
3579fi
3580
3581if test "x$enable_dependency_tracking" != xno; then
3582 am_depcomp="$ac_aux_dir/depcomp"
3583 AMDEPBACKSLASH='\'
3584fi
jef56a97f92012-08-20 14:35:58 -07003585
3586
3587if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3593fi
3594
3595
3596
jef56a97f92012-08-20 14:35:58 -07003597
Jon Dugane34c20c2010-07-08 23:26:52 +00003598depcc="$CC" am_compiler_list=
3599
Jef Poskanzer437537f2012-11-30 12:16:17 -08003600{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003601$as_echo_n "checking dependency style of $depcc... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003602if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003603 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003604else
3605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3606 # We make a subdir and do the tests there. Otherwise we can end up
3607 # making bogus files that we don't know about and never remove. For
3608 # instance it was reported that on HP-UX the gcc test will end up
3609 # making a dummy file named `D' -- because `-MD' means `put the output
3610 # in D'.
3611 mkdir conftest.dir
3612 # Copy depcomp to subdir because otherwise we won't find it if we're
3613 # using a relative directory.
3614 cp "$am_depcomp" conftest.dir
3615 cd conftest.dir
3616 # We will build objects and dependencies in a subdirectory because
3617 # it helps to detect inapplicable dependency modes. For instance
3618 # both Tru64's cc and ICC support -MD to output dependencies as a
3619 # side effect of compilation, but ICC will put the dependencies in
3620 # the current directory while Tru64 will put them in the object
3621 # directory.
3622 mkdir sub
3623
3624 am_cv_CC_dependencies_compiler_type=none
3625 if test "$am_compiler_list" = ""; then
3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3627 fi
3628 for depmode in $am_compiler_list; do
3629 # Setup a source with many dependencies, because some compilers
3630 # like to wrap large dependency lists on column 80 (with \), and
3631 # we should not choose a depcomp mode which is confused by this.
3632 #
3633 # We need to recreate these files for each test, as the compiler may
3634 # overwrite some of them when testing with obscure command lines.
3635 # This happens at least with the AIX C compiler.
3636 : > sub/conftest.c
3637 for i in 1 2 3 4 5 6; do
3638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
sethdelliott01ca9722010-07-19 20:38:40 +00003639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3640 # Solaris 8's {/usr,}/bin/sh.
3641 touch sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003642 done
3643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3644
3645 case $depmode in
3646 nosideeffect)
3647 # after this tag, mechanisms are not by side-effect, so they'll
3648 # only be used when explicitly requested
3649 if test "x$enable_dependency_tracking" = xyes; then
3650 continue
3651 else
3652 break
3653 fi
3654 ;;
3655 none) break ;;
3656 esac
jef56a97f92012-08-20 14:35:58 -07003657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3658 # mode. It turns out that the SunPro C++ compiler does not properly
3659 # handle `-M -o', and we need to detect this.
Jon Dugane34c20c2010-07-08 23:26:52 +00003660 if depmode=$depmode \
jef56a97f92012-08-20 14:35:58 -07003661 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
Jon Dugane34c20c2010-07-08 23:26:52 +00003662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jef56a97f92012-08-20 14:35:58 -07003663 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003664 >/dev/null 2>conftest.err &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jef56a97f92012-08-20 14:35:58 -07003666 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003677 am_cv_CC_dependencies_compiler_type=$depmode
3678 break
3679 fi
3680 fi
3681 done
3682
3683 cd ..
3684 rm -rf conftest.dir
3685else
3686 am_cv_CC_dependencies_compiler_type=none
3687fi
3688
3689fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08003690{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003691$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003692CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3693
jef56a97f92012-08-20 14:35:58 -07003694
3695
3696if
Jon Dugane34c20c2010-07-08 23:26:52 +00003697 test "x$enable_dependency_tracking" != xno \
3698 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3699 am__fastdepCC_TRUE=
3700 am__fastdepCC_FALSE='#'
3701else
3702 am__fastdepCC_TRUE='#'
3703 am__fastdepCC_FALSE=
3704fi
3705
3706
3707if test -n "$ac_tool_prefix"; then
3708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3709set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08003710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003711$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003712if test "${ac_cv_prog_RANLIB+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003713 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003714else
3715 if test -n "$RANLIB"; then
3716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003723 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003727 break 2
3728 fi
3729done
Jef Poskanzer437537f2012-11-30 12:16:17 -08003730done
Jon Dugane34c20c2010-07-08 23:26:52 +00003731IFS=$as_save_IFS
3732
3733fi
3734fi
3735RANLIB=$ac_cv_prog_RANLIB
3736if test -n "$RANLIB"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08003737 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003738$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003739else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003740 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003741$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003742fi
3743
3744
3745fi
3746if test -z "$ac_cv_prog_RANLIB"; then
3747 ac_ct_RANLIB=$RANLIB
3748 # Extract the first word of "ranlib", so it can be a program name with args.
3749set dummy ranlib; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08003750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003751$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003752if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003753 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003754else
3755 if test -n "$ac_ct_RANLIB"; then
3756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003763 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jef Poskanzer437537f2012-11-30 12:16:17 -08003766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003767 break 2
3768 fi
3769done
Jef Poskanzer437537f2012-11-30 12:16:17 -08003770done
Jon Dugane34c20c2010-07-08 23:26:52 +00003771IFS=$as_save_IFS
3772
3773fi
3774fi
3775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3776if test -n "$ac_ct_RANLIB"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08003777 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003778$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003779else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003780 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003781$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003782fi
3783
3784 if test "x$ac_ct_RANLIB" = x; then
3785 RANLIB=":"
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08003789{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003791ac_tool_warned=yes ;;
3792esac
3793 RANLIB=$ac_ct_RANLIB
3794 fi
3795else
3796 RANLIB="$ac_cv_prog_RANLIB"
3797fi
3798
Jef Poskanzer437537f2012-11-30 12:16:17 -08003799{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003800$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003801LN_S=$as_ln_s
3802if test "$LN_S" = "ln -s"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08003803 { $as_echo "$as_me:$LINENO: result: yes" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003804$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003805else
Jef Poskanzer437537f2012-11-30 12:16:17 -08003806 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003807$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003808fi
3809
jef56a97f92012-08-20 14:35:58 -07003810# Check whether --enable-shared was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003811if test "${enable_shared+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07003812 enableval=$enable_shared; p=${PACKAGE-default}
3813 case $enableval in
3814 yes) enable_shared=yes ;;
3815 no) enable_shared=no ;;
3816 *)
3817 enable_shared=no
3818 # Look at the argument we got. We use all the common list separators.
3819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3820 for pkg in $enableval; do
3821 IFS="$lt_save_ifs"
3822 if test "X$pkg" = "X$p"; then
3823 enable_shared=yes
3824 fi
3825 done
3826 IFS="$lt_save_ifs"
3827 ;;
3828 esac
Jon Dugan92864152010-09-20 21:50:12 +00003829else
jef56a97f92012-08-20 14:35:58 -07003830 enable_shared=yes
Jon Dugan92864152010-09-20 21:50:12 +00003831fi
3832
Jon Dugan92864152010-09-20 21:50:12 +00003833
jef56a97f92012-08-20 14:35:58 -07003834# Check whether --enable-static was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003835if test "${enable_static+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07003836 enableval=$enable_static; p=${PACKAGE-default}
3837 case $enableval in
3838 yes) enable_static=yes ;;
3839 no) enable_static=no ;;
3840 *)
3841 enable_static=no
3842 # Look at the argument we got. We use all the common list separators.
3843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3844 for pkg in $enableval; do
3845 IFS="$lt_save_ifs"
3846 if test "X$pkg" = "X$p"; then
3847 enable_static=yes
3848 fi
3849 done
3850 IFS="$lt_save_ifs"
3851 ;;
3852 esac
3853else
3854 enable_static=yes
3855fi
Jon Dugan92864152010-09-20 21:50:12 +00003856
3857
jef56a97f92012-08-20 14:35:58 -07003858# Check whether --enable-fast-install was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003859if test "${enable_fast_install+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07003860 enableval=$enable_fast_install; p=${PACKAGE-default}
3861 case $enableval in
3862 yes) enable_fast_install=yes ;;
3863 no) enable_fast_install=no ;;
3864 *)
3865 enable_fast_install=no
3866 # Look at the argument we got. We use all the common list separators.
3867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3868 for pkg in $enableval; do
3869 IFS="$lt_save_ifs"
3870 if test "X$pkg" = "X$p"; then
3871 enable_fast_install=yes
3872 fi
3873 done
3874 IFS="$lt_save_ifs"
3875 ;;
3876 esac
3877else
3878 enable_fast_install=yes
3879fi
Jon Dugan92864152010-09-20 21:50:12 +00003880
3881
Jef Poskanzer437537f2012-11-30 12:16:17 -08003882{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003883$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003884if test "${lt_cv_path_SED+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003885 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003886else
jef56a97f92012-08-20 14:35:58 -07003887 # Loop through the user's path and test for sed and gsed.
3888# Then use that list of sed's as ones to test for truncation.
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
jef56a97f92012-08-20 14:35:58 -07003894 for lt_ac_prog in sed gsed; do
Jon Dugan92864152010-09-20 21:50:12 +00003895 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07003896 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3897 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3898 fi
Jon Dugan92864152010-09-20 21:50:12 +00003899 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003900 done
jef56a97f92012-08-20 14:35:58 -07003901done
Jon Dugane34c20c2010-07-08 23:26:52 +00003902IFS=$as_save_IFS
jef56a97f92012-08-20 14:35:58 -07003903lt_ac_max=0
3904lt_ac_count=0
3905# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3906# along with /bin/sed that truncates output.
3907for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3908 test ! -f $lt_ac_sed && continue
3909 cat /dev/null > conftest.in
3910 lt_ac_count=0
3911 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3912 # Check for GNU sed and select it if it is found.
3913 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3914 lt_cv_path_SED=$lt_ac_sed
3915 break
Jon Dugan92864152010-09-20 21:50:12 +00003916 fi
jef56a97f92012-08-20 14:35:58 -07003917 while true; do
3918 cat conftest.in conftest.in >conftest.tmp
3919 mv conftest.tmp conftest.in
3920 cp conftest.in conftest.nl
3921 echo >>conftest.nl
3922 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3923 cmp -s conftest.out conftest.nl || break
3924 # 10000 chars as input seems more than enough
3925 test $lt_ac_count -gt 10 && break
3926 lt_ac_count=`expr $lt_ac_count + 1`
3927 if test $lt_ac_count -gt $lt_ac_max; then
3928 lt_ac_max=$lt_ac_count
3929 lt_cv_path_SED=$lt_ac_sed
3930 fi
3931 done
3932done
Jon Dugane34c20c2010-07-08 23:26:52 +00003933
3934fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003935
jef56a97f92012-08-20 14:35:58 -07003936SED=$lt_cv_path_SED
Jon Dugane34c20c2010-07-08 23:26:52 +00003937
Jef Poskanzer437537f2012-11-30 12:16:17 -08003938{ $as_echo "$as_me:$LINENO: result: $SED" >&5
jef56a97f92012-08-20 14:35:58 -07003939$as_echo "$SED" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003940
Jef Poskanzer437537f2012-11-30 12:16:17 -08003941{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
Jon Dugan92864152010-09-20 21:50:12 +00003942$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08003943if test "${ac_cv_path_GREP+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00003944 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003945else
Jon Dugan92864152010-09-20 21:50:12 +00003946 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003947 ac_path_GREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00003948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08003954 for ac_prog in grep ggrep; do
Jon Dugan92864152010-09-20 21:50:12 +00003955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3958# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00003959 # Check for GNU $ac_path_GREP
3960case `"$ac_path_GREP" --version 2>&1` in
3961*GNU*)
3962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3963*)
3964 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00003965 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00003966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00003971 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00003972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jef Poskanzer437537f2012-11-30 12:16:17 -08003974 ac_count=`expr $ac_count + 1`
Jon Dugane34c20c2010-07-08 23:26:52 +00003975 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_GREP="$ac_path_GREP"
3978 ac_path_GREP_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
3985
Jon Dugan92864152010-09-20 21:50:12 +00003986 $ac_path_GREP_found && break 3
3987 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003988 done
Jef Poskanzer437537f2012-11-30 12:16:17 -08003989done
Jon Dugane34c20c2010-07-08 23:26:52 +00003990IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00003991 if test -z "$ac_cv_path_GREP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08003992 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3993$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3994 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00003995 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003996else
3997 ac_cv_path_GREP=$GREP
3998fi
3999
4000fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004001{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004002$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004003 GREP="$ac_cv_path_GREP"
4004
4005
Jef Poskanzer437537f2012-11-30 12:16:17 -08004006{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004007$as_echo_n "checking for egrep... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004008if test "${ac_cv_path_EGREP+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004009 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004010else
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4013 else
Jon Dugan92864152010-09-20 21:50:12 +00004014 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004015 ac_path_EGREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004022 for ac_prog in egrep; do
Jon Dugan92864152010-09-20 21:50:12 +00004023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4026# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004027 # Check for GNU $ac_path_EGREP
4028case `"$ac_path_EGREP" --version 2>&1` in
4029*GNU*)
4030 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4031*)
4032 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004033 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004034 while :
4035 do
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004039 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jef Poskanzer437537f2012-11-30 12:16:17 -08004042 ac_count=`expr $ac_count + 1`
Jon Dugane34c20c2010-07-08 23:26:52 +00004043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_EGREP="$ac_path_EGREP"
4046 ac_path_EGREP_max=$ac_count
4047 fi
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4050 done
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052esac
4053
Jon Dugan92864152010-09-20 21:50:12 +00004054 $ac_path_EGREP_found && break 3
4055 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004056 done
Jef Poskanzer437537f2012-11-30 12:16:17 -08004057done
Jon Dugane34c20c2010-07-08 23:26:52 +00004058IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004059 if test -z "$ac_cv_path_EGREP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08004060 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4061$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4062 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +00004063 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004064else
4065 ac_cv_path_EGREP=$EGREP
4066fi
4067
4068 fi
4069fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004070{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004071$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004072 EGREP="$ac_cv_path_EGREP"
4073
4074
Jon Dugane34c20c2010-07-08 23:26:52 +00004075
4076# Check whether --with-gnu-ld was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004077if test "${with_gnu_ld+set}" = set; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004078 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4079else
4080 with_gnu_ld=no
4081fi
4082
4083ac_prog=ld
4084if test "$GCC" = yes; then
4085 # Check if gcc -print-prog-name=ld gives a path.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004086 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004087$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004088 case $host in
4089 *-*-mingw*)
4090 # gcc leaves a trailing carriage return which upsets mingw
4091 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4092 *)
4093 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4094 esac
4095 case $ac_prog in
4096 # Accept absolute paths.
4097 [\\/]* | ?:[\\/]*)
4098 re_direlt='/[^/][^/]*/\.\./'
4099 # Canonicalize the pathname of ld
jef56a97f92012-08-20 14:35:58 -07004100 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4101 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4102 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004103 done
4104 test -z "$LD" && LD="$ac_prog"
4105 ;;
4106 "")
4107 # If it fails, then pretend we aren't using GCC.
4108 ac_prog=ld
4109 ;;
4110 *)
4111 # If it is relative, then search for the first ld in PATH.
4112 with_gnu_ld=unknown
4113 ;;
4114 esac
4115elif test "$with_gnu_ld" = yes; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08004116 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004117$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004118else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004119 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004120$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004121fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004122if test "${lt_cv_path_LD+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004123 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004124else
4125 if test -z "$LD"; then
4126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4127 for ac_dir in $PATH; do
4128 IFS="$lt_save_ifs"
4129 test -z "$ac_dir" && ac_dir=.
4130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4131 lt_cv_path_LD="$ac_dir/$ac_prog"
4132 # Check to see if the program is GNU ld. I'd rather use --version,
4133 # but apparently some variants of GNU ld only accept -v.
4134 # Break only if it was the GNU/non-GNU ld that we prefer.
4135 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4136 *GNU* | *'with BFD'*)
4137 test "$with_gnu_ld" != no && break
4138 ;;
4139 *)
4140 test "$with_gnu_ld" != yes && break
4141 ;;
4142 esac
4143 fi
4144 done
4145 IFS="$lt_save_ifs"
4146else
4147 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4148fi
4149fi
4150
4151LD="$lt_cv_path_LD"
4152if test -n "$LD"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08004153 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004154$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004155else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004156 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004157$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004158fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004159test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4160$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4161 { (exit 1); exit 1; }; }
4162{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004163$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004164if test "${lt_cv_prog_gnu_ld+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004165 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004166else
4167 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4168case `$LD -v 2>&1 </dev/null` in
4169*GNU* | *'with BFD'*)
4170 lt_cv_prog_gnu_ld=yes
4171 ;;
4172*)
4173 lt_cv_prog_gnu_ld=no
4174 ;;
4175esac
4176fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004177{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004178$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004179with_gnu_ld=$lt_cv_prog_gnu_ld
4180
4181
Jef Poskanzer437537f2012-11-30 12:16:17 -08004182{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
jef56a97f92012-08-20 14:35:58 -07004183$as_echo_n "checking for $LD option to reload object files... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004184if test "${lt_cv_ld_reload_flag+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07004185 $as_echo_n "(cached) " >&6
4186else
4187 lt_cv_ld_reload_flag='-r'
4188fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004189{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
jef56a97f92012-08-20 14:35:58 -07004190$as_echo "$lt_cv_ld_reload_flag" >&6; }
4191reload_flag=$lt_cv_ld_reload_flag
4192case $reload_flag in
4193"" | " "*) ;;
4194*) reload_flag=" $reload_flag" ;;
4195esac
4196reload_cmds='$LD$reload_flag -o $output$reload_objs'
4197case $host_os in
4198 darwin*)
4199 if test "$GCC" = yes; then
4200 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4201 else
4202 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4203 fi
4204 ;;
4205esac
Jon Dugane34c20c2010-07-08 23:26:52 +00004206
Jef Poskanzer437537f2012-11-30 12:16:17 -08004207{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
jef56a97f92012-08-20 14:35:58 -07004208$as_echo_n "checking for BSD-compatible nm... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004209if test "${lt_cv_path_NM+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004210 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004211else
4212 if test -n "$NM"; then
4213 # Let the user override the test.
4214 lt_cv_path_NM="$NM"
4215else
4216 lt_nm_to_check="${ac_tool_prefix}nm"
4217 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4218 lt_nm_to_check="$lt_nm_to_check nm"
4219 fi
4220 for lt_tmp_nm in $lt_nm_to_check; do
4221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4222 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4223 IFS="$lt_save_ifs"
4224 test -z "$ac_dir" && ac_dir=.
4225 tmp_nm="$ac_dir/$lt_tmp_nm"
4226 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4227 # Check to see if the nm accepts a BSD-compat flag.
4228 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4229 # nm: unknown option "B" ignored
4230 # Tru64's nm complains that /dev/null is an invalid object file
4231 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4232 */dev/null* | *'Invalid file or object type'*)
4233 lt_cv_path_NM="$tmp_nm -B"
4234 break
4235 ;;
4236 *)
4237 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4238 */dev/null*)
4239 lt_cv_path_NM="$tmp_nm -p"
4240 break
4241 ;;
4242 *)
4243 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4244 continue # so that we can try to find one that supports BSD flags
4245 ;;
4246 esac
4247 ;;
4248 esac
4249 fi
4250 done
4251 IFS="$lt_save_ifs"
4252 done
jef56a97f92012-08-20 14:35:58 -07004253 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004254fi
4255fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004256{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004257$as_echo "$lt_cv_path_NM" >&6; }
jef56a97f92012-08-20 14:35:58 -07004258NM="$lt_cv_path_NM"
Jon Dugane34c20c2010-07-08 23:26:52 +00004259
Jef Poskanzer437537f2012-11-30 12:16:17 -08004260{ $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
jef56a97f92012-08-20 14:35:58 -07004261$as_echo_n "checking how to recognise dependent libraries... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004262if test "${lt_cv_deplibs_check_method+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004263 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004264else
4265 lt_cv_file_magic_cmd='$MAGIC_CMD'
4266lt_cv_file_magic_test_file=
4267lt_cv_deplibs_check_method='unknown'
4268# Need to set the preceding variable on all platforms that support
4269# interlibrary dependencies.
4270# 'none' -- dependencies not supported.
4271# `unknown' -- same as none, but documents that we really don't know.
4272# 'pass_all' -- all dependencies passed with no checks.
4273# 'test_compile' -- check by making test program.
4274# 'file_magic [[regex]]' -- check by looking for files in library path
4275# which responds to the $file_magic_cmd with a given extended regex.
4276# If you have `file' or equivalent on your system and you're not sure
4277# whether `pass_all' will *always* work, you probably want this one.
4278
4279case $host_os in
jef56a97f92012-08-20 14:35:58 -07004280aix4* | aix5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283
4284beos*)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287
4288bsdi[45]*)
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4290 lt_cv_file_magic_cmd='/usr/bin/file -L'
4291 lt_cv_file_magic_test_file=/shlib/libc.so
4292 ;;
4293
4294cygwin*)
4295 # func_win32_libid is a shell function defined in ltmain.sh
4296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4297 lt_cv_file_magic_cmd='func_win32_libid'
4298 ;;
4299
4300mingw* | pw32*)
4301 # Base MSYS/MinGW do not provide the 'file' command needed by
jef56a97f92012-08-20 14:35:58 -07004302 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4303 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Jon Dugan92864152010-09-20 21:50:12 +00004304 lt_cv_file_magic_cmd='$OBJDUMP -f'
4305 ;;
4306
Jon Dugane34c20c2010-07-08 23:26:52 +00004307darwin* | rhapsody*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
jef56a97f92012-08-20 14:35:58 -07004311freebsd* | kfreebsd*-gnu | dragonfly*)
4312 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004313 case $host_cpu in
4314 i*86 )
4315 # Not sure whether the presence of OpenBSD here was a mistake.
4316 # Let's accept both of them until this is cleared up.
4317 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4320 ;;
4321 esac
4322 else
4323 lt_cv_deplibs_check_method=pass_all
4324 fi
4325 ;;
4326
4327gnu*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330
Jon Dugane34c20c2010-07-08 23:26:52 +00004331hpux10.20* | hpux11*)
4332 lt_cv_file_magic_cmd=/usr/bin/file
4333 case $host_cpu in
4334 ia64*)
4335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4336 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4337 ;;
4338 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07004339 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]'
Jon Dugane34c20c2010-07-08 23:26:52 +00004340 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4341 ;;
4342 *)
jef56a97f92012-08-20 14:35:58 -07004343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
Jon Dugane34c20c2010-07-08 23:26:52 +00004344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345 ;;
4346 esac
4347 ;;
4348
jef56a97f92012-08-20 14:35:58 -07004349interix3*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004350 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4352 ;;
4353
4354irix5* | irix6* | nonstopux*)
4355 case $LD in
4356 *-32|*"-32 ") libmagic=32-bit;;
4357 *-n32|*"-n32 ") libmagic=N32;;
4358 *-64|*"-64 ") libmagic=64-bit;;
4359 *) libmagic=never-match;;
4360 esac
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364# This must be Linux ELF.
jef56a97f92012-08-20 14:35:58 -07004365linux*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368
4369netbsd*)
jef56a97f92012-08-20 14:35:58 -07004370 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372 else
4373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4374 fi
4375 ;;
4376
4377newos6*)
4378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4379 lt_cv_file_magic_cmd=/usr/bin/file
4380 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4381 ;;
4382
jef56a97f92012-08-20 14:35:58 -07004383nto-qnx*)
4384 lt_cv_deplibs_check_method=unknown
Jon Dugane34c20c2010-07-08 23:26:52 +00004385 ;;
4386
4387openbsd*)
jef56a97f92012-08-20 14:35:58 -07004388 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 +00004389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4390 else
4391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4392 fi
4393 ;;
4394
4395osf3* | osf4* | osf5*)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
Jon Dugane34c20c2010-07-08 23:26:52 +00004399solaris*)
4400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
Jon Dugane34c20c2010-07-08 23:26:52 +00004403sysv4 | sysv4.3*)
4404 case $host_vendor in
4405 motorola)
4406 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]'
4407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4408 ;;
4409 ncr)
4410 lt_cv_deplibs_check_method=pass_all
4411 ;;
4412 sequent)
4413 lt_cv_file_magic_cmd='/bin/file'
4414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4415 ;;
4416 sni)
4417 lt_cv_file_magic_cmd='/bin/file'
4418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4419 lt_cv_file_magic_test_file=/lib/libc.so
4420 ;;
4421 siemens)
4422 lt_cv_deplibs_check_method=pass_all
4423 ;;
4424 pc)
4425 lt_cv_deplibs_check_method=pass_all
4426 ;;
4427 esac
4428 ;;
4429
jef56a97f92012-08-20 14:35:58 -07004430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004431 lt_cv_deplibs_check_method=pass_all
4432 ;;
4433esac
4434
4435fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004436{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004437$as_echo "$lt_cv_deplibs_check_method" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004438file_magic_cmd=$lt_cv_file_magic_cmd
4439deplibs_check_method=$lt_cv_deplibs_check_method
4440test -z "$deplibs_check_method" && deplibs_check_method=unknown
4441
4442
4443
4444
Jon Dugane34c20c2010-07-08 23:26:52 +00004445# If no C compiler was specified, use CC.
4446LTCC=${LTCC-"$CC"}
4447
4448# If no C compiler flags were specified, use CFLAGS.
4449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4450
4451# Allow CC to be a program name with arguments.
4452compiler=$CC
4453
4454
Jon Dugane34c20c2010-07-08 23:26:52 +00004455# Check whether --enable-libtool-lock was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004456if test "${enable_libtool_lock+set}" = set; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004457 enableval=$enable_libtool_lock;
4458fi
4459
4460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4461
4462# Some flags need to be propagated to the compiler or linker for good
4463# libtool support.
4464case $host in
4465ia64-*-hpux*)
4466 # Find out which ABI we are using.
4467 echo 'int i;' > conftest.$ac_ext
Jef Poskanzer437537f2012-11-30 12:16:17 -08004468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004469 (eval $ac_compile) 2>&5
4470 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08004471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004473 case `/usr/bin/file conftest.$ac_objext` in
jef56a97f92012-08-20 14:35:58 -07004474 *ELF-32*)
4475 HPUX_IA64_MODE="32"
4476 ;;
4477 *ELF-64*)
4478 HPUX_IA64_MODE="64"
4479 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004480 esac
4481 fi
4482 rm -rf conftest*
4483 ;;
4484*-*-irix6*)
4485 # Find out which ABI we are using.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004486 echo '#line 4486 "configure"' > conftest.$ac_ext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004488 (eval $ac_compile) 2>&5
4489 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08004490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -07004492 if test "$lt_cv_prog_gnu_ld" = yes; then
4493 case `/usr/bin/file conftest.$ac_objext` in
4494 *32-bit*)
4495 LD="${LD-ld} -melf32bsmip"
4496 ;;
4497 *N32*)
4498 LD="${LD-ld} -melf32bmipn32"
4499 ;;
4500 *64-bit*)
4501 LD="${LD-ld} -melf64bmip"
4502 ;;
4503 esac
4504 else
4505 case `/usr/bin/file conftest.$ac_objext` in
4506 *32-bit*)
4507 LD="${LD-ld} -32"
4508 ;;
4509 *N32*)
4510 LD="${LD-ld} -n32"
4511 ;;
4512 *64-bit*)
4513 LD="${LD-ld} -64"
4514 ;;
4515 esac
4516 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004517 fi
4518 rm -rf conftest*
4519 ;;
4520
jef56a97f92012-08-20 14:35:58 -07004521x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004522 # Find out which ABI we are using.
4523 echo 'int i;' > conftest.$ac_ext
Jef Poskanzer437537f2012-11-30 12:16:17 -08004524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004525 (eval $ac_compile) 2>&5
4526 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08004527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004529 case `/usr/bin/file conftest.o` in
jef56a97f92012-08-20 14:35:58 -07004530 *32-bit*)
4531 case $host in
4532 x86_64-*linux*)
4533 LD="${LD-ld} -m elf_i386"
4534 ;;
4535 ppc64-*linux*|powerpc64-*linux*)
4536 LD="${LD-ld} -m elf32ppclinux"
4537 ;;
4538 s390x-*linux*)
4539 LD="${LD-ld} -m elf_s390"
4540 ;;
4541 sparc64-*linux*)
4542 LD="${LD-ld} -m elf32_sparc"
4543 ;;
4544 esac
4545 ;;
4546 *64-bit*)
4547 case $host in
4548 x86_64-*linux*)
4549 LD="${LD-ld} -m elf_x86_64"
4550 ;;
4551 ppc*-*linux*|powerpc*-*linux*)
4552 LD="${LD-ld} -m elf64ppc"
4553 ;;
4554 s390*-*linux*)
4555 LD="${LD-ld} -m elf64_s390"
4556 ;;
4557 sparc*-*linux*)
4558 LD="${LD-ld} -m elf64_sparc"
4559 ;;
4560 esac
4561 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004562 esac
4563 fi
4564 rm -rf conftest*
4565 ;;
4566
4567*-*-sco3.2v5*)
4568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4569 SAVE_CFLAGS="$CFLAGS"
4570 CFLAGS="$CFLAGS -belf"
Jef Poskanzer437537f2012-11-30 12:16:17 -08004571 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004572$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004573if test "${lt_cv_cc_needs_belf+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004574 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004575else
4576 ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
Jef Poskanzer437537f2012-11-30 12:16:17 -08004582 cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004587/* end confdefs.h. */
4588
4589int
4590main ()
4591{
4592
4593 ;
4594 return 0;
4595}
4596_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004597rm -f conftest.$ac_objext conftest$ac_exeext
4598if { (ac_try="$ac_link"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604$as_echo "$ac_try_echo") >&5
4605 (eval "$ac_link") 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest$ac_exeext && {
4615 test "$cross_compiling" = yes ||
4616 $as_test_x conftest$ac_exeext
4617 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004618 lt_cv_cc_needs_belf=yes
4619else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004620 $as_echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 lt_cv_cc_needs_belf=no
Jon Dugane34c20c2010-07-08 23:26:52 +00004624fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004625
4626rm -rf conftest.dSYM
4627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4628 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00004629 ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004636{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004637$as_echo "$lt_cv_cc_needs_belf" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4640 CFLAGS="$SAVE_CFLAGS"
4641 fi
4642 ;;
4643sparc*-*solaris*)
4644 # Find out which ABI we are using.
4645 echo 'int i;' > conftest.$ac_ext
Jef Poskanzer437537f2012-11-30 12:16:17 -08004646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004647 (eval $ac_compile) 2>&5
4648 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08004649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004651 case `/usr/bin/file conftest.o` in
4652 *64-bit*)
4653 case $lt_cv_prog_gnu_ld in
4654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
jef56a97f92012-08-20 14:35:58 -07004655 *) LD="${LD-ld} -64" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004656 esac
4657 ;;
4658 esac
4659 fi
4660 rm -rf conftest*
4661 ;;
jef56a97f92012-08-20 14:35:58 -07004662
4663
Jon Dugane34c20c2010-07-08 23:26:52 +00004664esac
4665
4666need_locks="$enable_libtool_lock"
4667
Jon Dugane34c20c2010-07-08 23:26:52 +00004668
4669ac_ext=c
4670ac_cpp='$CPP $CPPFLAGS'
4671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jef Poskanzer437537f2012-11-30 12:16:17 -08004674{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004675$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004676# On Suns, sometimes $CPP names a directory.
4677if test -n "$CPP" && test -d "$CPP"; then
4678 CPP=
4679fi
4680if test -z "$CPP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08004681 if test "${ac_cv_prog_CPP+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004682 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004683else
4684 # Double quotes because CPP needs to be expanded
4685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4686 do
4687 ac_preproc_ok=false
4688for ac_c_preproc_warn_flag in '' yes
4689do
4690 # Use a header file that comes with gcc, so configuring glibc
4691 # with a fresh cross-compiler works.
4692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4693 # <limits.h> exists even on freestanding compilers.
4694 # On the NeXT, cc -E runs the code through the compiler's parser,
4695 # not just through cpp. "Syntax error" is here to catch this case.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004696 cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h. */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004701/* end confdefs.h. */
4702#ifdef __STDC__
4703# include <limits.h>
4704#else
4705# include <assert.h>
4706#endif
4707 Syntax error
4708_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004709if { (ac_try="$ac_cpp conftest.$ac_ext"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715$as_echo "$ac_try_echo") >&5
4716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null && {
4723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4725 }; then
4726 :
Jon Dugan92864152010-09-20 21:50:12 +00004727else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004728 $as_echo "$as_me: failed program was:" >&5
4729sed 's/^/| /' conftest.$ac_ext >&5
4730
Jon Dugane34c20c2010-07-08 23:26:52 +00004731 # Broken: fails on valid input.
4732continue
4733fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004734
4735rm -f conftest.err conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00004736
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004739 cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h. */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004744/* end confdefs.h. */
4745#include <ac_nonexistent.h>
4746_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004747if { (ac_try="$ac_cpp conftest.$ac_ext"
4748case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
4752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753$as_echo "$ac_try_echo") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004764 # Broken: success on invalid input.
4765continue
4766else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004767 $as_echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
Jon Dugane34c20c2010-07-08 23:26:52 +00004770 # Passes both tests.
4771ac_preproc_ok=:
4772break
4773fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004774
4775rm -f conftest.err conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00004776
4777done
4778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004779rm -f conftest.err conftest.$ac_ext
4780if $ac_preproc_ok; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004781 break
4782fi
4783
4784 done
4785 ac_cv_prog_CPP=$CPP
4786
4787fi
4788 CPP=$ac_cv_prog_CPP
4789else
4790 ac_cv_prog_CPP=$CPP
4791fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004792{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004793$as_echo "$CPP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004794ac_preproc_ok=false
4795for ac_c_preproc_warn_flag in '' yes
4796do
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004803 cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004808/* end confdefs.h. */
4809#ifdef __STDC__
4810# include <limits.h>
4811#else
4812# include <assert.h>
4813#endif
4814 Syntax error
4815_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004816if { (ac_try="$ac_cpp conftest.$ac_ext"
4817case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820esac
4821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822$as_echo "$ac_try_echo") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 }; then
4833 :
Jon Dugan92864152010-09-20 21:50:12 +00004834else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004835 $as_echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
Jon Dugane34c20c2010-07-08 23:26:52 +00004838 # Broken: fails on valid input.
4839continue
4840fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004841
4842rm -f conftest.err conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00004843
4844 # OK, works on sane cases. Now check whether nonexistent headers
4845 # can be detected and how.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004846 cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004851/* end confdefs.h. */
4852#include <ac_nonexistent.h>
4853_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004854if { (ac_try="$ac_cpp conftest.$ac_ext"
4855case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858esac
4859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4860$as_echo "$ac_try_echo") >&5
4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null && {
4868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4869 test ! -s conftest.err
4870 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004871 # Broken: success on invalid input.
4872continue
4873else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004874 $as_echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
Jon Dugane34c20c2010-07-08 23:26:52 +00004877 # Passes both tests.
4878ac_preproc_ok=:
4879break
4880fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004881
4882rm -f conftest.err conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00004883
4884done
4885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004886rm -f conftest.err conftest.$ac_ext
4887if $ac_preproc_ok; then
4888 :
Jon Dugane34c20c2010-07-08 23:26:52 +00004889else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004890 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08004892{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4893See \`config.log' for more details." >&5
4894$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4895See \`config.log' for more details." >&2;}
4896 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004897fi
4898
4899ac_ext=c
4900ac_cpp='$CPP $CPPFLAGS'
4901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4905
Jef Poskanzer437537f2012-11-30 12:16:17 -08004906{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Jon Dugan92864152010-09-20 21:50:12 +00004907$as_echo_n "checking for ANSI C header files... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08004908if test "${ac_cv_header_stdc+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00004909 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004910else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004911 cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h. */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004916/* end confdefs.h. */
4917#include <stdlib.h>
4918#include <stdarg.h>
4919#include <string.h>
4920#include <float.h>
4921
4922int
4923main ()
4924{
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08004930rm -f conftest.$ac_objext
4931if { (ac_try="$ac_compile"
4932case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004948 ac_cv_header_stdc=yes
4949else
Jef Poskanzer437537f2012-11-30 12:16:17 -08004950 $as_echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00004954fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08004955
Jon Dugane34c20c2010-07-08 23:26:52 +00004956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957
4958if test $ac_cv_header_stdc = yes; then
4959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004960 cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h. */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004965/* end confdefs.h. */
4966#include <string.h>
4967
4968_ACEOF
4969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jef Poskanzer437537f2012-11-30 12:16:17 -08004970 $EGREP "memchr" >/dev/null 2>&1; then
4971 :
Jon Dugane34c20c2010-07-08 23:26:52 +00004972else
4973 ac_cv_header_stdc=no
4974fi
Jon Dugan92864152010-09-20 21:50:12 +00004975rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00004976
4977fi
4978
4979if test $ac_cv_header_stdc = yes; then
4980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jef Poskanzer437537f2012-11-30 12:16:17 -08004981 cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00004986/* end confdefs.h. */
4987#include <stdlib.h>
4988
4989_ACEOF
4990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jef Poskanzer437537f2012-11-30 12:16:17 -08004991 $EGREP "free" >/dev/null 2>&1; then
4992 :
Jon Dugane34c20c2010-07-08 23:26:52 +00004993else
4994 ac_cv_header_stdc=no
4995fi
Jon Dugan92864152010-09-20 21:50:12 +00004996rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00004997
4998fi
4999
5000if test $ac_cv_header_stdc = yes; then
5001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005002 if test "$cross_compiling" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005003 :
5004else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005005 cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00005010/* end confdefs.h. */
5011#include <ctype.h>
5012#include <stdlib.h>
5013#if ((' ' & 0x0FF) == 0x020)
5014# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5015# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5016#else
5017# define ISLOWER(c) \
5018 (('a' <= (c) && (c) <= 'i') \
5019 || ('j' <= (c) && (c) <= 'r') \
5020 || ('s' <= (c) && (c) <= 'z'))
5021# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5022#endif
5023
5024#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5025int
5026main ()
5027{
5028 int i;
5029 for (i = 0; i < 256; i++)
5030 if (XOR (islower (i), ISLOWER (i))
5031 || toupper (i) != TOUPPER (i))
5032 return 2;
5033 return 0;
5034}
5035_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005036rm -f conftest$ac_exeext
5037if { (ac_try="$ac_link"
5038case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
5042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5043$as_echo "$ac_try_echo") >&5
5044 (eval "$ac_link") 2>&5
5045 ac_status=$?
5046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5048 { (case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051esac
5052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053$as_echo "$ac_try_echo") >&5
5054 (eval "$ac_try") 2>&5
5055 ac_status=$?
5056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 :
Jon Dugane34c20c2010-07-08 23:26:52 +00005059else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005060 $as_echo "$as_me: program exited with status $ac_status" >&5
5061$as_echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064( exit $ac_status )
5065ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00005066fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005067rm -rf conftest.dSYM
5068rm -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 +00005069fi
5070
Jef Poskanzer437537f2012-11-30 12:16:17 -08005071
Jon Dugane34c20c2010-07-08 23:26:52 +00005072fi
5073fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005074{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Jon Dugan92864152010-09-20 21:50:12 +00005075$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005076if test $ac_cv_header_stdc = yes; then
5077
Jef Poskanzer437537f2012-11-30 12:16:17 -08005078cat >>confdefs.h <<\_ACEOF
5079#define STDC_HEADERS 1
5080_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00005081
5082fi
5083
5084# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005085
5086
5087
5088
5089
5090
5091
5092
5093
Jon Dugane34c20c2010-07-08 23:26:52 +00005094for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5095 inttypes.h stdint.h unistd.h
Jef Poskanzer437537f2012-11-30 12:16:17 -08005096do
5097as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5099$as_echo_n "checking for $ac_header... " >&6; }
5100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5101 $as_echo_n "(cached) " >&6
5102else
5103 cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109$ac_includes_default
5110
5111#include <$ac_header>
5112_ACEOF
5113rm -f conftest.$ac_objext
5114if { (ac_try="$ac_compile"
5115case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118esac
5119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120$as_echo "$ac_try_echo") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 eval "$as_ac_Header=yes"
5132else
5133 $as_echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 eval "$as_ac_Header=no"
5137fi
5138
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140fi
5141ac_res=`eval 'as_val=${'$as_ac_Header'}
5142 $as_echo "$as_val"'`
5143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5144$as_echo "$ac_res" >&6; }
5145as_val=`eval 'as_val=${'$as_ac_Header'}
5146 $as_echo "$as_val"'`
5147 if test "x$as_val" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005148 cat >>confdefs.h <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00005149#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jon Dugane34c20c2010-07-08 23:26:52 +00005150_ACEOF
5151
5152fi
5153
5154done
5155
5156
Jef Poskanzer437537f2012-11-30 12:16:17 -08005157
Jon Dugane34c20c2010-07-08 23:26:52 +00005158for ac_header in dlfcn.h
Jef Poskanzer437537f2012-11-30 12:16:17 -08005159do
5160as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5163$as_echo_n "checking for $ac_header... " >&6; }
5164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165 $as_echo_n "(cached) " >&6
5166fi
5167ac_res=`eval 'as_val=${'$as_ac_Header'}
5168 $as_echo "$as_val"'`
5169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5170$as_echo "$ac_res" >&6; }
5171else
5172 # Is the header compilable?
5173{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5174$as_echo_n "checking $ac_header usability... " >&6; }
5175cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h. */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h. */
5181$ac_includes_default
5182#include <$ac_header>
5183_ACEOF
5184rm -f conftest.$ac_objext
5185if { (ac_try="$ac_compile"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191$as_echo "$ac_try_echo") >&5
5192 (eval "$ac_compile") 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
5202 ac_header_compiler=yes
5203else
5204 $as_echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 ac_header_compiler=no
5208fi
5209
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5212$as_echo "$ac_header_compiler" >&6; }
5213
5214# Is the header present?
5215{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5216$as_echo_n "checking $ac_header presence... " >&6; }
5217cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h. */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h. */
5223#include <$ac_header>
5224_ACEOF
5225if { (ac_try="$ac_cpp conftest.$ac_ext"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231$as_echo "$ac_try_echo") >&5
5232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev/null && {
5239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 }; then
5242 ac_header_preproc=yes
5243else
5244 $as_echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_header_preproc=no
5248fi
5249
5250rm -f conftest.err conftest.$ac_ext
5251{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5252$as_echo "$ac_header_preproc" >&6; }
5253
5254# So? What about this header?
5255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5256 yes:no: )
5257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5258$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5260$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5261 ac_header_preproc=yes
5262 ;;
5263 no:yes:* )
5264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5265$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5267$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5269$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5271$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5275$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5276 ( cat <<\_ASBOX
5277## ------------------------------------------------ ##
5278## Report this to iperf-users@lists.sourceforge.net ##
5279## ------------------------------------------------ ##
5280_ASBOX
5281 ) | sed "s/^/$as_me: WARNING: /" >&2
5282 ;;
5283esac
5284{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5285$as_echo_n "checking for $ac_header... " >&6; }
5286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 $as_echo_n "(cached) " >&6
5288else
5289 eval "$as_ac_Header=\$ac_header_preproc"
5290fi
5291ac_res=`eval 'as_val=${'$as_ac_Header'}
5292 $as_echo "$as_val"'`
5293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5294$as_echo "$ac_res" >&6; }
5295
5296fi
5297as_val=`eval 'as_val=${'$as_ac_Header'}
5298 $as_echo "$as_val"'`
5299 if test "x$as_val" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005300 cat >>confdefs.h <<_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jon Dugane34c20c2010-07-08 23:26:52 +00005302_ACEOF
5303
5304fi
5305
5306done
5307
jef56a97f92012-08-20 14:35:58 -07005308ac_ext=cpp
5309ac_cpp='$CXXCPP $CPPFLAGS'
5310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5313if test -z "$CXX"; then
5314 if test -n "$CCC"; then
5315 CXX=$CCC
5316 else
5317 if test -n "$ac_tool_prefix"; then
5318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5319 do
5320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08005322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07005323$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08005324if test "${ac_cv_prog_CXX+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005325 $as_echo_n "(cached) " >&6
5326else
5327 if test -n "$CXX"; then
5328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005335 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07005336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08005338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07005339 break 2
5340 fi
5341done
Jef Poskanzer437537f2012-11-30 12:16:17 -08005342done
jef56a97f92012-08-20 14:35:58 -07005343IFS=$as_save_IFS
5344
5345fi
5346fi
5347CXX=$ac_cv_prog_CXX
5348if test -n "$CXX"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08005349 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
jef56a97f92012-08-20 14:35:58 -07005350$as_echo "$CXX" >&6; }
5351else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005352 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07005353$as_echo "no" >&6; }
5354fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005355
5356
jef56a97f92012-08-20 14:35:58 -07005357 test -n "$CXX" && break
5358 done
5359fi
5360if test -z "$CXX"; then
5361 ac_ct_CXX=$CXX
5362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5363do
5364 # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08005366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07005367$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08005368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005369 $as_echo_n "(cached) " >&6
5370else
5371 if test -n "$ac_ct_CXX"; then
5372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005379 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07005380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08005382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07005383 break 2
5384 fi
5385done
Jef Poskanzer437537f2012-11-30 12:16:17 -08005386done
jef56a97f92012-08-20 14:35:58 -07005387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5392if test -n "$ac_ct_CXX"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08005393 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
jef56a97f92012-08-20 14:35:58 -07005394$as_echo "$ac_ct_CXX" >&6; }
5395else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005396 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07005397$as_echo "no" >&6; }
5398fi
Jon Dugan92864152010-09-20 21:50:12 +00005399
5400
jef56a97f92012-08-20 14:35:58 -07005401 test -n "$ac_ct_CXX" && break
5402done
Jon Dugane34c20c2010-07-08 23:26:52 +00005403
jef56a97f92012-08-20 14:35:58 -07005404 if test "x$ac_ct_CXX" = x; then
5405 CXX="g++"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08005409{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
jef56a97f92012-08-20 14:35:58 -07005410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 CXX=$ac_ct_CXX
5414 fi
5415fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005416
jef56a97f92012-08-20 14:35:58 -07005417 fi
5418fi
5419# Provide some information about the compiler.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005420$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
jef56a97f92012-08-20 14:35:58 -07005421set X $ac_compile
5422ac_compiler=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08005423{ (ac_try="$ac_compiler --version >&5"
jef56a97f92012-08-20 14:35:58 -07005424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08005428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429$as_echo "$ac_try_echo") >&5
5430 (eval "$ac_compiler --version >&5") 2>&5
jef56a97f92012-08-20 14:35:58 -07005431 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08005432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }
5434{ (ac_try="$ac_compiler -v >&5"
5435case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438esac
5439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440$as_echo "$ac_try_echo") >&5
5441 (eval "$ac_compiler -v >&5") 2>&5
5442 ac_status=$?
5443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }
5445{ (ac_try="$ac_compiler -V >&5"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
5450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5451$as_echo "$ac_try_echo") >&5
5452 (eval "$ac_compiler -V >&5") 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }
Jon Dugane34c20c2010-07-08 23:26:52 +00005456
Jef Poskanzer437537f2012-11-30 12:16:17 -08005457{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
jef56a97f92012-08-20 14:35:58 -07005458$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08005459if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005460 $as_echo_n "(cached) " >&6
5461else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005462 cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005467/* end confdefs.h. */
Jon Dugane34c20c2010-07-08 23:26:52 +00005468
jef56a97f92012-08-20 14:35:58 -07005469int
5470main ()
5471{
5472#ifndef __GNUC__
5473 choke me
5474#endif
Jon Dugane34c20c2010-07-08 23:26:52 +00005475
jef56a97f92012-08-20 14:35:58 -07005476 ;
5477 return 0;
5478}
5479_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5487$as_echo "$ac_try_echo") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } && {
5495 test -z "$ac_cxx_werror_flag" ||
5496 test ! -s conftest.err
5497 } && test -s conftest.$ac_objext; then
jef56a97f92012-08-20 14:35:58 -07005498 ac_compiler_gnu=yes
5499else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005500 $as_echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_compiler_gnu=no
jef56a97f92012-08-20 14:35:58 -07005504fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005505
jef56a97f92012-08-20 14:35:58 -07005506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Jon Dugane34c20c2010-07-08 23:26:52 +00005508
jef56a97f92012-08-20 14:35:58 -07005509fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005510{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
jef56a97f92012-08-20 14:35:58 -07005511$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5512if test $ac_compiler_gnu = yes; then
5513 GXX=yes
5514else
5515 GXX=
5516fi
5517ac_test_CXXFLAGS=${CXXFLAGS+set}
5518ac_save_CXXFLAGS=$CXXFLAGS
Jef Poskanzer437537f2012-11-30 12:16:17 -08005519{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
jef56a97f92012-08-20 14:35:58 -07005520$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08005521if test "${ac_cv_prog_cxx_g+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005522 $as_echo_n "(cached) " >&6
5523else
5524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5525 ac_cxx_werror_flag=yes
5526 ac_cv_prog_cxx_g=no
5527 CXXFLAGS="-g"
Jef Poskanzer437537f2012-11-30 12:16:17 -08005528 cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005533/* end confdefs.h. */
Jon Dugane34c20c2010-07-08 23:26:52 +00005534
jef56a97f92012-08-20 14:35:58 -07005535int
5536main ()
5537{
5538
5539 ;
5540 return 0;
5541}
5542_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005543rm -f conftest.$ac_objext
5544if { (ac_try="$ac_compile"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5550$as_echo "$ac_try_echo") >&5
5551 (eval "$ac_compile") 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_cxx_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest.$ac_objext; then
jef56a97f92012-08-20 14:35:58 -07005561 ac_cv_prog_cxx_g=yes
5562else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005563 $as_echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 CXXFLAGS=""
5567 cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005572/* end confdefs.h. */
5573
5574int
5575main ()
5576{
5577
5578 ;
5579 return 0;
5580}
5581_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005582rm -f conftest.$ac_objext
5583if { (ac_try="$ac_compile"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5589$as_echo "$ac_try_echo") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_cxx_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 :
jef56a97f92012-08-20 14:35:58 -07005601else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005602 $as_echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
jef56a97f92012-08-20 14:35:58 -07005606 CXXFLAGS="-g"
Jef Poskanzer437537f2012-11-30 12:16:17 -08005607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005612/* end confdefs.h. */
5613
5614int
5615main ()
5616{
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
jef56a97f92012-08-20 14:35:58 -07005640 ac_cv_prog_cxx_g=yes
Jef Poskanzer437537f2012-11-30 12:16:17 -08005641else
5642 $as_echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645
jef56a97f92012-08-20 14:35:58 -07005646fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005647
jef56a97f92012-08-20 14:35:58 -07005648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005650
jef56a97f92012-08-20 14:35:58 -07005651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005653
jef56a97f92012-08-20 14:35:58 -07005654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5656fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005657{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
jef56a97f92012-08-20 14:35:58 -07005658$as_echo "$ac_cv_prog_cxx_g" >&6; }
5659if test "$ac_test_CXXFLAGS" = set; then
5660 CXXFLAGS=$ac_save_CXXFLAGS
5661elif test $ac_cv_prog_cxx_g = yes; then
5662 if test "$GXX" = yes; then
5663 CXXFLAGS="-g -O2"
5664 else
5665 CXXFLAGS="-g"
5666 fi
5667else
5668 if test "$GXX" = yes; then
5669 CXXFLAGS="-O2"
5670 else
5671 CXXFLAGS=
5672 fi
5673fi
5674ac_ext=cpp
5675ac_cpp='$CXXCPP $CPPFLAGS'
5676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5679
5680depcc="$CXX" am_compiler_list=
5681
Jef Poskanzer437537f2012-11-30 12:16:17 -08005682{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
jef56a97f92012-08-20 14:35:58 -07005683$as_echo_n "checking dependency style of $depcc... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08005684if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005685 $as_echo_n "(cached) " >&6
5686else
5687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688 # We make a subdir and do the tests there. Otherwise we can end up
5689 # making bogus files that we don't know about and never remove. For
5690 # instance it was reported that on HP-UX the gcc test will end up
5691 # making a dummy file named `D' -- because `-MD' means `put the output
5692 # in D'.
5693 mkdir conftest.dir
5694 # Copy depcomp to subdir because otherwise we won't find it if we're
5695 # using a relative directory.
5696 cp "$am_depcomp" conftest.dir
5697 cd conftest.dir
5698 # We will build objects and dependencies in a subdirectory because
5699 # it helps to detect inapplicable dependency modes. For instance
5700 # both Tru64's cc and ICC support -MD to output dependencies as a
5701 # side effect of compilation, but ICC will put the dependencies in
5702 # the current directory while Tru64 will put them in the object
5703 # directory.
5704 mkdir sub
5705
5706 am_cv_CXX_dependencies_compiler_type=none
5707 if test "$am_compiler_list" = ""; then
5708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5709 fi
5710 for depmode in $am_compiler_list; do
5711 # Setup a source with many dependencies, because some compilers
5712 # like to wrap large dependency lists on column 80 (with \), and
5713 # we should not choose a depcomp mode which is confused by this.
5714 #
5715 # We need to recreate these files for each test, as the compiler may
5716 # overwrite some of them when testing with obscure command lines.
5717 # This happens at least with the AIX C compiler.
5718 : > sub/conftest.c
5719 for i in 1 2 3 4 5 6; do
5720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5722 # Solaris 8's {/usr,}/bin/sh.
5723 touch sub/conftst$i.h
5724 done
5725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5726
5727 case $depmode in
5728 nosideeffect)
5729 # after this tag, mechanisms are not by side-effect, so they'll
5730 # only be used when explicitly requested
5731 if test "x$enable_dependency_tracking" = xyes; then
5732 continue
5733 else
5734 break
5735 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005736 ;;
jef56a97f92012-08-20 14:35:58 -07005737 none) break ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00005738 esac
jef56a97f92012-08-20 14:35:58 -07005739 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5740 # mode. It turns out that the SunPro C++ compiler does not properly
5741 # handle `-M -o', and we need to detect this.
5742 if depmode=$depmode \
5743 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5746 >/dev/null 2>conftest.err &&
5747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5748 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5750 # icc doesn't choke on unknown options, it will just issue warnings
5751 # or remarks (even with -Werror). So we grep stderr for any message
5752 # that says an option was ignored or not supported.
5753 # When given -MP, icc 7.0 and 7.1 complain thusly:
5754 # icc: Command line warning: ignoring option '-M'; no argument required
5755 # The diagnosis changed in icc 8.0:
5756 # icc: Command line remark: option '-MP' not supported
5757 if (grep 'ignoring option' conftest.err ||
5758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5759 am_cv_CXX_dependencies_compiler_type=$depmode
5760 break
5761 fi
5762 fi
5763 done
5764
5765 cd ..
5766 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00005767else
jef56a97f92012-08-20 14:35:58 -07005768 am_cv_CXX_dependencies_compiler_type=none
5769fi
5770
5771fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005772{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
jef56a97f92012-08-20 14:35:58 -07005773$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5774CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5775
5776
5777
5778if
5779 test "x$enable_dependency_tracking" != xno \
5780 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5781 am__fastdepCXX_TRUE=
5782 am__fastdepCXX_FALSE='#'
5783else
5784 am__fastdepCXX_TRUE='#'
5785 am__fastdepCXX_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +00005786fi
5787
5788
5789
5790
jef56a97f92012-08-20 14:35:58 -07005791if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5792 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5793 (test "X$CXX" != "Xg++"))) ; then
5794 ac_ext=cpp
5795ac_cpp='$CXXCPP $CPPFLAGS'
5796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Jef Poskanzer437537f2012-11-30 12:16:17 -08005799{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
jef56a97f92012-08-20 14:35:58 -07005800$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5801if test -z "$CXXCPP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08005802 if test "${ac_cv_prog_CXXCPP+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07005803 $as_echo_n "(cached) " >&6
5804else
5805 # Double quotes because CXXCPP needs to be expanded
5806 for CXXCPP in "$CXX -E" "/lib/cpp"
5807 do
5808 ac_preproc_ok=false
5809for ac_cxx_preproc_warn_flag in '' yes
5810do
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005822/* end confdefs.h. */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
5828 Syntax error
5829_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null && {
5844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5845 test ! -s conftest.err
5846 }; then
5847 :
jef56a97f92012-08-20 14:35:58 -07005848else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005849 $as_echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
jef56a97f92012-08-20 14:35:58 -07005852 # Broken: fails on valid input.
5853continue
5854fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005855
5856rm -f conftest.err conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07005857
5858 # OK, works on sane cases. Now check whether nonexistent headers
5859 # can be detected and how.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005860 cat >conftest.$ac_ext <<_ACEOF
5861/* confdefs.h. */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005865/* end confdefs.h. */
5866#include <ac_nonexistent.h>
5867_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005868if { (ac_try="$ac_cpp conftest.$ac_ext"
5869case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872esac
5873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874$as_echo "$ac_try_echo") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5884 }; then
jef56a97f92012-08-20 14:35:58 -07005885 # Broken: success on invalid input.
5886continue
5887else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005888 $as_echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
jef56a97f92012-08-20 14:35:58 -07005891 # Passes both tests.
5892ac_preproc_ok=:
5893break
5894fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005895
5896rm -f conftest.err conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07005897
5898done
5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005900rm -f conftest.err conftest.$ac_ext
5901if $ac_preproc_ok; then
jef56a97f92012-08-20 14:35:58 -07005902 break
5903fi
5904
5905 done
5906 ac_cv_prog_CXXCPP=$CXXCPP
5907
5908fi
5909 CXXCPP=$ac_cv_prog_CXXCPP
5910else
5911 ac_cv_prog_CXXCPP=$CXXCPP
5912fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005913{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
jef56a97f92012-08-20 14:35:58 -07005914$as_echo "$CXXCPP" >&6; }
5915ac_preproc_ok=false
5916for ac_cxx_preproc_warn_flag in '' yes
5917do
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005924 cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005929/* end confdefs.h. */
5930#ifdef __STDC__
5931# include <limits.h>
5932#else
5933# include <assert.h>
5934#endif
5935 Syntax error
5936_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005937if { (ac_try="$ac_cpp conftest.$ac_ext"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952 test ! -s conftest.err
5953 }; then
5954 :
jef56a97f92012-08-20 14:35:58 -07005955else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005956 $as_echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
jef56a97f92012-08-20 14:35:58 -07005959 # Broken: fails on valid input.
5960continue
5961fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08005962
5963rm -f conftest.err conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07005964
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
Jef Poskanzer437537f2012-11-30 12:16:17 -08005967 cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07005972/* end confdefs.h. */
5973#include <ac_nonexistent.h>
5974_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08005975if { (ac_try="$ac_cpp conftest.$ac_ext"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981$as_echo "$ac_try_echo") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
jef56a97f92012-08-20 14:35:58 -07005992 # Broken: success on invalid input.
5993continue
5994else
Jef Poskanzer437537f2012-11-30 12:16:17 -08005995 $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
jef56a97f92012-08-20 14:35:58 -07005998 # Passes both tests.
5999ac_preproc_ok=:
6000break
6001fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006002
6003rm -f conftest.err conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006004
6005done
6006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006007rm -f conftest.err conftest.$ac_ext
6008if $ac_preproc_ok; then
6009 :
jef56a97f92012-08-20 14:35:58 -07006010else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006011 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
jef56a97f92012-08-20 14:35:58 -07006012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Jef Poskanzer437537f2012-11-30 12:16:17 -08006013{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6014See \`config.log' for more details." >&5
6015$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6016See \`config.log' for more details." >&2;}
6017 { (exit 1); exit 1; }; }; }
jef56a97f92012-08-20 14:35:58 -07006018fi
6019
6020ac_ext=cpp
6021ac_cpp='$CXXCPP $CPPFLAGS'
6022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6025
6026fi
6027
6028
6029ac_ext=f
6030ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6031ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6033if test -n "$ac_tool_prefix"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006034 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
jef56a97f92012-08-20 14:35:58 -07006035 do
6036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6037set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006039$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006040if test "${ac_cv_prog_F77+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006041 $as_echo_n "(cached) " >&6
6042else
6043 if test -n "$F77"; then
6044 ac_cv_prog_F77="$F77" # Let the user override the test.
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006051 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006055 break 2
6056 fi
6057done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006058done
jef56a97f92012-08-20 14:35:58 -07006059IFS=$as_save_IFS
6060
6061fi
6062fi
6063F77=$ac_cv_prog_F77
6064if test -n "$F77"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006065 { $as_echo "$as_me:$LINENO: result: $F77" >&5
jef56a97f92012-08-20 14:35:58 -07006066$as_echo "$F77" >&6; }
6067else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006068 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006069$as_echo "no" >&6; }
6070fi
6071
6072
6073 test -n "$F77" && break
6074 done
6075fi
6076if test -z "$F77"; then
6077 ac_ct_F77=$F77
Jef Poskanzer437537f2012-11-30 12:16:17 -08006078 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
jef56a97f92012-08-20 14:35:58 -07006079do
6080 # Extract the first word of "$ac_prog", so it can be a program name with args.
6081set dummy $ac_prog; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006083$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006084if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006085 $as_echo_n "(cached) " >&6
6086else
6087 if test -n "$ac_ct_F77"; then
6088 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006095 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_ac_ct_F77="$ac_prog"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006099 break 2
6100 fi
6101done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006102done
jef56a97f92012-08-20 14:35:58 -07006103IFS=$as_save_IFS
6104
6105fi
6106fi
6107ac_ct_F77=$ac_cv_prog_ac_ct_F77
6108if test -n "$ac_ct_F77"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006109 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
jef56a97f92012-08-20 14:35:58 -07006110$as_echo "$ac_ct_F77" >&6; }
6111else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006112 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006113$as_echo "no" >&6; }
6114fi
6115
6116
6117 test -n "$ac_ct_F77" && break
6118done
6119
6120 if test "x$ac_ct_F77" = x; then
6121 F77=""
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08006125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
jef56a97f92012-08-20 14:35:58 -07006126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129 F77=$ac_ct_F77
6130 fi
6131fi
6132
6133
6134# Provide some information about the compiler.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006135$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
jef56a97f92012-08-20 14:35:58 -07006136set X $ac_compile
6137ac_compiler=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006138{ (ac_try="$ac_compiler --version >&5"
jef56a97f92012-08-20 14:35:58 -07006139case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08006143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144$as_echo "$ac_try_echo") >&5
6145 (eval "$ac_compiler --version >&5") 2>&5
jef56a97f92012-08-20 14:35:58 -07006146 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08006147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }
6149{ (ac_try="$ac_compiler -v >&5"
6150case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153esac
6154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155$as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compiler -v >&5") 2>&5
6157 ac_status=$?
6158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }
6160{ (ac_try="$ac_compiler -V >&5"
6161case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167 (eval "$ac_compiler -V >&5") 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }
jef56a97f92012-08-20 14:35:58 -07006171rm -f a.out
6172
6173# If we don't use `.F' as extension, the preprocessor is not run on the
6174# input file. (Note that this only needs to work for GNU compilers.)
6175ac_save_ext=$ac_ext
6176ac_ext=F
Jef Poskanzer437537f2012-11-30 12:16:17 -08006177{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
jef56a97f92012-08-20 14:35:58 -07006178$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006179if test "${ac_cv_f77_compiler_gnu+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006180 $as_echo_n "(cached) " >&6
6181else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006182 cat >conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07006183 program main
6184#ifndef __GNUC__
6185 choke me
6186#endif
6187
6188 end
6189_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08006190rm -f conftest.$ac_objext
6191if { (ac_try="$ac_compile"
6192case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
6196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197$as_echo "$ac_try_echo") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_f77_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
jef56a97f92012-08-20 14:35:58 -07006208 ac_compiler_gnu=yes
6209else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006210 $as_echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_compiler_gnu=no
jef56a97f92012-08-20 14:35:58 -07006214fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006215
jef56a97f92012-08-20 14:35:58 -07006216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6218
6219fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006220{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
jef56a97f92012-08-20 14:35:58 -07006221$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6222ac_ext=$ac_save_ext
6223ac_test_FFLAGS=${FFLAGS+set}
6224ac_save_FFLAGS=$FFLAGS
6225FFLAGS=
Jef Poskanzer437537f2012-11-30 12:16:17 -08006226{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
jef56a97f92012-08-20 14:35:58 -07006227$as_echo_n "checking whether $F77 accepts -g... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006228if test "${ac_cv_prog_f77_g+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006229 $as_echo_n "(cached) " >&6
6230else
6231 FFLAGS=-g
Jef Poskanzer437537f2012-11-30 12:16:17 -08006232cat >conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -07006233 program main
6234
6235 end
6236_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08006237rm -f conftest.$ac_objext
6238if { (ac_try="$ac_compile"
6239case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242esac
6243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6244$as_echo "$ac_try_echo") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_f77_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.$ac_objext; then
jef56a97f92012-08-20 14:35:58 -07006255 ac_cv_prog_f77_g=yes
6256else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006257 $as_echo "$as_me: failed program was:" >&5
6258sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cv_prog_f77_g=no
jef56a97f92012-08-20 14:35:58 -07006261fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006262
jef56a97f92012-08-20 14:35:58 -07006263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264
6265fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006266{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
jef56a97f92012-08-20 14:35:58 -07006267$as_echo "$ac_cv_prog_f77_g" >&6; }
6268if test "$ac_test_FFLAGS" = set; then
6269 FFLAGS=$ac_save_FFLAGS
6270elif test $ac_cv_prog_f77_g = yes; then
6271 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6272 FFLAGS="-g -O2"
6273 else
6274 FFLAGS="-g"
6275 fi
6276else
6277 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6278 FFLAGS="-O2"
6279 else
6280 FFLAGS=
6281 fi
6282fi
6283
6284if test $ac_compiler_gnu = yes; then
6285 G77=yes
6286else
6287 G77=
6288fi
6289ac_ext=c
6290ac_cpp='$CPP $CPPFLAGS'
6291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
6295
6296
6297# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6298
6299# find the maximum length of command line arguments
Jef Poskanzer437537f2012-11-30 12:16:17 -08006300{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
jef56a97f92012-08-20 14:35:58 -07006301$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006302if test "${lt_cv_sys_max_cmd_len+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006303 $as_echo_n "(cached) " >&6
6304else
6305 i=0
6306 teststring="ABCD"
6307
6308 case $build_os in
6309 msdosdjgpp*)
6310 # On DJGPP, this test can blow up pretty badly due to problems in libc
6311 # (any single argument exceeding 2000 bytes causes a buffer overrun
6312 # during glob expansion). Even if it were fixed, the result of this
6313 # check would be larger than it should be.
6314 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6315 ;;
6316
6317 gnu*)
6318 # Under GNU Hurd, this test is not required because there is
6319 # no limit to the length of command line arguments.
6320 # Libtool will interpret -1 as no limit whatsoever
6321 lt_cv_sys_max_cmd_len=-1;
6322 ;;
6323
6324 cygwin* | mingw*)
6325 # On Win9x/ME, this test blows up -- it succeeds, but takes
6326 # about 5 minutes as the teststring grows exponentially.
6327 # Worse, since 9x/ME are not pre-emptively multitasking,
6328 # you end up with a "frozen" computer, even though with patience
6329 # the test eventually succeeds (with a max line length of 256k).
6330 # Instead, let's just punt: use the minimum linelength reported by
6331 # all of the supported platforms: 8192 (on NT/2K/XP).
6332 lt_cv_sys_max_cmd_len=8192;
6333 ;;
6334
6335 amigaos*)
6336 # On AmigaOS with pdksh, this test takes hours, literally.
6337 # So we just punt and use a minimum line length of 8192.
6338 lt_cv_sys_max_cmd_len=8192;
6339 ;;
6340
6341 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6342 # This has been around since 386BSD, at least. Likely further.
6343 if test -x /sbin/sysctl; then
6344 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6345 elif test -x /usr/sbin/sysctl; then
6346 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6347 else
6348 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6349 fi
6350 # And add a safety zone
6351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6353 ;;
6354
6355 interix*)
6356 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6357 lt_cv_sys_max_cmd_len=196608
6358 ;;
6359
6360 osf*)
6361 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6362 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6363 # nice to cause kernel panics so lets avoid the loop below.
6364 # First set a reasonable default.
6365 lt_cv_sys_max_cmd_len=16384
6366 #
6367 if test -x /sbin/sysconfig; then
6368 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6369 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6370 esac
6371 fi
6372 ;;
6373 sco3.2v5*)
6374 lt_cv_sys_max_cmd_len=102400
6375 ;;
6376 sysv5* | sco5v6* | sysv4.2uw2*)
6377 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6378 if test -n "$kargmax"; then
6379 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6380 else
6381 lt_cv_sys_max_cmd_len=32768
6382 fi
6383 ;;
6384 *)
6385 # If test is not a shell built-in, we'll probably end up computing a
6386 # maximum length that is only half of the actual maximum length, but
6387 # we can't tell.
6388 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6389 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6390 = "XX$teststring") >/dev/null 2>&1 &&
6391 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6392 lt_cv_sys_max_cmd_len=$new_result &&
6393 test $i != 17 # 1/2 MB should be enough
6394 do
6395 i=`expr $i + 1`
6396 teststring=$teststring$teststring
6397 done
6398 teststring=
6399 # Add a significant safety factor because C++ compilers can tack on massive
6400 # amounts of additional arguments before passing them to the linker.
6401 # It appears as though 1/2 is a usable value.
6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6403 ;;
6404 esac
6405
6406fi
6407
6408if test -n $lt_cv_sys_max_cmd_len ; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006409 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
jef56a97f92012-08-20 14:35:58 -07006410$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6411else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006412 { $as_echo "$as_me:$LINENO: result: none" >&5
jef56a97f92012-08-20 14:35:58 -07006413$as_echo "none" >&6; }
6414fi
Jon Dugane34c20c2010-07-08 23:26:52 +00006415
6416
6417
6418
jef56a97f92012-08-20 14:35:58 -07006419# Check for command to grab the raw symbol name followed by C symbol from nm.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006420{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
jef56a97f92012-08-20 14:35:58 -07006421$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006422if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006423 $as_echo_n "(cached) " >&6
6424else
Jon Dugane34c20c2010-07-08 23:26:52 +00006425
jef56a97f92012-08-20 14:35:58 -07006426# These are sane defaults that work on at least a few old systems.
6427# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6428
6429# Character class describing NM global symbol codes.
6430symcode='[BCDEGRST]'
6431
6432# Regexp to match symbols that can be accessed directly from C.
6433sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6434
6435# Transform an extracted symbol line into a proper C declaration
6436lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6437
6438# Transform an extracted symbol line into symbol name and symbol address
6439lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6440
6441# Define system-specific variables.
6442case $host_os in
6443aix*)
6444 symcode='[BCDT]'
6445 ;;
6446cygwin* | mingw* | pw32*)
6447 symcode='[ABCDGISTW]'
6448 ;;
6449hpux*) # Its linker distinguishes data from code symbols
6450 if test "$host_cpu" = ia64; then
6451 symcode='[ABCDEGRST]'
6452 fi
6453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6455 ;;
6456linux*)
6457 if test "$host_cpu" = ia64; then
6458 symcode='[ABCDGIRSTW]'
6459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6461 fi
6462 ;;
6463irix* | nonstopux*)
6464 symcode='[BCDEGRST]'
6465 ;;
6466osf*)
6467 symcode='[BCDEGQRST]'
6468 ;;
6469solaris*)
6470 symcode='[BDRT]'
6471 ;;
6472sco3.2v5*)
6473 symcode='[DT]'
6474 ;;
6475sysv4.2uw2*)
6476 symcode='[DT]'
6477 ;;
6478sysv5* | sco5v6* | unixware* | OpenUNIX*)
6479 symcode='[ABDT]'
6480 ;;
6481sysv4)
6482 symcode='[DFNSTU]'
6483 ;;
6484esac
6485
6486# Handle CRLF in mingw tool chain
6487opt_cr=
6488case $build_os in
6489mingw*)
6490 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6491 ;;
6492esac
6493
6494# If we're using GNU nm, then use its standard symbol codes.
6495case `$NM -V 2>&1` in
6496*GNU* | *'with BFD'*)
6497 symcode='[ABCDGIRSTW]' ;;
6498esac
6499
6500# Try without a prefix undercore, then with it.
6501for ac_symprfx in "" "_"; do
6502
6503 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6504 symxfrm="\\1 $ac_symprfx\\2 \\2"
6505
6506 # Write the raw and C identifiers.
6507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6508
6509 # Check to see that the pipe works correctly.
6510 pipe_works=no
6511
6512 rm -f conftest*
6513 cat > conftest.$ac_ext <<EOF
6514#ifdef __cplusplus
6515extern "C" {
6516#endif
6517char nm_test_var;
6518void nm_test_func(){}
6519#ifdef __cplusplus
6520}
6521#endif
6522int main(){nm_test_var='a';nm_test_func();return(0);}
6523EOF
6524
Jef Poskanzer437537f2012-11-30 12:16:17 -08006525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -07006526 (eval $ac_compile) 2>&5
6527 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08006528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -07006530 # Now try to grab the symbols.
6531 nlist=conftest.nm
Jef Poskanzer437537f2012-11-30 12:16:17 -08006532 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
jef56a97f92012-08-20 14:35:58 -07006533 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6534 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08006535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006537 # Try sorting and uniquifying the output.
6538 if sort "$nlist" | uniq > "$nlist"T; then
6539 mv -f "$nlist"T "$nlist"
6540 else
6541 rm -f "$nlist"T
6542 fi
6543
6544 # Make sure that we snagged all the symbols we need.
6545 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6546 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6547 cat <<EOF > conftest.$ac_ext
6548#ifdef __cplusplus
6549extern "C" {
6550#endif
6551
6552EOF
6553 # Now generate the symbol file.
6554 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6555
6556 cat <<EOF >> conftest.$ac_ext
6557#if defined (__STDC__) && __STDC__
6558# define lt_ptr_t void *
6559#else
6560# define lt_ptr_t char *
6561# define const
6562#endif
6563
6564/* The mapping between symbol names and symbols. */
6565const struct {
6566 const char *name;
6567 lt_ptr_t address;
6568}
6569lt_preloaded_symbols[] =
6570{
6571EOF
6572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6573 cat <<\EOF >> conftest.$ac_ext
6574 {0, (lt_ptr_t) 0}
6575};
6576
6577#ifdef __cplusplus
6578}
6579#endif
6580EOF
6581 # Now try linking the two files.
6582 mv conftest.$ac_objext conftstm.$ac_objext
6583 lt_save_LIBS="$LIBS"
6584 lt_save_CFLAGS="$CFLAGS"
6585 LIBS="conftstm.$ac_objext"
6586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jef56a97f92012-08-20 14:35:58 -07006588 (eval $ac_link) 2>&5
6589 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08006590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
jef56a97f92012-08-20 14:35:58 -07006592 pipe_works=yes
6593 fi
6594 LIBS="$lt_save_LIBS"
6595 CFLAGS="$lt_save_CFLAGS"
6596 else
6597 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006598 fi
jef56a97f92012-08-20 14:35:58 -07006599 else
6600 echo "cannot find nm_test_var in $nlist" >&5
6601 fi
6602 else
6603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604 fi
6605 else
6606 echo "$progname: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 fi
6609 rm -f conftest* conftst*
6610
6611 # Do not use the global_symbol_pipe unless it works.
6612 if test "$pipe_works" = yes; then
6613 break
6614 else
6615 lt_cv_sys_global_symbol_pipe=
6616 fi
6617done
6618
Jon Dugane34c20c2010-07-08 23:26:52 +00006619fi
6620
jef56a97f92012-08-20 14:35:58 -07006621if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006623fi
jef56a97f92012-08-20 14:35:58 -07006624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006625 { $as_echo "$as_me:$LINENO: result: failed" >&5
jef56a97f92012-08-20 14:35:58 -07006626$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006627else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006628 { $as_echo "$as_me:$LINENO: result: ok" >&5
jef56a97f92012-08-20 14:35:58 -07006629$as_echo "ok" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006630fi
6631
Jef Poskanzer437537f2012-11-30 12:16:17 -08006632{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
Jon Dugan92864152010-09-20 21:50:12 +00006633$as_echo_n "checking for objdir... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006634if test "${lt_cv_objdir+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00006635 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006636else
6637 rm -f .libs 2>/dev/null
6638mkdir .libs 2>/dev/null
6639if test -d .libs; then
6640 lt_cv_objdir=.libs
6641else
6642 # MS-DOS does not allow filenames that begin with a dot.
6643 lt_cv_objdir=_libs
6644fi
6645rmdir .libs 2>/dev/null
6646fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08006647{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
Jon Dugan92864152010-09-20 21:50:12 +00006648$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006649objdir=$lt_cv_objdir
6650
6651
6652
6653
6654
Jon Dugane34c20c2010-07-08 23:26:52 +00006655case $host_os in
6656aix3*)
6657 # AIX sometimes has problems with the GCC collect2 program. For some
6658 # reason, if we set the COLLECT_NAMES environment variable, the problems
6659 # vanish in a puff of smoke.
6660 if test "X${COLLECT_NAMES+set}" != Xset; then
6661 COLLECT_NAMES=
6662 export COLLECT_NAMES
6663 fi
6664 ;;
6665esac
6666
jef56a97f92012-08-20 14:35:58 -07006667# Sed substitution that helps us do robust quoting. It backslashifies
6668# metacharacters that are still active within double-quoted strings.
6669Xsed='sed -e 1s/^X//'
6670sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6671
6672# Same as above, but do not quote variable references.
6673double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6674
6675# Sed substitution to delay expansion of an escaped shell variable in a
6676# double_quote_subst'ed string.
6677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
6679# Sed substitution to avoid accidental globbing in evaled expressions
6680no_glob_subst='s/\*/\\\*/g'
6681
6682# Constants:
6683rm="rm -f"
6684
Jon Dugane34c20c2010-07-08 23:26:52 +00006685# Global variables:
jef56a97f92012-08-20 14:35:58 -07006686default_ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00006687can_build_shared=yes
6688
6689# All known linkers require a `.a' archive for static linking (except MSVC,
6690# which needs '.lib').
6691libext=a
jef56a97f92012-08-20 14:35:58 -07006692ltmain="$ac_aux_dir/ltmain.sh"
6693ofile="$default_ofile"
Jon Dugane34c20c2010-07-08 23:26:52 +00006694with_gnu_ld="$lt_cv_prog_gnu_ld"
6695
jef56a97f92012-08-20 14:35:58 -07006696if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6698set dummy ${ac_tool_prefix}ar; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006700$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006701if test "${ac_cv_prog_AR+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006702 $as_echo_n "(cached) " >&6
6703else
6704 if test -n "$AR"; then
6705 ac_cv_prog_AR="$AR" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006712 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006716 break 2
6717 fi
6718done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006719done
jef56a97f92012-08-20 14:35:58 -07006720IFS=$as_save_IFS
6721
6722fi
6723fi
6724AR=$ac_cv_prog_AR
6725if test -n "$AR"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006726 { $as_echo "$as_me:$LINENO: result: $AR" >&5
jef56a97f92012-08-20 14:35:58 -07006727$as_echo "$AR" >&6; }
6728else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006729 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006730$as_echo "no" >&6; }
6731fi
6732
6733
6734fi
6735if test -z "$ac_cv_prog_AR"; then
6736 ac_ct_AR=$AR
6737 # Extract the first word of "ar", so it can be a program name with args.
6738set dummy ar; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006740$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006741if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006742 $as_echo_n "(cached) " >&6
6743else
6744 if test -n "$ac_ct_AR"; then
6745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006752 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_ac_ct_AR="ar"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006756 break 2
6757 fi
6758done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006759done
jef56a97f92012-08-20 14:35:58 -07006760IFS=$as_save_IFS
6761
6762fi
6763fi
6764ac_ct_AR=$ac_cv_prog_ac_ct_AR
6765if test -n "$ac_ct_AR"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006766 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
jef56a97f92012-08-20 14:35:58 -07006767$as_echo "$ac_ct_AR" >&6; }
6768else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006769 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006770$as_echo "no" >&6; }
6771fi
6772
6773 if test "x$ac_ct_AR" = x; then
6774 AR="false"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08006778{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
jef56a97f92012-08-20 14:35:58 -07006779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780ac_tool_warned=yes ;;
6781esac
6782 AR=$ac_ct_AR
6783 fi
6784else
6785 AR="$ac_cv_prog_AR"
6786fi
6787
6788if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006792$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006793if test "${ac_cv_prog_RANLIB+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006794 $as_echo_n "(cached) " >&6
6795else
6796 if test -n "$RANLIB"; then
6797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006804 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006808 break 2
6809 fi
6810done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006811done
jef56a97f92012-08-20 14:35:58 -07006812IFS=$as_save_IFS
6813
6814fi
6815fi
6816RANLIB=$ac_cv_prog_RANLIB
6817if test -n "$RANLIB"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006818 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
jef56a97f92012-08-20 14:35:58 -07006819$as_echo "$RANLIB" >&6; }
6820else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006821 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_RANLIB"; then
6828 ac_ct_RANLIB=$RANLIB
6829 # Extract the first word of "ranlib", so it can be a program name with args.
6830set dummy ranlib; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006832$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006833if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$ac_ct_RANLIB"; then
6837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006844 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006848 break 2
6849 fi
6850done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006851done
jef56a97f92012-08-20 14:35:58 -07006852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6857if test -n "$ac_ct_RANLIB"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006858 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
jef56a97f92012-08-20 14:35:58 -07006859$as_echo "$ac_ct_RANLIB" >&6; }
6860else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006861 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006862$as_echo "no" >&6; }
6863fi
6864
6865 if test "x$ac_ct_RANLIB" = x; then
6866 RANLIB=":"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08006870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
jef56a97f92012-08-20 14:35:58 -07006871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874 RANLIB=$ac_ct_RANLIB
6875 fi
6876else
6877 RANLIB="$ac_cv_prog_RANLIB"
6878fi
6879
6880if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}strip; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006884$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006885if test "${ac_cv_prog_STRIP+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006886 $as_echo_n "(cached) " >&6
6887else
6888 if test -n "$STRIP"; then
6889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006896 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006900 break 2
6901 fi
6902done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006903done
jef56a97f92012-08-20 14:35:58 -07006904IFS=$as_save_IFS
6905
6906fi
6907fi
6908STRIP=$ac_cv_prog_STRIP
6909if test -n "$STRIP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006910 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
jef56a97f92012-08-20 14:35:58 -07006911$as_echo "$STRIP" >&6; }
6912else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006913 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006914$as_echo "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_STRIP"; then
6920 ac_ct_STRIP=$STRIP
6921 # Extract the first word of "strip", so it can be a program name with args.
6922set dummy strip; ac_word=$2
Jef Poskanzer437537f2012-11-30 12:16:17 -08006923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
jef56a97f92012-08-20 14:35:58 -07006924$as_echo_n "checking for $ac_word... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08006925if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07006926 $as_echo_n "(cached) " >&6
6927else
6928 if test -n "$ac_ct_STRIP"; then
6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -08006936 for ac_exec_ext in '' $ac_executable_extensions; do
jef56a97f92012-08-20 14:35:58 -07006937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_ac_ct_STRIP="strip"
Jef Poskanzer437537f2012-11-30 12:16:17 -08006939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07006940 break 2
6941 fi
6942done
Jef Poskanzer437537f2012-11-30 12:16:17 -08006943done
jef56a97f92012-08-20 14:35:58 -07006944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949if test -n "$ac_ct_STRIP"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08006950 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
jef56a97f92012-08-20 14:35:58 -07006951$as_echo "$ac_ct_STRIP" >&6; }
6952else
Jef Poskanzer437537f2012-11-30 12:16:17 -08006953 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07006954$as_echo "no" >&6; }
6955fi
6956
6957 if test "x$ac_ct_STRIP" = x; then
6958 STRIP=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961yes:)
Jef Poskanzer437537f2012-11-30 12:16:17 -08006962{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
jef56a97f92012-08-20 14:35:58 -07006963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966 STRIP=$ac_ct_STRIP
6967 fi
6968else
6969 STRIP="$ac_cv_prog_STRIP"
6970fi
6971
6972
Jon Dugane34c20c2010-07-08 23:26:52 +00006973old_CC="$CC"
6974old_CFLAGS="$CFLAGS"
6975
6976# Set sane defaults for various variables
jef56a97f92012-08-20 14:35:58 -07006977test -z "$AR" && AR=ar
6978test -z "$AR_FLAGS" && AR_FLAGS=cru
6979test -z "$AS" && AS=as
Jon Dugane34c20c2010-07-08 23:26:52 +00006980test -z "$CC" && CC=cc
6981test -z "$LTCC" && LTCC=$CC
6982test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
jef56a97f92012-08-20 14:35:58 -07006983test -z "$DLLTOOL" && DLLTOOL=dlltool
Jon Dugane34c20c2010-07-08 23:26:52 +00006984test -z "$LD" && LD=ld
jef56a97f92012-08-20 14:35:58 -07006985test -z "$LN_S" && LN_S="ln -s"
6986test -z "$MAGIC_CMD" && MAGIC_CMD=file
6987test -z "$NM" && NM=nm
6988test -z "$SED" && SED=sed
6989test -z "$OBJDUMP" && OBJDUMP=objdump
6990test -z "$RANLIB" && RANLIB=:
6991test -z "$STRIP" && STRIP=:
Jon Dugane34c20c2010-07-08 23:26:52 +00006992test -z "$ac_objext" && ac_objext=o
6993
jef56a97f92012-08-20 14:35:58 -07006994# Determine commands to create old-style static archives.
6995old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6996old_postinstall_cmds='chmod 644 $oldlib'
6997old_postuninstall_cmds=
6998
6999if test -n "$RANLIB"; then
7000 case $host_os in
7001 openbsd*)
7002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003 ;;
7004 *)
7005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006 ;;
7007 esac
7008 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009fi
7010
Jon Dugane34c20c2010-07-08 23:26:52 +00007011for cc_temp in $compiler""; do
7012 case $cc_temp in
7013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015 \-*) ;;
7016 *) break;;
7017 esac
7018done
jef56a97f92012-08-20 14:35:58 -07007019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007020
7021
7022# Only perform the check for file, if the check method requires it
Jon Dugane34c20c2010-07-08 23:26:52 +00007023case $deplibs_check_method in
7024file_magic*)
7025 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08007026 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007029 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007030else
7031 case $MAGIC_CMD in
7032[\\/*] | ?:[\\/]*)
7033 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034 ;;
7035*)
7036 lt_save_MAGIC_CMD="$MAGIC_CMD"
7037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039 for ac_dir in $ac_dummy; do
7040 IFS="$lt_save_ifs"
7041 test -z "$ac_dir" && ac_dir=.
7042 if test -f $ac_dir/${ac_tool_prefix}file; then
7043 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7044 if test -n "$file_magic_test_file"; then
7045 case $deplibs_check_method in
7046 "file_magic "*)
7047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050 $EGREP "$file_magic_regex" > /dev/null; then
7051 :
7052 else
jef56a97f92012-08-20 14:35:58 -07007053 cat <<EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007054
7055*** Warning: the command libtool uses to detect shared libraries,
7056*** $file_magic_cmd, produces output that libtool cannot recognize.
7057*** The result is that libtool may fail to recognize shared libraries
7058*** as such. This will affect the creation of libtool libraries that
7059*** depend on shared libraries, but programs linked with such libtool
7060*** libraries will work regardless of this problem. Nevertheless, you
7061*** may want to report the problem to your system manager and/or to
7062*** bug-libtool@gnu.org
7063
jef56a97f92012-08-20 14:35:58 -07007064EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007065 fi ;;
7066 esac
7067 fi
7068 break
7069 fi
7070 done
7071 IFS="$lt_save_ifs"
7072 MAGIC_CMD="$lt_save_MAGIC_CMD"
7073 ;;
7074esac
7075fi
7076
7077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078if test -n "$MAGIC_CMD"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08007079 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007080$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007081else
Jef Poskanzer437537f2012-11-30 12:16:17 -08007082 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007083$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007084fi
7085
Jon Dugane34c20c2010-07-08 23:26:52 +00007086if test -z "$lt_cv_path_MAGIC_CMD"; then
7087 if test -n "$ac_tool_prefix"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08007088 { $as_echo "$as_me:$LINENO: checking for file" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007089$as_echo_n "checking for file... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007091 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007092else
7093 case $MAGIC_CMD in
7094[\\/*] | ?:[\\/]*)
7095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096 ;;
7097*)
7098 lt_save_MAGIC_CMD="$MAGIC_CMD"
7099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101 for ac_dir in $ac_dummy; do
7102 IFS="$lt_save_ifs"
7103 test -z "$ac_dir" && ac_dir=.
7104 if test -f $ac_dir/file; then
7105 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7106 if test -n "$file_magic_test_file"; then
7107 case $deplibs_check_method in
7108 "file_magic "*)
7109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112 $EGREP "$file_magic_regex" > /dev/null; then
7113 :
7114 else
jef56a97f92012-08-20 14:35:58 -07007115 cat <<EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007116
7117*** Warning: the command libtool uses to detect shared libraries,
7118*** $file_magic_cmd, produces output that libtool cannot recognize.
7119*** The result is that libtool may fail to recognize shared libraries
7120*** as such. This will affect the creation of libtool libraries that
7121*** depend on shared libraries, but programs linked with such libtool
7122*** libraries will work regardless of this problem. Nevertheless, you
7123*** may want to report the problem to your system manager and/or to
7124*** bug-libtool@gnu.org
7125
jef56a97f92012-08-20 14:35:58 -07007126EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007127 fi ;;
7128 esac
7129 fi
7130 break
7131 fi
7132 done
7133 IFS="$lt_save_ifs"
7134 MAGIC_CMD="$lt_save_MAGIC_CMD"
7135 ;;
7136esac
7137fi
7138
7139MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140if test -n "$MAGIC_CMD"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08007141 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007142$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007143else
Jef Poskanzer437537f2012-11-30 12:16:17 -08007144 { $as_echo "$as_me:$LINENO: result: no" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007145$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007146fi
7147
Jon Dugane34c20c2010-07-08 23:26:52 +00007148 else
7149 MAGIC_CMD=:
7150 fi
7151fi
7152
7153 fi
7154 ;;
7155esac
7156
jef56a97f92012-08-20 14:35:58 -07007157enable_dlopen=no
7158enable_win32_dll=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007159
jef56a97f92012-08-20 14:35:58 -07007160# Check whether --enable-libtool-lock was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08007161if test "${enable_libtool_lock+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07007162 enableval=$enable_libtool_lock;
7163fi
7164
7165test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7166
7167
7168# Check whether --with-pic was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -08007169if test "${with_pic+set}" = set; then
jef56a97f92012-08-20 14:35:58 -07007170 withval=$with_pic; pic_mode="$withval"
7171else
7172 pic_mode=default
7173fi
7174
7175test -z "$pic_mode" && pic_mode=default
7176
7177# Use C for the default configuration in the libtool script
7178tagname=
Jon Dugane34c20c2010-07-08 23:26:52 +00007179lt_save_CC="$CC"
7180ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186
7187# Source file extension for C test sources.
7188ac_ext=c
7189
7190# Object file extension for compiled C test sources.
7191objext=o
7192objext=$objext
7193
7194# Code to be used in simple compile tests
jef56a97f92012-08-20 14:35:58 -07007195lt_simple_compile_test_code="int some_variable = 0;\n"
Jon Dugane34c20c2010-07-08 23:26:52 +00007196
7197# Code to be used in simple link tests
jef56a97f92012-08-20 14:35:58 -07007198lt_simple_link_test_code='int main(){return(0);}\n'
Jon Dugane34c20c2010-07-08 23:26:52 +00007199
7200
7201# If no C compiler was specified, use CC.
7202LTCC=${LTCC-"$CC"}
7203
7204# If no C compiler flags were specified, use CFLAGS.
7205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7206
7207# Allow CC to be a program name with arguments.
7208compiler=$CC
7209
Jon Dugane34c20c2010-07-08 23:26:52 +00007210
7211# save warnings/boilerplate of simple test code
7212ac_outfile=conftest.$ac_objext
jef56a97f92012-08-20 14:35:58 -07007213printf "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007214eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7215_lt_compiler_boilerplate=`cat conftest.err`
jef56a97f92012-08-20 14:35:58 -07007216$rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007217
7218ac_outfile=conftest.$ac_objext
jef56a97f92012-08-20 14:35:58 -07007219printf "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007220eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7221_lt_linker_boilerplate=`cat conftest.err`
jef56a97f92012-08-20 14:35:58 -07007222$rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007223
7224
Jon Dugane34c20c2010-07-08 23:26:52 +00007225
7226lt_prog_compiler_no_builtin_flag=
7227
7228if test "$GCC" = yes; then
jef56a97f92012-08-20 14:35:58 -07007229 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Jon Dugane34c20c2010-07-08 23:26:52 +00007230
jef56a97f92012-08-20 14:35:58 -07007231
Jef Poskanzer437537f2012-11-30 12:16:17 -08007232{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007233$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007234if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007235 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007236else
7237 lt_cv_prog_compiler_rtti_exceptions=no
jef56a97f92012-08-20 14:35:58 -07007238 ac_outfile=conftest.$ac_objext
7239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007240 lt_compiler_flag="-fno-rtti -fno-exceptions"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 # The option is referenced via a variable to avoid confusing sed.
7246 lt_compile=`echo "$ac_compile" | $SED \
7247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7249 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -08007250 (eval echo "\"\$as_me:7250: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007251 (eval "$lt_compile" 2>conftest.err)
7252 ac_status=$?
7253 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -08007254 echo "$as_me:7254: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007255 if (exit $ac_status) && test -s "$ac_outfile"; then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings other than the usual output.
jef56a97f92012-08-20 14:35:58 -07007258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_rtti_exceptions=yes
7262 fi
7263 fi
jef56a97f92012-08-20 14:35:58 -07007264 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007265
7266fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08007267{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007268$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007269
7270if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7271 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7272else
7273 :
7274fi
7275
7276fi
7277
jef56a97f92012-08-20 14:35:58 -07007278lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00007279lt_prog_compiler_pic=
7280lt_prog_compiler_static=
7281
Jef Poskanzer437537f2012-11-30 12:16:17 -08007282{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
jef56a97f92012-08-20 14:35:58 -07007283$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007284
7285 if test "$GCC" = yes; then
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_static='-static'
7288
7289 case $host_os in
7290 aix*)
7291 # All AIX code is PIC.
7292 if test "$host_cpu" = ia64; then
7293 # AIX 5 now supports IA64 processor
7294 lt_prog_compiler_static='-Bstatic'
7295 fi
7296 ;;
7297
7298 amigaos*)
jef56a97f92012-08-20 14:35:58 -07007299 # FIXME: we need at least 68020 code to build shared libraries, but
7300 # adding the `-m68020' flag to GCC prevents building anything better,
7301 # like `-m68040'.
7302 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
Jon Dugane34c20c2010-07-08 23:26:52 +00007303 ;;
7304
jef56a97f92012-08-20 14:35:58 -07007305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007306 # PIC is the default for these OSes.
7307 ;;
7308
jef56a97f92012-08-20 14:35:58 -07007309 mingw* | pw32* | os2*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007310 # This hack is so that the source file can tell whether it is being
7311 # built for inclusion in a dll (and should export symbols for example).
Jon Dugane34c20c2010-07-08 23:26:52 +00007312 lt_prog_compiler_pic='-DDLL_EXPORT'
7313 ;;
7314
7315 darwin* | rhapsody*)
7316 # PIC is the default on this platform
7317 # Common symbols not allowed in MH_DYLIB files
7318 lt_prog_compiler_pic='-fno-common'
7319 ;;
7320
jef56a97f92012-08-20 14:35:58 -07007321 interix3*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7323 # Instead, we relocate shared libraries at runtime.
7324 ;;
7325
7326 msdosdjgpp*)
7327 # Just because we use GCC doesn't mean we suddenly get shared libraries
7328 # on systems that don't support them.
7329 lt_prog_compiler_can_build_shared=no
7330 enable_shared=no
7331 ;;
7332
Jon Dugane34c20c2010-07-08 23:26:52 +00007333 sysv4*MP*)
7334 if test -d /usr/nec; then
7335 lt_prog_compiler_pic=-Kconform_pic
7336 fi
7337 ;;
7338
jef56a97f92012-08-20 14:35:58 -07007339 hpux*)
7340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7341 # not for PA HP-UX.
7342 case $host_cpu in
7343 hppa*64*|ia64*)
7344 # +Z the default
7345 ;;
7346 *)
7347 lt_prog_compiler_pic='-fPIC'
7348 ;;
7349 esac
7350 ;;
7351
Jon Dugane34c20c2010-07-08 23:26:52 +00007352 *)
7353 lt_prog_compiler_pic='-fPIC'
7354 ;;
7355 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007356 else
7357 # PORTME Check for flag to pass linker flags through the system compiler.
7358 case $host_os in
7359 aix*)
7360 lt_prog_compiler_wl='-Wl,'
7361 if test "$host_cpu" = ia64; then
7362 # AIX 5 now supports IA64 processor
7363 lt_prog_compiler_static='-Bstatic'
7364 else
7365 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7366 fi
7367 ;;
jef56a97f92012-08-20 14:35:58 -07007368 darwin*)
7369 # PIC is the default on this platform
7370 # Common symbols not allowed in MH_DYLIB files
7371 case $cc_basename in
7372 xlc*)
7373 lt_prog_compiler_pic='-qnocommon'
7374 lt_prog_compiler_wl='-Wl,'
7375 ;;
7376 esac
7377 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007378
jef56a97f92012-08-20 14:35:58 -07007379 mingw* | pw32* | os2*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007380 # This hack is so that the source file can tell whether it is being
7381 # built for inclusion in a dll (and should export symbols for example).
7382 lt_prog_compiler_pic='-DDLL_EXPORT'
7383 ;;
7384
7385 hpux9* | hpux10* | hpux11*)
7386 lt_prog_compiler_wl='-Wl,'
7387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7388 # not for PA HP-UX.
7389 case $host_cpu in
7390 hppa*64*|ia64*)
7391 # +Z the default
7392 ;;
7393 *)
7394 lt_prog_compiler_pic='+Z'
7395 ;;
7396 esac
7397 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7398 lt_prog_compiler_static='${wl}-a ${wl}archive'
7399 ;;
7400
7401 irix5* | irix6* | nonstopux*)
7402 lt_prog_compiler_wl='-Wl,'
7403 # PIC (with -KPIC) is the default.
7404 lt_prog_compiler_static='-non_shared'
7405 ;;
7406
jef56a97f92012-08-20 14:35:58 -07007407 newsos6)
7408 lt_prog_compiler_pic='-KPIC'
7409 lt_prog_compiler_static='-Bstatic'
7410 ;;
7411
7412 linux*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007413 case $cc_basename in
jef56a97f92012-08-20 14:35:58 -07007414 icc* | ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_pic='-KPIC'
7417 lt_prog_compiler_static='-static'
7418 ;;
jef56a97f92012-08-20 14:35:58 -07007419 pgcc* | pgf77* | pgf90* | pgf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007420 # Portland Group compilers (*not* the Pentium gcc compiler,
7421 # which looks to be a dead project)
7422 lt_prog_compiler_wl='-Wl,'
7423 lt_prog_compiler_pic='-fpic'
7424 lt_prog_compiler_static='-Bstatic'
7425 ;;
7426 ccc*)
7427 lt_prog_compiler_wl='-Wl,'
7428 # All Alpha code is PIC.
7429 lt_prog_compiler_static='-non_shared'
7430 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007431 esac
7432 ;;
7433
Jon Dugane34c20c2010-07-08 23:26:52 +00007434 osf3* | osf4* | osf5*)
7435 lt_prog_compiler_wl='-Wl,'
7436 # All OSF/1 code is PIC.
7437 lt_prog_compiler_static='-non_shared'
7438 ;;
7439
Jon Dugane34c20c2010-07-08 23:26:52 +00007440 solaris*)
7441 lt_prog_compiler_pic='-KPIC'
7442 lt_prog_compiler_static='-Bstatic'
7443 case $cc_basename in
jef56a97f92012-08-20 14:35:58 -07007444 f77* | f90* | f95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007445 lt_prog_compiler_wl='-Qoption ld ';;
7446 *)
7447 lt_prog_compiler_wl='-Wl,';;
7448 esac
7449 ;;
7450
7451 sunos4*)
7452 lt_prog_compiler_wl='-Qoption ld '
7453 lt_prog_compiler_pic='-PIC'
7454 lt_prog_compiler_static='-Bstatic'
7455 ;;
7456
7457 sysv4 | sysv4.2uw2* | sysv4.3*)
7458 lt_prog_compiler_wl='-Wl,'
7459 lt_prog_compiler_pic='-KPIC'
7460 lt_prog_compiler_static='-Bstatic'
7461 ;;
7462
7463 sysv4*MP*)
7464 if test -d /usr/nec ;then
7465 lt_prog_compiler_pic='-Kconform_pic'
7466 lt_prog_compiler_static='-Bstatic'
7467 fi
7468 ;;
7469
7470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7471 lt_prog_compiler_wl='-Wl,'
7472 lt_prog_compiler_pic='-KPIC'
7473 lt_prog_compiler_static='-Bstatic'
7474 ;;
7475
7476 unicos*)
7477 lt_prog_compiler_wl='-Wl,'
7478 lt_prog_compiler_can_build_shared=no
7479 ;;
7480
7481 uts4*)
7482 lt_prog_compiler_pic='-pic'
7483 lt_prog_compiler_static='-Bstatic'
7484 ;;
7485
7486 *)
7487 lt_prog_compiler_can_build_shared=no
7488 ;;
7489 esac
7490 fi
7491
Jef Poskanzer437537f2012-11-30 12:16:17 -08007492{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
jef56a97f92012-08-20 14:35:58 -07007493$as_echo "$lt_prog_compiler_pic" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007494
7495#
7496# Check to make sure the PIC flag actually works.
7497#
7498if test -n "$lt_prog_compiler_pic"; then
jef56a97f92012-08-20 14:35:58 -07007499
Jef Poskanzer437537f2012-11-30 12:16:17 -08007500{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007501$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007502if test "${lt_prog_compiler_pic_works+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007503 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007504else
jef56a97f92012-08-20 14:35:58 -07007505 lt_prog_compiler_pic_works=no
7506 ac_outfile=conftest.$ac_objext
7507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007508 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7509 # Insert the option either (1) after the last *FLAGS variable, or
7510 # (2) before a word containing "conftest.", or (3) at the end.
7511 # Note that $ac_compile itself does not contain backslashes and begins
7512 # with a dollar sign (not a hyphen), so the echo should work correctly.
7513 # The option is referenced via a variable to avoid confusing sed.
7514 lt_compile=`echo "$ac_compile" | $SED \
7515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7517 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -08007518 (eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007519 (eval "$lt_compile" 2>conftest.err)
7520 ac_status=$?
7521 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -08007522 echo "$as_me:7522: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007523 if (exit $ac_status) && test -s "$ac_outfile"; then
7524 # The compiler can only warn and ignore the option if not recognized
7525 # So say no if there are warnings other than the usual output.
jef56a97f92012-08-20 14:35:58 -07007526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
jef56a97f92012-08-20 14:35:58 -07007529 lt_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007530 fi
7531 fi
jef56a97f92012-08-20 14:35:58 -07007532 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007533
7534fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08007535{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
jef56a97f92012-08-20 14:35:58 -07007536$as_echo "$lt_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007537
jef56a97f92012-08-20 14:35:58 -07007538if test x"$lt_prog_compiler_pic_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007539 case $lt_prog_compiler_pic in
7540 "" | " "*) ;;
7541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7542 esac
7543else
7544 lt_prog_compiler_pic=
7545 lt_prog_compiler_can_build_shared=no
7546fi
7547
7548fi
jef56a97f92012-08-20 14:35:58 -07007549case $host_os in
7550 # For platforms which do not support PIC, -DPIC is meaningless:
7551 *djgpp*)
7552 lt_prog_compiler_pic=
7553 ;;
7554 *)
7555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7556 ;;
7557esac
jef2ab386b2012-08-10 12:43:50 -07007558
Jon Dugane34c20c2010-07-08 23:26:52 +00007559#
7560# Check to make sure the static flag actually works.
7561#
7562wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Jef Poskanzer437537f2012-11-30 12:16:17 -08007563{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007564$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007565if test "${lt_prog_compiler_static_works+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007566 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007567else
jef56a97f92012-08-20 14:35:58 -07007568 lt_prog_compiler_static_works=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007569 save_LDFLAGS="$LDFLAGS"
7570 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
jef56a97f92012-08-20 14:35:58 -07007571 printf "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7573 # The linker can only warn and ignore the option if not recognized
7574 # So say no if there are warnings
7575 if test -s conftest.err; then
7576 # Append any errors to the config.log.
7577 cat conftest.err 1>&5
jef56a97f92012-08-20 14:35:58 -07007578 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7580 if diff conftest.exp conftest.er2 >/dev/null; then
jef56a97f92012-08-20 14:35:58 -07007581 lt_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007582 fi
7583 else
jef56a97f92012-08-20 14:35:58 -07007584 lt_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007585 fi
7586 fi
jef56a97f92012-08-20 14:35:58 -07007587 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007588 LDFLAGS="$save_LDFLAGS"
7589
7590fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08007591{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
jef56a97f92012-08-20 14:35:58 -07007592$as_echo "$lt_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007593
jef56a97f92012-08-20 14:35:58 -07007594if test x"$lt_prog_compiler_static_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007595 :
7596else
7597 lt_prog_compiler_static=
7598fi
7599
7600
Jef Poskanzer437537f2012-11-30 12:16:17 -08007601{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08007603if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00007604 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007605else
7606 lt_cv_prog_compiler_c_o=no
jef56a97f92012-08-20 14:35:58 -07007607 $rm -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00007608 mkdir conftest
7609 cd conftest
7610 mkdir out
jef56a97f92012-08-20 14:35:58 -07007611 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007612
7613 lt_compiler_flag="-o out/conftest2.$ac_objext"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 lt_compile=`echo "$ac_compile" | $SED \
7619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7621 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -08007622 (eval echo "\"\$as_me:7622: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007623 (eval "$lt_compile" 2>out/conftest.err)
7624 ac_status=$?
7625 cat out/conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -08007626 echo "$as_me:7626: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7628 then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings
jef56a97f92012-08-20 14:35:58 -07007631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7634 lt_cv_prog_compiler_c_o=yes
7635 fi
7636 fi
7637 chmod u+w . 2>&5
jef56a97f92012-08-20 14:35:58 -07007638 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007639 # SGI C++ compiler will create directory out/ii_files/ for
7640 # template instantiation
jef56a97f92012-08-20 14:35:58 -07007641 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7642 $rm out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00007643 cd ..
jef56a97f92012-08-20 14:35:58 -07007644 rmdir conftest
7645 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007646
7647fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08007648{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007649$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007650
7651
Jon Dugane34c20c2010-07-08 23:26:52 +00007652hard_links="nottested"
7653if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7654 # do not overwrite the value of need_locks provided by the user
Jef Poskanzer437537f2012-11-30 12:16:17 -08007655 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007656$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007657 hard_links=yes
jef56a97f92012-08-20 14:35:58 -07007658 $rm conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7660 touch conftest.a
7661 ln conftest.a conftest.b 2>&5 || hard_links=no
7662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jef Poskanzer437537f2012-11-30 12:16:17 -08007663 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007664$as_echo "$hard_links" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007665 if test "$hard_links" = no; then
Jef Poskanzer437537f2012-11-30 12:16:17 -08007666 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007667$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 +00007668 need_locks=warn
7669 fi
7670else
7671 need_locks=no
7672fi
7673
Jef Poskanzer437537f2012-11-30 12:16:17 -08007674{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Jon Dugan92864152010-09-20 21:50:12 +00007675$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007676
7677 runpath_var=
7678 allow_undefined_flag=
jef56a97f92012-08-20 14:35:58 -07007679 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007680 archive_cmds=
7681 archive_expsym_cmds=
jef56a97f92012-08-20 14:35:58 -07007682 old_archive_From_new_cmds=
7683 old_archive_from_expsyms_cmds=
Jon Dugane34c20c2010-07-08 23:26:52 +00007684 export_dynamic_flag_spec=
jef56a97f92012-08-20 14:35:58 -07007685 whole_archive_flag_spec=
7686 thread_safe_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00007687 hardcode_libdir_flag_spec=
7688 hardcode_libdir_flag_spec_ld=
7689 hardcode_libdir_separator=
jef56a97f92012-08-20 14:35:58 -07007690 hardcode_direct=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007691 hardcode_minus_L=no
7692 hardcode_shlibpath_var=unsupported
Jon Dugane34c20c2010-07-08 23:26:52 +00007693 link_all_deplibs=unknown
jef56a97f92012-08-20 14:35:58 -07007694 hardcode_automatic=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007695 module_cmds=
7696 module_expsym_cmds=
jef56a97f92012-08-20 14:35:58 -07007697 always_export_symbols=no
7698 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00007699 # include_expsyms should be a list of space-separated symbols to be *always*
7700 # included in the symbol list
7701 include_expsyms=
7702 # exclude_expsyms can be an extended regexp of symbols to exclude
7703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7705 # as well as any symbol that contains `d'.
jef56a97f92012-08-20 14:35:58 -07007706 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
Jon Dugane34c20c2010-07-08 23:26:52 +00007707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7708 # platforms (ab)use it in PIC code, but their linkers get confused if
7709 # the symbol is explicitly referenced. Since portable code cannot
7710 # rely on this symbol name, it's probably fine to never include it in
7711 # preloaded symbol tables.
Jon Dugane34c20c2010-07-08 23:26:52 +00007712 extract_expsyms_cmds=
jef56a97f92012-08-20 14:35:58 -07007713 # Just being paranoid about ensuring that cc_basename is set.
7714 for cc_temp in $compiler""; do
7715 case $cc_temp in
7716 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7717 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7718 \-*) ;;
7719 *) break;;
7720 esac
7721done
7722cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007723
7724 case $host_os in
jef56a97f92012-08-20 14:35:58 -07007725 cygwin* | mingw* | pw32*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007726 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7727 # When not using gcc, we currently assume that we are using
7728 # Microsoft Visual C++.
7729 if test "$GCC" != yes; then
7730 with_gnu_ld=no
7731 fi
7732 ;;
7733 interix*)
7734 # we just hope/assume this is gcc and not c89 (= MSVC++)
7735 with_gnu_ld=yes
7736 ;;
7737 openbsd*)
7738 with_gnu_ld=no
7739 ;;
7740 esac
7741
7742 ld_shlibs=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007743 if test "$with_gnu_ld" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007744 # If archive_cmds runs LD, not CC, wlarc should be empty
7745 wlarc='${wl}'
7746
7747 # Set some defaults for GNU ld with shared library support. These
7748 # are reset later if shared libraries are not supported. Putting them
7749 # here allows them to be overridden if necessary.
7750 runpath_var=LD_RUN_PATH
jef56a97f92012-08-20 14:35:58 -07007751 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00007752 export_dynamic_flag_spec='${wl}--export-dynamic'
7753 # ancient GNU ld didn't support --whole-archive et. al.
jef56a97f92012-08-20 14:35:58 -07007754 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7756 else
7757 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00007758 fi
7759 supports_anon_versioning=no
jef56a97f92012-08-20 14:35:58 -07007760 case `$LD -v 2>/dev/null` in
Jon Dugane34c20c2010-07-08 23:26:52 +00007761 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7764 *\ 2.11.*) ;; # other 2.11 versions
7765 *) supports_anon_versioning=yes ;;
7766 esac
7767
7768 # See if GNU ld supports shared libraries.
7769 case $host_os in
jef56a97f92012-08-20 14:35:58 -07007770 aix3* | aix4* | aix5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007771 # On AIX/PPC, the GNU linker is very broken
7772 if test "$host_cpu" != ia64; then
7773 ld_shlibs=no
jef56a97f92012-08-20 14:35:58 -07007774 cat <<EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007775
jef56a97f92012-08-20 14:35:58 -07007776*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00007777*** to be unable to reliably create shared libraries on AIX.
7778*** Therefore, libtool is disabling shared libraries support. If you
jef56a97f92012-08-20 14:35:58 -07007779*** really care for shared libraries, you may want to modify your PATH
7780*** so that a non-GNU linker is found, and then restart.
Jon Dugane34c20c2010-07-08 23:26:52 +00007781
jef56a97f92012-08-20 14:35:58 -07007782EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007783 fi
7784 ;;
7785
7786 amigaos*)
jef56a97f92012-08-20 14:35:58 -07007787 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)'
7788 hardcode_libdir_flag_spec='-L$libdir'
7789 hardcode_minus_L=yes
7790
7791 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7792 # that the semantics of dynamic libraries on AmigaOS, at least up
7793 # to version 4, is to share data among multiple programs linked
7794 # with the same dynamic library. Since this doesn't match the
7795 # behavior of shared libraries on other platforms, we can't use
7796 # them.
7797 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007798 ;;
7799
7800 beos*)
jef56a97f92012-08-20 14:35:58 -07007801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007802 allow_undefined_flag=unsupported
7803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7804 # support --undefined. This deserves some investigation. FIXME
7805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7806 else
7807 ld_shlibs=no
7808 fi
7809 ;;
7810
jef56a97f92012-08-20 14:35:58 -07007811 cygwin* | mingw* | pw32*)
7812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00007813 # as there is no search path for DLLs.
7814 hardcode_libdir_flag_spec='-L$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00007815 allow_undefined_flag=unsupported
7816 always_export_symbols=no
7817 enable_shared_with_static_runtimes=yes
jef56a97f92012-08-20 14:35:58 -07007818 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 +00007819
jef56a97f92012-08-20 14:35:58 -07007820 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7822 # If the export-symbols file already is a .def file (1st line
7823 # is EXPORTS), use it as is; otherwise, prepend...
7824 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7825 cp $export_symbols $output_objdir/$soname.def;
7826 else
7827 echo EXPORTS > $output_objdir/$soname.def;
7828 cat $export_symbols >> $output_objdir/$soname.def;
7829 fi~
7830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7831 else
7832 ld_shlibs=no
7833 fi
7834 ;;
7835
jef56a97f92012-08-20 14:35:58 -07007836 interix3*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007837 hardcode_direct=no
7838 hardcode_shlibpath_var=no
7839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7840 export_dynamic_flag_spec='${wl}-E'
7841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7842 # Instead, shared libraries are loaded at an image base (0x10000000 by
7843 # default) and relocated if they conflict, which is a slow very memory
7844 # consuming and fragmenting process. To avoid this, we pick a random,
7845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7848 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'
7849 ;;
7850
jef56a97f92012-08-20 14:35:58 -07007851 linux*)
7852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7853 tmp_addflag=
Jon Dugane34c20c2010-07-08 23:26:52 +00007854 case $cc_basename,$host_cpu in
jef56a97f92012-08-20 14:35:58 -07007855 pgcc*) # Portland Group C compiler
7856 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 +00007857 tmp_addflag=' $pic_flag'
7858 ;;
jef56a97f92012-08-20 14:35:58 -07007859 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7860 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 +00007861 tmp_addflag=' $pic_flag -Mnomain' ;;
jef56a97f92012-08-20 14:35:58 -07007862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00007863 tmp_addflag=' -i_dynamic' ;;
7864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7865 tmp_addflag=' -i_dynamic -nofor_main' ;;
7866 ifc* | ifort*) # Intel Fortran compiler
7867 tmp_addflag=' -nofor_main' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007868 esac
jef56a97f92012-08-20 14:35:58 -07007869 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00007870
jef56a97f92012-08-20 14:35:58 -07007871 if test $supports_anon_versioning = yes; then
7872 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7874 $echo "local: *; };" >> $output_objdir/$libname.ver~
7875 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7876 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00007877 else
jef56a97f92012-08-20 14:35:58 -07007878 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007879 fi
7880 ;;
7881
7882 netbsd*)
jef56a97f92012-08-20 14:35:58 -07007883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7885 wlarc=
7886 else
jef56a97f92012-08-20 14:35:58 -07007887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 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 +00007889 fi
7890 ;;
7891
7892 solaris*)
jef56a97f92012-08-20 14:35:58 -07007893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007894 ld_shlibs=no
jef56a97f92012-08-20 14:35:58 -07007895 cat <<EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007896
7897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7898*** create shared libraries on Solaris systems. Therefore, libtool
7899*** is disabling shared libraries support. We urge you to upgrade GNU
7900*** binutils to release 2.9.1 or newer. Another option is to modify
7901*** your PATH or compiler configuration so that the native linker is
7902*** used, and then restart.
7903
jef56a97f92012-08-20 14:35:58 -07007904EOF
7905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 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 +00007908 else
7909 ld_shlibs=no
7910 fi
7911 ;;
7912
7913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7914 case `$LD -v 2>&1` in
7915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7916 ld_shlibs=no
7917 cat <<_LT_EOF 1>&2
7918
7919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7920*** reliably create shared libraries on SCO systems. Therefore, libtool
7921*** is disabling shared libraries support. We urge you to upgrade GNU
7922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7923*** your PATH or compiler configuration so that the native linker is
7924*** used, and then restart.
7925
7926_LT_EOF
7927 ;;
7928 *)
jef56a97f92012-08-20 14:35:58 -07007929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7930 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00007933 else
7934 ld_shlibs=no
7935 fi
7936 ;;
7937 esac
7938 ;;
7939
7940 sunos4*)
7941 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7942 wlarc=
7943 hardcode_direct=yes
7944 hardcode_shlibpath_var=no
7945 ;;
7946
7947 *)
jef56a97f92012-08-20 14:35:58 -07007948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7950 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 +00007951 else
7952 ld_shlibs=no
7953 fi
7954 ;;
7955 esac
7956
7957 if test "$ld_shlibs" = no; then
7958 runpath_var=
7959 hardcode_libdir_flag_spec=
7960 export_dynamic_flag_spec=
7961 whole_archive_flag_spec=
7962 fi
7963 else
7964 # PORTME fill in a description of your system's linker (not GNU ld)
7965 case $host_os in
7966 aix3*)
7967 allow_undefined_flag=unsupported
7968 always_export_symbols=yes
7969 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'
7970 # Note: this linker hardcodes the directories in LIBPATH if there
7971 # are no directories specified by -L.
7972 hardcode_minus_L=yes
7973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7974 # Neither direct hardcoding nor static linking is supported with a
7975 # broken collect2.
7976 hardcode_direct=unsupported
7977 fi
7978 ;;
7979
jef56a97f92012-08-20 14:35:58 -07007980 aix4* | aix5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007981 if test "$host_cpu" = ia64; then
7982 # On IA64, the linker does run time linking by default, so we don't
7983 # have to do anything special.
7984 aix_use_runtimelinking=no
7985 exp_sym_flag='-Bexport'
7986 no_entry_flag=""
7987 else
7988 # If we're using GNU nm, then we don't want the "-C" option.
7989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jef56a97f92012-08-20 14:35:58 -07007990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7991 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 +00007992 else
jef56a97f92012-08-20 14:35:58 -07007993 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 +00007994 fi
7995 aix_use_runtimelinking=no
7996
7997 # Test if we are trying to use run time linking or normal
7998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7999 # need to do runtime linking.
jef56a97f92012-08-20 14:35:58 -07008000 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008001 for ld_flag in $LDFLAGS; do
jef56a97f92012-08-20 14:35:58 -07008002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8003 aix_use_runtimelinking=yes
8004 break
8005 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008006 done
8007 ;;
8008 esac
8009
8010 exp_sym_flag='-bexport'
8011 no_entry_flag='-bnoentry'
8012 fi
8013
8014 # When large executables or shared objects are built, AIX ld can
8015 # have problems creating the table of contents. If linking a library
8016 # or program results in "error TOC overflow" add -mminimal-toc to
8017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8019
8020 archive_cmds=''
8021 hardcode_direct=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008022 hardcode_libdir_separator=':'
8023 link_all_deplibs=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008024
8025 if test "$GCC" = yes; then
8026 case $host_os in aix4.[012]|aix4.[012].*)
8027 # We only want to do this on AIX 4.2 and lower, the check
8028 # below for broken collect2 doesn't work under 4.3+
8029 collect2name=`${CC} -print-prog-name=collect2`
jef56a97f92012-08-20 14:35:58 -07008030 if test -f "$collect2name" && \
8031 strings "$collect2name" | grep resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008032 then
jef56a97f92012-08-20 14:35:58 -07008033 # We have reworked collect2
8034 hardcode_direct=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008035 else
jef56a97f92012-08-20 14:35:58 -07008036 # We have old collect2
8037 hardcode_direct=unsupported
8038 # It fails to find uninstalled libraries when the uninstalled
8039 # path is not listed in the libpath. Setting hardcode_minus_L
8040 # to unsupported forces relinking
8041 hardcode_minus_L=yes
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00008044 fi
8045 ;;
8046 esac
8047 shared_flag='-shared'
8048 if test "$aix_use_runtimelinking" = yes; then
8049 shared_flag="$shared_flag "'${wl}-G'
8050 fi
8051 else
8052 # not using gcc
8053 if test "$host_cpu" = ia64; then
jef56a97f92012-08-20 14:35:58 -07008054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8055 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00008056 shared_flag='-G'
8057 else
8058 if test "$aix_use_runtimelinking" = yes; then
8059 shared_flag='${wl}-G'
8060 else
8061 shared_flag='${wl}-bM:SRE'
8062 fi
8063 fi
8064 fi
8065
Jon Dugane34c20c2010-07-08 23:26:52 +00008066 # It seems that -bexpall does not export symbols beginning with
8067 # underscore (_), so it is better to generate a list of symbols to export.
8068 always_export_symbols=yes
8069 if test "$aix_use_runtimelinking" = yes; then
8070 # Warning - without using the other runtime loading flags (-brtl),
8071 # -berok will link without error, but may produce a broken library.
8072 allow_undefined_flag='-berok'
jef56a97f92012-08-20 14:35:58 -07008073 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -08008074 cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008079/* end confdefs.h. */
8080
8081int
8082main ()
8083{
8084
8085 ;
8086 return 0;
8087}
8088_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08008089rm -f conftest.$ac_objext conftest$ac_exeext
8090if { (ac_try="$ac_link"
8091case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094esac
8095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8096$as_echo "$ac_try_echo") >&5
8097 (eval "$ac_link") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest$ac_exeext && {
8107 test "$cross_compiling" = yes ||
8108 $as_test_x conftest$ac_exeext
8109 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008110
jef56a97f92012-08-20 14:35:58 -07008111aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8112}'`
8113# Check for a 64-bit object if we didn't find anything.
8114if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8115}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008116else
8117 $as_echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120
Jon Dugane34c20c2010-07-08 23:26:52 +00008121fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008122
8123rm -rf conftest.dSYM
8124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8125 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07008126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
jef2ab386b2012-08-10 12:43:50 -07008127
jef56a97f92012-08-20 14:35:58 -07008128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8129 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8130 else
Jon Dugane34c20c2010-07-08 23:26:52 +00008131 if test "$host_cpu" = ia64; then
8132 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8133 allow_undefined_flag="-z nodefs"
8134 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"
8135 else
jef56a97f92012-08-20 14:35:58 -07008136 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -08008137 cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008142/* end confdefs.h. */
8143
8144int
8145main ()
8146{
8147
8148 ;
8149 return 0;
8150}
8151_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08008152rm -f conftest.$ac_objext conftest$ac_exeext
8153if { (ac_try="$ac_link"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159$as_echo "$ac_try_echo") >&5
8160 (eval "$ac_link") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest$ac_exeext && {
8170 test "$cross_compiling" = yes ||
8171 $as_test_x conftest$ac_exeext
8172 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008173
jef56a97f92012-08-20 14:35:58 -07008174aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8175}'`
8176# Check for a 64-bit object if we didn't find anything.
8177if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8178}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008179else
8180 $as_echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183
Jon Dugane34c20c2010-07-08 23:26:52 +00008184fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008185
8186rm -rf conftest.dSYM
8187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8188 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07008189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008190
8191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8192 # Warning - without using the other run time loading flags,
8193 # -berok will link without error, but may produce a broken library.
8194 no_undefined_flag=' ${wl}-bernotok'
8195 allow_undefined_flag=' ${wl}-berok'
jef56a97f92012-08-20 14:35:58 -07008196 # Exported symbols can be pulled into shared objects from archives
8197 whole_archive_flag_spec='$convenience'
Jon Dugane34c20c2010-07-08 23:26:52 +00008198 archive_cmds_need_lc=yes
8199 # This is similar to how AIX traditionally builds its shared libraries.
8200 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'
8201 fi
8202 fi
8203 ;;
8204
8205 amigaos*)
jef56a97f92012-08-20 14:35:58 -07008206 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 # see comment about different semantics on the GNU ld section
8210 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008211 ;;
8212
8213 bsdi[45]*)
8214 export_dynamic_flag_spec=-rdynamic
8215 ;;
8216
jef56a97f92012-08-20 14:35:58 -07008217 cygwin* | mingw* | pw32*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008218 # When not using gcc, we currently assume that we are using
8219 # Microsoft Visual C++.
8220 # hardcode_libdir_flag_spec is actually meaningless, as there is
8221 # no search path for DLLs.
jef56a97f92012-08-20 14:35:58 -07008222 hardcode_libdir_flag_spec=' '
8223 allow_undefined_flag=unsupported
8224 # Tell ltmain to make .lib files, not .a files.
8225 libext=lib
8226 # Tell ltmain to make .dll files, not .so files.
8227 shrext_cmds=".dll"
8228 # FIXME: Setting linknames here is a bad hack.
8229 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8230 # The linker will automatically build a .lib file if we build a DLL.
8231 old_archive_From_new_cmds='true'
8232 # FIXME: Should let the user specify the lib program.
8233 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8234 fix_srcfile_path='`cygpath -w "$srcfile"`'
8235 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008236 ;;
8237
8238 darwin* | rhapsody*)
jef56a97f92012-08-20 14:35:58 -07008239 case $host_os in
8240 rhapsody* | darwin1.[012])
8241 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8242 ;;
8243 *) # Darwin 1.3 on
8244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8245 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8246 else
8247 case ${MACOSX_DEPLOYMENT_TARGET} in
8248 10.[012])
8249 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8250 ;;
8251 10.*)
8252 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8253 ;;
8254 esac
8255 fi
8256 ;;
8257 esac
8258 archive_cmds_need_lc=no
8259 hardcode_direct=no
8260 hardcode_automatic=yes
8261 hardcode_shlibpath_var=unsupported
8262 whole_archive_flag_spec=''
8263 link_all_deplibs=yes
8264 if test "$GCC" = yes ; then
8265 output_verbose_link_cmd='echo'
8266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8269 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8271 else
8272 case $cc_basename in
8273 xlc*)
8274 output_verbose_link_cmd='echo'
8275 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8276 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8278 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8280 ;;
8281 *)
8282 ld_shlibs=no
8283 ;;
8284 esac
8285 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008286 ;;
8287
8288 dgux*)
8289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_libdir_flag_spec='-L$libdir'
8291 hardcode_shlibpath_var=no
8292 ;;
8293
8294 freebsd1*)
8295 ld_shlibs=no
8296 ;;
8297
8298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8299 # support. Future versions do this automatically, but an explicit c++rt0.o
8300 # does not break anything, and helps significantly (at the cost of a little
8301 # extra space).
8302 freebsd2.2*)
8303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8304 hardcode_libdir_flag_spec='-R$libdir'
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 ;;
8308
8309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8310 freebsd2*)
8311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=yes
8313 hardcode_minus_L=yes
8314 hardcode_shlibpath_var=no
8315 ;;
8316
8317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
jef56a97f92012-08-20 14:35:58 -07008318 freebsd* | kfreebsd*-gnu | dragonfly*)
8319 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008320 hardcode_libdir_flag_spec='-R$libdir'
8321 hardcode_direct=yes
8322 hardcode_shlibpath_var=no
8323 ;;
8324
8325 hpux9*)
8326 if test "$GCC" = yes; then
jef56a97f92012-08-20 14:35:58 -07008327 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 +00008328 else
jef56a97f92012-08-20 14:35:58 -07008329 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 +00008330 fi
8331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8332 hardcode_libdir_separator=:
8333 hardcode_direct=yes
8334
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8338 export_dynamic_flag_spec='${wl}-E'
8339 ;;
8340
8341 hpux10*)
jef56a97f92012-08-20 14:35:58 -07008342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8343 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 +00008344 else
8345 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8346 fi
8347 if test "$with_gnu_ld" = no; then
8348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008349 hardcode_libdir_separator=:
jef56a97f92012-08-20 14:35:58 -07008350
Jon Dugane34c20c2010-07-08 23:26:52 +00008351 hardcode_direct=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008352 export_dynamic_flag_spec='${wl}-E'
jef56a97f92012-08-20 14:35:58 -07008353
Jon Dugane34c20c2010-07-08 23:26:52 +00008354 # hardcode_minus_L: Not really in the search PATH,
8355 # but as the default location of the library.
8356 hardcode_minus_L=yes
8357 fi
8358 ;;
8359
8360 hpux11*)
jef56a97f92012-08-20 14:35:58 -07008361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008362 case $host_cpu in
8363 hppa*64*)
8364 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8365 ;;
8366 ia64*)
jef56a97f92012-08-20 14:35:58 -07008367 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008368 ;;
8369 *)
jef56a97f92012-08-20 14:35:58 -07008370 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 +00008371 ;;
8372 esac
8373 else
8374 case $host_cpu in
8375 hppa*64*)
8376 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8377 ;;
8378 ia64*)
8379 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8380 ;;
8381 *)
jef56a97f92012-08-20 14:35:58 -07008382 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 +00008383 ;;
8384 esac
8385 fi
8386 if test "$with_gnu_ld" = no; then
8387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8388 hardcode_libdir_separator=:
8389
8390 case $host_cpu in
8391 hppa*64*|ia64*)
jef56a97f92012-08-20 14:35:58 -07008392 hardcode_libdir_flag_spec_ld='+b $libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008393 hardcode_direct=no
8394 hardcode_shlibpath_var=no
8395 ;;
8396 *)
8397 hardcode_direct=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008398 export_dynamic_flag_spec='${wl}-E'
8399
8400 # hardcode_minus_L: Not really in the search PATH,
8401 # but as the default location of the library.
8402 hardcode_minus_L=yes
8403 ;;
8404 esac
8405 fi
8406 ;;
8407
8408 irix5* | irix6* | nonstopux*)
8409 if test "$GCC" = yes; then
jef56a97f92012-08-20 14:35:58 -07008410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008411 else
jef56a97f92012-08-20 14:35:58 -07008412 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8413 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008414 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 hardcode_libdir_separator=:
Jon Dugane34c20c2010-07-08 23:26:52 +00008417 link_all_deplibs=yes
8418 ;;
8419
8420 netbsd*)
jef56a97f92012-08-20 14:35:58 -07008421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8423 else
8424 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8425 fi
8426 hardcode_libdir_flag_spec='-R$libdir'
8427 hardcode_direct=yes
8428 hardcode_shlibpath_var=no
8429 ;;
8430
8431 newsos6)
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_direct=yes
8434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8435 hardcode_libdir_separator=:
8436 hardcode_shlibpath_var=no
8437 ;;
8438
Jon Dugane34c20c2010-07-08 23:26:52 +00008439 openbsd*)
jef56a97f92012-08-20 14:35:58 -07008440 hardcode_direct=yes
8441 hardcode_shlibpath_var=no
8442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8446 export_dynamic_flag_spec='${wl}-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00008447 else
jef56a97f92012-08-20 14:35:58 -07008448 case $host_os in
8449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_libdir_flag_spec='-R$libdir'
8452 ;;
8453 *)
8454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8456 ;;
8457 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008458 fi
8459 ;;
8460
8461 os2*)
8462 hardcode_libdir_flag_spec='-L$libdir'
8463 hardcode_minus_L=yes
8464 allow_undefined_flag=unsupported
jef56a97f92012-08-20 14:35:58 -07008465 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'
8466 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Jon Dugane34c20c2010-07-08 23:26:52 +00008467 ;;
8468
8469 osf3*)
8470 if test "$GCC" = yes; then
8471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jef56a97f92012-08-20 14:35:58 -07008472 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008473 else
8474 allow_undefined_flag=' -expect_unresolved \*'
jef56a97f92012-08-20 14:35:58 -07008475 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008476 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8478 hardcode_libdir_separator=:
8479 ;;
8480
8481 osf4* | osf5*) # as osf3* with the addition of -msym flag
8482 if test "$GCC" = yes; then
8483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jef56a97f92012-08-20 14:35:58 -07008484 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 else
8487 allow_undefined_flag=' -expect_unresolved \*'
jef56a97f92012-08-20 14:35:58 -07008488 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8489 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8490 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +00008491
8492 # Both c and cxx compiler support -rpath directly
8493 hardcode_libdir_flag_spec='-rpath $libdir'
8494 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008495 hardcode_libdir_separator=:
8496 ;;
8497
8498 solaris*)
jef56a97f92012-08-20 14:35:58 -07008499 no_undefined_flag=' -z text'
Jon Dugane34c20c2010-07-08 23:26:52 +00008500 if test "$GCC" = yes; then
8501 wlarc='${wl}'
jef56a97f92012-08-20 14:35:58 -07008502 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8504 $CC -shared ${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 +00008505 else
jef56a97f92012-08-20 14:35:58 -07008506 wlarc=''
8507 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +00008510 fi
8511 hardcode_libdir_flag_spec='-R$libdir'
8512 hardcode_shlibpath_var=no
8513 case $host_os in
8514 solaris2.[0-5] | solaris2.[0-5].*) ;;
8515 *)
jef56a97f92012-08-20 14:35:58 -07008516 # The compiler driver will combine linker options so we
8517 # cannot just pass the convience library names through
8518 # without $wl, iff we do not link with $LD.
8519 # Luckily, gcc supports the same syntax we need for Sun Studio.
8520 # Supported since Solaris 2.6 (maybe 2.5.1?)
8521 case $wlarc in
8522 '')
8523 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8524 *)
8525 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8526 esac ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008527 esac
8528 link_all_deplibs=yes
8529 ;;
8530
8531 sunos4*)
8532 if test "x$host_vendor" = xsequent; then
8533 # Use $CC to link under sequent, because it throws in some extra .o
8534 # files that make .init and .fini sections work.
8535 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8536 else
8537 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8538 fi
8539 hardcode_libdir_flag_spec='-L$libdir'
8540 hardcode_direct=yes
8541 hardcode_minus_L=yes
8542 hardcode_shlibpath_var=no
8543 ;;
8544
8545 sysv4)
8546 case $host_vendor in
8547 sni)
8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_direct=yes # is this really true???
8550 ;;
8551 siemens)
8552 ## LD is ld it makes a PLAMLIB
8553 ## CC just makes a GrossModule.
8554 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8555 reload_cmds='$CC -r -o $output$reload_objs'
8556 hardcode_direct=no
8557 ;;
8558 motorola)
8559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8561 ;;
8562 esac
8563 runpath_var='LD_RUN_PATH'
8564 hardcode_shlibpath_var=no
8565 ;;
8566
8567 sysv4.3*)
8568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569 hardcode_shlibpath_var=no
8570 export_dynamic_flag_spec='-Bexport'
8571 ;;
8572
8573 sysv4*MP*)
8574 if test -d /usr/nec; then
8575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576 hardcode_shlibpath_var=no
8577 runpath_var=LD_RUN_PATH
8578 hardcode_runpath_var=yes
8579 ld_shlibs=yes
8580 fi
8581 ;;
8582
jef56a97f92012-08-20 14:35:58 -07008583 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008584 no_undefined_flag='${wl}-z,text'
8585 archive_cmds_need_lc=no
8586 hardcode_shlibpath_var=no
8587 runpath_var='LD_RUN_PATH'
8588
8589 if test "$GCC" = yes; then
8590 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 else
8593 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8595 fi
8596 ;;
8597
8598 sysv5* | sco3.2v5* | sco5v6*)
8599 # Note: We can NOT use -z defs as we might desire, because we do not
8600 # link with -lc, and that would cause any symbols used from libc to
8601 # always be unresolved, which means just about no library would
8602 # ever link correctly. If we're not using GNU ld we use -z text
8603 # though, which does catch some bad symbols but isn't as heavy-handed
8604 # as -z defs.
8605 no_undefined_flag='${wl}-z,text'
8606 allow_undefined_flag='${wl}-z,nodefs'
8607 archive_cmds_need_lc=no
8608 hardcode_shlibpath_var=no
jef56a97f92012-08-20 14:35:58 -07008609 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
Jon Dugane34c20c2010-07-08 23:26:52 +00008610 hardcode_libdir_separator=':'
8611 link_all_deplibs=yes
8612 export_dynamic_flag_spec='${wl}-Bexport'
8613 runpath_var='LD_RUN_PATH'
8614
8615 if test "$GCC" = yes; then
jef56a97f92012-08-20 14:35:58 -07008616 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008618 else
jef56a97f92012-08-20 14:35:58 -07008619 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008621 fi
8622 ;;
8623
8624 uts4*)
8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_shlibpath_var=no
8628 ;;
8629
8630 *)
8631 ld_shlibs=no
8632 ;;
8633 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008634 fi
8635
Jef Poskanzer437537f2012-11-30 12:16:17 -08008636{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
Jon Dugan92864152010-09-20 21:50:12 +00008637$as_echo "$ld_shlibs" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008638test "$ld_shlibs" = no && can_build_shared=no
8639
Jon Dugane34c20c2010-07-08 23:26:52 +00008640#
8641# Do we need to explicitly link libc?
8642#
8643case "x$archive_cmds_need_lc" in
8644x|xyes)
8645 # Assume -lc should be added
8646 archive_cmds_need_lc=yes
8647
8648 if test "$enable_shared" = yes && test "$GCC" = yes; then
8649 case $archive_cmds in
8650 *'~'*)
8651 # FIXME: we may have to deal with multi-command sequences.
8652 ;;
8653 '$CC '*)
8654 # Test whether the compiler implicitly links with -lc since on some
8655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8656 # to ld, don't add -lc before -lgcc.
Jef Poskanzer437537f2012-11-30 12:16:17 -08008657 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Jon Dugan92864152010-09-20 21:50:12 +00008658$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
jef56a97f92012-08-20 14:35:58 -07008659 $rm conftest*
8660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008661
Jef Poskanzer437537f2012-11-30 12:16:17 -08008662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008663 (eval $ac_compile) 2>&5
8664 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08008665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } 2>conftest.err; then
jef56a97f92012-08-20 14:35:58 -07008667 soname=conftest
8668 lib=conftest
8669 libobjs=conftest.$ac_objext
8670 deplibs=
8671 wl=$lt_prog_compiler_wl
8672 pic_flag=$lt_prog_compiler_pic
8673 compiler_flags=-v
8674 linker_flags=-v
8675 verstring=
8676 output_objdir=.
8677 libname=conftest
8678 lt_save_allow_undefined_flag=$allow_undefined_flag
8679 allow_undefined_flag=
Jef Poskanzer437537f2012-11-30 12:16:17 -08008680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
jef56a97f92012-08-20 14:35:58 -07008681 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008682 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08008683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }
jef56a97f92012-08-20 14:35:58 -07008685 then
8686 archive_cmds_need_lc=no
8687 else
8688 archive_cmds_need_lc=yes
8689 fi
8690 allow_undefined_flag=$lt_save_allow_undefined_flag
8691 else
8692 cat conftest.err 1>&5
8693 fi
8694 $rm conftest*
Jef Poskanzer437537f2012-11-30 12:16:17 -08008695 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
jef56a97f92012-08-20 14:35:58 -07008696$as_echo "$archive_cmds_need_lc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008697 ;;
8698 esac
8699 fi
8700 ;;
8701esac
8702
Jef Poskanzer437537f2012-11-30 12:16:17 -08008703{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Jon Dugan92864152010-09-20 21:50:12 +00008704$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008705library_names_spec=
8706libname_spec='lib$name'
8707soname_spec=
8708shrext_cmds=".so"
8709postinstall_cmds=
8710postuninstall_cmds=
8711finish_cmds=
8712finish_eval=
8713shlibpath_var=
8714shlibpath_overrides_runpath=unknown
8715version_type=none
8716dynamic_linker="$host_os ld.so"
8717sys_lib_dlsearch_path_spec="/lib /usr/lib"
jef56a97f92012-08-20 14:35:58 -07008718if test "$GCC" = yes; then
8719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8721 # if the path contains ";" then we assume it to be the separator
8722 # otherwise default to the standard path separator (i.e. ":") - it is
8723 # assumed that no part of a normal pathname contains ";" but that should
8724 # okay in the real world where ";" in dirpaths is itself problematic.
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726 else
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8728 fi
8729else
8730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8731fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008732need_lib_prefix=unknown
8733hardcode_into_libs=no
8734
8735# when you set need_version to no, make sure it does not cause -set_version
8736# flags to be left without arguments
8737need_version=unknown
8738
8739case $host_os in
8740aix3*)
8741 version_type=linux
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8743 shlibpath_var=LIBPATH
8744
8745 # AIX 3 has no versioning support, so we append a major version to the name.
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 ;;
8748
jef56a97f92012-08-20 14:35:58 -07008749aix4* | aix5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008750 version_type=linux
8751 need_lib_prefix=no
8752 need_version=no
8753 hardcode_into_libs=yes
8754 if test "$host_cpu" = ia64; then
8755 # AIX 5 supports IA64
8756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 else
8759 # With GCC up to 2.95.x, collect2 would create an import file
8760 # for dependence libraries. The import file would start with
8761 # the line `#! .'. This would cause the generated library to
8762 # depend on `.', always an invalid library. This was fixed in
8763 # development snapshots of GCC prior to 3.0.
8764 case $host_os in
8765 aix4 | aix4.[01] | aix4.[01].*)
8766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8767 echo ' yes '
jef56a97f92012-08-20 14:35:58 -07008768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008769 :
8770 else
8771 can_build_shared=no
8772 fi
8773 ;;
8774 esac
8775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8776 # soname into executable. Probably we can add versioning support to
8777 # collect2, so additional links can be useful in future.
8778 if test "$aix_use_runtimelinking" = yes; then
8779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8780 # instead of lib<name>.a to let people know that these are not
8781 # typical AIX shared libraries.
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783 else
8784 # We preserve .a as extension for shared libraries through AIX4.2
8785 # and later when we are not doing run time linking.
8786 library_names_spec='${libname}${release}.a $libname.a'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 fi
8789 shlibpath_var=LIBPATH
8790 fi
8791 ;;
8792
8793amigaos*)
jef56a97f92012-08-20 14:35:58 -07008794 library_names_spec='$libname.ixlibrary $libname.a'
8795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8796 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00008797 ;;
8798
8799beos*)
8800 library_names_spec='${libname}${shared_ext}'
8801 dynamic_linker="$host_os ld.so"
8802 shlibpath_var=LIBRARY_PATH
8803 ;;
8804
8805bsdi[45]*)
8806 version_type=linux
8807 need_version=no
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8814 # the default ld.so.conf also contains /usr/contrib/lib and
8815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8816 # libtool to hard-code these into programs
8817 ;;
8818
jef56a97f92012-08-20 14:35:58 -07008819cygwin* | mingw* | pw32*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008820 version_type=windows
8821 shrext_cmds=".dll"
8822 need_version=no
8823 need_lib_prefix=no
8824
jef56a97f92012-08-20 14:35:58 -07008825 case $GCC,$host_os in
8826 yes,cygwin* | yes,mingw* | yes,pw32*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008827 library_names_spec='$libname.dll.a'
8828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8829 postinstall_cmds='base_file=`basename \${file}`~
jef56a97f92012-08-20 14:35:58 -07008830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +00008831 dldir=$destdir/`dirname \$dlpath`~
8832 test -d \$dldir || mkdir -p \$dldir~
8833 $install_prog $dir/$dlname \$dldir/$dlname~
jef56a97f92012-08-20 14:35:58 -07008834 chmod a+x \$dldir/$dlname'
Jon Dugane34c20c2010-07-08 23:26:52 +00008835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8836 dlpath=$dir/\$dldll~
jef56a97f92012-08-20 14:35:58 -07008837 $rm \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +00008838 shlibpath_overrides_runpath=yes
8839
8840 case $host_os in
8841 cygwin*)
8842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jef56a97f92012-08-20 14:35:58 -07008844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +00008845 ;;
jef56a97f92012-08-20 14:35:58 -07008846 mingw*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008847 # MinGW DLLs use traditional 'lib' prefix
8848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jef56a97f92012-08-20 14:35:58 -07008849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8851 # It is most probably a Windows format PATH printed by
8852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8853 # path with ; separators, and with drive letters. We can handle the
8854 # drive letters (cygwin fileutils understands them), so leave them,
8855 # especially as we might pass files found there to a mingw objdump,
8856 # which wouldn't understand a cygwinified path. Ahh.
8857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8858 else
8859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8860 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008861 ;;
8862 pw32*)
8863 # pw32 DLLs use 'pw' prefix rather than 'lib'
8864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8865 ;;
8866 esac
8867 ;;
8868
8869 *)
8870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8871 ;;
8872 esac
jef56a97f92012-08-20 14:35:58 -07008873 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +00008874 # FIXME: first we should search . and the directory the executable is in
8875 shlibpath_var=PATH
8876 ;;
8877
8878darwin* | rhapsody*)
8879 dynamic_linker="$host_os dyld"
8880 version_type=darwin
8881 need_lib_prefix=no
8882 need_version=no
jef56a97f92012-08-20 14:35:58 -07008883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +00008884 soname_spec='${libname}${release}${major}$shared_ext'
8885 shlibpath_overrides_runpath=yes
8886 shlibpath_var=DYLD_LIBRARY_PATH
8887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
jef56a97f92012-08-20 14:35:58 -07008888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8889 if test "$GCC" = yes; then
8890 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8891 else
8892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8893 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8895 ;;
8896
8897dgux*)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 ;;
8905
8906freebsd1*)
8907 dynamic_linker=no
8908 ;;
8909
jef56a97f92012-08-20 14:35:58 -07008910kfreebsd*-gnu)
8911 version_type=linux
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 hardcode_into_libs=yes
8919 dynamic_linker='GNU ld.so'
8920 ;;
8921
Jon Dugane34c20c2010-07-08 23:26:52 +00008922freebsd* | dragonfly*)
8923 # DragonFly does not have aout. When/if they implement a new
8924 # versioning mechanism, adjust this.
8925 if test -x /usr/bin/objformat; then
8926 objformat=`/usr/bin/objformat`
8927 else
8928 case $host_os in
8929 freebsd[123]*) objformat=aout ;;
8930 *) objformat=elf ;;
8931 esac
8932 fi
8933 version_type=freebsd-$objformat
8934 case $version_type in
8935 freebsd-elf*)
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8937 need_version=no
8938 need_lib_prefix=no
8939 ;;
8940 freebsd-*)
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8942 need_version=yes
8943 ;;
8944 esac
8945 shlibpath_var=LD_LIBRARY_PATH
8946 case $host_os in
8947 freebsd2*)
8948 shlibpath_overrides_runpath=yes
8949 ;;
8950 freebsd3.[01]* | freebsdelf3.[01]*)
8951 shlibpath_overrides_runpath=yes
8952 hardcode_into_libs=yes
8953 ;;
8954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 ;;
jef56a97f92012-08-20 14:35:58 -07008959 freebsd*) # from 4.6 on
Jon Dugane34c20c2010-07-08 23:26:52 +00008960 shlibpath_overrides_runpath=yes
8961 hardcode_into_libs=yes
8962 ;;
8963 esac
8964 ;;
8965
8966gnu*)
8967 version_type=linux
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 hardcode_into_libs=yes
8974 ;;
8975
Jon Dugane34c20c2010-07-08 23:26:52 +00008976hpux9* | hpux10* | hpux11*)
8977 # Give a soname corresponding to the major version so that dld.sl refuses to
8978 # link against other versions.
8979 version_type=sunos
8980 need_lib_prefix=no
8981 need_version=no
8982 case $host_cpu in
8983 ia64*)
8984 shrext_cmds='.so'
8985 hardcode_into_libs=yes
8986 dynamic_linker="$host_os dld.so"
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 if test "X$HPUX_IA64_MODE" = X32; then
8992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8993 else
8994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8995 fi
8996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8997 ;;
jef56a97f92012-08-20 14:35:58 -07008998 hppa*64*)
8999 shrext_cmds='.sl'
9000 hardcode_into_libs=yes
9001 dynamic_linker="$host_os dld.sl"
9002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008 ;;
9009 *)
Jon Dugane34c20c2010-07-08 23:26:52 +00009010 shrext_cmds='.sl'
9011 dynamic_linker="$host_os dld.sl"
9012 shlibpath_var=SHLIB_PATH
9013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 ;;
9017 esac
jef56a97f92012-08-20 14:35:58 -07009018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Jon Dugane34c20c2010-07-08 23:26:52 +00009019 postinstall_cmds='chmod 555 $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009020 ;;
9021
jef56a97f92012-08-20 14:35:58 -07009022interix3*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=no
9031 hardcode_into_libs=yes
9032 ;;
9033
9034irix5* | irix6* | nonstopux*)
9035 case $host_os in
9036 nonstopux*) version_type=nonstopux ;;
9037 *)
9038 if test "$lt_cv_prog_gnu_ld" = yes; then
9039 version_type=linux
9040 else
9041 version_type=irix
9042 fi ;;
9043 esac
9044 need_lib_prefix=no
9045 need_version=no
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9048 case $host_os in
9049 irix5* | nonstopux*)
9050 libsuff= shlibsuff=
9051 ;;
9052 *)
9053 case $LD in # libtool.m4 will add one of these switches to LD
9054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9055 libsuff= shlibsuff= libmagic=32-bit;;
9056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9057 libsuff=32 shlibsuff=N32 libmagic=N32;;
9058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9060 *) libsuff= shlibsuff= libmagic=never-match;;
9061 esac
9062 ;;
9063 esac
9064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9068 hardcode_into_libs=yes
9069 ;;
9070
9071# No shared lib support for Linux oldld, aout, or coff.
9072linux*oldld* | linux*aout* | linux*coff*)
9073 dynamic_linker=no
9074 ;;
9075
9076# This must be Linux ELF.
jef56a97f92012-08-20 14:35:58 -07009077linux*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009086 # This implies no fast_install, which is unacceptable.
9087 # Some rework will be needed to allow for fast_install
9088 # before this can be enabled.
9089 hardcode_into_libs=yes
9090
jef56a97f92012-08-20 14:35:58 -07009091 # find out which ABI we are using
9092 libsuff=
9093 case "$host_cpu" in
9094 x86_64*|s390x*|powerpc64*)
Jef Poskanzer437537f2012-11-30 12:16:17 -08009095 echo '#line 9095 "configure"' > conftest.$ac_ext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -07009097 (eval $ac_compile) 2>&5
9098 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -08009099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -07009101 case `/usr/bin/file conftest.$ac_objext` in
9102 *64-bit*)
9103 libsuff=64
9104 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9105 ;;
9106 esac
9107 fi
9108 rm -rf conftest*
9109 ;;
9110 esac
jef2ab386b2012-08-10 12:43:50 -07009111
Jon Dugane34c20c2010-07-08 23:26:52 +00009112 # Append ld.so.conf contents to the search path
9113 if test -f /etc/ld.so.conf; then
jef56a97f92012-08-20 14:35:58 -07009114 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9115 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +00009116 fi
9117
9118 # We used to test for /lib/ld.so.1 and disable shared libraries on
9119 # powerpc, because MkLinux only supported shared libraries with the
9120 # GNU dynamic linker. Since this was broken with cross compilers,
9121 # most powerpc-linux boxes support dynamic linking these days and
9122 # people can always --disable-shared, the test was removed, and we
9123 # assume the GNU/Linux dynamic linker is in use.
9124 dynamic_linker='GNU/Linux ld.so'
9125 ;;
9126
jef56a97f92012-08-20 14:35:58 -07009127knetbsd*-gnu)
9128 version_type=linux
9129 need_lib_prefix=no
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=no
9135 hardcode_into_libs=yes
9136 dynamic_linker='GNU ld.so'
9137 ;;
9138
Jon Dugane34c20c2010-07-08 23:26:52 +00009139netbsd*)
9140 version_type=sunos
9141 need_lib_prefix=no
9142 need_version=no
jef56a97f92012-08-20 14:35:58 -07009143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 dynamic_linker='NetBSD (a.out) ld.so'
9147 else
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 dynamic_linker='NetBSD ld.elf_so'
9151 fi
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 hardcode_into_libs=yes
9155 ;;
9156
9157newsos6)
9158 version_type=linux
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 ;;
9163
jef56a97f92012-08-20 14:35:58 -07009164nto-qnx*)
9165 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
jef56a97f92012-08-20 14:35:58 -07009171 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009172 ;;
9173
9174openbsd*)
9175 version_type=sunos
9176 sys_lib_dlsearch_path_spec="/usr/lib"
9177 need_lib_prefix=no
9178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9179 case $host_os in
jef56a97f92012-08-20 14:35:58 -07009180 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9181 *) need_version=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009182 esac
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
jef56a97f92012-08-20 14:35:58 -07009186 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 +00009187 case $host_os in
9188 openbsd2.[89] | openbsd2.[89].*)
9189 shlibpath_overrides_runpath=no
9190 ;;
9191 *)
9192 shlibpath_overrides_runpath=yes
9193 ;;
9194 esac
9195 else
9196 shlibpath_overrides_runpath=yes
9197 fi
9198 ;;
9199
9200os2*)
9201 libname_spec='$name'
9202 shrext_cmds=".dll"
9203 need_lib_prefix=no
9204 library_names_spec='$libname${shared_ext} $libname.a'
9205 dynamic_linker='OS/2 ld.exe'
9206 shlibpath_var=LIBPATH
9207 ;;
9208
9209osf3* | osf4* | osf5*)
9210 version_type=osf
9211 need_lib_prefix=no
9212 need_version=no
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9218 ;;
9219
Jon Dugane34c20c2010-07-08 23:26:52 +00009220solaris*)
9221 version_type=linux
9222 need_lib_prefix=no
9223 need_version=no
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9228 hardcode_into_libs=yes
9229 # ldd complains unless libraries are executable
9230 postinstall_cmds='chmod +x $lib'
9231 ;;
9232
9233sunos4*)
9234 version_type=sunos
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=yes
9239 if test "$with_gnu_ld" = yes; then
9240 need_lib_prefix=no
9241 fi
9242 need_version=yes
9243 ;;
9244
9245sysv4 | sysv4.3*)
9246 version_type=linux
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 case $host_vendor in
9251 sni)
9252 shlibpath_overrides_runpath=no
9253 need_lib_prefix=no
jef56a97f92012-08-20 14:35:58 -07009254 export_dynamic_flag_spec='${wl}-Blargedynsym'
Jon Dugane34c20c2010-07-08 23:26:52 +00009255 runpath_var=LD_RUN_PATH
9256 ;;
9257 siemens)
9258 need_lib_prefix=no
9259 ;;
9260 motorola)
9261 need_lib_prefix=no
9262 need_version=no
9263 shlibpath_overrides_runpath=no
9264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9265 ;;
9266 esac
9267 ;;
9268
9269sysv4*MP*)
9270 if test -d /usr/nec ;then
9271 version_type=linux
9272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9273 soname_spec='$libname${shared_ext}.$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 fi
9276 ;;
9277
9278sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9279 version_type=freebsd-elf
9280 need_lib_prefix=no
9281 need_version=no
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
Jon Dugane34c20c2010-07-08 23:26:52 +00009285 hardcode_into_libs=yes
9286 if test "$with_gnu_ld" = yes; then
9287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
jef56a97f92012-08-20 14:35:58 -07009288 shlibpath_overrides_runpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009289 else
9290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
jef56a97f92012-08-20 14:35:58 -07009291 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009292 case $host_os in
9293 sco3.2v5*)
9294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9295 ;;
9296 esac
9297 fi
9298 sys_lib_dlsearch_path_spec='/usr/lib'
9299 ;;
9300
Jon Dugane34c20c2010-07-08 23:26:52 +00009301uts4*)
9302 version_type=linux
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 ;;
9307
9308*)
9309 dynamic_linker=no
9310 ;;
9311esac
Jef Poskanzer437537f2012-11-30 12:16:17 -08009312{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009313$as_echo "$dynamic_linker" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009314test "$dynamic_linker" = no && can_build_shared=no
9315
9316variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9317if test "$GCC" = yes; then
9318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9319fi
9320
Jef Poskanzer437537f2012-11-30 12:16:17 -08009321{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009322$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009323hardcode_action=
jef56a97f92012-08-20 14:35:58 -07009324if test -n "$hardcode_libdir_flag_spec" || \
9325 test -n "$runpath_var" || \
Jon Dugane34c20c2010-07-08 23:26:52 +00009326 test "X$hardcode_automatic" = "Xyes" ; then
9327
jef56a97f92012-08-20 14:35:58 -07009328 # We can hardcode non-existant directories.
Jon Dugane34c20c2010-07-08 23:26:52 +00009329 if test "$hardcode_direct" != no &&
9330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9331 # have to relink, otherwise we might link with an installed library
9332 # when we should be linking with a yet-to-be-installed one
jef56a97f92012-08-20 14:35:58 -07009333 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
Jon Dugane34c20c2010-07-08 23:26:52 +00009334 test "$hardcode_minus_L" != no; then
9335 # Linking always hardcodes the temporary library directory.
9336 hardcode_action=relink
9337 else
9338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9339 hardcode_action=immediate
9340 fi
9341else
9342 # We cannot hardcode anything, or else we can only hardcode existing
9343 # directories.
9344 hardcode_action=unsupported
9345fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009346{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009347$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009348
jef56a97f92012-08-20 14:35:58 -07009349if test "$hardcode_action" = relink; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009350 # Fast installation is not supported
9351 enable_fast_install=no
9352elif test "$shlibpath_overrides_runpath" = yes ||
9353 test "$enable_shared" = no; then
9354 # Fast installation is not necessary
9355 enable_fast_install=needless
9356fi
9357
jef56a97f92012-08-20 14:35:58 -07009358striplib=
9359old_striplib=
Jef Poskanzer437537f2012-11-30 12:16:17 -08009360{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
jef56a97f92012-08-20 14:35:58 -07009361$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9362if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009365 { $as_echo "$as_me:$LINENO: result: yes" >&5
jef56a97f92012-08-20 14:35:58 -07009366$as_echo "yes" >&6; }
9367else
9368# FIXME - insert some real tests, host_os isn't really good enough
9369 case $host_os in
9370 darwin*)
9371 if test -n "$STRIP" ; then
9372 striplib="$STRIP -x"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009373 { $as_echo "$as_me:$LINENO: result: yes" >&5
jef56a97f92012-08-20 14:35:58 -07009374$as_echo "yes" >&6; }
9375 else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009376 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07009377$as_echo "no" >&6; }
9378fi
9379 ;;
9380 *)
Jef Poskanzer437537f2012-11-30 12:16:17 -08009381 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -07009382$as_echo "no" >&6; }
9383 ;;
9384 esac
9385fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009386
jef56a97f92012-08-20 14:35:58 -07009387if test "x$enable_dlopen" != xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009388 enable_dlopen=unknown
9389 enable_dlopen_self=unknown
9390 enable_dlopen_self_static=unknown
9391else
9392 lt_cv_dlopen=no
9393 lt_cv_dlopen_libs=
9394
9395 case $host_os in
9396 beos*)
9397 lt_cv_dlopen="load_add_on"
9398 lt_cv_dlopen_libs=
9399 lt_cv_dlopen_self=yes
9400 ;;
9401
jef56a97f92012-08-20 14:35:58 -07009402 mingw* | pw32*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009403 lt_cv_dlopen="LoadLibrary"
9404 lt_cv_dlopen_libs=
jef56a97f92012-08-20 14:35:58 -07009405 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009406
9407 cygwin*)
9408 lt_cv_dlopen="dlopen"
9409 lt_cv_dlopen_libs=
jef56a97f92012-08-20 14:35:58 -07009410 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009411
9412 darwin*)
9413 # if libdl is installed we need to link against it
Jef Poskanzer437537f2012-11-30 12:16:17 -08009414 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009415$as_echo_n "checking for dlopen in -ldl... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009416if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009417 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009418else
9419 ac_check_lib_save_LIBS=$LIBS
9420LIBS="-ldl $LIBS"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009421cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009426/* end confdefs.h. */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char dlopen ();
9435int
9436main ()
9437{
9438return dlopen ();
9439 ;
9440 return 0;
9441}
9442_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009443rm -f conftest.$ac_objext conftest$ac_exeext
9444if { (ac_try="$ac_link"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450$as_echo "$ac_try_echo") >&5
9451 (eval "$ac_link") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext && {
9461 test "$cross_compiling" = yes ||
9462 $as_test_x conftest$ac_exeext
9463 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009464 ac_cv_lib_dl_dlopen=yes
9465else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009466 $as_echo "$as_me: failed program was:" >&5
9467sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009470fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009471
9472rm -rf conftest.dSYM
9473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009475LIBS=$ac_check_lib_save_LIBS
9476fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009477{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009478$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009479if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9481else
9482
9483 lt_cv_dlopen="dyld"
9484 lt_cv_dlopen_libs=
9485 lt_cv_dlopen_self=yes
9486
9487fi
9488
jef56a97f92012-08-20 14:35:58 -07009489 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009490
9491 *)
Jef Poskanzer437537f2012-11-30 12:16:17 -08009492 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9493$as_echo_n "checking for shl_load... " >&6; }
9494if test "${ac_cv_func_shl_load+set}" = set; then
9495 $as_echo_n "(cached) " >&6
9496else
9497 cat >conftest.$ac_ext <<_ACEOF
9498/* confdefs.h. */
9499_ACEOF
9500cat confdefs.h >>conftest.$ac_ext
9501cat >>conftest.$ac_ext <<_ACEOF
9502/* end confdefs.h. */
9503/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9505#define shl_load innocuous_shl_load
9506
9507/* System header to define __stub macros and hopefully few prototypes,
9508 which can conflict with char shl_load (); below.
9509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9510 <limits.h> exists even on freestanding compilers. */
9511
9512#ifdef __STDC__
9513# include <limits.h>
9514#else
9515# include <assert.h>
9516#endif
9517
9518#undef shl_load
9519
9520/* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523#ifdef __cplusplus
9524extern "C"
9525#endif
9526char shl_load ();
9527/* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530#if defined __stub_shl_load || defined __stub___shl_load
9531choke me
9532#endif
9533
9534int
9535main ()
9536{
9537return shl_load ();
9538 ;
9539 return 0;
9540}
9541_ACEOF
9542rm -f conftest.$ac_objext conftest$ac_exeext
9543if { (ac_try="$ac_link"
9544case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9549$as_echo "$ac_try_echo") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext && {
9560 test "$cross_compiling" = yes ||
9561 $as_test_x conftest$ac_exeext
9562 }; then
9563 ac_cv_func_shl_load=yes
9564else
9565 $as_echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_func_shl_load=no
9569fi
9570
9571rm -rf conftest.dSYM
9572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573 conftest$ac_exeext conftest.$ac_ext
9574fi
9575{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9576$as_echo "$ac_cv_func_shl_load" >&6; }
9577if test "x$ac_cv_func_shl_load" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009578 lt_cv_dlopen="shl_load"
9579else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009580 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009581$as_echo_n "checking for shl_load in -ldld... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009582if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009583 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009584else
9585 ac_check_lib_save_LIBS=$LIBS
9586LIBS="-ldld $LIBS"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009587cat >conftest.$ac_ext <<_ACEOF
9588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009592/* end confdefs.h. */
9593
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char shl_load ();
9601int
9602main ()
9603{
9604return shl_load ();
9605 ;
9606 return 0;
9607}
9608_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009609rm -f conftest.$ac_objext conftest$ac_exeext
9610if { (ac_try="$ac_link"
9611case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614esac
9615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616$as_echo "$ac_try_echo") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext && {
9627 test "$cross_compiling" = yes ||
9628 $as_test_x conftest$ac_exeext
9629 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009630 ac_cv_lib_dld_shl_load=yes
9631else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009632 $as_echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009636fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009637
9638rm -rf conftest.dSYM
9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009641LIBS=$ac_check_lib_save_LIBS
9642fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009644$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009645if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
jef56a97f92012-08-20 14:35:58 -07009646 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
Jon Dugane34c20c2010-07-08 23:26:52 +00009647else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009648 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9649$as_echo_n "checking for dlopen... " >&6; }
9650if test "${ac_cv_func_dlopen+set}" = set; then
9651 $as_echo_n "(cached) " >&6
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9661#define dlopen innocuous_dlopen
9662
9663/* System header to define __stub macros and hopefully few prototypes,
9664 which can conflict with char dlopen (); below.
9665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9666 <limits.h> exists even on freestanding compilers. */
9667
9668#ifdef __STDC__
9669# include <limits.h>
9670#else
9671# include <assert.h>
9672#endif
9673
9674#undef dlopen
9675
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682char dlopen ();
9683/* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686#if defined __stub_dlopen || defined __stub___dlopen
9687choke me
9688#endif
9689
9690int
9691main ()
9692{
9693return dlopen ();
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (ac_try="$ac_link"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705$as_echo "$ac_try_echo") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext && {
9716 test "$cross_compiling" = yes ||
9717 $as_test_x conftest$ac_exeext
9718 }; then
9719 ac_cv_func_dlopen=yes
9720else
9721 $as_echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_func_dlopen=no
9725fi
9726
9727rm -rf conftest.dSYM
9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9730fi
9731{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9732$as_echo "$ac_cv_func_dlopen" >&6; }
9733if test "x$ac_cv_func_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009734 lt_cv_dlopen="dlopen"
9735else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009736 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009737$as_echo_n "checking for dlopen in -ldl... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009738if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009739 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009740else
9741 ac_check_lib_save_LIBS=$LIBS
9742LIBS="-ldl $LIBS"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009743cat >conftest.$ac_ext <<_ACEOF
9744/* confdefs.h. */
9745_ACEOF
9746cat confdefs.h >>conftest.$ac_ext
9747cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009748/* end confdefs.h. */
9749
9750/* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753#ifdef __cplusplus
9754extern "C"
9755#endif
9756char dlopen ();
9757int
9758main ()
9759{
9760return dlopen ();
9761 ;
9762 return 0;
9763}
9764_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009765rm -f conftest.$ac_objext conftest$ac_exeext
9766if { (ac_try="$ac_link"
9767case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770esac
9771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772$as_echo "$ac_try_echo") >&5
9773 (eval "$ac_link") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest$ac_exeext && {
9783 test "$cross_compiling" = yes ||
9784 $as_test_x conftest$ac_exeext
9785 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009786 ac_cv_lib_dl_dlopen=yes
9787else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009788 $as_echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009792fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009793
9794rm -rf conftest.dSYM
9795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009797LIBS=$ac_check_lib_save_LIBS
9798fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009799{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009800$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009801if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9803else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009804 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009805$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009806if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009807 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009808else
9809 ac_check_lib_save_LIBS=$LIBS
9810LIBS="-lsvld $LIBS"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009811cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009816/* end confdefs.h. */
9817
9818/* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821#ifdef __cplusplus
9822extern "C"
9823#endif
9824char dlopen ();
9825int
9826main ()
9827{
9828return dlopen ();
9829 ;
9830 return 0;
9831}
9832_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009833rm -f conftest.$ac_objext conftest$ac_exeext
9834if { (ac_try="$ac_link"
9835case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9840$as_echo "$ac_try_echo") >&5
9841 (eval "$ac_link") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext && {
9851 test "$cross_compiling" = yes ||
9852 $as_test_x conftest$ac_exeext
9853 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009854 ac_cv_lib_svld_dlopen=yes
9855else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009856 $as_echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009860fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009861
9862rm -rf conftest.dSYM
9863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9864 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009865LIBS=$ac_check_lib_save_LIBS
9866fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009867{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009868$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009869if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9871else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009872 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009873$as_echo_n "checking for dld_link in -ldld... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009874if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009875 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009876else
9877 ac_check_lib_save_LIBS=$LIBS
9878LIBS="-ldld $LIBS"
Jef Poskanzer437537f2012-11-30 12:16:17 -08009879cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009884/* end confdefs.h. */
9885
9886/* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889#ifdef __cplusplus
9890extern "C"
9891#endif
9892char dld_link ();
9893int
9894main ()
9895{
9896return dld_link ();
9897 ;
9898 return 0;
9899}
9900_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (ac_try="$ac_link"
9903case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9908$as_echo "$ac_try_echo") >&5
9909 (eval "$ac_link") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest$ac_exeext && {
9919 test "$cross_compiling" = yes ||
9920 $as_test_x conftest$ac_exeext
9921 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009922 ac_cv_lib_dld_dld_link=yes
9923else
Jef Poskanzer437537f2012-11-30 12:16:17 -08009924 $as_echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009928fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009929
9930rm -rf conftest.dSYM
9931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9932 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009933LIBS=$ac_check_lib_save_LIBS
9934fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009935{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009936$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009937if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
jef56a97f92012-08-20 14:35:58 -07009938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
Jon Dugane34c20c2010-07-08 23:26:52 +00009939fi
9940
9941
9942fi
9943
9944
9945fi
9946
9947
9948fi
9949
9950
9951fi
9952
9953
9954fi
9955
9956 ;;
9957 esac
9958
9959 if test "x$lt_cv_dlopen" != xno; then
9960 enable_dlopen=yes
9961 else
9962 enable_dlopen=no
9963 fi
9964
9965 case $lt_cv_dlopen in
9966 dlopen)
9967 save_CPPFLAGS="$CPPFLAGS"
9968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9969
9970 save_LDFLAGS="$LDFLAGS"
9971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9972
9973 save_LIBS="$LIBS"
9974 LIBS="$lt_cv_dlopen_libs $LIBS"
9975
Jef Poskanzer437537f2012-11-30 12:16:17 -08009976 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Jon Dugan92864152010-09-20 21:50:12 +00009977$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -08009978if test "${lt_cv_dlopen_self+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +00009979 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00009980else
9981 if test "$cross_compiling" = yes; then :
9982 lt_cv_dlopen_self=cross
9983else
9984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9985 lt_status=$lt_dlunknown
jef56a97f92012-08-20 14:35:58 -07009986 cat > conftest.$ac_ext <<EOF
Jef Poskanzer437537f2012-11-30 12:16:17 -08009987#line 9987 "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +00009988#include "confdefs.h"
9989
9990#if HAVE_DLFCN_H
9991#include <dlfcn.h>
9992#endif
9993
9994#include <stdio.h>
9995
9996#ifdef RTLD_GLOBAL
9997# define LT_DLGLOBAL RTLD_GLOBAL
9998#else
9999# ifdef DL_GLOBAL
10000# define LT_DLGLOBAL DL_GLOBAL
10001# else
10002# define LT_DLGLOBAL 0
10003# endif
10004#endif
10005
10006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10007 find out it does not work in some platform. */
10008#ifndef LT_DLLAZY_OR_NOW
10009# ifdef RTLD_LAZY
10010# define LT_DLLAZY_OR_NOW RTLD_LAZY
10011# else
10012# ifdef DL_LAZY
10013# define LT_DLLAZY_OR_NOW DL_LAZY
10014# else
10015# ifdef RTLD_NOW
10016# define LT_DLLAZY_OR_NOW RTLD_NOW
10017# else
10018# ifdef DL_NOW
10019# define LT_DLLAZY_OR_NOW DL_NOW
10020# else
10021# define LT_DLLAZY_OR_NOW 0
10022# endif
10023# endif
10024# endif
10025# endif
10026#endif
10027
jef56a97f92012-08-20 14:35:58 -070010028#ifdef __cplusplus
10029extern "C" void exit (int);
Jon Dugane34c20c2010-07-08 23:26:52 +000010030#endif
10031
jef56a97f92012-08-20 14:35:58 -070010032void fnord() { int i=42;}
Jon Dugane34c20c2010-07-08 23:26:52 +000010033int main ()
10034{
10035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10036 int status = $lt_dlunknown;
10037
10038 if (self)
10039 {
10040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
jef56a97f92012-08-20 14:35:58 -070010041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Jon Dugane34c20c2010-07-08 23:26:52 +000010042 /* dlclose (self); */
10043 }
10044 else
10045 puts (dlerror ());
10046
jef56a97f92012-08-20 14:35:58 -070010047 exit (status);
Jon Dugane34c20c2010-07-08 23:26:52 +000010048}
jef56a97f92012-08-20 14:35:58 -070010049EOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080010050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010051 (eval $ac_link) 2>&5
10052 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080010053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010055 (./conftest; exit; ) >&5 2>/dev/null
10056 lt_status=$?
10057 case x$lt_status in
10058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10061 esac
10062 else :
10063 # compilation failed
10064 lt_cv_dlopen_self=no
10065 fi
10066fi
10067rm -fr conftest*
10068
10069
10070fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080010071{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010072$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010073
10074 if test "x$lt_cv_dlopen_self" = xyes; then
10075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Jef Poskanzer437537f2012-11-30 12:16:17 -080010076 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010077$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080010078if test "${lt_cv_dlopen_self_static+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000010079 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010080else
10081 if test "$cross_compiling" = yes; then :
10082 lt_cv_dlopen_self_static=cross
10083else
10084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10085 lt_status=$lt_dlunknown
jef56a97f92012-08-20 14:35:58 -070010086 cat > conftest.$ac_ext <<EOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080010087#line 10087 "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010088#include "confdefs.h"
10089
10090#if HAVE_DLFCN_H
10091#include <dlfcn.h>
10092#endif
10093
10094#include <stdio.h>
10095
10096#ifdef RTLD_GLOBAL
10097# define LT_DLGLOBAL RTLD_GLOBAL
10098#else
10099# ifdef DL_GLOBAL
10100# define LT_DLGLOBAL DL_GLOBAL
10101# else
10102# define LT_DLGLOBAL 0
10103# endif
10104#endif
10105
10106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10107 find out it does not work in some platform. */
10108#ifndef LT_DLLAZY_OR_NOW
10109# ifdef RTLD_LAZY
10110# define LT_DLLAZY_OR_NOW RTLD_LAZY
10111# else
10112# ifdef DL_LAZY
10113# define LT_DLLAZY_OR_NOW DL_LAZY
10114# else
10115# ifdef RTLD_NOW
10116# define LT_DLLAZY_OR_NOW RTLD_NOW
10117# else
10118# ifdef DL_NOW
10119# define LT_DLLAZY_OR_NOW DL_NOW
10120# else
10121# define LT_DLLAZY_OR_NOW 0
10122# endif
10123# endif
10124# endif
10125# endif
10126#endif
10127
jef56a97f92012-08-20 14:35:58 -070010128#ifdef __cplusplus
10129extern "C" void exit (int);
Jon Dugane34c20c2010-07-08 23:26:52 +000010130#endif
10131
jef56a97f92012-08-20 14:35:58 -070010132void fnord() { int i=42;}
Jon Dugane34c20c2010-07-08 23:26:52 +000010133int main ()
10134{
10135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10136 int status = $lt_dlunknown;
10137
10138 if (self)
10139 {
10140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
jef56a97f92012-08-20 14:35:58 -070010141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Jon Dugane34c20c2010-07-08 23:26:52 +000010142 /* dlclose (self); */
10143 }
10144 else
10145 puts (dlerror ());
10146
jef56a97f92012-08-20 14:35:58 -070010147 exit (status);
Jon Dugane34c20c2010-07-08 23:26:52 +000010148}
jef56a97f92012-08-20 14:35:58 -070010149EOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080010150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010151 (eval $ac_link) 2>&5
10152 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080010153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010155 (./conftest; exit; ) >&5 2>/dev/null
10156 lt_status=$?
10157 case x$lt_status in
10158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10161 esac
10162 else :
10163 # compilation failed
10164 lt_cv_dlopen_self_static=no
10165 fi
10166fi
10167rm -fr conftest*
10168
10169
10170fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080010171{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010172$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010173 fi
10174
10175 CPPFLAGS="$save_CPPFLAGS"
10176 LDFLAGS="$save_LDFLAGS"
10177 LIBS="$save_LIBS"
10178 ;;
10179 esac
10180
10181 case $lt_cv_dlopen_self in
10182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10183 *) enable_dlopen_self=unknown ;;
10184 esac
10185
10186 case $lt_cv_dlopen_self_static in
10187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10188 *) enable_dlopen_self_static=unknown ;;
10189 esac
10190fi
10191
10192
jef56a97f92012-08-20 14:35:58 -070010193# Report which library types will actually be built
Jef Poskanzer437537f2012-11-30 12:16:17 -080010194{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010195$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080010196{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010197$as_echo "$can_build_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010198
Jef Poskanzer437537f2012-11-30 12:16:17 -080010199{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010200$as_echo_n "checking whether to build shared libraries... " >&6; }
jef56a97f92012-08-20 14:35:58 -070010201test "$can_build_shared" = "no" && enable_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010202
jef56a97f92012-08-20 14:35:58 -070010203# On AIX, shared libraries and static libraries use the same namespace, and
10204# are all built from PIC.
10205case $host_os in
10206aix3*)
10207 test "$enable_shared" = yes && enable_static=no
10208 if test -n "$RANLIB"; then
10209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10210 postinstall_cmds='$RANLIB $lib'
10211 fi
10212 ;;
10213
10214aix4* | aix5*)
10215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010216 test "$enable_shared" = yes && enable_static=no
jef56a97f92012-08-20 14:35:58 -070010217 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010218 ;;
jef56a97f92012-08-20 14:35:58 -070010219esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080010220{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010221$as_echo "$enable_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010222
Jef Poskanzer437537f2012-11-30 12:16:17 -080010223{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010224$as_echo_n "checking whether to build static libraries... " >&6; }
jef56a97f92012-08-20 14:35:58 -070010225# Make sure either enable_shared or enable_static is yes.
10226test "$enable_shared" = yes || enable_static=yes
Jef Poskanzer437537f2012-11-30 12:16:17 -080010227{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
Jon Dugan92864152010-09-20 21:50:12 +000010228$as_echo "$enable_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010229
jef56a97f92012-08-20 14:35:58 -070010230# The else clause should only fire when bootstrapping the
10231# libtool distribution, otherwise you forgot to ship ltmain.sh
10232# with your package, and you will get complaints that there are
10233# no rules to generate ltmain.sh.
10234if test -f "$ltmain"; then
10235 # See if we are running on zsh, and set the options which allow our commands through
10236 # without removal of \ escapes.
10237 if test -n "${ZSH_VERSION+set}" ; then
10238 setopt NO_GLOB_SUBST
10239 fi
10240 # Now quote all the things that may contain metacharacters while being
10241 # careful not to overquote the AC_SUBSTed values. We take copies of the
10242 # variables and quote the copies for generation of the libtool script.
10243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10244 SED SHELL STRIP \
10245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10247 deplibs_check_method reload_flag reload_cmds need_locks \
10248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10249 lt_cv_sys_global_symbol_to_c_name_address \
10250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10251 old_postinstall_cmds old_postuninstall_cmds \
10252 compiler \
10253 CC \
10254 LD \
10255 lt_prog_compiler_wl \
10256 lt_prog_compiler_pic \
10257 lt_prog_compiler_static \
10258 lt_prog_compiler_no_builtin_flag \
10259 export_dynamic_flag_spec \
10260 thread_safe_flag_spec \
10261 whole_archive_flag_spec \
10262 enable_shared_with_static_runtimes \
10263 old_archive_cmds \
10264 old_archive_from_new_cmds \
10265 predep_objects \
10266 postdep_objects \
10267 predeps \
10268 postdeps \
10269 compiler_lib_search_path \
10270 archive_cmds \
10271 archive_expsym_cmds \
10272 postinstall_cmds \
10273 postuninstall_cmds \
10274 old_archive_from_expsyms_cmds \
10275 allow_undefined_flag \
10276 no_undefined_flag \
10277 export_symbols_cmds \
10278 hardcode_libdir_flag_spec \
10279 hardcode_libdir_flag_spec_ld \
10280 hardcode_libdir_separator \
10281 hardcode_automatic \
10282 module_cmds \
10283 module_expsym_cmds \
10284 lt_cv_prog_compiler_c_o \
10285 exclude_expsyms \
10286 include_expsyms; do
10287
10288 case $var in
10289 old_archive_cmds | \
10290 old_archive_from_new_cmds | \
10291 archive_cmds | \
10292 archive_expsym_cmds | \
10293 module_cmds | \
10294 module_expsym_cmds | \
10295 old_archive_from_expsyms_cmds | \
10296 export_symbols_cmds | \
10297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10298 postinstall_cmds | postuninstall_cmds | \
10299 old_postinstall_cmds | old_postuninstall_cmds | \
10300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10301 # Double-quote double-evaled strings.
10302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10303 ;;
10304 *)
10305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10306 ;;
10307 esac
10308 done
10309
10310 case $lt_echo in
10311 *'\$0 --fallback-echo"')
10312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10313 ;;
10314 esac
10315
10316cfgfile="${ofile}T"
10317 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10318 $rm -f "$cfgfile"
Jef Poskanzer437537f2012-11-30 12:16:17 -080010319 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
jef56a97f92012-08-20 14:35:58 -070010320$as_echo "$as_me: creating $ofile" >&6;}
10321
10322 cat <<__EOF__ >> "$cfgfile"
10323#! $SHELL
10324
10325# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10326# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10328#
10329# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10330# Free Software Foundation, Inc.
10331#
10332# This file is part of GNU Libtool:
10333# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10334#
10335# This program is free software; you can redistribute it and/or modify
10336# it under the terms of the GNU General Public License as published by
10337# the Free Software Foundation; either version 2 of the License, or
10338# (at your option) any later version.
10339#
10340# This program is distributed in the hope that it will be useful, but
10341# WITHOUT ANY WARRANTY; without even the implied warranty of
10342# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10343# General Public License for more details.
10344#
10345# You should have received a copy of the GNU General Public License
10346# along with this program; if not, write to the Free Software
10347# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10348#
10349# As a special exception to the GNU General Public License, if you
10350# distribute this file as part of a program that contains a
10351# configuration script generated by Autoconf, you may include it under
10352# the same distribution terms that you use for the rest of that program.
10353
10354# A sed program that does not truncate output.
10355SED=$lt_SED
10356
10357# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10358Xsed="$SED -e 1s/^X//"
10359
10360# The HP-UX ksh and POSIX shell print the target directory to stdout
10361# if CDPATH is set.
10362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10363
10364# The names of the tagged configurations supported by this script.
10365available_tags=
10366
10367# ### BEGIN LIBTOOL CONFIG
10368
10369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10370
10371# Shell to use when invoking shell scripts.
10372SHELL=$lt_SHELL
10373
10374# Whether or not to build shared libraries.
10375build_libtool_libs=$enable_shared
10376
10377# Whether or not to build static libraries.
10378build_old_libs=$enable_static
10379
10380# Whether or not to add -lc for building shared libraries.
10381build_libtool_need_lc=$archive_cmds_need_lc
10382
10383# Whether or not to disallow shared libs when runtime libs are static
10384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10385
10386# Whether or not to optimize for fast installation.
10387fast_install=$enable_fast_install
10388
10389# The host system.
10390host_alias=$host_alias
10391host=$host
10392host_os=$host_os
10393
10394# The build system.
10395build_alias=$build_alias
10396build=$build
10397build_os=$build_os
10398
10399# An echo program that does not interpret backslashes.
10400echo=$lt_echo
10401
10402# The archiver.
10403AR=$lt_AR
10404AR_FLAGS=$lt_AR_FLAGS
10405
10406# A C compiler.
10407LTCC=$lt_LTCC
10408
10409# LTCC compiler flags.
10410LTCFLAGS=$lt_LTCFLAGS
10411
10412# A language-specific compiler.
10413CC=$lt_compiler
10414
10415# Is the compiler the GNU C compiler?
10416with_gcc=$GCC
10417
10418gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10419gcc_ver=\`gcc -dumpversion\`
10420
10421# An ERE matcher.
10422EGREP=$lt_EGREP
10423
10424# The linker used to build libraries.
10425LD=$lt_LD
10426
10427# Whether we need hard or soft links.
10428LN_S=$lt_LN_S
10429
10430# A BSD-compatible nm program.
10431NM=$lt_NM
10432
10433# A symbol stripping program
10434STRIP=$lt_STRIP
10435
10436# Used to examine libraries when file_magic_cmd begins "file"
10437MAGIC_CMD=$MAGIC_CMD
10438
10439# Used on cygwin: DLL creation program.
10440DLLTOOL="$DLLTOOL"
10441
10442# Used on cygwin: object dumper.
10443OBJDUMP="$OBJDUMP"
10444
10445# Used on cygwin: assembler.
10446AS="$AS"
10447
10448# The name of the directory that contains temporary libtool files.
10449objdir=$objdir
10450
10451# How to create reloadable object files.
10452reload_flag=$lt_reload_flag
10453reload_cmds=$lt_reload_cmds
10454
10455# How to pass a linker flag through the compiler.
10456wl=$lt_lt_prog_compiler_wl
10457
10458# Object file suffix (normally "o").
10459objext="$ac_objext"
10460
10461# Old archive suffix (normally "a").
10462libext="$libext"
10463
10464# Shared library suffix (normally ".so").
10465shrext_cmds='$shrext_cmds'
10466
10467# Executable file suffix (normally "").
10468exeext="$exeext"
10469
10470# Additional compiler flags for building library objects.
10471pic_flag=$lt_lt_prog_compiler_pic
10472pic_mode=$pic_mode
10473
10474# What is the maximum length of a command?
10475max_cmd_len=$lt_cv_sys_max_cmd_len
10476
10477# Does compiler simultaneously support -c and -o options?
10478compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10479
10480# Must we lock files when doing compilation?
10481need_locks=$lt_need_locks
10482
10483# Do we need the lib prefix for modules?
10484need_lib_prefix=$need_lib_prefix
10485
10486# Do we need a version for libraries?
10487need_version=$need_version
10488
10489# Whether dlopen is supported.
10490dlopen_support=$enable_dlopen
10491
10492# Whether dlopen of programs is supported.
10493dlopen_self=$enable_dlopen_self
10494
10495# Whether dlopen of statically linked programs is supported.
10496dlopen_self_static=$enable_dlopen_self_static
10497
10498# Compiler flag to prevent dynamic linking.
10499link_static_flag=$lt_lt_prog_compiler_static
10500
10501# Compiler flag to turn off builtin functions.
10502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10503
10504# Compiler flag to allow reflexive dlopens.
10505export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10506
10507# Compiler flag to generate shared objects directly from archives.
10508whole_archive_flag_spec=$lt_whole_archive_flag_spec
10509
10510# Compiler flag to generate thread-safe objects.
10511thread_safe_flag_spec=$lt_thread_safe_flag_spec
10512
10513# Library versioning type.
10514version_type=$version_type
10515
10516# Format of library name prefix.
10517libname_spec=$lt_libname_spec
10518
10519# List of archive names. First name is the real one, the rest are links.
10520# The last name is the one that the linker finds with -lNAME.
10521library_names_spec=$lt_library_names_spec
10522
10523# The coded name of the library, if different from the real name.
10524soname_spec=$lt_soname_spec
10525
10526# Commands used to build and install an old-style archive.
10527RANLIB=$lt_RANLIB
10528old_archive_cmds=$lt_old_archive_cmds
10529old_postinstall_cmds=$lt_old_postinstall_cmds
10530old_postuninstall_cmds=$lt_old_postuninstall_cmds
10531
10532# Create an old-style archive from a shared archive.
10533old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10534
10535# Create a temporary old-style archive to link instead of a shared archive.
10536old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10537
10538# Commands used to build and install a shared archive.
10539archive_cmds=$lt_archive_cmds
10540archive_expsym_cmds=$lt_archive_expsym_cmds
10541postinstall_cmds=$lt_postinstall_cmds
10542postuninstall_cmds=$lt_postuninstall_cmds
10543
10544# Commands used to build a loadable module (assumed same as above if empty)
10545module_cmds=$lt_module_cmds
10546module_expsym_cmds=$lt_module_expsym_cmds
10547
10548# Commands to strip libraries.
10549old_striplib=$lt_old_striplib
10550striplib=$lt_striplib
10551
10552# Dependencies to place before the objects being linked to create a
10553# shared library.
10554predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10555
10556# Dependencies to place after the objects being linked to create a
10557# shared library.
10558postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10559
10560# Dependencies to place before the objects being linked to create a
10561# shared library.
10562predeps=$lt_predeps
10563
10564# Dependencies to place after the objects being linked to create a
10565# shared library.
10566postdeps=$lt_postdeps
10567
10568# The library search path used internally by the compiler when linking
10569# a shared library.
10570compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10571
10572# Method to check whether dependent libraries are shared objects.
10573deplibs_check_method=$lt_deplibs_check_method
10574
10575# Command to use when deplibs_check_method == file_magic.
10576file_magic_cmd=$lt_file_magic_cmd
10577
10578# Flag that allows shared libraries with undefined symbols to be built.
10579allow_undefined_flag=$lt_allow_undefined_flag
10580
10581# Flag that forces no undefined symbols.
10582no_undefined_flag=$lt_no_undefined_flag
10583
10584# Commands used to finish a libtool library installation in a directory.
10585finish_cmds=$lt_finish_cmds
10586
10587# Same as above, but a single script fragment to be evaled but not shown.
10588finish_eval=$lt_finish_eval
10589
10590# Take the output of nm and produce a listing of raw symbols and C names.
10591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10592
10593# Transform the output of nm in a proper C declaration
10594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10595
10596# Transform the output of nm in a C name address pair
10597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10598
10599# This is the shared library runtime path variable.
10600runpath_var=$runpath_var
10601
10602# This is the shared library path variable.
10603shlibpath_var=$shlibpath_var
10604
10605# Is shlibpath searched before the hard-coded library search path?
10606shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10607
10608# How to hardcode a shared library path into an executable.
10609hardcode_action=$hardcode_action
10610
10611# Whether we should hardcode library paths into libraries.
10612hardcode_into_libs=$hardcode_into_libs
10613
10614# Flag to hardcode \$libdir into a binary during linking.
10615# This must work even if \$libdir does not exist.
10616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10617
10618# If ld is used when linking, flag to hardcode \$libdir into
10619# a binary during linking. This must work even if \$libdir does
10620# not exist.
10621hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10622
10623# Whether we need a single -rpath flag with a separated argument.
10624hardcode_libdir_separator=$lt_hardcode_libdir_separator
10625
10626# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10627# resulting binary.
10628hardcode_direct=$hardcode_direct
10629
10630# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10631# resulting binary.
10632hardcode_minus_L=$hardcode_minus_L
10633
10634# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10635# the resulting binary.
10636hardcode_shlibpath_var=$hardcode_shlibpath_var
10637
10638# Set to yes if building a shared library automatically hardcodes DIR into the library
10639# and all subsequent libraries and executables linked against it.
10640hardcode_automatic=$hardcode_automatic
10641
10642# Variables whose values should be saved in libtool wrapper scripts and
10643# restored at relink time.
10644variables_saved_for_relink="$variables_saved_for_relink"
10645
10646# Whether libtool must link a program against all its dependency libraries.
10647link_all_deplibs=$link_all_deplibs
10648
10649# Compile-time system search path for libraries
10650sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10651
10652# Run-time system search path for libraries
10653sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10654
10655# Fix the shell variable \$srcfile for the compiler.
10656fix_srcfile_path="$fix_srcfile_path"
10657
10658# Set to yes if exported symbols are required.
10659always_export_symbols=$always_export_symbols
10660
10661# The commands to list exported symbols.
10662export_symbols_cmds=$lt_export_symbols_cmds
10663
10664# The commands to extract the exported symbol list from a shared archive.
10665extract_expsyms_cmds=$lt_extract_expsyms_cmds
10666
10667# Symbols that should not be listed in the preloaded symbols.
10668exclude_expsyms=$lt_exclude_expsyms
10669
10670# Symbols that must always be exported.
10671include_expsyms=$lt_include_expsyms
10672
10673# ### END LIBTOOL CONFIG
10674
10675__EOF__
Jon Dugane34c20c2010-07-08 23:26:52 +000010676
10677
jef56a97f92012-08-20 14:35:58 -070010678 case $host_os in
10679 aix3*)
10680 cat <<\EOF >> "$cfgfile"
Jon Dugane34c20c2010-07-08 23:26:52 +000010681
jef56a97f92012-08-20 14:35:58 -070010682# AIX sometimes has problems with the GCC collect2 program. For some
10683# reason, if we set the COLLECT_NAMES environment variable, the problems
10684# vanish in a puff of smoke.
10685if test "X${COLLECT_NAMES+set}" != Xset; then
10686 COLLECT_NAMES=
10687 export COLLECT_NAMES
Jon Dugane34c20c2010-07-08 23:26:52 +000010688fi
jef56a97f92012-08-20 14:35:58 -070010689EOF
10690 ;;
10691 esac
10692
10693 # We use sed instead of cat because bash on DJGPP gets confused if
10694 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10695 # text mode, it properly converts lines to CR/LF. This bash problem
10696 # is reportedly fixed, but why not run on old versions too?
10697 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10698
10699 mv -f "$cfgfile" "$ofile" || \
10700 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10701 chmod +x "$ofile"
10702
10703else
10704 # If there is no Makefile yet, we rely on a make rule to execute
10705 # `config.status --recheck' to rerun these tests and create the
10706 # libtool script then.
10707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10708 if test -f "$ltmain_in"; then
10709 test -f Makefile && make "$ltmain"
10710 fi
10711fi
10712
10713
Jon Dugane34c20c2010-07-08 23:26:52 +000010714ac_ext=c
10715ac_cpp='$CPP $CPPFLAGS'
10716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10718ac_compiler_gnu=$ac_cv_c_compiler_gnu
10719
10720CC="$lt_save_CC"
10721
10722
jef56a97f92012-08-20 14:35:58 -070010723# Check whether --with-tags was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -080010724if test "${with_tags+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070010725 withval=$with_tags; tagnames="$withval"
10726fi
10727
10728
10729if test -f "$ltmain" && test -n "$tagnames"; then
10730 if test ! -f "${ofile}"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080010731 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
jef56a97f92012-08-20 14:35:58 -070010732$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10733 fi
10734
10735 if test -z "$LTCC"; then
10736 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10737 if test -z "$LTCC"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080010738 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
jef56a97f92012-08-20 14:35:58 -070010739$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10740 else
Jef Poskanzer437537f2012-11-30 12:16:17 -080010741 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
jef56a97f92012-08-20 14:35:58 -070010742$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10743 fi
10744 fi
10745 if test -z "$LTCFLAGS"; then
10746 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10747 fi
10748
10749 # Extract list of available tagged configurations in $ofile.
10750 # Note that this assumes the entire list is on one line.
10751 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10752
10753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10754 for tagname in $tagnames; do
10755 IFS="$lt_save_ifs"
10756 # Check whether tagname contains only valid characters
10757 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10758 "") ;;
Jef Poskanzer437537f2012-11-30 12:16:17 -080010759 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10760$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10761 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -070010762 ;;
10763 esac
10764
10765 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10766 then
Jef Poskanzer437537f2012-11-30 12:16:17 -080010767 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10768$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10769 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -070010770 fi
10771
10772 # Update the list of available tags.
10773 if test -n "$tagname"; then
10774 echo appending configuration tag \"$tagname\" to $ofile
10775
10776 case $tagname in
10777 CXX)
10778 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10779 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10780 (test "X$CXX" != "Xg++"))) ; then
10781 ac_ext=cpp
10782ac_cpp='$CXXCPP $CPPFLAGS'
10783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10786
10787
10788
10789
10790archive_cmds_need_lc_CXX=no
10791allow_undefined_flag_CXX=
10792always_export_symbols_CXX=no
10793archive_expsym_cmds_CXX=
10794export_dynamic_flag_spec_CXX=
10795hardcode_direct_CXX=no
10796hardcode_libdir_flag_spec_CXX=
10797hardcode_libdir_flag_spec_ld_CXX=
10798hardcode_libdir_separator_CXX=
10799hardcode_minus_L_CXX=no
10800hardcode_shlibpath_var_CXX=unsupported
10801hardcode_automatic_CXX=no
10802module_cmds_CXX=
10803module_expsym_cmds_CXX=
10804link_all_deplibs_CXX=unknown
10805old_archive_cmds_CXX=$old_archive_cmds
10806no_undefined_flag_CXX=
10807whole_archive_flag_spec_CXX=
10808enable_shared_with_static_runtimes_CXX=no
10809
10810# Dependencies to place before and after the object being linked:
10811predep_objects_CXX=
10812postdep_objects_CXX=
10813predeps_CXX=
10814postdeps_CXX=
10815compiler_lib_search_path_CXX=
10816
10817# Source file extension for C++ test sources.
10818ac_ext=cpp
10819
10820# Object file extension for compiled C++ test sources.
10821objext=o
10822objext_CXX=$objext
10823
10824# Code to be used in simple compile tests
10825lt_simple_compile_test_code="int some_variable = 0;\n"
10826
10827# Code to be used in simple link tests
10828lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10829
10830# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10831
10832# If no C compiler was specified, use CC.
10833LTCC=${LTCC-"$CC"}
10834
10835# If no C compiler flags were specified, use CFLAGS.
10836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10837
10838# Allow CC to be a program name with arguments.
10839compiler=$CC
10840
10841
10842# save warnings/boilerplate of simple test code
10843ac_outfile=conftest.$ac_objext
10844printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10845eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10846_lt_compiler_boilerplate=`cat conftest.err`
10847$rm conftest*
10848
10849ac_outfile=conftest.$ac_objext
10850printf "$lt_simple_link_test_code" >conftest.$ac_ext
10851eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10852_lt_linker_boilerplate=`cat conftest.err`
10853$rm conftest*
10854
10855
10856# Allow CC to be a program name with arguments.
10857lt_save_CC=$CC
10858lt_save_LD=$LD
10859lt_save_GCC=$GCC
10860GCC=$GXX
10861lt_save_with_gnu_ld=$with_gnu_ld
10862lt_save_path_LD=$lt_cv_path_LD
10863if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10864 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10865else
10866 $as_unset lt_cv_prog_gnu_ld
10867fi
10868if test -n "${lt_cv_path_LDCXX+set}"; then
10869 lt_cv_path_LD=$lt_cv_path_LDCXX
10870else
10871 $as_unset lt_cv_path_LD
10872fi
10873test -z "${LDCXX+set}" || LD=$LDCXX
10874CC=${CXX-"c++"}
10875compiler=$CC
10876compiler_CXX=$CC
10877for cc_temp in $compiler""; do
10878 case $cc_temp in
10879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10881 \-*) ;;
10882 *) break;;
10883 esac
10884done
10885cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10886
10887
10888# We don't want -fno-exception wen compiling C++ code, so set the
10889# no_builtin_flag separately
10890if test "$GXX" = yes; then
10891 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10892else
10893 lt_prog_compiler_no_builtin_flag_CXX=
10894fi
10895
10896if test "$GXX" = yes; then
10897 # Set up default GNU C++ configuration
10898
10899
10900# Check whether --with-gnu-ld was given.
Jef Poskanzer437537f2012-11-30 12:16:17 -080010901if test "${with_gnu_ld+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070010902 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10903else
10904 with_gnu_ld=no
10905fi
10906
10907ac_prog=ld
10908if test "$GCC" = yes; then
10909 # Check if gcc -print-prog-name=ld gives a path.
Jef Poskanzer437537f2012-11-30 12:16:17 -080010910 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
jef56a97f92012-08-20 14:35:58 -070010911$as_echo_n "checking for ld used by $CC... " >&6; }
10912 case $host in
10913 *-*-mingw*)
10914 # gcc leaves a trailing carriage return which upsets mingw
10915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10916 *)
10917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10918 esac
10919 case $ac_prog in
10920 # Accept absolute paths.
10921 [\\/]* | ?:[\\/]*)
10922 re_direlt='/[^/][^/]*/\.\./'
10923 # Canonicalize the pathname of ld
10924 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10925 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10926 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10927 done
10928 test -z "$LD" && LD="$ac_prog"
10929 ;;
10930 "")
10931 # If it fails, then pretend we aren't using GCC.
10932 ac_prog=ld
10933 ;;
10934 *)
10935 # If it is relative, then search for the first ld in PATH.
10936 with_gnu_ld=unknown
10937 ;;
10938 esac
10939elif test "$with_gnu_ld" = yes; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080010940 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
jef56a97f92012-08-20 14:35:58 -070010941$as_echo_n "checking for GNU ld... " >&6; }
10942else
Jef Poskanzer437537f2012-11-30 12:16:17 -080010943 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
jef56a97f92012-08-20 14:35:58 -070010944$as_echo_n "checking for non-GNU ld... " >&6; }
10945fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080010946if test "${lt_cv_path_LD+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070010947 $as_echo_n "(cached) " >&6
10948else
10949 if test -z "$LD"; then
10950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10951 for ac_dir in $PATH; do
10952 IFS="$lt_save_ifs"
10953 test -z "$ac_dir" && ac_dir=.
10954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10955 lt_cv_path_LD="$ac_dir/$ac_prog"
10956 # Check to see if the program is GNU ld. I'd rather use --version,
10957 # but apparently some variants of GNU ld only accept -v.
10958 # Break only if it was the GNU/non-GNU ld that we prefer.
10959 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10960 *GNU* | *'with BFD'*)
10961 test "$with_gnu_ld" != no && break
10962 ;;
10963 *)
10964 test "$with_gnu_ld" != yes && break
10965 ;;
10966 esac
10967 fi
10968 done
10969 IFS="$lt_save_ifs"
10970else
10971 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10972fi
10973fi
10974
10975LD="$lt_cv_path_LD"
10976if test -n "$LD"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080010977 { $as_echo "$as_me:$LINENO: result: $LD" >&5
jef56a97f92012-08-20 14:35:58 -070010978$as_echo "$LD" >&6; }
10979else
Jef Poskanzer437537f2012-11-30 12:16:17 -080010980 { $as_echo "$as_me:$LINENO: result: no" >&5
jef56a97f92012-08-20 14:35:58 -070010981$as_echo "no" >&6; }
10982fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080010983test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10984$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10985 { (exit 1); exit 1; }; }
10986{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
jef56a97f92012-08-20 14:35:58 -070010987$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080010988if test "${lt_cv_prog_gnu_ld+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070010989 $as_echo_n "(cached) " >&6
10990else
10991 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10992case `$LD -v 2>&1 </dev/null` in
10993*GNU* | *'with BFD'*)
10994 lt_cv_prog_gnu_ld=yes
10995 ;;
10996*)
10997 lt_cv_prog_gnu_ld=no
10998 ;;
10999esac
11000fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080011001{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
jef56a97f92012-08-20 14:35:58 -070011002$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11003with_gnu_ld=$lt_cv_prog_gnu_ld
11004
11005
11006
11007 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11008 # archiving commands below assume that GNU ld is being used.
11009 if test "$with_gnu_ld" = yes; then
11010 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11011 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11012
11013 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11015
11016 # If archive_cmds runs LD, not CC, wlarc should be empty
11017 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11018 # investigate it a little bit more. (MM)
11019 wlarc='${wl}'
11020
11021 # ancient GNU ld didn't support --whole-archive et. al.
11022 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11023 grep 'no-whole-archive' > /dev/null; then
11024 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11025 else
11026 whole_archive_flag_spec_CXX=
11027 fi
11028 else
11029 with_gnu_ld=no
11030 wlarc=
11031
11032 # A generic and very simple default shared library creation
11033 # command for GNU C++ for the case where it uses the native
11034 # linker, instead of GNU ld. If possible, this setting should
11035 # overridden to take advantage of the native linker features on
11036 # the platform it is being used on.
11037 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11038 fi
11039
11040 # Commands to make compiler produce verbose output that lists
11041 # what "hidden" libraries, object files and flags are used when
11042 # linking a shared library.
11043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11044
11045else
11046 GXX=no
11047 with_gnu_ld=no
11048 wlarc=
11049fi
11050
11051# PORTME: fill in a description of your system's C++ link characteristics
Jef Poskanzer437537f2012-11-30 12:16:17 -080011052{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070011053$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11054ld_shlibs_CXX=yes
11055case $host_os in
11056 aix3*)
11057 # FIXME: insert proper C++ library support
11058 ld_shlibs_CXX=no
11059 ;;
11060 aix4* | aix5*)
11061 if test "$host_cpu" = ia64; then
11062 # On IA64, the linker does run time linking by default, so we don't
11063 # have to do anything special.
11064 aix_use_runtimelinking=no
11065 exp_sym_flag='-Bexport'
11066 no_entry_flag=""
11067 else
11068 aix_use_runtimelinking=no
11069
11070 # Test if we are trying to use run time linking or normal
11071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11072 # need to do runtime linking.
11073 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11074 for ld_flag in $LDFLAGS; do
11075 case $ld_flag in
11076 *-brtl*)
11077 aix_use_runtimelinking=yes
11078 break
11079 ;;
11080 esac
11081 done
11082 ;;
11083 esac
11084
11085 exp_sym_flag='-bexport'
11086 no_entry_flag='-bnoentry'
11087 fi
11088
11089 # When large executables or shared objects are built, AIX ld can
11090 # have problems creating the table of contents. If linking a library
11091 # or program results in "error TOC overflow" add -mminimal-toc to
11092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11094
11095 archive_cmds_CXX=''
11096 hardcode_direct_CXX=yes
11097 hardcode_libdir_separator_CXX=':'
11098 link_all_deplibs_CXX=yes
11099
11100 if test "$GXX" = yes; then
11101 case $host_os in aix4.[012]|aix4.[012].*)
11102 # We only want to do this on AIX 4.2 and lower, the check
11103 # below for broken collect2 doesn't work under 4.3+
11104 collect2name=`${CC} -print-prog-name=collect2`
11105 if test -f "$collect2name" && \
11106 strings "$collect2name" | grep resolve_lib_name >/dev/null
11107 then
11108 # We have reworked collect2
11109 hardcode_direct_CXX=yes
11110 else
11111 # We have old collect2
11112 hardcode_direct_CXX=unsupported
11113 # It fails to find uninstalled libraries when the uninstalled
11114 # path is not listed in the libpath. Setting hardcode_minus_L
11115 # to unsupported forces relinking
11116 hardcode_minus_L_CXX=yes
11117 hardcode_libdir_flag_spec_CXX='-L$libdir'
11118 hardcode_libdir_separator_CXX=
11119 fi
11120 ;;
11121 esac
11122 shared_flag='-shared'
11123 if test "$aix_use_runtimelinking" = yes; then
11124 shared_flag="$shared_flag "'${wl}-G'
11125 fi
11126 else
11127 # not using gcc
11128 if test "$host_cpu" = ia64; then
11129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11130 # chokes on -Wl,-G. The following line is correct:
11131 shared_flag='-G'
11132 else
11133 if test "$aix_use_runtimelinking" = yes; then
11134 shared_flag='${wl}-G'
11135 else
11136 shared_flag='${wl}-bM:SRE'
11137 fi
11138 fi
11139 fi
11140
11141 # It seems that -bexpall does not export symbols beginning with
11142 # underscore (_), so it is better to generate a list of symbols to export.
11143 always_export_symbols_CXX=yes
11144 if test "$aix_use_runtimelinking" = yes; then
11145 # Warning - without using the other runtime loading flags (-brtl),
11146 # -berok will link without error, but may produce a broken library.
11147 allow_undefined_flag_CXX='-berok'
11148 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080011149 cat >conftest.$ac_ext <<_ACEOF
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070011154/* end confdefs.h. */
11155
11156int
11157main ()
11158{
11159
11160 ;
11161 return 0;
11162}
11163_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080011164rm -f conftest.$ac_objext conftest$ac_exeext
11165if { (ac_try="$ac_link"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11171$as_echo "$ac_try_echo") >&5
11172 (eval "$ac_link") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_cxx_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest$ac_exeext && {
11182 test "$cross_compiling" = yes ||
11183 $as_test_x conftest$ac_exeext
11184 }; then
jef56a97f92012-08-20 14:35:58 -070011185
11186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11187}'`
11188# Check for a 64-bit object if we didn't find anything.
11189if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11190}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080011191else
11192 $as_echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195
jef56a97f92012-08-20 14:35:58 -070011196fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080011197
11198rm -rf conftest.dSYM
11199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070011201if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11202
11203 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11204
11205 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11206 else
11207 if test "$host_cpu" = ia64; then
11208 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11209 allow_undefined_flag_CXX="-z nodefs"
11210 archive_expsym_cmds_CXX="\$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"
11211 else
11212 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080011213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070011218/* end confdefs.h. */
11219
11220int
11221main ()
11222{
11223
11224 ;
11225 return 0;
11226}
11227_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080011228rm -f conftest.$ac_objext conftest$ac_exeext
11229if { (ac_try="$ac_link"
11230case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235$as_echo "$ac_try_echo") >&5
11236 (eval "$ac_link") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_cxx_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest$ac_exeext && {
11246 test "$cross_compiling" = yes ||
11247 $as_test_x conftest$ac_exeext
11248 }; then
jef56a97f92012-08-20 14:35:58 -070011249
11250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11251}'`
11252# Check for a 64-bit object if we didn't find anything.
11253if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11254}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080011255else
11256 $as_echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259
jef56a97f92012-08-20 14:35:58 -070011260fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080011261
11262rm -rf conftest.dSYM
11263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070011265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11266
11267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11268 # Warning - without using the other run time loading flags,
11269 # -berok will link without error, but may produce a broken library.
11270 no_undefined_flag_CXX=' ${wl}-bernotok'
11271 allow_undefined_flag_CXX=' ${wl}-berok'
11272 # Exported symbols can be pulled into shared objects from archives
11273 whole_archive_flag_spec_CXX='$convenience'
11274 archive_cmds_need_lc_CXX=yes
11275 # This is similar to how AIX traditionally builds its shared libraries.
11276 archive_expsym_cmds_CXX="\$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'
11277 fi
11278 fi
11279 ;;
11280
11281 beos*)
11282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11283 allow_undefined_flag_CXX=unsupported
11284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11285 # support --undefined. This deserves some investigation. FIXME
11286 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11287 else
11288 ld_shlibs_CXX=no
11289 fi
11290 ;;
11291
11292 chorus*)
11293 case $cc_basename in
11294 *)
11295 # FIXME: insert proper C++ library support
11296 ld_shlibs_CXX=no
11297 ;;
11298 esac
11299 ;;
11300
11301 cygwin* | mingw* | pw32*)
11302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11303 # as there is no search path for DLLs.
11304 hardcode_libdir_flag_spec_CXX='-L$libdir'
11305 allow_undefined_flag_CXX=unsupported
11306 always_export_symbols_CXX=no
11307 enable_shared_with_static_runtimes_CXX=yes
11308
11309 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11311 # If the export-symbols file already is a .def file (1st line
11312 # is EXPORTS), use it as is; otherwise, prepend...
11313 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11314 cp $export_symbols $output_objdir/$soname.def;
11315 else
11316 echo EXPORTS > $output_objdir/$soname.def;
11317 cat $export_symbols >> $output_objdir/$soname.def;
11318 fi~
11319 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11320 else
11321 ld_shlibs_CXX=no
11322 fi
11323 ;;
11324 darwin* | rhapsody*)
11325 case $host_os in
11326 rhapsody* | darwin1.[012])
11327 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11328 ;;
11329 *) # Darwin 1.3 on
11330 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11331 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11332 else
11333 case ${MACOSX_DEPLOYMENT_TARGET} in
11334 10.[012])
11335 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11336 ;;
11337 10.*)
11338 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11339 ;;
11340 esac
11341 fi
11342 ;;
11343 esac
11344 archive_cmds_need_lc_CXX=no
11345 hardcode_direct_CXX=no
11346 hardcode_automatic_CXX=yes
11347 hardcode_shlibpath_var_CXX=unsupported
11348 whole_archive_flag_spec_CXX=''
11349 link_all_deplibs_CXX=yes
11350
11351 if test "$GXX" = yes ; then
11352 lt_int_apple_cc_single_mod=no
11353 output_verbose_link_cmd='echo'
11354 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11355 lt_int_apple_cc_single_mod=yes
11356 fi
11357 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11358 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11359 else
11360 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11361 fi
11362 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11364 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11365 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11366 else
11367 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11368 fi
11369 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11370 else
11371 case $cc_basename in
11372 xlc*)
11373 output_verbose_link_cmd='echo'
11374 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11375 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11377 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11378 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11379 ;;
11380 *)
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 fi
11385 ;;
11386
11387 dgux*)
11388 case $cc_basename in
11389 ec++*)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393 ghcx*)
11394 # Green Hills C++ Compiler
11395 # FIXME: insert proper C++ library support
11396 ld_shlibs_CXX=no
11397 ;;
11398 *)
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 esac
11403 ;;
11404 freebsd[12]*)
11405 # C++ shared libraries reported to be fairly broken before switch to ELF
11406 ld_shlibs_CXX=no
11407 ;;
11408 freebsd-elf*)
11409 archive_cmds_need_lc_CXX=no
11410 ;;
11411 freebsd* | kfreebsd*-gnu | dragonfly*)
11412 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11413 # conventions
11414 ld_shlibs_CXX=yes
11415 ;;
11416 gnu*)
11417 ;;
11418 hpux9*)
11419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11420 hardcode_libdir_separator_CXX=:
11421 export_dynamic_flag_spec_CXX='${wl}-E'
11422 hardcode_direct_CXX=yes
11423 hardcode_minus_L_CXX=yes # Not in the search PATH,
11424 # but as the default
11425 # location of the library.
11426
11427 case $cc_basename in
11428 CC*)
11429 # FIXME: insert proper C++ library support
11430 ld_shlibs_CXX=no
11431 ;;
11432 aCC*)
11433 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11434 # Commands to make compiler produce verbose output that lists
11435 # what "hidden" libraries, object files and flags are used when
11436 # linking a shared library.
11437 #
11438 # There doesn't appear to be a way to prevent this compiler from
11439 # explicitly linking system object files so we need to strip them
11440 # from the output so that they don't get included in the library
11441 # dependencies.
11442 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11443 ;;
11444 *)
11445 if test "$GXX" = yes; then
11446 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11447 else
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 esac
11453 ;;
11454 hpux10*|hpux11*)
11455 if test $with_gnu_ld = no; then
11456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11457 hardcode_libdir_separator_CXX=:
11458
11459 case $host_cpu in
11460 hppa*64*|ia64*)
11461 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11462 ;;
11463 *)
11464 export_dynamic_flag_spec_CXX='${wl}-E'
11465 ;;
11466 esac
11467 fi
11468 case $host_cpu in
11469 hppa*64*|ia64*)
11470 hardcode_direct_CXX=no
11471 hardcode_shlibpath_var_CXX=no
11472 ;;
11473 *)
11474 hardcode_direct_CXX=yes
11475 hardcode_minus_L_CXX=yes # Not in the search PATH,
11476 # but as the default
11477 # location of the library.
11478 ;;
11479 esac
11480
11481 case $cc_basename in
11482 CC*)
11483 # FIXME: insert proper C++ library support
11484 ld_shlibs_CXX=no
11485 ;;
11486 aCC*)
11487 case $host_cpu in
11488 hppa*64*)
11489 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11490 ;;
11491 ia64*)
11492 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11493 ;;
11494 *)
11495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11496 ;;
11497 esac
11498 # Commands to make compiler produce verbose output that lists
11499 # what "hidden" libraries, object files and flags are used when
11500 # linking a shared library.
11501 #
11502 # There doesn't appear to be a way to prevent this compiler from
11503 # explicitly linking system object files so we need to strip them
11504 # from the output so that they don't get included in the library
11505 # dependencies.
11506 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11507 ;;
11508 *)
11509 if test "$GXX" = yes; then
11510 if test $with_gnu_ld = no; then
11511 case $host_cpu in
11512 hppa*64*)
11513 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11514 ;;
11515 ia64*)
11516 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517 ;;
11518 *)
11519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11520 ;;
11521 esac
11522 fi
11523 else
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11526 fi
11527 ;;
11528 esac
11529 ;;
11530 interix3*)
11531 hardcode_direct_CXX=no
11532 hardcode_shlibpath_var_CXX=no
11533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11534 export_dynamic_flag_spec_CXX='${wl}-E'
11535 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11536 # Instead, shared libraries are loaded at an image base (0x10000000 by
11537 # default) and relocated if they conflict, which is a slow very memory
11538 # consuming and fragmenting process. To avoid this, we pick a random,
11539 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11540 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11541 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11542 archive_expsym_cmds_CXX='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'
11543 ;;
11544 irix5* | irix6*)
11545 case $cc_basename in
11546 CC*)
11547 # SGI C++
11548 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11549
11550 # Archives containing C++ object files must be created using
11551 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11552 # necessary to make sure instantiated templates are included
11553 # in the archive.
11554 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11555 ;;
11556 *)
11557 if test "$GXX" = yes; then
11558 if test "$with_gnu_ld" = no; then
11559 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11560 else
11561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11562 fi
11563 fi
11564 link_all_deplibs_CXX=yes
11565 ;;
11566 esac
11567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11568 hardcode_libdir_separator_CXX=:
11569 ;;
11570 linux*)
11571 case $cc_basename in
11572 KCC*)
11573 # Kuck and Associates, Inc. (KAI) C++ Compiler
11574
11575 # KCC will only create a shared library if the output file
11576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11577 # to its proper name (with version) after linking.
11578 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11579 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11583 #
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11587 # dependencies.
11588 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11589
11590 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11592
11593 # Archives containing C++ object files must be created using
11594 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11595 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11596 ;;
11597 icpc*)
11598 # Intel C++
11599 with_gnu_ld=yes
11600 # version 8.0 and above of icpc choke on multiply defined symbols
11601 # if we add $predep_objects and $postdep_objects, however 7.1 and
11602 # earlier do not add the objects themselves.
11603 case `$CC -V 2>&1` in
11604 *"Version 7."*)
11605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11606 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11607 ;;
11608 *) # Version 8.0 or newer
11609 tmp_idyn=
11610 case $host_cpu in
11611 ia64*) tmp_idyn=' -i_dynamic';;
11612 esac
11613 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11615 ;;
11616 esac
11617 archive_cmds_need_lc_CXX=no
11618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11620 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11621 ;;
11622 pgCC*)
11623 # Portland Group C++ compiler
11624 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11625 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11626
11627 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11629 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11630 ;;
11631 cxx*)
11632 # Compaq C++
11633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11634 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11635
11636 runpath_var=LD_RUN_PATH
11637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11638 hardcode_libdir_separator_CXX=:
11639
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11643 #
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11647 # dependencies.
11648 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11649 ;;
11650 esac
11651 ;;
11652 lynxos*)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 m88k*)
11657 # FIXME: insert proper C++ library support
11658 ld_shlibs_CXX=no
11659 ;;
11660 mvs*)
11661 case $cc_basename in
11662 cxx*)
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 ;;
11666 *)
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11669 ;;
11670 esac
11671 ;;
11672 netbsd*)
11673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11674 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11675 wlarc=
11676 hardcode_libdir_flag_spec_CXX='-R$libdir'
11677 hardcode_direct_CXX=yes
11678 hardcode_shlibpath_var_CXX=no
11679 fi
11680 # Workaround some broken pre-1.5 toolchains
11681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11682 ;;
11683 openbsd2*)
11684 # C++ shared libraries are fairly broken
11685 ld_shlibs_CXX=no
11686 ;;
11687 openbsd*)
11688 hardcode_direct_CXX=yes
11689 hardcode_shlibpath_var_CXX=no
11690 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11693 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11694 export_dynamic_flag_spec_CXX='${wl}-E'
11695 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11696 fi
11697 output_verbose_link_cmd='echo'
11698 ;;
11699 osf3*)
11700 case $cc_basename in
11701 KCC*)
11702 # Kuck and Associates, Inc. (KAI) C++ Compiler
11703
11704 # KCC will only create a shared library if the output file
11705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11706 # to its proper name (with version) after linking.
11707 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11708
11709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11710 hardcode_libdir_separator_CXX=:
11711
11712 # Archives containing C++ object files must be created using
11713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11715
11716 ;;
11717 RCC*)
11718 # Rational C++ 2.4.1
11719 # FIXME: insert proper C++ library support
11720 ld_shlibs_CXX=no
11721 ;;
11722 cxx*)
11723 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11724 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11725
11726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11727 hardcode_libdir_separator_CXX=:
11728
11729 # Commands to make compiler produce verbose output that lists
11730 # what "hidden" libraries, object files and flags are used when
11731 # linking a shared library.
11732 #
11733 # There doesn't appear to be a way to prevent this compiler from
11734 # explicitly linking system object files so we need to strip them
11735 # from the output so that they don't get included in the library
11736 # dependencies.
11737 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11738 ;;
11739 *)
11740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11741 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11742 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11743
11744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11745 hardcode_libdir_separator_CXX=:
11746
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11751
11752 else
11753 # FIXME: insert proper C++ library support
11754 ld_shlibs_CXX=no
11755 fi
11756 ;;
11757 esac
11758 ;;
11759 osf4* | osf5*)
11760 case $cc_basename in
11761 KCC*)
11762 # Kuck and Associates, Inc. (KAI) C++ Compiler
11763
11764 # KCC will only create a shared library if the output file
11765 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11766 # to its proper name (with version) after linking.
11767 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11768
11769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11770 hardcode_libdir_separator_CXX=:
11771
11772 # Archives containing C++ object files must be created using
11773 # the KAI C++ compiler.
11774 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11775 ;;
11776 RCC*)
11777 # Rational C++ 2.4.1
11778 # FIXME: insert proper C++ library support
11779 ld_shlibs_CXX=no
11780 ;;
11781 cxx*)
11782 allow_undefined_flag_CXX=' -expect_unresolved \*'
11783 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11784 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11785 echo "-hidden">> $lib.exp~
11786 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11787 $rm $lib.exp'
11788
11789 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11790 hardcode_libdir_separator_CXX=:
11791
11792 # Commands to make compiler produce verbose output that lists
11793 # what "hidden" libraries, object files and flags are used when
11794 # linking a shared library.
11795 #
11796 # There doesn't appear to be a way to prevent this compiler from
11797 # explicitly linking system object files so we need to strip them
11798 # from the output so that they don't get included in the library
11799 # dependencies.
11800 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11801 ;;
11802 *)
11803 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11804 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11805 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11806
11807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11808 hardcode_libdir_separator_CXX=:
11809
11810 # Commands to make compiler produce verbose output that lists
11811 # what "hidden" libraries, object files and flags are used when
11812 # linking a shared library.
11813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11814
11815 else
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11818 fi
11819 ;;
11820 esac
11821 ;;
11822 psos*)
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11825 ;;
11826 sunos4*)
11827 case $cc_basename in
11828 CC*)
11829 # Sun C++ 4.x
11830 # FIXME: insert proper C++ library support
11831 ld_shlibs_CXX=no
11832 ;;
11833 lcc*)
11834 # Lucid
11835 # FIXME: insert proper C++ library support
11836 ld_shlibs_CXX=no
11837 ;;
11838 *)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 ;;
11842 esac
11843 ;;
11844 solaris*)
11845 case $cc_basename in
11846 CC*)
11847 # Sun C++ 4.2, 5.x and Centerline C++
11848 archive_cmds_need_lc_CXX=yes
11849 no_undefined_flag_CXX=' -zdefs'
11850 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11852 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11853
11854 hardcode_libdir_flag_spec_CXX='-R$libdir'
11855 hardcode_shlibpath_var_CXX=no
11856 case $host_os in
11857 solaris2.[0-5] | solaris2.[0-5].*) ;;
11858 *)
11859 # The C++ compiler is used as linker so we must use $wl
11860 # flag to pass the commands to the underlying system
11861 # linker. We must also pass each convience library through
11862 # to the system linker between allextract/defaultextract.
11863 # The C++ compiler will combine linker options so we
11864 # cannot just pass the convience library names through
11865 # without $wl.
11866 # Supported since Solaris 2.6 (maybe 2.5.1?)
11867 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11868 ;;
11869 esac
11870 link_all_deplibs_CXX=yes
11871
11872 output_verbose_link_cmd='echo'
11873
11874 # Archives containing C++ object files must be created using
11875 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11876 # necessary to make sure instantiated templates are included
11877 # in the archive.
11878 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11879 ;;
11880 gcx*)
11881 # Green Hills C++ Compiler
11882 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11883
11884 # The C++ compiler must be used to create the archive.
11885 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11886 ;;
11887 *)
11888 # GNU C++ compiler with Solaris linker
11889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11890 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11891 if $CC --version | grep -v '^2\.7' > /dev/null; then
11892 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11894 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11895
11896 # Commands to make compiler produce verbose output that lists
11897 # what "hidden" libraries, object files and flags are used when
11898 # linking a shared library.
11899 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11900 else
11901 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11902 # platform.
11903 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11904 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11905 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11906
11907 # Commands to make compiler produce verbose output that lists
11908 # what "hidden" libraries, object files and flags are used when
11909 # linking a shared library.
11910 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11911 fi
11912
11913 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11914 fi
11915 ;;
11916 esac
11917 ;;
11918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11919 no_undefined_flag_CXX='${wl}-z,text'
11920 archive_cmds_need_lc_CXX=no
11921 hardcode_shlibpath_var_CXX=no
11922 runpath_var='LD_RUN_PATH'
11923
11924 case $cc_basename in
11925 CC*)
11926 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 ;;
11929 *)
11930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 ;;
11933 esac
11934 ;;
11935 sysv5* | sco3.2v5* | sco5v6*)
11936 # Note: We can NOT use -z defs as we might desire, because we do not
11937 # link with -lc, and that would cause any symbols used from libc to
11938 # always be unresolved, which means just about no library would
11939 # ever link correctly. If we're not using GNU ld we use -z text
11940 # though, which does catch some bad symbols but isn't as heavy-handed
11941 # as -z defs.
11942 # For security reasons, it is highly recommended that you always
11943 # use absolute paths for naming shared libraries, and exclude the
11944 # DT_RUNPATH tag from executables and libraries. But doing so
11945 # requires that you compile everything twice, which is a pain.
11946 # So that behaviour is only enabled if SCOABSPATH is set to a
11947 # non-empty value in the environment. Most likely only useful for
11948 # creating official distributions of packages.
11949 # This is a hack until libtool officially supports absolute path
11950 # names for shared libraries.
11951 no_undefined_flag_CXX='${wl}-z,text'
11952 allow_undefined_flag_CXX='${wl}-z,nodefs'
11953 archive_cmds_need_lc_CXX=no
11954 hardcode_shlibpath_var_CXX=no
11955 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11956 hardcode_libdir_separator_CXX=':'
11957 link_all_deplibs_CXX=yes
11958 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11959 runpath_var='LD_RUN_PATH'
11960
11961 case $cc_basename in
11962 CC*)
11963 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 ;;
11966 *)
11967 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 ;;
11970 esac
11971 ;;
11972 tandem*)
11973 case $cc_basename in
11974 NCC*)
11975 # NonStop-UX NCC 3.20
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 ;;
11979 *)
11980 # FIXME: insert proper C++ library support
11981 ld_shlibs_CXX=no
11982 ;;
11983 esac
11984 ;;
11985 vxworks*)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11988 ;;
11989 *)
11990 # FIXME: insert proper C++ library support
11991 ld_shlibs_CXX=no
11992 ;;
11993esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080011994{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070011995$as_echo "$ld_shlibs_CXX" >&6; }
11996test "$ld_shlibs_CXX" = no && can_build_shared=no
11997
11998GCC_CXX="$GXX"
11999LD_CXX="$LD"
12000
12001
12002cat > conftest.$ac_ext <<EOF
12003class Foo
12004{
12005public:
12006 Foo (void) { a = 0; }
12007private:
12008 int a;
12009};
12010EOF
12011
Jef Poskanzer437537f2012-11-30 12:16:17 -080012012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070012013 (eval $ac_compile) 2>&5
12014 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080012015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -070012017 # Parse the compiler output and extract the necessary
12018 # objects, libraries and library flags.
12019
12020 # Sentinel used to keep track of whether or not we are before
12021 # the conftest object file.
12022 pre_test_object_deps_done=no
12023
12024 # The `*' in the case matches for architectures that use `case' in
12025 # $output_verbose_cmd can trigger glob expansion during the loop
12026 # eval without this substitution.
12027 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12028
12029 for p in `eval $output_verbose_link_cmd`; do
12030 case $p in
12031
12032 -L* | -R* | -l*)
12033 # Some compilers place space between "-{L,R}" and the path.
12034 # Remove the space.
12035 if test $p = "-L" \
12036 || test $p = "-R"; then
12037 prev=$p
12038 continue
12039 else
12040 prev=
12041 fi
12042
12043 if test "$pre_test_object_deps_done" = no; then
12044 case $p in
12045 -L* | -R*)
12046 # Internal compiler library paths should come after those
12047 # provided the user. The postdeps already come after the
12048 # user supplied libs so there is no need to process them.
12049 if test -z "$compiler_lib_search_path_CXX"; then
12050 compiler_lib_search_path_CXX="${prev}${p}"
12051 else
12052 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12053 fi
12054 ;;
12055 # The "-l" case would never come before the object being
12056 # linked, so don't bother handling this case.
12057 esac
12058 else
12059 if test -z "$postdeps_CXX"; then
12060 postdeps_CXX="${prev}${p}"
12061 else
12062 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12063 fi
12064 fi
12065 ;;
12066
12067 *.$objext)
12068 # This assumes that the test object file only shows up
12069 # once in the compiler output.
12070 if test "$p" = "conftest.$objext"; then
12071 pre_test_object_deps_done=yes
12072 continue
12073 fi
12074
12075 if test "$pre_test_object_deps_done" = no; then
12076 if test -z "$predep_objects_CXX"; then
12077 predep_objects_CXX="$p"
12078 else
12079 predep_objects_CXX="$predep_objects_CXX $p"
12080 fi
12081 else
12082 if test -z "$postdep_objects_CXX"; then
12083 postdep_objects_CXX="$p"
12084 else
12085 postdep_objects_CXX="$postdep_objects_CXX $p"
12086 fi
12087 fi
12088 ;;
12089
12090 *) ;; # Ignore the rest.
12091
12092 esac
12093 done
12094
12095 # Clean up.
12096 rm -f a.out a.exe
12097else
12098 echo "libtool.m4: error: problem compiling CXX test program"
12099fi
12100
12101$rm -f confest.$objext
12102
12103# PORTME: override above test on systems where it is broken
12104case $host_os in
12105interix3*)
12106 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12107 # hack all around it, let's just trust "g++" to DTRT.
12108 predep_objects_CXX=
12109 postdep_objects_CXX=
12110 postdeps_CXX=
12111 ;;
12112
12113solaris*)
12114 case $cc_basename in
12115 CC*)
12116 # Adding this requires a known-good setup of shared libraries for
12117 # Sun compiler versions before 5.6, else PIC objects from an old
12118 # archive will be linked into the output, leading to subtle bugs.
12119 postdeps_CXX='-lCstd -lCrun'
12120 ;;
12121 esac
12122 ;;
12123esac
12124
12125
12126case " $postdeps_CXX " in
12127*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12128esac
12129
12130lt_prog_compiler_wl_CXX=
12131lt_prog_compiler_pic_CXX=
12132lt_prog_compiler_static_CXX=
12133
Jef Poskanzer437537f2012-11-30 12:16:17 -080012134{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
jef56a97f92012-08-20 14:35:58 -070012135$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12136
12137 # C++ specific cases for pic, static, wl, etc.
12138 if test "$GXX" = yes; then
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 lt_prog_compiler_static_CXX='-static'
12141
12142 case $host_os in
12143 aix*)
12144 # All AIX code is PIC.
12145 if test "$host_cpu" = ia64; then
12146 # AIX 5 now supports IA64 processor
12147 lt_prog_compiler_static_CXX='-Bstatic'
12148 fi
12149 ;;
12150 amigaos*)
12151 # FIXME: we need at least 68020 code to build shared libraries, but
12152 # adding the `-m68020' flag to GCC prevents building anything better,
12153 # like `-m68040'.
12154 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12155 ;;
12156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12157 # PIC is the default for these OSes.
12158 ;;
12159 mingw* | os2* | pw32*)
12160 # This hack is so that the source file can tell whether it is being
12161 # built for inclusion in a dll (and should export symbols for example).
12162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12163 ;;
12164 darwin* | rhapsody*)
12165 # PIC is the default on this platform
12166 # Common symbols not allowed in MH_DYLIB files
12167 lt_prog_compiler_pic_CXX='-fno-common'
12168 ;;
12169 *djgpp*)
12170 # DJGPP does not support shared libraries at all
12171 lt_prog_compiler_pic_CXX=
12172 ;;
12173 interix3*)
12174 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12175 # Instead, we relocate shared libraries at runtime.
12176 ;;
12177 sysv4*MP*)
12178 if test -d /usr/nec; then
12179 lt_prog_compiler_pic_CXX=-Kconform_pic
12180 fi
12181 ;;
12182 hpux*)
12183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12184 # not for PA HP-UX.
12185 case $host_cpu in
12186 hppa*64*|ia64*)
12187 ;;
12188 *)
12189 lt_prog_compiler_pic_CXX='-fPIC'
12190 ;;
12191 esac
12192 ;;
12193 *)
12194 lt_prog_compiler_pic_CXX='-fPIC'
12195 ;;
12196 esac
12197 else
12198 case $host_os in
12199 aix4* | aix5*)
12200 # All AIX code is PIC.
12201 if test "$host_cpu" = ia64; then
12202 # AIX 5 now supports IA64 processor
12203 lt_prog_compiler_static_CXX='-Bstatic'
12204 else
12205 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12206 fi
12207 ;;
12208 chorus*)
12209 case $cc_basename in
12210 cxch68*)
12211 # Green Hills C++ Compiler
12212 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12213 ;;
12214 esac
12215 ;;
12216 darwin*)
12217 # PIC is the default on this platform
12218 # Common symbols not allowed in MH_DYLIB files
12219 case $cc_basename in
12220 xlc*)
12221 lt_prog_compiler_pic_CXX='-qnocommon'
12222 lt_prog_compiler_wl_CXX='-Wl,'
12223 ;;
12224 esac
12225 ;;
12226 dgux*)
12227 case $cc_basename in
12228 ec++*)
12229 lt_prog_compiler_pic_CXX='-KPIC'
12230 ;;
12231 ghcx*)
12232 # Green Hills C++ Compiler
12233 lt_prog_compiler_pic_CXX='-pic'
12234 ;;
12235 *)
12236 ;;
12237 esac
12238 ;;
12239 freebsd* | kfreebsd*-gnu | dragonfly*)
12240 # FreeBSD uses GNU C++
12241 ;;
12242 hpux9* | hpux10* | hpux11*)
12243 case $cc_basename in
12244 CC*)
12245 lt_prog_compiler_wl_CXX='-Wl,'
12246 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12247 if test "$host_cpu" != ia64; then
12248 lt_prog_compiler_pic_CXX='+Z'
12249 fi
12250 ;;
12251 aCC*)
12252 lt_prog_compiler_wl_CXX='-Wl,'
12253 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12254 case $host_cpu in
12255 hppa*64*|ia64*)
12256 # +Z the default
12257 ;;
12258 *)
12259 lt_prog_compiler_pic_CXX='+Z'
12260 ;;
12261 esac
12262 ;;
12263 *)
12264 ;;
12265 esac
12266 ;;
12267 interix*)
12268 # This is c89, which is MS Visual C++ (no shared libs)
12269 # Anyone wants to do a port?
12270 ;;
12271 irix5* | irix6* | nonstopux*)
12272 case $cc_basename in
12273 CC*)
12274 lt_prog_compiler_wl_CXX='-Wl,'
12275 lt_prog_compiler_static_CXX='-non_shared'
12276 # CC pic flag -KPIC is the default.
12277 ;;
12278 *)
12279 ;;
12280 esac
12281 ;;
12282 linux*)
12283 case $cc_basename in
12284 KCC*)
12285 # KAI C++ Compiler
12286 lt_prog_compiler_wl_CXX='--backend -Wl,'
12287 lt_prog_compiler_pic_CXX='-fPIC'
12288 ;;
12289 icpc* | ecpc*)
12290 # Intel C++
12291 lt_prog_compiler_wl_CXX='-Wl,'
12292 lt_prog_compiler_pic_CXX='-KPIC'
12293 lt_prog_compiler_static_CXX='-static'
12294 ;;
12295 pgCC*)
12296 # Portland Group C++ compiler.
12297 lt_prog_compiler_wl_CXX='-Wl,'
12298 lt_prog_compiler_pic_CXX='-fpic'
12299 lt_prog_compiler_static_CXX='-Bstatic'
12300 ;;
12301 cxx*)
12302 # Compaq C++
12303 # Make sure the PIC flag is empty. It appears that all Alpha
12304 # Linux and Compaq Tru64 Unix objects are PIC.
12305 lt_prog_compiler_pic_CXX=
12306 lt_prog_compiler_static_CXX='-non_shared'
12307 ;;
12308 *)
12309 ;;
12310 esac
12311 ;;
12312 lynxos*)
12313 ;;
12314 m88k*)
12315 ;;
12316 mvs*)
12317 case $cc_basename in
12318 cxx*)
12319 lt_prog_compiler_pic_CXX='-W c,exportall'
12320 ;;
12321 *)
12322 ;;
12323 esac
12324 ;;
12325 netbsd*)
12326 ;;
12327 osf3* | osf4* | osf5*)
12328 case $cc_basename in
12329 KCC*)
12330 lt_prog_compiler_wl_CXX='--backend -Wl,'
12331 ;;
12332 RCC*)
12333 # Rational C++ 2.4.1
12334 lt_prog_compiler_pic_CXX='-pic'
12335 ;;
12336 cxx*)
12337 # Digital/Compaq C++
12338 lt_prog_compiler_wl_CXX='-Wl,'
12339 # Make sure the PIC flag is empty. It appears that all Alpha
12340 # Linux and Compaq Tru64 Unix objects are PIC.
12341 lt_prog_compiler_pic_CXX=
12342 lt_prog_compiler_static_CXX='-non_shared'
12343 ;;
12344 *)
12345 ;;
12346 esac
12347 ;;
12348 psos*)
12349 ;;
12350 solaris*)
12351 case $cc_basename in
12352 CC*)
12353 # Sun C++ 4.2, 5.x and Centerline C++
12354 lt_prog_compiler_pic_CXX='-KPIC'
12355 lt_prog_compiler_static_CXX='-Bstatic'
12356 lt_prog_compiler_wl_CXX='-Qoption ld '
12357 ;;
12358 gcx*)
12359 # Green Hills C++ Compiler
12360 lt_prog_compiler_pic_CXX='-PIC'
12361 ;;
12362 *)
12363 ;;
12364 esac
12365 ;;
12366 sunos4*)
12367 case $cc_basename in
12368 CC*)
12369 # Sun C++ 4.x
12370 lt_prog_compiler_pic_CXX='-pic'
12371 lt_prog_compiler_static_CXX='-Bstatic'
12372 ;;
12373 lcc*)
12374 # Lucid
12375 lt_prog_compiler_pic_CXX='-pic'
12376 ;;
12377 *)
12378 ;;
12379 esac
12380 ;;
12381 tandem*)
12382 case $cc_basename in
12383 NCC*)
12384 # NonStop-UX NCC 3.20
12385 lt_prog_compiler_pic_CXX='-KPIC'
12386 ;;
12387 *)
12388 ;;
12389 esac
12390 ;;
12391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12392 case $cc_basename in
12393 CC*)
12394 lt_prog_compiler_wl_CXX='-Wl,'
12395 lt_prog_compiler_pic_CXX='-KPIC'
12396 lt_prog_compiler_static_CXX='-Bstatic'
12397 ;;
12398 esac
12399 ;;
12400 vxworks*)
12401 ;;
12402 *)
12403 lt_prog_compiler_can_build_shared_CXX=no
12404 ;;
12405 esac
12406 fi
12407
Jef Poskanzer437537f2012-11-30 12:16:17 -080012408{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012409$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12410
12411#
12412# Check to make sure the PIC flag actually works.
12413#
12414if test -n "$lt_prog_compiler_pic_CXX"; then
12415
Jef Poskanzer437537f2012-11-30 12:16:17 -080012416{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
jef56a97f92012-08-20 14:35:58 -070012417$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012418if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070012419 $as_echo_n "(cached) " >&6
12420else
12421 lt_prog_compiler_pic_works_CXX=no
12422 ac_outfile=conftest.$ac_objext
12423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12425 # Insert the option either (1) after the last *FLAGS variable, or
12426 # (2) before a word containing "conftest.", or (3) at the end.
12427 # Note that $ac_compile itself does not contain backslashes and begins
12428 # with a dollar sign (not a hyphen), so the echo should work correctly.
12429 # The option is referenced via a variable to avoid confusing sed.
12430 lt_compile=`echo "$ac_compile" | $SED \
12431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12433 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080012434 (eval echo "\"\$as_me:12434: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070012435 (eval "$lt_compile" 2>conftest.err)
12436 ac_status=$?
12437 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080012438 echo "$as_me:12438: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070012439 if (exit $ac_status) && test -s "$ac_outfile"; then
12440 # The compiler can only warn and ignore the option if not recognized
12441 # So say no if there are warnings other than the usual output.
12442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12445 lt_prog_compiler_pic_works_CXX=yes
12446 fi
12447 fi
12448 $rm conftest*
12449
12450fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012451{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012452$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12453
12454if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12455 case $lt_prog_compiler_pic_CXX in
12456 "" | " "*) ;;
12457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12458 esac
12459else
12460 lt_prog_compiler_pic_CXX=
12461 lt_prog_compiler_can_build_shared_CXX=no
12462fi
12463
12464fi
12465case $host_os in
12466 # For platforms which do not support PIC, -DPIC is meaningless:
12467 *djgpp*)
12468 lt_prog_compiler_pic_CXX=
12469 ;;
12470 *)
12471 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12472 ;;
12473esac
12474
12475#
12476# Check to make sure the static flag actually works.
12477#
12478wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Jef Poskanzer437537f2012-11-30 12:16:17 -080012479{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
jef56a97f92012-08-20 14:35:58 -070012480$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012481if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070012482 $as_echo_n "(cached) " >&6
12483else
12484 lt_prog_compiler_static_works_CXX=no
12485 save_LDFLAGS="$LDFLAGS"
12486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12487 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12489 # The linker can only warn and ignore the option if not recognized
12490 # So say no if there are warnings
12491 if test -s conftest.err; then
12492 # Append any errors to the config.log.
12493 cat conftest.err 1>&5
12494 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12496 if diff conftest.exp conftest.er2 >/dev/null; then
12497 lt_prog_compiler_static_works_CXX=yes
12498 fi
12499 else
12500 lt_prog_compiler_static_works_CXX=yes
12501 fi
12502 fi
12503 $rm conftest*
12504 LDFLAGS="$save_LDFLAGS"
12505
12506fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012507{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012508$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12509
12510if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12511 :
12512else
12513 lt_prog_compiler_static_CXX=
12514fi
12515
12516
Jef Poskanzer437537f2012-11-30 12:16:17 -080012517{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
jef56a97f92012-08-20 14:35:58 -070012518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012519if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070012520 $as_echo_n "(cached) " >&6
12521else
12522 lt_cv_prog_compiler_c_o_CXX=no
12523 $rm -r conftest 2>/dev/null
12524 mkdir conftest
12525 cd conftest
12526 mkdir out
12527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12528
12529 lt_compiler_flag="-o out/conftest2.$ac_objext"
12530 # Insert the option either (1) after the last *FLAGS variable, or
12531 # (2) before a word containing "conftest.", or (3) at the end.
12532 # Note that $ac_compile itself does not contain backslashes and begins
12533 # with a dollar sign (not a hyphen), so the echo should work correctly.
12534 lt_compile=`echo "$ac_compile" | $SED \
12535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12537 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080012538 (eval echo "\"\$as_me:12538: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070012539 (eval "$lt_compile" 2>out/conftest.err)
12540 ac_status=$?
12541 cat out/conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080012542 echo "$as_me:12542: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070012543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12544 then
12545 # The compiler can only warn and ignore the option if not recognized
12546 # So say no if there are warnings
12547 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12550 lt_cv_prog_compiler_c_o_CXX=yes
12551 fi
12552 fi
12553 chmod u+w . 2>&5
12554 $rm conftest*
12555 # SGI C++ compiler will create directory out/ii_files/ for
12556 # template instantiation
12557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12558 $rm out/* && rmdir out
12559 cd ..
12560 rmdir conftest
12561 $rm conftest*
12562
12563fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012564{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012565$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12566
12567
12568hard_links="nottested"
12569if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12570 # do not overwrite the value of need_locks provided by the user
Jef Poskanzer437537f2012-11-30 12:16:17 -080012571 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
jef56a97f92012-08-20 14:35:58 -070012572$as_echo_n "checking if we can lock with hard links... " >&6; }
12573 hard_links=yes
12574 $rm conftest*
12575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12576 touch conftest.a
12577 ln conftest.a conftest.b 2>&5 || hard_links=no
12578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jef Poskanzer437537f2012-11-30 12:16:17 -080012579 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
jef56a97f92012-08-20 14:35:58 -070012580$as_echo "$hard_links" >&6; }
12581 if test "$hard_links" = no; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080012582 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
jef56a97f92012-08-20 14:35:58 -070012583$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12584 need_locks=warn
12585 fi
12586else
12587 need_locks=no
12588fi
12589
Jef Poskanzer437537f2012-11-30 12:16:17 -080012590{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070012591$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12592
12593 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12594 case $host_os in
12595 aix4* | aix5*)
12596 # If we're using GNU nm, then we don't want the "-C" option.
12597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12598 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12599 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12600 else
12601 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12602 fi
12603 ;;
12604 pw32*)
12605 export_symbols_cmds_CXX="$ltdll_cmds"
12606 ;;
12607 cygwin* | mingw*)
12608 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12609 ;;
12610 *)
12611 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12612 ;;
12613 esac
12614
Jef Poskanzer437537f2012-11-30 12:16:17 -080012615{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012616$as_echo "$ld_shlibs_CXX" >&6; }
12617test "$ld_shlibs_CXX" = no && can_build_shared=no
12618
12619#
12620# Do we need to explicitly link libc?
12621#
12622case "x$archive_cmds_need_lc_CXX" in
12623x|xyes)
12624 # Assume -lc should be added
12625 archive_cmds_need_lc_CXX=yes
12626
12627 if test "$enable_shared" = yes && test "$GCC" = yes; then
12628 case $archive_cmds_CXX in
12629 *'~'*)
12630 # FIXME: we may have to deal with multi-command sequences.
12631 ;;
12632 '$CC '*)
12633 # Test whether the compiler implicitly links with -lc since on some
12634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12635 # to ld, don't add -lc before -lgcc.
Jef Poskanzer437537f2012-11-30 12:16:17 -080012636 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
jef56a97f92012-08-20 14:35:58 -070012637$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12638 $rm conftest*
12639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12640
Jef Poskanzer437537f2012-11-30 12:16:17 -080012641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070012642 (eval $ac_compile) 2>&5
12643 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080012644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } 2>conftest.err; then
jef56a97f92012-08-20 14:35:58 -070012646 soname=conftest
12647 lib=conftest
12648 libobjs=conftest.$ac_objext
12649 deplibs=
12650 wl=$lt_prog_compiler_wl_CXX
12651 pic_flag=$lt_prog_compiler_pic_CXX
12652 compiler_flags=-v
12653 linker_flags=-v
12654 verstring=
12655 output_objdir=.
12656 libname=conftest
12657 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12658 allow_undefined_flag_CXX=
Jef Poskanzer437537f2012-11-30 12:16:17 -080012659 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
jef56a97f92012-08-20 14:35:58 -070012660 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12661 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080012662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }
jef56a97f92012-08-20 14:35:58 -070012664 then
12665 archive_cmds_need_lc_CXX=no
12666 else
12667 archive_cmds_need_lc_CXX=yes
12668 fi
12669 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12670 else
12671 cat conftest.err 1>&5
12672 fi
12673 $rm conftest*
Jef Poskanzer437537f2012-11-30 12:16:17 -080012674 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070012675$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12676 ;;
12677 esac
12678 fi
12679 ;;
12680esac
12681
Jef Poskanzer437537f2012-11-30 12:16:17 -080012682{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
jef56a97f92012-08-20 14:35:58 -070012683$as_echo_n "checking dynamic linker characteristics... " >&6; }
12684library_names_spec=
12685libname_spec='lib$name'
12686soname_spec=
12687shrext_cmds=".so"
12688postinstall_cmds=
12689postuninstall_cmds=
12690finish_cmds=
12691finish_eval=
12692shlibpath_var=
12693shlibpath_overrides_runpath=unknown
12694version_type=none
12695dynamic_linker="$host_os ld.so"
12696sys_lib_dlsearch_path_spec="/lib /usr/lib"
12697if test "$GCC" = yes; then
12698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12699 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12700 # if the path contains ";" then we assume it to be the separator
12701 # otherwise default to the standard path separator (i.e. ":") - it is
12702 # assumed that no part of a normal pathname contains ";" but that should
12703 # okay in the real world where ";" in dirpaths is itself problematic.
12704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12705 else
12706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12707 fi
12708else
12709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12710fi
12711need_lib_prefix=unknown
12712hardcode_into_libs=no
12713
12714# when you set need_version to no, make sure it does not cause -set_version
12715# flags to be left without arguments
12716need_version=unknown
12717
12718case $host_os in
12719aix3*)
12720 version_type=linux
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12722 shlibpath_var=LIBPATH
12723
12724 # AIX 3 has no versioning support, so we append a major version to the name.
12725 soname_spec='${libname}${release}${shared_ext}$major'
12726 ;;
12727
12728aix4* | aix5*)
12729 version_type=linux
12730 need_lib_prefix=no
12731 need_version=no
12732 hardcode_into_libs=yes
12733 if test "$host_cpu" = ia64; then
12734 # AIX 5 supports IA64
12735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 else
12738 # With GCC up to 2.95.x, collect2 would create an import file
12739 # for dependence libraries. The import file would start with
12740 # the line `#! .'. This would cause the generated library to
12741 # depend on `.', always an invalid library. This was fixed in
12742 # development snapshots of GCC prior to 3.0.
12743 case $host_os in
12744 aix4 | aix4.[01] | aix4.[01].*)
12745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12746 echo ' yes '
12747 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12748 :
12749 else
12750 can_build_shared=no
12751 fi
12752 ;;
12753 esac
12754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12755 # soname into executable. Probably we can add versioning support to
12756 # collect2, so additional links can be useful in future.
12757 if test "$aix_use_runtimelinking" = yes; then
12758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12759 # instead of lib<name>.a to let people know that these are not
12760 # typical AIX shared libraries.
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762 else
12763 # We preserve .a as extension for shared libraries through AIX4.2
12764 # and later when we are not doing run time linking.
12765 library_names_spec='${libname}${release}.a $libname.a'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 fi
12768 shlibpath_var=LIBPATH
12769 fi
12770 ;;
12771
12772amigaos*)
12773 library_names_spec='$libname.ixlibrary $libname.a'
12774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12775 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'
12776 ;;
12777
12778beos*)
12779 library_names_spec='${libname}${shared_ext}'
12780 dynamic_linker="$host_os ld.so"
12781 shlibpath_var=LIBRARY_PATH
12782 ;;
12783
12784bsdi[45]*)
12785 version_type=linux
12786 need_version=no
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12793 # the default ld.so.conf also contains /usr/contrib/lib and
12794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12795 # libtool to hard-code these into programs
12796 ;;
12797
12798cygwin* | mingw* | pw32*)
12799 version_type=windows
12800 shrext_cmds=".dll"
12801 need_version=no
12802 need_lib_prefix=no
12803
12804 case $GCC,$host_os in
12805 yes,cygwin* | yes,mingw* | yes,pw32*)
12806 library_names_spec='$libname.dll.a'
12807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12808 postinstall_cmds='base_file=`basename \${file}`~
12809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12810 dldir=$destdir/`dirname \$dlpath`~
12811 test -d \$dldir || mkdir -p \$dldir~
12812 $install_prog $dir/$dlname \$dldir/$dlname~
12813 chmod a+x \$dldir/$dlname'
12814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12815 dlpath=$dir/\$dldll~
12816 $rm \$dlpath'
12817 shlibpath_overrides_runpath=yes
12818
12819 case $host_os in
12820 cygwin*)
12821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12824 ;;
12825 mingw*)
12826 # MinGW DLLs use traditional 'lib' prefix
12827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12830 # It is most probably a Windows format PATH printed by
12831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12832 # path with ; separators, and with drive letters. We can handle the
12833 # drive letters (cygwin fileutils understands them), so leave them,
12834 # especially as we might pass files found there to a mingw objdump,
12835 # which wouldn't understand a cygwinified path. Ahh.
12836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12837 else
12838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12839 fi
12840 ;;
12841 pw32*)
12842 # pw32 DLLs use 'pw' prefix rather than 'lib'
12843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12844 ;;
12845 esac
12846 ;;
12847
12848 *)
12849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12850 ;;
12851 esac
12852 dynamic_linker='Win32 ld.exe'
12853 # FIXME: first we should search . and the directory the executable is in
12854 shlibpath_var=PATH
12855 ;;
12856
12857darwin* | rhapsody*)
12858 dynamic_linker="$host_os dyld"
12859 version_type=darwin
12860 need_lib_prefix=no
12861 need_version=no
12862 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12863 soname_spec='${libname}${release}${major}$shared_ext'
12864 shlibpath_overrides_runpath=yes
12865 shlibpath_var=DYLD_LIBRARY_PATH
12866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12867 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12868 if test "$GCC" = yes; then
12869 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12870 else
12871 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12872 fi
12873 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12874 ;;
12875
12876dgux*)
12877 version_type=linux
12878 need_lib_prefix=no
12879 need_version=no
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 ;;
12884
12885freebsd1*)
12886 dynamic_linker=no
12887 ;;
12888
12889kfreebsd*-gnu)
12890 version_type=linux
12891 need_lib_prefix=no
12892 need_version=no
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 shlibpath_overrides_runpath=no
12897 hardcode_into_libs=yes
12898 dynamic_linker='GNU ld.so'
12899 ;;
12900
12901freebsd* | dragonfly*)
12902 # DragonFly does not have aout. When/if they implement a new
12903 # versioning mechanism, adjust this.
12904 if test -x /usr/bin/objformat; then
12905 objformat=`/usr/bin/objformat`
12906 else
12907 case $host_os in
12908 freebsd[123]*) objformat=aout ;;
12909 *) objformat=elf ;;
12910 esac
12911 fi
12912 version_type=freebsd-$objformat
12913 case $version_type in
12914 freebsd-elf*)
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12916 need_version=no
12917 need_lib_prefix=no
12918 ;;
12919 freebsd-*)
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12921 need_version=yes
12922 ;;
12923 esac
12924 shlibpath_var=LD_LIBRARY_PATH
12925 case $host_os in
12926 freebsd2*)
12927 shlibpath_overrides_runpath=yes
12928 ;;
12929 freebsd3.[01]* | freebsdelf3.[01]*)
12930 shlibpath_overrides_runpath=yes
12931 hardcode_into_libs=yes
12932 ;;
12933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12935 shlibpath_overrides_runpath=no
12936 hardcode_into_libs=yes
12937 ;;
12938 freebsd*) # from 4.6 on
12939 shlibpath_overrides_runpath=yes
12940 hardcode_into_libs=yes
12941 ;;
12942 esac
12943 ;;
12944
12945gnu*)
12946 version_type=linux
12947 need_lib_prefix=no
12948 need_version=no
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LD_LIBRARY_PATH
12952 hardcode_into_libs=yes
12953 ;;
12954
12955hpux9* | hpux10* | hpux11*)
12956 # Give a soname corresponding to the major version so that dld.sl refuses to
12957 # link against other versions.
12958 version_type=sunos
12959 need_lib_prefix=no
12960 need_version=no
12961 case $host_cpu in
12962 ia64*)
12963 shrext_cmds='.so'
12964 hardcode_into_libs=yes
12965 dynamic_linker="$host_os dld.so"
12966 shlibpath_var=LD_LIBRARY_PATH
12967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 if test "X$HPUX_IA64_MODE" = X32; then
12971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12972 else
12973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12974 fi
12975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12976 ;;
12977 hppa*64*)
12978 shrext_cmds='.sl'
12979 hardcode_into_libs=yes
12980 dynamic_linker="$host_os dld.sl"
12981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12987 ;;
12988 *)
12989 shrext_cmds='.sl'
12990 dynamic_linker="$host_os dld.sl"
12991 shlibpath_var=SHLIB_PATH
12992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 ;;
12996 esac
12997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12998 postinstall_cmds='chmod 555 $lib'
12999 ;;
13000
13001interix3*)
13002 version_type=linux
13003 need_lib_prefix=no
13004 need_version=no
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=no
13010 hardcode_into_libs=yes
13011 ;;
13012
13013irix5* | irix6* | nonstopux*)
13014 case $host_os in
13015 nonstopux*) version_type=nonstopux ;;
13016 *)
13017 if test "$lt_cv_prog_gnu_ld" = yes; then
13018 version_type=linux
13019 else
13020 version_type=irix
13021 fi ;;
13022 esac
13023 need_lib_prefix=no
13024 need_version=no
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13027 case $host_os in
13028 irix5* | nonstopux*)
13029 libsuff= shlibsuff=
13030 ;;
13031 *)
13032 case $LD in # libtool.m4 will add one of these switches to LD
13033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13034 libsuff= shlibsuff= libmagic=32-bit;;
13035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13036 libsuff=32 shlibsuff=N32 libmagic=N32;;
13037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13039 *) libsuff= shlibsuff= libmagic=never-match;;
13040 esac
13041 ;;
13042 esac
13043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13044 shlibpath_overrides_runpath=no
13045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13047 hardcode_into_libs=yes
13048 ;;
13049
13050# No shared lib support for Linux oldld, aout, or coff.
13051linux*oldld* | linux*aout* | linux*coff*)
13052 dynamic_linker=no
13053 ;;
13054
13055# This must be Linux ELF.
13056linux*)
13057 version_type=linux
13058 need_lib_prefix=no
13059 need_version=no
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13063 shlibpath_var=LD_LIBRARY_PATH
13064 shlibpath_overrides_runpath=no
13065 # This implies no fast_install, which is unacceptable.
13066 # Some rework will be needed to allow for fast_install
13067 # before this can be enabled.
13068 hardcode_into_libs=yes
13069
13070 # find out which ABI we are using
13071 libsuff=
13072 case "$host_cpu" in
13073 x86_64*|s390x*|powerpc64*)
Jef Poskanzer437537f2012-11-30 12:16:17 -080013074 echo '#line 13074 "configure"' > conftest.$ac_ext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070013076 (eval $ac_compile) 2>&5
13077 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080013078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -070013080 case `/usr/bin/file conftest.$ac_objext` in
13081 *64-bit*)
13082 libsuff=64
13083 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13084 ;;
13085 esac
13086 fi
13087 rm -rf conftest*
13088 ;;
13089 esac
13090
13091 # Append ld.so.conf contents to the search path
13092 if test -f /etc/ld.so.conf; then
13093 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13094 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13095 fi
13096
13097 # We used to test for /lib/ld.so.1 and disable shared libraries on
13098 # powerpc, because MkLinux only supported shared libraries with the
13099 # GNU dynamic linker. Since this was broken with cross compilers,
13100 # most powerpc-linux boxes support dynamic linking these days and
13101 # people can always --disable-shared, the test was removed, and we
13102 # assume the GNU/Linux dynamic linker is in use.
13103 dynamic_linker='GNU/Linux ld.so'
13104 ;;
13105
13106knetbsd*-gnu)
13107 version_type=linux
13108 need_lib_prefix=no
13109 need_version=no
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13111 soname_spec='${libname}${release}${shared_ext}$major'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 shlibpath_overrides_runpath=no
13114 hardcode_into_libs=yes
13115 dynamic_linker='GNU ld.so'
13116 ;;
13117
13118netbsd*)
13119 version_type=sunos
13120 need_lib_prefix=no
13121 need_version=no
13122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13125 dynamic_linker='NetBSD (a.out) ld.so'
13126 else
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 dynamic_linker='NetBSD ld.elf_so'
13130 fi
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=yes
13133 hardcode_into_libs=yes
13134 ;;
13135
13136newsos6)
13137 version_type=linux
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13141 ;;
13142
13143nto-qnx*)
13144 version_type=linux
13145 need_lib_prefix=no
13146 need_version=no
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 shlibpath_overrides_runpath=yes
13151 ;;
13152
13153openbsd*)
13154 version_type=sunos
13155 sys_lib_dlsearch_path_spec="/usr/lib"
13156 need_lib_prefix=no
13157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13158 case $host_os in
13159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13160 *) need_version=no ;;
13161 esac
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13166 case $host_os in
13167 openbsd2.[89] | openbsd2.[89].*)
13168 shlibpath_overrides_runpath=no
13169 ;;
13170 *)
13171 shlibpath_overrides_runpath=yes
13172 ;;
13173 esac
13174 else
13175 shlibpath_overrides_runpath=yes
13176 fi
13177 ;;
13178
13179os2*)
13180 libname_spec='$name'
13181 shrext_cmds=".dll"
13182 need_lib_prefix=no
13183 library_names_spec='$libname${shared_ext} $libname.a'
13184 dynamic_linker='OS/2 ld.exe'
13185 shlibpath_var=LIBPATH
13186 ;;
13187
13188osf3* | osf4* | osf5*)
13189 version_type=osf
13190 need_lib_prefix=no
13191 need_version=no
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13197 ;;
13198
13199solaris*)
13200 version_type=linux
13201 need_lib_prefix=no
13202 need_version=no
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=yes
13207 hardcode_into_libs=yes
13208 # ldd complains unless libraries are executable
13209 postinstall_cmds='chmod +x $lib'
13210 ;;
13211
13212sunos4*)
13213 version_type=sunos
13214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=yes
13218 if test "$with_gnu_ld" = yes; then
13219 need_lib_prefix=no
13220 fi
13221 need_version=yes
13222 ;;
13223
13224sysv4 | sysv4.3*)
13225 version_type=linux
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 case $host_vendor in
13230 sni)
13231 shlibpath_overrides_runpath=no
13232 need_lib_prefix=no
13233 export_dynamic_flag_spec='${wl}-Blargedynsym'
13234 runpath_var=LD_RUN_PATH
13235 ;;
13236 siemens)
13237 need_lib_prefix=no
13238 ;;
13239 motorola)
13240 need_lib_prefix=no
13241 need_version=no
13242 shlibpath_overrides_runpath=no
13243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13244 ;;
13245 esac
13246 ;;
13247
13248sysv4*MP*)
13249 if test -d /usr/nec ;then
13250 version_type=linux
13251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13252 soname_spec='$libname${shared_ext}.$major'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 fi
13255 ;;
13256
13257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13258 version_type=freebsd-elf
13259 need_lib_prefix=no
13260 need_version=no
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 hardcode_into_libs=yes
13265 if test "$with_gnu_ld" = yes; then
13266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13267 shlibpath_overrides_runpath=no
13268 else
13269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13270 shlibpath_overrides_runpath=yes
13271 case $host_os in
13272 sco3.2v5*)
13273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13274 ;;
13275 esac
13276 fi
13277 sys_lib_dlsearch_path_spec='/usr/lib'
13278 ;;
13279
13280uts4*)
13281 version_type=linux
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 shlibpath_var=LD_LIBRARY_PATH
13285 ;;
13286
13287*)
13288 dynamic_linker=no
13289 ;;
13290esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080013291{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
jef56a97f92012-08-20 14:35:58 -070013292$as_echo "$dynamic_linker" >&6; }
13293test "$dynamic_linker" = no && can_build_shared=no
13294
13295variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13296if test "$GCC" = yes; then
13297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13298fi
13299
Jef Poskanzer437537f2012-11-30 12:16:17 -080013300{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
jef56a97f92012-08-20 14:35:58 -070013301$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13302hardcode_action_CXX=
13303if test -n "$hardcode_libdir_flag_spec_CXX" || \
13304 test -n "$runpath_var_CXX" || \
13305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13306
13307 # We can hardcode non-existant directories.
13308 if test "$hardcode_direct_CXX" != no &&
13309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13310 # have to relink, otherwise we might link with an installed library
13311 # when we should be linking with a yet-to-be-installed one
13312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13313 test "$hardcode_minus_L_CXX" != no; then
13314 # Linking always hardcodes the temporary library directory.
13315 hardcode_action_CXX=relink
13316 else
13317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13318 hardcode_action_CXX=immediate
13319 fi
13320else
13321 # We cannot hardcode anything, or else we can only hardcode existing
13322 # directories.
13323 hardcode_action_CXX=unsupported
13324fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080013325{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
jef56a97f92012-08-20 14:35:58 -070013326$as_echo "$hardcode_action_CXX" >&6; }
13327
13328if test "$hardcode_action_CXX" = relink; then
13329 # Fast installation is not supported
13330 enable_fast_install=no
13331elif test "$shlibpath_overrides_runpath" = yes ||
13332 test "$enable_shared" = no; then
13333 # Fast installation is not necessary
13334 enable_fast_install=needless
13335fi
13336
13337
13338# The else clause should only fire when bootstrapping the
13339# libtool distribution, otherwise you forgot to ship ltmain.sh
13340# with your package, and you will get complaints that there are
13341# no rules to generate ltmain.sh.
13342if test -f "$ltmain"; then
13343 # See if we are running on zsh, and set the options which allow our commands through
13344 # without removal of \ escapes.
13345 if test -n "${ZSH_VERSION+set}" ; then
13346 setopt NO_GLOB_SUBST
13347 fi
13348 # Now quote all the things that may contain metacharacters while being
13349 # careful not to overquote the AC_SUBSTed values. We take copies of the
13350 # variables and quote the copies for generation of the libtool script.
13351 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13352 SED SHELL STRIP \
13353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13355 deplibs_check_method reload_flag reload_cmds need_locks \
13356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13357 lt_cv_sys_global_symbol_to_c_name_address \
13358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13359 old_postinstall_cmds old_postuninstall_cmds \
13360 compiler_CXX \
13361 CC_CXX \
13362 LD_CXX \
13363 lt_prog_compiler_wl_CXX \
13364 lt_prog_compiler_pic_CXX \
13365 lt_prog_compiler_static_CXX \
13366 lt_prog_compiler_no_builtin_flag_CXX \
13367 export_dynamic_flag_spec_CXX \
13368 thread_safe_flag_spec_CXX \
13369 whole_archive_flag_spec_CXX \
13370 enable_shared_with_static_runtimes_CXX \
13371 old_archive_cmds_CXX \
13372 old_archive_from_new_cmds_CXX \
13373 predep_objects_CXX \
13374 postdep_objects_CXX \
13375 predeps_CXX \
13376 postdeps_CXX \
13377 compiler_lib_search_path_CXX \
13378 archive_cmds_CXX \
13379 archive_expsym_cmds_CXX \
13380 postinstall_cmds_CXX \
13381 postuninstall_cmds_CXX \
13382 old_archive_from_expsyms_cmds_CXX \
13383 allow_undefined_flag_CXX \
13384 no_undefined_flag_CXX \
13385 export_symbols_cmds_CXX \
13386 hardcode_libdir_flag_spec_CXX \
13387 hardcode_libdir_flag_spec_ld_CXX \
13388 hardcode_libdir_separator_CXX \
13389 hardcode_automatic_CXX \
13390 module_cmds_CXX \
13391 module_expsym_cmds_CXX \
13392 lt_cv_prog_compiler_c_o_CXX \
13393 exclude_expsyms_CXX \
13394 include_expsyms_CXX; do
13395
13396 case $var in
13397 old_archive_cmds_CXX | \
13398 old_archive_from_new_cmds_CXX | \
13399 archive_cmds_CXX | \
13400 archive_expsym_cmds_CXX | \
13401 module_cmds_CXX | \
13402 module_expsym_cmds_CXX | \
13403 old_archive_from_expsyms_cmds_CXX | \
13404 export_symbols_cmds_CXX | \
13405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13406 postinstall_cmds | postuninstall_cmds | \
13407 old_postinstall_cmds | old_postuninstall_cmds | \
13408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13409 # Double-quote double-evaled strings.
13410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13411 ;;
13412 *)
13413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13414 ;;
13415 esac
13416 done
13417
13418 case $lt_echo in
13419 *'\$0 --fallback-echo"')
13420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13421 ;;
13422 esac
13423
13424cfgfile="$ofile"
13425
13426 cat <<__EOF__ >> "$cfgfile"
13427# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13428
13429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13430
13431# Shell to use when invoking shell scripts.
13432SHELL=$lt_SHELL
13433
13434# Whether or not to build shared libraries.
13435build_libtool_libs=$enable_shared
13436
13437# Whether or not to build static libraries.
13438build_old_libs=$enable_static
13439
13440# Whether or not to add -lc for building shared libraries.
13441build_libtool_need_lc=$archive_cmds_need_lc_CXX
13442
13443# Whether or not to disallow shared libs when runtime libs are static
13444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13445
13446# Whether or not to optimize for fast installation.
13447fast_install=$enable_fast_install
13448
13449# The host system.
13450host_alias=$host_alias
13451host=$host
13452host_os=$host_os
13453
13454# The build system.
13455build_alias=$build_alias
13456build=$build
13457build_os=$build_os
13458
13459# An echo program that does not interpret backslashes.
13460echo=$lt_echo
13461
13462# The archiver.
13463AR=$lt_AR
13464AR_FLAGS=$lt_AR_FLAGS
13465
13466# A C compiler.
13467LTCC=$lt_LTCC
13468
13469# LTCC compiler flags.
13470LTCFLAGS=$lt_LTCFLAGS
13471
13472# A language-specific compiler.
13473CC=$lt_compiler_CXX
13474
13475# Is the compiler the GNU C compiler?
13476with_gcc=$GCC_CXX
13477
13478gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13479gcc_ver=\`gcc -dumpversion\`
13480
13481# An ERE matcher.
13482EGREP=$lt_EGREP
13483
13484# The linker used to build libraries.
13485LD=$lt_LD_CXX
13486
13487# Whether we need hard or soft links.
13488LN_S=$lt_LN_S
13489
13490# A BSD-compatible nm program.
13491NM=$lt_NM
13492
13493# A symbol stripping program
13494STRIP=$lt_STRIP
13495
13496# Used to examine libraries when file_magic_cmd begins "file"
13497MAGIC_CMD=$MAGIC_CMD
13498
13499# Used on cygwin: DLL creation program.
13500DLLTOOL="$DLLTOOL"
13501
13502# Used on cygwin: object dumper.
13503OBJDUMP="$OBJDUMP"
13504
13505# Used on cygwin: assembler.
13506AS="$AS"
13507
13508# The name of the directory that contains temporary libtool files.
13509objdir=$objdir
13510
13511# How to create reloadable object files.
13512reload_flag=$lt_reload_flag
13513reload_cmds=$lt_reload_cmds
13514
13515# How to pass a linker flag through the compiler.
13516wl=$lt_lt_prog_compiler_wl_CXX
13517
13518# Object file suffix (normally "o").
13519objext="$ac_objext"
13520
13521# Old archive suffix (normally "a").
13522libext="$libext"
13523
13524# Shared library suffix (normally ".so").
13525shrext_cmds='$shrext_cmds'
13526
13527# Executable file suffix (normally "").
13528exeext="$exeext"
13529
13530# Additional compiler flags for building library objects.
13531pic_flag=$lt_lt_prog_compiler_pic_CXX
13532pic_mode=$pic_mode
13533
13534# What is the maximum length of a command?
13535max_cmd_len=$lt_cv_sys_max_cmd_len
13536
13537# Does compiler simultaneously support -c and -o options?
13538compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13539
13540# Must we lock files when doing compilation?
13541need_locks=$lt_need_locks
13542
13543# Do we need the lib prefix for modules?
13544need_lib_prefix=$need_lib_prefix
13545
13546# Do we need a version for libraries?
13547need_version=$need_version
13548
13549# Whether dlopen is supported.
13550dlopen_support=$enable_dlopen
13551
13552# Whether dlopen of programs is supported.
13553dlopen_self=$enable_dlopen_self
13554
13555# Whether dlopen of statically linked programs is supported.
13556dlopen_self_static=$enable_dlopen_self_static
13557
13558# Compiler flag to prevent dynamic linking.
13559link_static_flag=$lt_lt_prog_compiler_static_CXX
13560
13561# Compiler flag to turn off builtin functions.
13562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13563
13564# Compiler flag to allow reflexive dlopens.
13565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13566
13567# Compiler flag to generate shared objects directly from archives.
13568whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13569
13570# Compiler flag to generate thread-safe objects.
13571thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13572
13573# Library versioning type.
13574version_type=$version_type
13575
13576# Format of library name prefix.
13577libname_spec=$lt_libname_spec
13578
13579# List of archive names. First name is the real one, the rest are links.
13580# The last name is the one that the linker finds with -lNAME.
13581library_names_spec=$lt_library_names_spec
13582
13583# The coded name of the library, if different from the real name.
13584soname_spec=$lt_soname_spec
13585
13586# Commands used to build and install an old-style archive.
13587RANLIB=$lt_RANLIB
13588old_archive_cmds=$lt_old_archive_cmds_CXX
13589old_postinstall_cmds=$lt_old_postinstall_cmds
13590old_postuninstall_cmds=$lt_old_postuninstall_cmds
13591
13592# Create an old-style archive from a shared archive.
13593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13594
13595# Create a temporary old-style archive to link instead of a shared archive.
13596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13597
13598# Commands used to build and install a shared archive.
13599archive_cmds=$lt_archive_cmds_CXX
13600archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13601postinstall_cmds=$lt_postinstall_cmds
13602postuninstall_cmds=$lt_postuninstall_cmds
13603
13604# Commands used to build a loadable module (assumed same as above if empty)
13605module_cmds=$lt_module_cmds_CXX
13606module_expsym_cmds=$lt_module_expsym_cmds_CXX
13607
13608# Commands to strip libraries.
13609old_striplib=$lt_old_striplib
13610striplib=$lt_striplib
13611
13612# Dependencies to place before the objects being linked to create a
13613# shared library.
13614predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13615
13616# Dependencies to place after the objects being linked to create a
13617# shared library.
13618postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13619
13620# Dependencies to place before the objects being linked to create a
13621# shared library.
13622predeps=$lt_predeps_CXX
13623
13624# Dependencies to place after the objects being linked to create a
13625# shared library.
13626postdeps=$lt_postdeps_CXX
13627
13628# The library search path used internally by the compiler when linking
13629# a shared library.
13630compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13631
13632# Method to check whether dependent libraries are shared objects.
13633deplibs_check_method=$lt_deplibs_check_method
13634
13635# Command to use when deplibs_check_method == file_magic.
13636file_magic_cmd=$lt_file_magic_cmd
13637
13638# Flag that allows shared libraries with undefined symbols to be built.
13639allow_undefined_flag=$lt_allow_undefined_flag_CXX
13640
13641# Flag that forces no undefined symbols.
13642no_undefined_flag=$lt_no_undefined_flag_CXX
13643
13644# Commands used to finish a libtool library installation in a directory.
13645finish_cmds=$lt_finish_cmds
13646
13647# Same as above, but a single script fragment to be evaled but not shown.
13648finish_eval=$lt_finish_eval
13649
13650# Take the output of nm and produce a listing of raw symbols and C names.
13651global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13652
13653# Transform the output of nm in a proper C declaration
13654global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13655
13656# Transform the output of nm in a C name address pair
13657global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13658
13659# This is the shared library runtime path variable.
13660runpath_var=$runpath_var
13661
13662# This is the shared library path variable.
13663shlibpath_var=$shlibpath_var
13664
13665# Is shlibpath searched before the hard-coded library search path?
13666shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13667
13668# How to hardcode a shared library path into an executable.
13669hardcode_action=$hardcode_action_CXX
13670
13671# Whether we should hardcode library paths into libraries.
13672hardcode_into_libs=$hardcode_into_libs
13673
13674# Flag to hardcode \$libdir into a binary during linking.
13675# This must work even if \$libdir does not exist.
13676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13677
13678# If ld is used when linking, flag to hardcode \$libdir into
13679# a binary during linking. This must work even if \$libdir does
13680# not exist.
13681hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13682
13683# Whether we need a single -rpath flag with a separated argument.
13684hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13685
13686# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13687# resulting binary.
13688hardcode_direct=$hardcode_direct_CXX
13689
13690# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13691# resulting binary.
13692hardcode_minus_L=$hardcode_minus_L_CXX
13693
13694# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13695# the resulting binary.
13696hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13697
13698# Set to yes if building a shared library automatically hardcodes DIR into the library
13699# and all subsequent libraries and executables linked against it.
13700hardcode_automatic=$hardcode_automatic_CXX
13701
13702# Variables whose values should be saved in libtool wrapper scripts and
13703# restored at relink time.
13704variables_saved_for_relink="$variables_saved_for_relink"
13705
13706# Whether libtool must link a program against all its dependency libraries.
13707link_all_deplibs=$link_all_deplibs_CXX
13708
13709# Compile-time system search path for libraries
13710sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13711
13712# Run-time system search path for libraries
13713sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13714
13715# Fix the shell variable \$srcfile for the compiler.
13716fix_srcfile_path="$fix_srcfile_path_CXX"
13717
13718# Set to yes if exported symbols are required.
13719always_export_symbols=$always_export_symbols_CXX
13720
13721# The commands to list exported symbols.
13722export_symbols_cmds=$lt_export_symbols_cmds_CXX
13723
13724# The commands to extract the exported symbol list from a shared archive.
13725extract_expsyms_cmds=$lt_extract_expsyms_cmds
13726
13727# Symbols that should not be listed in the preloaded symbols.
13728exclude_expsyms=$lt_exclude_expsyms_CXX
13729
13730# Symbols that must always be exported.
13731include_expsyms=$lt_include_expsyms_CXX
13732
13733# ### END LIBTOOL TAG CONFIG: $tagname
13734
13735__EOF__
13736
13737
13738else
13739 # If there is no Makefile yet, we rely on a make rule to execute
13740 # `config.status --recheck' to rerun these tests and create the
13741 # libtool script then.
13742 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13743 if test -f "$ltmain_in"; then
13744 test -f Makefile && make "$ltmain"
13745 fi
13746fi
13747
13748
13749ac_ext=c
13750ac_cpp='$CPP $CPPFLAGS'
13751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13753ac_compiler_gnu=$ac_cv_c_compiler_gnu
13754
13755CC=$lt_save_CC
13756LDCXX=$LD
13757LD=$lt_save_LD
13758GCC=$lt_save_GCC
13759with_gnu_ldcxx=$with_gnu_ld
13760with_gnu_ld=$lt_save_with_gnu_ld
13761lt_cv_path_LDCXX=$lt_cv_path_LD
13762lt_cv_path_LD=$lt_save_path_LD
13763lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13764lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13765
13766 else
13767 tagname=""
13768 fi
13769 ;;
13770
13771 F77)
13772 if test -n "$F77" && test "X$F77" != "Xno"; then
13773
13774ac_ext=f
13775ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13776ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13777ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13778
13779
13780archive_cmds_need_lc_F77=no
13781allow_undefined_flag_F77=
13782always_export_symbols_F77=no
13783archive_expsym_cmds_F77=
13784export_dynamic_flag_spec_F77=
13785hardcode_direct_F77=no
13786hardcode_libdir_flag_spec_F77=
13787hardcode_libdir_flag_spec_ld_F77=
13788hardcode_libdir_separator_F77=
13789hardcode_minus_L_F77=no
13790hardcode_automatic_F77=no
13791module_cmds_F77=
13792module_expsym_cmds_F77=
13793link_all_deplibs_F77=unknown
13794old_archive_cmds_F77=$old_archive_cmds
13795no_undefined_flag_F77=
13796whole_archive_flag_spec_F77=
13797enable_shared_with_static_runtimes_F77=no
13798
13799# Source file extension for f77 test sources.
13800ac_ext=f
13801
13802# Object file extension for compiled f77 test sources.
13803objext=o
13804objext_F77=$objext
13805
13806# Code to be used in simple compile tests
13807lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13808
13809# Code to be used in simple link tests
13810lt_simple_link_test_code=" program t\n end\n"
13811
13812# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13813
13814# If no C compiler was specified, use CC.
13815LTCC=${LTCC-"$CC"}
13816
13817# If no C compiler flags were specified, use CFLAGS.
13818LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13819
13820# Allow CC to be a program name with arguments.
13821compiler=$CC
13822
13823
13824# save warnings/boilerplate of simple test code
13825ac_outfile=conftest.$ac_objext
13826printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13827eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13828_lt_compiler_boilerplate=`cat conftest.err`
13829$rm conftest*
13830
13831ac_outfile=conftest.$ac_objext
13832printf "$lt_simple_link_test_code" >conftest.$ac_ext
13833eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13834_lt_linker_boilerplate=`cat conftest.err`
13835$rm conftest*
13836
13837
13838# Allow CC to be a program name with arguments.
13839lt_save_CC="$CC"
13840CC=${F77-"f77"}
13841compiler=$CC
13842compiler_F77=$CC
13843for cc_temp in $compiler""; do
13844 case $cc_temp in
13845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13847 \-*) ;;
13848 *) break;;
13849 esac
13850done
13851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13852
13853
Jef Poskanzer437537f2012-11-30 12:16:17 -080013854{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070013855$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080013856{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
jef56a97f92012-08-20 14:35:58 -070013857$as_echo "$can_build_shared" >&6; }
13858
Jef Poskanzer437537f2012-11-30 12:16:17 -080013859{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070013860$as_echo_n "checking whether to build shared libraries... " >&6; }
13861test "$can_build_shared" = "no" && enable_shared=no
13862
13863# On AIX, shared libraries and static libraries use the same namespace, and
13864# are all built from PIC.
13865case $host_os in
13866aix3*)
13867 test "$enable_shared" = yes && enable_static=no
13868 if test -n "$RANLIB"; then
13869 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13870 postinstall_cmds='$RANLIB $lib'
13871 fi
13872 ;;
13873aix4* | aix5*)
13874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13875 test "$enable_shared" = yes && enable_static=no
13876 fi
13877 ;;
13878esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080013879{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
jef56a97f92012-08-20 14:35:58 -070013880$as_echo "$enable_shared" >&6; }
13881
Jef Poskanzer437537f2012-11-30 12:16:17 -080013882{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
jef56a97f92012-08-20 14:35:58 -070013883$as_echo_n "checking whether to build static libraries... " >&6; }
13884# Make sure either enable_shared or enable_static is yes.
13885test "$enable_shared" = yes || enable_static=yes
Jef Poskanzer437537f2012-11-30 12:16:17 -080013886{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
jef56a97f92012-08-20 14:35:58 -070013887$as_echo "$enable_static" >&6; }
13888
13889GCC_F77="$G77"
13890LD_F77="$LD"
13891
13892lt_prog_compiler_wl_F77=
13893lt_prog_compiler_pic_F77=
13894lt_prog_compiler_static_F77=
13895
Jef Poskanzer437537f2012-11-30 12:16:17 -080013896{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
jef56a97f92012-08-20 14:35:58 -070013897$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13898
13899 if test "$GCC" = yes; then
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 lt_prog_compiler_static_F77='-static'
13902
13903 case $host_os in
13904 aix*)
13905 # All AIX code is PIC.
13906 if test "$host_cpu" = ia64; then
13907 # AIX 5 now supports IA64 processor
13908 lt_prog_compiler_static_F77='-Bstatic'
13909 fi
13910 ;;
13911
13912 amigaos*)
13913 # FIXME: we need at least 68020 code to build shared libraries, but
13914 # adding the `-m68020' flag to GCC prevents building anything better,
13915 # like `-m68040'.
13916 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13917 ;;
13918
13919 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13920 # PIC is the default for these OSes.
13921 ;;
13922
13923 mingw* | pw32* | os2*)
13924 # This hack is so that the source file can tell whether it is being
13925 # built for inclusion in a dll (and should export symbols for example).
13926 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13927 ;;
13928
13929 darwin* | rhapsody*)
13930 # PIC is the default on this platform
13931 # Common symbols not allowed in MH_DYLIB files
13932 lt_prog_compiler_pic_F77='-fno-common'
13933 ;;
13934
13935 interix3*)
13936 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13937 # Instead, we relocate shared libraries at runtime.
13938 ;;
13939
13940 msdosdjgpp*)
13941 # Just because we use GCC doesn't mean we suddenly get shared libraries
13942 # on systems that don't support them.
13943 lt_prog_compiler_can_build_shared_F77=no
13944 enable_shared=no
13945 ;;
13946
13947 sysv4*MP*)
13948 if test -d /usr/nec; then
13949 lt_prog_compiler_pic_F77=-Kconform_pic
13950 fi
13951 ;;
13952
13953 hpux*)
13954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13955 # not for PA HP-UX.
13956 case $host_cpu in
13957 hppa*64*|ia64*)
13958 # +Z the default
13959 ;;
13960 *)
13961 lt_prog_compiler_pic_F77='-fPIC'
13962 ;;
13963 esac
13964 ;;
13965
13966 *)
13967 lt_prog_compiler_pic_F77='-fPIC'
13968 ;;
13969 esac
13970 else
13971 # PORTME Check for flag to pass linker flags through the system compiler.
13972 case $host_os in
13973 aix*)
13974 lt_prog_compiler_wl_F77='-Wl,'
13975 if test "$host_cpu" = ia64; then
13976 # AIX 5 now supports IA64 processor
13977 lt_prog_compiler_static_F77='-Bstatic'
13978 else
13979 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13980 fi
13981 ;;
13982 darwin*)
13983 # PIC is the default on this platform
13984 # Common symbols not allowed in MH_DYLIB files
13985 case $cc_basename in
13986 xlc*)
13987 lt_prog_compiler_pic_F77='-qnocommon'
13988 lt_prog_compiler_wl_F77='-Wl,'
13989 ;;
13990 esac
13991 ;;
13992
13993 mingw* | pw32* | os2*)
13994 # This hack is so that the source file can tell whether it is being
13995 # built for inclusion in a dll (and should export symbols for example).
13996 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13997 ;;
13998
13999 hpux9* | hpux10* | hpux11*)
14000 lt_prog_compiler_wl_F77='-Wl,'
14001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14002 # not for PA HP-UX.
14003 case $host_cpu in
14004 hppa*64*|ia64*)
14005 # +Z the default
14006 ;;
14007 *)
14008 lt_prog_compiler_pic_F77='+Z'
14009 ;;
14010 esac
14011 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14012 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14013 ;;
14014
14015 irix5* | irix6* | nonstopux*)
14016 lt_prog_compiler_wl_F77='-Wl,'
14017 # PIC (with -KPIC) is the default.
14018 lt_prog_compiler_static_F77='-non_shared'
14019 ;;
14020
14021 newsos6)
14022 lt_prog_compiler_pic_F77='-KPIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 ;;
14025
14026 linux*)
14027 case $cc_basename in
14028 icc* | ecc*)
14029 lt_prog_compiler_wl_F77='-Wl,'
14030 lt_prog_compiler_pic_F77='-KPIC'
14031 lt_prog_compiler_static_F77='-static'
14032 ;;
14033 pgcc* | pgf77* | pgf90* | pgf95*)
14034 # Portland Group compilers (*not* the Pentium gcc compiler,
14035 # which looks to be a dead project)
14036 lt_prog_compiler_wl_F77='-Wl,'
14037 lt_prog_compiler_pic_F77='-fpic'
14038 lt_prog_compiler_static_F77='-Bstatic'
14039 ;;
14040 ccc*)
14041 lt_prog_compiler_wl_F77='-Wl,'
14042 # All Alpha code is PIC.
14043 lt_prog_compiler_static_F77='-non_shared'
14044 ;;
14045 esac
14046 ;;
14047
14048 osf3* | osf4* | osf5*)
14049 lt_prog_compiler_wl_F77='-Wl,'
14050 # All OSF/1 code is PIC.
14051 lt_prog_compiler_static_F77='-non_shared'
14052 ;;
14053
14054 solaris*)
14055 lt_prog_compiler_pic_F77='-KPIC'
14056 lt_prog_compiler_static_F77='-Bstatic'
14057 case $cc_basename in
14058 f77* | f90* | f95*)
14059 lt_prog_compiler_wl_F77='-Qoption ld ';;
14060 *)
14061 lt_prog_compiler_wl_F77='-Wl,';;
14062 esac
14063 ;;
14064
14065 sunos4*)
14066 lt_prog_compiler_wl_F77='-Qoption ld '
14067 lt_prog_compiler_pic_F77='-PIC'
14068 lt_prog_compiler_static_F77='-Bstatic'
14069 ;;
14070
14071 sysv4 | sysv4.2uw2* | sysv4.3*)
14072 lt_prog_compiler_wl_F77='-Wl,'
14073 lt_prog_compiler_pic_F77='-KPIC'
14074 lt_prog_compiler_static_F77='-Bstatic'
14075 ;;
14076
14077 sysv4*MP*)
14078 if test -d /usr/nec ;then
14079 lt_prog_compiler_pic_F77='-Kconform_pic'
14080 lt_prog_compiler_static_F77='-Bstatic'
14081 fi
14082 ;;
14083
14084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14085 lt_prog_compiler_wl_F77='-Wl,'
14086 lt_prog_compiler_pic_F77='-KPIC'
14087 lt_prog_compiler_static_F77='-Bstatic'
14088 ;;
14089
14090 unicos*)
14091 lt_prog_compiler_wl_F77='-Wl,'
14092 lt_prog_compiler_can_build_shared_F77=no
14093 ;;
14094
14095 uts4*)
14096 lt_prog_compiler_pic_F77='-pic'
14097 lt_prog_compiler_static_F77='-Bstatic'
14098 ;;
14099
14100 *)
14101 lt_prog_compiler_can_build_shared_F77=no
14102 ;;
14103 esac
14104 fi
14105
Jef Poskanzer437537f2012-11-30 12:16:17 -080014106{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
jef56a97f92012-08-20 14:35:58 -070014107$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14108
14109#
14110# Check to make sure the PIC flag actually works.
14111#
14112if test -n "$lt_prog_compiler_pic_F77"; then
14113
Jef Poskanzer437537f2012-11-30 12:16:17 -080014114{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
jef56a97f92012-08-20 14:35:58 -070014115$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080014116if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070014117 $as_echo_n "(cached) " >&6
14118else
14119 lt_prog_compiler_pic_works_F77=no
14120 ac_outfile=conftest.$ac_objext
14121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14122 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14123 # Insert the option either (1) after the last *FLAGS variable, or
14124 # (2) before a word containing "conftest.", or (3) at the end.
14125 # Note that $ac_compile itself does not contain backslashes and begins
14126 # with a dollar sign (not a hyphen), so the echo should work correctly.
14127 # The option is referenced via a variable to avoid confusing sed.
14128 lt_compile=`echo "$ac_compile" | $SED \
14129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14131 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080014132 (eval echo "\"\$as_me:14132: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070014133 (eval "$lt_compile" 2>conftest.err)
14134 ac_status=$?
14135 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080014136 echo "$as_me:14136: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070014137 if (exit $ac_status) && test -s "$ac_outfile"; then
14138 # The compiler can only warn and ignore the option if not recognized
14139 # So say no if there are warnings other than the usual output.
14140 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14143 lt_prog_compiler_pic_works_F77=yes
14144 fi
14145 fi
14146 $rm conftest*
14147
14148fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014149{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
jef56a97f92012-08-20 14:35:58 -070014150$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14151
14152if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14153 case $lt_prog_compiler_pic_F77 in
14154 "" | " "*) ;;
14155 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14156 esac
14157else
14158 lt_prog_compiler_pic_F77=
14159 lt_prog_compiler_can_build_shared_F77=no
14160fi
14161
14162fi
14163case $host_os in
14164 # For platforms which do not support PIC, -DPIC is meaningless:
14165 *djgpp*)
14166 lt_prog_compiler_pic_F77=
14167 ;;
14168 *)
14169 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14170 ;;
14171esac
14172
14173#
14174# Check to make sure the static flag actually works.
14175#
14176wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
Jef Poskanzer437537f2012-11-30 12:16:17 -080014177{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
jef56a97f92012-08-20 14:35:58 -070014178$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080014179if test "${lt_prog_compiler_static_works_F77+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070014180 $as_echo_n "(cached) " >&6
14181else
14182 lt_prog_compiler_static_works_F77=no
14183 save_LDFLAGS="$LDFLAGS"
14184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14185 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14187 # The linker can only warn and ignore the option if not recognized
14188 # So say no if there are warnings
14189 if test -s conftest.err; then
14190 # Append any errors to the config.log.
14191 cat conftest.err 1>&5
14192 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14194 if diff conftest.exp conftest.er2 >/dev/null; then
14195 lt_prog_compiler_static_works_F77=yes
14196 fi
14197 else
14198 lt_prog_compiler_static_works_F77=yes
14199 fi
14200 fi
14201 $rm conftest*
14202 LDFLAGS="$save_LDFLAGS"
14203
14204fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014205{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
jef56a97f92012-08-20 14:35:58 -070014206$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14207
14208if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14209 :
14210else
14211 lt_prog_compiler_static_F77=
14212fi
14213
14214
Jef Poskanzer437537f2012-11-30 12:16:17 -080014215{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
jef56a97f92012-08-20 14:35:58 -070014216$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080014217if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070014218 $as_echo_n "(cached) " >&6
14219else
14220 lt_cv_prog_compiler_c_o_F77=no
14221 $rm -r conftest 2>/dev/null
14222 mkdir conftest
14223 cd conftest
14224 mkdir out
14225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227 lt_compiler_flag="-o out/conftest2.$ac_objext"
14228 # Insert the option either (1) after the last *FLAGS variable, or
14229 # (2) before a word containing "conftest.", or (3) at the end.
14230 # Note that $ac_compile itself does not contain backslashes and begins
14231 # with a dollar sign (not a hyphen), so the echo should work correctly.
14232 lt_compile=`echo "$ac_compile" | $SED \
14233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14235 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080014236 (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070014237 (eval "$lt_compile" 2>out/conftest.err)
14238 ac_status=$?
14239 cat out/conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080014240 echo "$as_me:14240: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070014241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14242 then
14243 # The compiler can only warn and ignore the option if not recognized
14244 # So say no if there are warnings
14245 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14248 lt_cv_prog_compiler_c_o_F77=yes
14249 fi
14250 fi
14251 chmod u+w . 2>&5
14252 $rm conftest*
14253 # SGI C++ compiler will create directory out/ii_files/ for
14254 # template instantiation
14255 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14256 $rm out/* && rmdir out
14257 cd ..
14258 rmdir conftest
14259 $rm conftest*
14260
14261fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014262{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
jef56a97f92012-08-20 14:35:58 -070014263$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14264
14265
14266hard_links="nottested"
14267if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14268 # do not overwrite the value of need_locks provided by the user
Jef Poskanzer437537f2012-11-30 12:16:17 -080014269 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
jef56a97f92012-08-20 14:35:58 -070014270$as_echo_n "checking if we can lock with hard links... " >&6; }
14271 hard_links=yes
14272 $rm conftest*
14273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14274 touch conftest.a
14275 ln conftest.a conftest.b 2>&5 || hard_links=no
14276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jef Poskanzer437537f2012-11-30 12:16:17 -080014277 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
jef56a97f92012-08-20 14:35:58 -070014278$as_echo "$hard_links" >&6; }
14279 if test "$hard_links" = no; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080014280 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
jef56a97f92012-08-20 14:35:58 -070014281$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14282 need_locks=warn
14283 fi
14284else
14285 need_locks=no
14286fi
14287
Jef Poskanzer437537f2012-11-30 12:16:17 -080014288{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070014289$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14290
14291 runpath_var=
14292 allow_undefined_flag_F77=
14293 enable_shared_with_static_runtimes_F77=no
14294 archive_cmds_F77=
14295 archive_expsym_cmds_F77=
14296 old_archive_From_new_cmds_F77=
14297 old_archive_from_expsyms_cmds_F77=
14298 export_dynamic_flag_spec_F77=
14299 whole_archive_flag_spec_F77=
14300 thread_safe_flag_spec_F77=
14301 hardcode_libdir_flag_spec_F77=
14302 hardcode_libdir_flag_spec_ld_F77=
14303 hardcode_libdir_separator_F77=
14304 hardcode_direct_F77=no
14305 hardcode_minus_L_F77=no
14306 hardcode_shlibpath_var_F77=unsupported
14307 link_all_deplibs_F77=unknown
14308 hardcode_automatic_F77=no
14309 module_cmds_F77=
14310 module_expsym_cmds_F77=
14311 always_export_symbols_F77=no
14312 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14313 # include_expsyms should be a list of space-separated symbols to be *always*
14314 # included in the symbol list
14315 include_expsyms_F77=
14316 # exclude_expsyms can be an extended regexp of symbols to exclude
14317 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14318 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14319 # as well as any symbol that contains `d'.
14320 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14321 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14322 # platforms (ab)use it in PIC code, but their linkers get confused if
14323 # the symbol is explicitly referenced. Since portable code cannot
14324 # rely on this symbol name, it's probably fine to never include it in
14325 # preloaded symbol tables.
14326 extract_expsyms_cmds=
14327 # Just being paranoid about ensuring that cc_basename is set.
14328 for cc_temp in $compiler""; do
14329 case $cc_temp in
14330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14332 \-*) ;;
14333 *) break;;
14334 esac
14335done
14336cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14337
14338 case $host_os in
14339 cygwin* | mingw* | pw32*)
14340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14341 # When not using gcc, we currently assume that we are using
14342 # Microsoft Visual C++.
14343 if test "$GCC" != yes; then
14344 with_gnu_ld=no
14345 fi
14346 ;;
14347 interix*)
14348 # we just hope/assume this is gcc and not c89 (= MSVC++)
14349 with_gnu_ld=yes
14350 ;;
14351 openbsd*)
14352 with_gnu_ld=no
14353 ;;
14354 esac
14355
14356 ld_shlibs_F77=yes
14357 if test "$with_gnu_ld" = yes; then
14358 # If archive_cmds runs LD, not CC, wlarc should be empty
14359 wlarc='${wl}'
14360
14361 # Set some defaults for GNU ld with shared library support. These
14362 # are reset later if shared libraries are not supported. Putting them
14363 # here allows them to be overridden if necessary.
14364 runpath_var=LD_RUN_PATH
14365 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14366 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14367 # ancient GNU ld didn't support --whole-archive et. al.
14368 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14369 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14370 else
14371 whole_archive_flag_spec_F77=
14372 fi
14373 supports_anon_versioning=no
14374 case `$LD -v 2>/dev/null` in
14375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14378 *\ 2.11.*) ;; # other 2.11 versions
14379 *) supports_anon_versioning=yes ;;
14380 esac
14381
14382 # See if GNU ld supports shared libraries.
14383 case $host_os in
14384 aix3* | aix4* | aix5*)
14385 # On AIX/PPC, the GNU linker is very broken
14386 if test "$host_cpu" != ia64; then
14387 ld_shlibs_F77=no
14388 cat <<EOF 1>&2
14389
14390*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14391*** to be unable to reliably create shared libraries on AIX.
14392*** Therefore, libtool is disabling shared libraries support. If you
14393*** really care for shared libraries, you may want to modify your PATH
14394*** so that a non-GNU linker is found, and then restart.
14395
14396EOF
14397 fi
14398 ;;
14399
14400 amigaos*)
14401 archive_cmds_F77='$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)'
14402 hardcode_libdir_flag_spec_F77='-L$libdir'
14403 hardcode_minus_L_F77=yes
14404
14405 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14406 # that the semantics of dynamic libraries on AmigaOS, at least up
14407 # to version 4, is to share data among multiple programs linked
14408 # with the same dynamic library. Since this doesn't match the
14409 # behavior of shared libraries on other platforms, we can't use
14410 # them.
14411 ld_shlibs_F77=no
14412 ;;
14413
14414 beos*)
14415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416 allow_undefined_flag_F77=unsupported
14417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14418 # support --undefined. This deserves some investigation. FIXME
14419 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14420 else
14421 ld_shlibs_F77=no
14422 fi
14423 ;;
14424
14425 cygwin* | mingw* | pw32*)
14426 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14427 # as there is no search path for DLLs.
14428 hardcode_libdir_flag_spec_F77='-L$libdir'
14429 allow_undefined_flag_F77=unsupported
14430 always_export_symbols_F77=no
14431 enable_shared_with_static_runtimes_F77=yes
14432 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14433
14434 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14435 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14436 # If the export-symbols file already is a .def file (1st line
14437 # is EXPORTS), use it as is; otherwise, prepend...
14438 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14439 cp $export_symbols $output_objdir/$soname.def;
14440 else
14441 echo EXPORTS > $output_objdir/$soname.def;
14442 cat $export_symbols >> $output_objdir/$soname.def;
14443 fi~
14444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14445 else
14446 ld_shlibs_F77=no
14447 fi
14448 ;;
14449
14450 interix3*)
14451 hardcode_direct_F77=no
14452 hardcode_shlibpath_var_F77=no
14453 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14454 export_dynamic_flag_spec_F77='${wl}-E'
14455 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14456 # Instead, shared libraries are loaded at an image base (0x10000000 by
14457 # default) and relocated if they conflict, which is a slow very memory
14458 # consuming and fragmenting process. To avoid this, we pick a random,
14459 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14460 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14461 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14462 archive_expsym_cmds_F77='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'
14463 ;;
14464
14465 linux*)
14466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14467 tmp_addflag=
14468 case $cc_basename,$host_cpu in
14469 pgcc*) # Portland Group C compiler
14470 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14471 tmp_addflag=' $pic_flag'
14472 ;;
14473 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14474 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14475 tmp_addflag=' $pic_flag -Mnomain' ;;
14476 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14477 tmp_addflag=' -i_dynamic' ;;
14478 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14479 tmp_addflag=' -i_dynamic -nofor_main' ;;
14480 ifc* | ifort*) # Intel Fortran compiler
14481 tmp_addflag=' -nofor_main' ;;
14482 esac
14483 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14484
14485 if test $supports_anon_versioning = yes; then
14486 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14488 $echo "local: *; };" >> $output_objdir/$libname.ver~
14489 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14490 fi
14491 else
14492 ld_shlibs_F77=no
14493 fi
14494 ;;
14495
14496 netbsd*)
14497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14498 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14499 wlarc=
14500 else
14501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14503 fi
14504 ;;
14505
14506 solaris*)
14507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14508 ld_shlibs_F77=no
14509 cat <<EOF 1>&2
14510
14511*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14512*** create shared libraries on Solaris systems. Therefore, libtool
14513*** is disabling shared libraries support. We urge you to upgrade GNU
14514*** binutils to release 2.9.1 or newer. Another option is to modify
14515*** your PATH or compiler configuration so that the native linker is
14516*** used, and then restart.
14517
14518EOF
14519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14522 else
14523 ld_shlibs_F77=no
14524 fi
14525 ;;
14526
14527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14528 case `$LD -v 2>&1` in
14529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14530 ld_shlibs_F77=no
14531 cat <<_LT_EOF 1>&2
14532
14533*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14534*** reliably create shared libraries on SCO systems. Therefore, libtool
14535*** is disabling shared libraries support. We urge you to upgrade GNU
14536*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14537*** your PATH or compiler configuration so that the native linker is
14538*** used, and then restart.
14539
14540_LT_EOF
14541 ;;
14542 *)
14543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14544 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14547 else
14548 ld_shlibs_F77=no
14549 fi
14550 ;;
14551 esac
14552 ;;
14553
14554 sunos4*)
14555 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14556 wlarc=
14557 hardcode_direct_F77=yes
14558 hardcode_shlibpath_var_F77=no
14559 ;;
14560
14561 *)
14562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14563 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14565 else
14566 ld_shlibs_F77=no
14567 fi
14568 ;;
14569 esac
14570
14571 if test "$ld_shlibs_F77" = no; then
14572 runpath_var=
14573 hardcode_libdir_flag_spec_F77=
14574 export_dynamic_flag_spec_F77=
14575 whole_archive_flag_spec_F77=
14576 fi
14577 else
14578 # PORTME fill in a description of your system's linker (not GNU ld)
14579 case $host_os in
14580 aix3*)
14581 allow_undefined_flag_F77=unsupported
14582 always_export_symbols_F77=yes
14583 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14584 # Note: this linker hardcodes the directories in LIBPATH if there
14585 # are no directories specified by -L.
14586 hardcode_minus_L_F77=yes
14587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14588 # Neither direct hardcoding nor static linking is supported with a
14589 # broken collect2.
14590 hardcode_direct_F77=unsupported
14591 fi
14592 ;;
14593
14594 aix4* | aix5*)
14595 if test "$host_cpu" = ia64; then
14596 # On IA64, the linker does run time linking by default, so we don't
14597 # have to do anything special.
14598 aix_use_runtimelinking=no
14599 exp_sym_flag='-Bexport'
14600 no_entry_flag=""
14601 else
14602 # If we're using GNU nm, then we don't want the "-C" option.
14603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14605 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14606 else
14607 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14608 fi
14609 aix_use_runtimelinking=no
14610
14611 # Test if we are trying to use run time linking or normal
14612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14613 # need to do runtime linking.
14614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14615 for ld_flag in $LDFLAGS; do
14616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14617 aix_use_runtimelinking=yes
14618 break
14619 fi
14620 done
14621 ;;
14622 esac
14623
14624 exp_sym_flag='-bexport'
14625 no_entry_flag='-bnoentry'
14626 fi
14627
14628 # When large executables or shared objects are built, AIX ld can
14629 # have problems creating the table of contents. If linking a library
14630 # or program results in "error TOC overflow" add -mminimal-toc to
14631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14633
14634 archive_cmds_F77=''
14635 hardcode_direct_F77=yes
14636 hardcode_libdir_separator_F77=':'
14637 link_all_deplibs_F77=yes
14638
14639 if test "$GCC" = yes; then
14640 case $host_os in aix4.[012]|aix4.[012].*)
14641 # We only want to do this on AIX 4.2 and lower, the check
14642 # below for broken collect2 doesn't work under 4.3+
14643 collect2name=`${CC} -print-prog-name=collect2`
14644 if test -f "$collect2name" && \
14645 strings "$collect2name" | grep resolve_lib_name >/dev/null
14646 then
14647 # We have reworked collect2
14648 hardcode_direct_F77=yes
14649 else
14650 # We have old collect2
14651 hardcode_direct_F77=unsupported
14652 # It fails to find uninstalled libraries when the uninstalled
14653 # path is not listed in the libpath. Setting hardcode_minus_L
14654 # to unsupported forces relinking
14655 hardcode_minus_L_F77=yes
14656 hardcode_libdir_flag_spec_F77='-L$libdir'
14657 hardcode_libdir_separator_F77=
14658 fi
14659 ;;
14660 esac
14661 shared_flag='-shared'
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag="$shared_flag "'${wl}-G'
14664 fi
14665 else
14666 # not using gcc
14667 if test "$host_cpu" = ia64; then
14668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14669 # chokes on -Wl,-G. The following line is correct:
14670 shared_flag='-G'
14671 else
14672 if test "$aix_use_runtimelinking" = yes; then
14673 shared_flag='${wl}-G'
14674 else
14675 shared_flag='${wl}-bM:SRE'
14676 fi
14677 fi
14678 fi
14679
14680 # It seems that -bexpall does not export symbols beginning with
14681 # underscore (_), so it is better to generate a list of symbols to export.
14682 always_export_symbols_F77=yes
14683 if test "$aix_use_runtimelinking" = yes; then
14684 # Warning - without using the other runtime loading flags (-brtl),
14685 # -berok will link without error, but may produce a broken library.
14686 allow_undefined_flag_F77='-berok'
14687 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080014688 cat >conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070014689 program main
14690
14691 end
14692_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080014693rm -f conftest.$ac_objext conftest$ac_exeext
14694if { (ac_try="$ac_link"
14695case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698esac
14699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14700$as_echo "$ac_try_echo") >&5
14701 (eval "$ac_link") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_f77_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext && {
14711 test "$cross_compiling" = yes ||
14712 $as_test_x conftest$ac_exeext
14713 }; then
jef56a97f92012-08-20 14:35:58 -070014714
14715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14716}'`
14717# Check for a 64-bit object if we didn't find anything.
14718if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14719}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014720else
14721 $as_echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724
jef56a97f92012-08-20 14:35:58 -070014725fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014726
14727rm -rf conftest.dSYM
14728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070014730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14731
14732 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14733 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14734 else
14735 if test "$host_cpu" = ia64; then
14736 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14737 allow_undefined_flag_F77="-z nodefs"
14738 archive_expsym_cmds_F77="\$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"
14739 else
14740 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080014741 cat >conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070014742 program main
14743
14744 end
14745_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080014746rm -f conftest.$ac_objext conftest$ac_exeext
14747if { (ac_try="$ac_link"
14748case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753$as_echo "$ac_try_echo") >&5
14754 (eval "$ac_link") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && {
14761 test -z "$ac_f77_werror_flag" ||
14762 test ! -s conftest.err
14763 } && test -s conftest$ac_exeext && {
14764 test "$cross_compiling" = yes ||
14765 $as_test_x conftest$ac_exeext
14766 }; then
jef56a97f92012-08-20 14:35:58 -070014767
14768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14769}'`
14770# Check for a 64-bit object if we didn't find anything.
14771if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14772}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014773else
14774 $as_echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777
jef56a97f92012-08-20 14:35:58 -070014778fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014779
14780rm -rf conftest.dSYM
14781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070014783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14784
14785 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14786 # Warning - without using the other run time loading flags,
14787 # -berok will link without error, but may produce a broken library.
14788 no_undefined_flag_F77=' ${wl}-bernotok'
14789 allow_undefined_flag_F77=' ${wl}-berok'
14790 # Exported symbols can be pulled into shared objects from archives
14791 whole_archive_flag_spec_F77='$convenience'
14792 archive_cmds_need_lc_F77=yes
14793 # This is similar to how AIX traditionally builds its shared libraries.
14794 archive_expsym_cmds_F77="\$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'
14795 fi
14796 fi
14797 ;;
14798
14799 amigaos*)
14800 archive_cmds_F77='$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)'
14801 hardcode_libdir_flag_spec_F77='-L$libdir'
14802 hardcode_minus_L_F77=yes
14803 # see comment about different semantics on the GNU ld section
14804 ld_shlibs_F77=no
14805 ;;
14806
14807 bsdi[45]*)
14808 export_dynamic_flag_spec_F77=-rdynamic
14809 ;;
14810
14811 cygwin* | mingw* | pw32*)
14812 # When not using gcc, we currently assume that we are using
14813 # Microsoft Visual C++.
14814 # hardcode_libdir_flag_spec is actually meaningless, as there is
14815 # no search path for DLLs.
14816 hardcode_libdir_flag_spec_F77=' '
14817 allow_undefined_flag_F77=unsupported
14818 # Tell ltmain to make .lib files, not .a files.
14819 libext=lib
14820 # Tell ltmain to make .dll files, not .so files.
14821 shrext_cmds=".dll"
14822 # FIXME: Setting linknames here is a bad hack.
14823 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14824 # The linker will automatically build a .lib file if we build a DLL.
14825 old_archive_From_new_cmds_F77='true'
14826 # FIXME: Should let the user specify the lib program.
14827 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14828 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14829 enable_shared_with_static_runtimes_F77=yes
14830 ;;
14831
14832 darwin* | rhapsody*)
14833 case $host_os in
14834 rhapsody* | darwin1.[012])
14835 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14836 ;;
14837 *) # Darwin 1.3 on
14838 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14839 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14840 else
14841 case ${MACOSX_DEPLOYMENT_TARGET} in
14842 10.[012])
14843 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14844 ;;
14845 10.*)
14846 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14847 ;;
14848 esac
14849 fi
14850 ;;
14851 esac
14852 archive_cmds_need_lc_F77=no
14853 hardcode_direct_F77=no
14854 hardcode_automatic_F77=yes
14855 hardcode_shlibpath_var_F77=unsupported
14856 whole_archive_flag_spec_F77=''
14857 link_all_deplibs_F77=yes
14858 if test "$GCC" = yes ; then
14859 output_verbose_link_cmd='echo'
14860 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14861 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14863 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14864 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14865 else
14866 case $cc_basename in
14867 xlc*)
14868 output_verbose_link_cmd='echo'
14869 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14870 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14871 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14872 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14873 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14874 ;;
14875 *)
14876 ld_shlibs_F77=no
14877 ;;
14878 esac
14879 fi
14880 ;;
14881
14882 dgux*)
14883 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_libdir_flag_spec_F77='-L$libdir'
14885 hardcode_shlibpath_var_F77=no
14886 ;;
14887
14888 freebsd1*)
14889 ld_shlibs_F77=no
14890 ;;
14891
14892 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14893 # support. Future versions do this automatically, but an explicit c++rt0.o
14894 # does not break anything, and helps significantly (at the cost of a little
14895 # extra space).
14896 freebsd2.2*)
14897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14898 hardcode_libdir_flag_spec_F77='-R$libdir'
14899 hardcode_direct_F77=yes
14900 hardcode_shlibpath_var_F77=no
14901 ;;
14902
14903 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14904 freebsd2*)
14905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14906 hardcode_direct_F77=yes
14907 hardcode_minus_L_F77=yes
14908 hardcode_shlibpath_var_F77=no
14909 ;;
14910
14911 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14912 freebsd* | kfreebsd*-gnu | dragonfly*)
14913 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14914 hardcode_libdir_flag_spec_F77='-R$libdir'
14915 hardcode_direct_F77=yes
14916 hardcode_shlibpath_var_F77=no
14917 ;;
14918
14919 hpux9*)
14920 if test "$GCC" = yes; then
14921 archive_cmds_F77='$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'
14922 else
14923 archive_cmds_F77='$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'
14924 fi
14925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14926 hardcode_libdir_separator_F77=:
14927 hardcode_direct_F77=yes
14928
14929 # hardcode_minus_L: Not really in the search PATH,
14930 # but as the default location of the library.
14931 hardcode_minus_L_F77=yes
14932 export_dynamic_flag_spec_F77='${wl}-E'
14933 ;;
14934
14935 hpux10*)
14936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14937 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14938 else
14939 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14940 fi
14941 if test "$with_gnu_ld" = no; then
14942 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14943 hardcode_libdir_separator_F77=:
14944
14945 hardcode_direct_F77=yes
14946 export_dynamic_flag_spec_F77='${wl}-E'
14947
14948 # hardcode_minus_L: Not really in the search PATH,
14949 # but as the default location of the library.
14950 hardcode_minus_L_F77=yes
14951 fi
14952 ;;
14953
14954 hpux11*)
14955 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14956 case $host_cpu in
14957 hppa*64*)
14958 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 ;;
14960 ia64*)
14961 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14962 ;;
14963 *)
14964 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14965 ;;
14966 esac
14967 else
14968 case $host_cpu in
14969 hppa*64*)
14970 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14971 ;;
14972 ia64*)
14973 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14974 ;;
14975 *)
14976 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14977 ;;
14978 esac
14979 fi
14980 if test "$with_gnu_ld" = no; then
14981 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14982 hardcode_libdir_separator_F77=:
14983
14984 case $host_cpu in
14985 hppa*64*|ia64*)
14986 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14987 hardcode_direct_F77=no
14988 hardcode_shlibpath_var_F77=no
14989 ;;
14990 *)
14991 hardcode_direct_F77=yes
14992 export_dynamic_flag_spec_F77='${wl}-E'
14993
14994 # hardcode_minus_L: Not really in the search PATH,
14995 # but as the default location of the library.
14996 hardcode_minus_L_F77=yes
14997 ;;
14998 esac
14999 fi
15000 ;;
15001
15002 irix5* | irix6* | nonstopux*)
15003 if test "$GCC" = yes; then
15004 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15005 else
15006 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15007 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15008 fi
15009 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15010 hardcode_libdir_separator_F77=:
15011 link_all_deplibs_F77=yes
15012 ;;
15013
15014 netbsd*)
15015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15016 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15017 else
15018 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15019 fi
15020 hardcode_libdir_flag_spec_F77='-R$libdir'
15021 hardcode_direct_F77=yes
15022 hardcode_shlibpath_var_F77=no
15023 ;;
15024
15025 newsos6)
15026 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027 hardcode_direct_F77=yes
15028 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15029 hardcode_libdir_separator_F77=:
15030 hardcode_shlibpath_var_F77=no
15031 ;;
15032
15033 openbsd*)
15034 hardcode_direct_F77=yes
15035 hardcode_shlibpath_var_F77=no
15036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15037 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15039 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15040 export_dynamic_flag_spec_F77='${wl}-E'
15041 else
15042 case $host_os in
15043 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_libdir_flag_spec_F77='-R$libdir'
15046 ;;
15047 *)
15048 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15049 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15050 ;;
15051 esac
15052 fi
15053 ;;
15054
15055 os2*)
15056 hardcode_libdir_flag_spec_F77='-L$libdir'
15057 hardcode_minus_L_F77=yes
15058 allow_undefined_flag_F77=unsupported
15059 archive_cmds_F77='$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'
15060 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15061 ;;
15062
15063 osf3*)
15064 if test "$GCC" = yes; then
15065 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15066 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15067 else
15068 allow_undefined_flag_F77=' -expect_unresolved \*'
15069 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15070 fi
15071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15072 hardcode_libdir_separator_F77=:
15073 ;;
15074
15075 osf4* | osf5*) # as osf3* with the addition of -msym flag
15076 if test "$GCC" = yes; then
15077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15078 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15079 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15080 else
15081 allow_undefined_flag_F77=' -expect_unresolved \*'
15082 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15083 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15084 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15085
15086 # Both c and cxx compiler support -rpath directly
15087 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15088 fi
15089 hardcode_libdir_separator_F77=:
15090 ;;
15091
15092 solaris*)
15093 no_undefined_flag_F77=' -z text'
15094 if test "$GCC" = yes; then
15095 wlarc='${wl}'
15096 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15098 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15099 else
15100 wlarc=''
15101 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15102 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15104 fi
15105 hardcode_libdir_flag_spec_F77='-R$libdir'
15106 hardcode_shlibpath_var_F77=no
15107 case $host_os in
15108 solaris2.[0-5] | solaris2.[0-5].*) ;;
15109 *)
15110 # The compiler driver will combine linker options so we
15111 # cannot just pass the convience library names through
15112 # without $wl, iff we do not link with $LD.
15113 # Luckily, gcc supports the same syntax we need for Sun Studio.
15114 # Supported since Solaris 2.6 (maybe 2.5.1?)
15115 case $wlarc in
15116 '')
15117 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15118 *)
15119 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15120 esac ;;
15121 esac
15122 link_all_deplibs_F77=yes
15123 ;;
15124
15125 sunos4*)
15126 if test "x$host_vendor" = xsequent; then
15127 # Use $CC to link under sequent, because it throws in some extra .o
15128 # files that make .init and .fini sections work.
15129 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15130 else
15131 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15132 fi
15133 hardcode_libdir_flag_spec_F77='-L$libdir'
15134 hardcode_direct_F77=yes
15135 hardcode_minus_L_F77=yes
15136 hardcode_shlibpath_var_F77=no
15137 ;;
15138
15139 sysv4)
15140 case $host_vendor in
15141 sni)
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_direct_F77=yes # is this really true???
15144 ;;
15145 siemens)
15146 ## LD is ld it makes a PLAMLIB
15147 ## CC just makes a GrossModule.
15148 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15149 reload_cmds_F77='$CC -r -o $output$reload_objs'
15150 hardcode_direct_F77=no
15151 ;;
15152 motorola)
15153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15155 ;;
15156 esac
15157 runpath_var='LD_RUN_PATH'
15158 hardcode_shlibpath_var_F77=no
15159 ;;
15160
15161 sysv4.3*)
15162 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_shlibpath_var_F77=no
15164 export_dynamic_flag_spec_F77='-Bexport'
15165 ;;
15166
15167 sysv4*MP*)
15168 if test -d /usr/nec; then
15169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15170 hardcode_shlibpath_var_F77=no
15171 runpath_var=LD_RUN_PATH
15172 hardcode_runpath_var=yes
15173 ld_shlibs_F77=yes
15174 fi
15175 ;;
15176
15177 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15178 no_undefined_flag_F77='${wl}-z,text'
15179 archive_cmds_need_lc_F77=no
15180 hardcode_shlibpath_var_F77=no
15181 runpath_var='LD_RUN_PATH'
15182
15183 if test "$GCC" = yes; then
15184 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15185 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15186 else
15187 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15188 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15189 fi
15190 ;;
15191
15192 sysv5* | sco3.2v5* | sco5v6*)
15193 # Note: We can NOT use -z defs as we might desire, because we do not
15194 # link with -lc, and that would cause any symbols used from libc to
15195 # always be unresolved, which means just about no library would
15196 # ever link correctly. If we're not using GNU ld we use -z text
15197 # though, which does catch some bad symbols but isn't as heavy-handed
15198 # as -z defs.
15199 no_undefined_flag_F77='${wl}-z,text'
15200 allow_undefined_flag_F77='${wl}-z,nodefs'
15201 archive_cmds_need_lc_F77=no
15202 hardcode_shlibpath_var_F77=no
15203 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15204 hardcode_libdir_separator_F77=':'
15205 link_all_deplibs_F77=yes
15206 export_dynamic_flag_spec_F77='${wl}-Bexport'
15207 runpath_var='LD_RUN_PATH'
15208
15209 if test "$GCC" = yes; then
15210 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15212 else
15213 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15214 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 fi
15216 ;;
15217
15218 uts4*)
15219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_libdir_flag_spec_F77='-L$libdir'
15221 hardcode_shlibpath_var_F77=no
15222 ;;
15223
15224 *)
15225 ld_shlibs_F77=no
15226 ;;
15227 esac
15228 fi
15229
Jef Poskanzer437537f2012-11-30 12:16:17 -080015230{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
jef56a97f92012-08-20 14:35:58 -070015231$as_echo "$ld_shlibs_F77" >&6; }
15232test "$ld_shlibs_F77" = no && can_build_shared=no
15233
15234#
15235# Do we need to explicitly link libc?
15236#
15237case "x$archive_cmds_need_lc_F77" in
15238x|xyes)
15239 # Assume -lc should be added
15240 archive_cmds_need_lc_F77=yes
15241
15242 if test "$enable_shared" = yes && test "$GCC" = yes; then
15243 case $archive_cmds_F77 in
15244 *'~'*)
15245 # FIXME: we may have to deal with multi-command sequences.
15246 ;;
15247 '$CC '*)
15248 # Test whether the compiler implicitly links with -lc since on some
15249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15250 # to ld, don't add -lc before -lgcc.
Jef Poskanzer437537f2012-11-30 12:16:17 -080015251 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
jef56a97f92012-08-20 14:35:58 -070015252$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15253 $rm conftest*
15254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15255
Jef Poskanzer437537f2012-11-30 12:16:17 -080015256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070015257 (eval $ac_compile) 2>&5
15258 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080015259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } 2>conftest.err; then
jef56a97f92012-08-20 14:35:58 -070015261 soname=conftest
15262 lib=conftest
15263 libobjs=conftest.$ac_objext
15264 deplibs=
15265 wl=$lt_prog_compiler_wl_F77
15266 pic_flag=$lt_prog_compiler_pic_F77
15267 compiler_flags=-v
15268 linker_flags=-v
15269 verstring=
15270 output_objdir=.
15271 libname=conftest
15272 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15273 allow_undefined_flag_F77=
Jef Poskanzer437537f2012-11-30 12:16:17 -080015274 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
jef56a97f92012-08-20 14:35:58 -070015275 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15276 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080015277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }
jef56a97f92012-08-20 14:35:58 -070015279 then
15280 archive_cmds_need_lc_F77=no
15281 else
15282 archive_cmds_need_lc_F77=yes
15283 fi
15284 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15285 else
15286 cat conftest.err 1>&5
15287 fi
15288 $rm conftest*
Jef Poskanzer437537f2012-11-30 12:16:17 -080015289 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
jef56a97f92012-08-20 14:35:58 -070015290$as_echo "$archive_cmds_need_lc_F77" >&6; }
15291 ;;
15292 esac
15293 fi
15294 ;;
15295esac
15296
Jef Poskanzer437537f2012-11-30 12:16:17 -080015297{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
jef56a97f92012-08-20 14:35:58 -070015298$as_echo_n "checking dynamic linker characteristics... " >&6; }
15299library_names_spec=
15300libname_spec='lib$name'
15301soname_spec=
15302shrext_cmds=".so"
15303postinstall_cmds=
15304postuninstall_cmds=
15305finish_cmds=
15306finish_eval=
15307shlibpath_var=
15308shlibpath_overrides_runpath=unknown
15309version_type=none
15310dynamic_linker="$host_os ld.so"
15311sys_lib_dlsearch_path_spec="/lib /usr/lib"
15312if test "$GCC" = yes; then
15313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15314 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15315 # if the path contains ";" then we assume it to be the separator
15316 # otherwise default to the standard path separator (i.e. ":") - it is
15317 # assumed that no part of a normal pathname contains ";" but that should
15318 # okay in the real world where ";" in dirpaths is itself problematic.
15319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15320 else
15321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15322 fi
15323else
15324 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15325fi
15326need_lib_prefix=unknown
15327hardcode_into_libs=no
15328
15329# when you set need_version to no, make sure it does not cause -set_version
15330# flags to be left without arguments
15331need_version=unknown
15332
15333case $host_os in
15334aix3*)
15335 version_type=linux
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15337 shlibpath_var=LIBPATH
15338
15339 # AIX 3 has no versioning support, so we append a major version to the name.
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 ;;
15342
15343aix4* | aix5*)
15344 version_type=linux
15345 need_lib_prefix=no
15346 need_version=no
15347 hardcode_into_libs=yes
15348 if test "$host_cpu" = ia64; then
15349 # AIX 5 supports IA64
15350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 else
15353 # With GCC up to 2.95.x, collect2 would create an import file
15354 # for dependence libraries. The import file would start with
15355 # the line `#! .'. This would cause the generated library to
15356 # depend on `.', always an invalid library. This was fixed in
15357 # development snapshots of GCC prior to 3.0.
15358 case $host_os in
15359 aix4 | aix4.[01] | aix4.[01].*)
15360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15361 echo ' yes '
15362 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15363 :
15364 else
15365 can_build_shared=no
15366 fi
15367 ;;
15368 esac
15369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15370 # soname into executable. Probably we can add versioning support to
15371 # collect2, so additional links can be useful in future.
15372 if test "$aix_use_runtimelinking" = yes; then
15373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15374 # instead of lib<name>.a to let people know that these are not
15375 # typical AIX shared libraries.
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 else
15378 # We preserve .a as extension for shared libraries through AIX4.2
15379 # and later when we are not doing run time linking.
15380 library_names_spec='${libname}${release}.a $libname.a'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 fi
15383 shlibpath_var=LIBPATH
15384 fi
15385 ;;
15386
15387amigaos*)
15388 library_names_spec='$libname.ixlibrary $libname.a'
15389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15390 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'
15391 ;;
15392
15393beos*)
15394 library_names_spec='${libname}${shared_ext}'
15395 dynamic_linker="$host_os ld.so"
15396 shlibpath_var=LIBRARY_PATH
15397 ;;
15398
15399bsdi[45]*)
15400 version_type=linux
15401 need_version=no
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15408 # the default ld.so.conf also contains /usr/contrib/lib and
15409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15410 # libtool to hard-code these into programs
15411 ;;
15412
15413cygwin* | mingw* | pw32*)
15414 version_type=windows
15415 shrext_cmds=".dll"
15416 need_version=no
15417 need_lib_prefix=no
15418
15419 case $GCC,$host_os in
15420 yes,cygwin* | yes,mingw* | yes,pw32*)
15421 library_names_spec='$libname.dll.a'
15422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15423 postinstall_cmds='base_file=`basename \${file}`~
15424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15425 dldir=$destdir/`dirname \$dlpath`~
15426 test -d \$dldir || mkdir -p \$dldir~
15427 $install_prog $dir/$dlname \$dldir/$dlname~
15428 chmod a+x \$dldir/$dlname'
15429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15430 dlpath=$dir/\$dldll~
15431 $rm \$dlpath'
15432 shlibpath_overrides_runpath=yes
15433
15434 case $host_os in
15435 cygwin*)
15436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15439 ;;
15440 mingw*)
15441 # MinGW DLLs use traditional 'lib' prefix
15442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15444 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15445 # It is most probably a Windows format PATH printed by
15446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15447 # path with ; separators, and with drive letters. We can handle the
15448 # drive letters (cygwin fileutils understands them), so leave them,
15449 # especially as we might pass files found there to a mingw objdump,
15450 # which wouldn't understand a cygwinified path. Ahh.
15451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15452 else
15453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15454 fi
15455 ;;
15456 pw32*)
15457 # pw32 DLLs use 'pw' prefix rather than 'lib'
15458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15459 ;;
15460 esac
15461 ;;
15462
15463 *)
15464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15465 ;;
15466 esac
15467 dynamic_linker='Win32 ld.exe'
15468 # FIXME: first we should search . and the directory the executable is in
15469 shlibpath_var=PATH
15470 ;;
15471
15472darwin* | rhapsody*)
15473 dynamic_linker="$host_os dyld"
15474 version_type=darwin
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15478 soname_spec='${libname}${release}${major}$shared_ext'
15479 shlibpath_overrides_runpath=yes
15480 shlibpath_var=DYLD_LIBRARY_PATH
15481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15482 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15483 if test "$GCC" = yes; then
15484 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15485 else
15486 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15487 fi
15488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15489 ;;
15490
15491dgux*)
15492 version_type=linux
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 ;;
15499
15500freebsd1*)
15501 dynamic_linker=no
15502 ;;
15503
15504kfreebsd*-gnu)
15505 version_type=linux
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=no
15512 hardcode_into_libs=yes
15513 dynamic_linker='GNU ld.so'
15514 ;;
15515
15516freebsd* | dragonfly*)
15517 # DragonFly does not have aout. When/if they implement a new
15518 # versioning mechanism, adjust this.
15519 if test -x /usr/bin/objformat; then
15520 objformat=`/usr/bin/objformat`
15521 else
15522 case $host_os in
15523 freebsd[123]*) objformat=aout ;;
15524 *) objformat=elf ;;
15525 esac
15526 fi
15527 version_type=freebsd-$objformat
15528 case $version_type in
15529 freebsd-elf*)
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15531 need_version=no
15532 need_lib_prefix=no
15533 ;;
15534 freebsd-*)
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15536 need_version=yes
15537 ;;
15538 esac
15539 shlibpath_var=LD_LIBRARY_PATH
15540 case $host_os in
15541 freebsd2*)
15542 shlibpath_overrides_runpath=yes
15543 ;;
15544 freebsd3.[01]* | freebsdelf3.[01]*)
15545 shlibpath_overrides_runpath=yes
15546 hardcode_into_libs=yes
15547 ;;
15548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15550 shlibpath_overrides_runpath=no
15551 hardcode_into_libs=yes
15552 ;;
15553 freebsd*) # from 4.6 on
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15556 ;;
15557 esac
15558 ;;
15559
15560gnu*)
15561 version_type=linux
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 hardcode_into_libs=yes
15568 ;;
15569
15570hpux9* | hpux10* | hpux11*)
15571 # Give a soname corresponding to the major version so that dld.sl refuses to
15572 # link against other versions.
15573 version_type=sunos
15574 need_lib_prefix=no
15575 need_version=no
15576 case $host_cpu in
15577 ia64*)
15578 shrext_cmds='.so'
15579 hardcode_into_libs=yes
15580 dynamic_linker="$host_os dld.so"
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 if test "X$HPUX_IA64_MODE" = X32; then
15586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15587 else
15588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15589 fi
15590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15591 ;;
15592 hppa*64*)
15593 shrext_cmds='.sl'
15594 hardcode_into_libs=yes
15595 dynamic_linker="$host_os dld.sl"
15596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15602 ;;
15603 *)
15604 shrext_cmds='.sl'
15605 dynamic_linker="$host_os dld.sl"
15606 shlibpath_var=SHLIB_PATH
15607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 ;;
15611 esac
15612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15613 postinstall_cmds='chmod 555 $lib'
15614 ;;
15615
15616interix3*)
15617 version_type=linux
15618 need_lib_prefix=no
15619 need_version=no
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15626 ;;
15627
15628irix5* | irix6* | nonstopux*)
15629 case $host_os in
15630 nonstopux*) version_type=nonstopux ;;
15631 *)
15632 if test "$lt_cv_prog_gnu_ld" = yes; then
15633 version_type=linux
15634 else
15635 version_type=irix
15636 fi ;;
15637 esac
15638 need_lib_prefix=no
15639 need_version=no
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15642 case $host_os in
15643 irix5* | nonstopux*)
15644 libsuff= shlibsuff=
15645 ;;
15646 *)
15647 case $LD in # libtool.m4 will add one of these switches to LD
15648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15649 libsuff= shlibsuff= libmagic=32-bit;;
15650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15651 libsuff=32 shlibsuff=N32 libmagic=N32;;
15652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15654 *) libsuff= shlibsuff= libmagic=never-match;;
15655 esac
15656 ;;
15657 esac
15658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15659 shlibpath_overrides_runpath=no
15660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15662 hardcode_into_libs=yes
15663 ;;
15664
15665# No shared lib support for Linux oldld, aout, or coff.
15666linux*oldld* | linux*aout* | linux*coff*)
15667 dynamic_linker=no
15668 ;;
15669
15670# This must be Linux ELF.
15671linux*)
15672 version_type=linux
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 shlibpath_overrides_runpath=no
15680 # This implies no fast_install, which is unacceptable.
15681 # Some rework will be needed to allow for fast_install
15682 # before this can be enabled.
15683 hardcode_into_libs=yes
15684
15685 # find out which ABI we are using
15686 libsuff=
15687 case "$host_cpu" in
15688 x86_64*|s390x*|powerpc64*)
Jef Poskanzer437537f2012-11-30 12:16:17 -080015689 echo '#line 15689 "configure"' > conftest.$ac_ext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070015691 (eval $ac_compile) 2>&5
15692 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080015693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -070015695 case `/usr/bin/file conftest.$ac_objext` in
15696 *64-bit*)
15697 libsuff=64
15698 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15699 ;;
15700 esac
15701 fi
15702 rm -rf conftest*
15703 ;;
15704 esac
15705
15706 # Append ld.so.conf contents to the search path
15707 if test -f /etc/ld.so.conf; then
15708 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15709 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15710 fi
15711
15712 # We used to test for /lib/ld.so.1 and disable shared libraries on
15713 # powerpc, because MkLinux only supported shared libraries with the
15714 # GNU dynamic linker. Since this was broken with cross compilers,
15715 # most powerpc-linux boxes support dynamic linking these days and
15716 # people can always --disable-shared, the test was removed, and we
15717 # assume the GNU/Linux dynamic linker is in use.
15718 dynamic_linker='GNU/Linux ld.so'
15719 ;;
15720
15721knetbsd*-gnu)
15722 version_type=linux
15723 need_lib_prefix=no
15724 need_version=no
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15726 soname_spec='${libname}${release}${shared_ext}$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 shlibpath_overrides_runpath=no
15729 hardcode_into_libs=yes
15730 dynamic_linker='GNU ld.so'
15731 ;;
15732
15733netbsd*)
15734 version_type=sunos
15735 need_lib_prefix=no
15736 need_version=no
15737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15740 dynamic_linker='NetBSD (a.out) ld.so'
15741 else
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 dynamic_linker='NetBSD ld.elf_so'
15745 fi
15746 shlibpath_var=LD_LIBRARY_PATH
15747 shlibpath_overrides_runpath=yes
15748 hardcode_into_libs=yes
15749 ;;
15750
15751newsos6)
15752 version_type=linux
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15756 ;;
15757
15758nto-qnx*)
15759 version_type=linux
15760 need_lib_prefix=no
15761 need_version=no
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=yes
15766 ;;
15767
15768openbsd*)
15769 version_type=sunos
15770 sys_lib_dlsearch_path_spec="/usr/lib"
15771 need_lib_prefix=no
15772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15773 case $host_os in
15774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15775 *) need_version=no ;;
15776 esac
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15781 case $host_os in
15782 openbsd2.[89] | openbsd2.[89].*)
15783 shlibpath_overrides_runpath=no
15784 ;;
15785 *)
15786 shlibpath_overrides_runpath=yes
15787 ;;
15788 esac
15789 else
15790 shlibpath_overrides_runpath=yes
15791 fi
15792 ;;
15793
15794os2*)
15795 libname_spec='$name'
15796 shrext_cmds=".dll"
15797 need_lib_prefix=no
15798 library_names_spec='$libname${shared_ext} $libname.a'
15799 dynamic_linker='OS/2 ld.exe'
15800 shlibpath_var=LIBPATH
15801 ;;
15802
15803osf3* | osf4* | osf5*)
15804 version_type=osf
15805 need_lib_prefix=no
15806 need_version=no
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15812 ;;
15813
15814solaris*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 # ldd complains unless libraries are executable
15824 postinstall_cmds='chmod +x $lib'
15825 ;;
15826
15827sunos4*)
15828 version_type=sunos
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 shlibpath_overrides_runpath=yes
15833 if test "$with_gnu_ld" = yes; then
15834 need_lib_prefix=no
15835 fi
15836 need_version=yes
15837 ;;
15838
15839sysv4 | sysv4.3*)
15840 version_type=linux
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 case $host_vendor in
15845 sni)
15846 shlibpath_overrides_runpath=no
15847 need_lib_prefix=no
15848 export_dynamic_flag_spec='${wl}-Blargedynsym'
15849 runpath_var=LD_RUN_PATH
15850 ;;
15851 siemens)
15852 need_lib_prefix=no
15853 ;;
15854 motorola)
15855 need_lib_prefix=no
15856 need_version=no
15857 shlibpath_overrides_runpath=no
15858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15859 ;;
15860 esac
15861 ;;
15862
15863sysv4*MP*)
15864 if test -d /usr/nec ;then
15865 version_type=linux
15866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15867 soname_spec='$libname${shared_ext}.$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 fi
15870 ;;
15871
15872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15873 version_type=freebsd-elf
15874 need_lib_prefix=no
15875 need_version=no
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 hardcode_into_libs=yes
15880 if test "$with_gnu_ld" = yes; then
15881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15882 shlibpath_overrides_runpath=no
15883 else
15884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15885 shlibpath_overrides_runpath=yes
15886 case $host_os in
15887 sco3.2v5*)
15888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15889 ;;
15890 esac
15891 fi
15892 sys_lib_dlsearch_path_spec='/usr/lib'
15893 ;;
15894
15895uts4*)
15896 version_type=linux
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 ;;
15901
15902*)
15903 dynamic_linker=no
15904 ;;
15905esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080015906{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
jef56a97f92012-08-20 14:35:58 -070015907$as_echo "$dynamic_linker" >&6; }
15908test "$dynamic_linker" = no && can_build_shared=no
15909
15910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15911if test "$GCC" = yes; then
15912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15913fi
15914
Jef Poskanzer437537f2012-11-30 12:16:17 -080015915{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
jef56a97f92012-08-20 14:35:58 -070015916$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15917hardcode_action_F77=
15918if test -n "$hardcode_libdir_flag_spec_F77" || \
15919 test -n "$runpath_var_F77" || \
15920 test "X$hardcode_automatic_F77" = "Xyes" ; then
15921
15922 # We can hardcode non-existant directories.
15923 if test "$hardcode_direct_F77" != no &&
15924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15925 # have to relink, otherwise we might link with an installed library
15926 # when we should be linking with a yet-to-be-installed one
15927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15928 test "$hardcode_minus_L_F77" != no; then
15929 # Linking always hardcodes the temporary library directory.
15930 hardcode_action_F77=relink
15931 else
15932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15933 hardcode_action_F77=immediate
15934 fi
15935else
15936 # We cannot hardcode anything, or else we can only hardcode existing
15937 # directories.
15938 hardcode_action_F77=unsupported
15939fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080015940{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
jef56a97f92012-08-20 14:35:58 -070015941$as_echo "$hardcode_action_F77" >&6; }
15942
15943if test "$hardcode_action_F77" = relink; then
15944 # Fast installation is not supported
15945 enable_fast_install=no
15946elif test "$shlibpath_overrides_runpath" = yes ||
15947 test "$enable_shared" = no; then
15948 # Fast installation is not necessary
15949 enable_fast_install=needless
15950fi
15951
15952
15953# The else clause should only fire when bootstrapping the
15954# libtool distribution, otherwise you forgot to ship ltmain.sh
15955# with your package, and you will get complaints that there are
15956# no rules to generate ltmain.sh.
15957if test -f "$ltmain"; then
15958 # See if we are running on zsh, and set the options which allow our commands through
15959 # without removal of \ escapes.
15960 if test -n "${ZSH_VERSION+set}" ; then
15961 setopt NO_GLOB_SUBST
15962 fi
15963 # Now quote all the things that may contain metacharacters while being
15964 # careful not to overquote the AC_SUBSTed values. We take copies of the
15965 # variables and quote the copies for generation of the libtool script.
15966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15967 SED SHELL STRIP \
15968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15970 deplibs_check_method reload_flag reload_cmds need_locks \
15971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15972 lt_cv_sys_global_symbol_to_c_name_address \
15973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15974 old_postinstall_cmds old_postuninstall_cmds \
15975 compiler_F77 \
15976 CC_F77 \
15977 LD_F77 \
15978 lt_prog_compiler_wl_F77 \
15979 lt_prog_compiler_pic_F77 \
15980 lt_prog_compiler_static_F77 \
15981 lt_prog_compiler_no_builtin_flag_F77 \
15982 export_dynamic_flag_spec_F77 \
15983 thread_safe_flag_spec_F77 \
15984 whole_archive_flag_spec_F77 \
15985 enable_shared_with_static_runtimes_F77 \
15986 old_archive_cmds_F77 \
15987 old_archive_from_new_cmds_F77 \
15988 predep_objects_F77 \
15989 postdep_objects_F77 \
15990 predeps_F77 \
15991 postdeps_F77 \
15992 compiler_lib_search_path_F77 \
15993 archive_cmds_F77 \
15994 archive_expsym_cmds_F77 \
15995 postinstall_cmds_F77 \
15996 postuninstall_cmds_F77 \
15997 old_archive_from_expsyms_cmds_F77 \
15998 allow_undefined_flag_F77 \
15999 no_undefined_flag_F77 \
16000 export_symbols_cmds_F77 \
16001 hardcode_libdir_flag_spec_F77 \
16002 hardcode_libdir_flag_spec_ld_F77 \
16003 hardcode_libdir_separator_F77 \
16004 hardcode_automatic_F77 \
16005 module_cmds_F77 \
16006 module_expsym_cmds_F77 \
16007 lt_cv_prog_compiler_c_o_F77 \
16008 exclude_expsyms_F77 \
16009 include_expsyms_F77; do
16010
16011 case $var in
16012 old_archive_cmds_F77 | \
16013 old_archive_from_new_cmds_F77 | \
16014 archive_cmds_F77 | \
16015 archive_expsym_cmds_F77 | \
16016 module_cmds_F77 | \
16017 module_expsym_cmds_F77 | \
16018 old_archive_from_expsyms_cmds_F77 | \
16019 export_symbols_cmds_F77 | \
16020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16021 postinstall_cmds | postuninstall_cmds | \
16022 old_postinstall_cmds | old_postuninstall_cmds | \
16023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16024 # Double-quote double-evaled strings.
16025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16026 ;;
16027 *)
16028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16029 ;;
16030 esac
16031 done
16032
16033 case $lt_echo in
16034 *'\$0 --fallback-echo"')
16035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16036 ;;
16037 esac
16038
16039cfgfile="$ofile"
16040
16041 cat <<__EOF__ >> "$cfgfile"
16042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16043
16044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16045
16046# Shell to use when invoking shell scripts.
16047SHELL=$lt_SHELL
16048
16049# Whether or not to build shared libraries.
16050build_libtool_libs=$enable_shared
16051
16052# Whether or not to build static libraries.
16053build_old_libs=$enable_static
16054
16055# Whether or not to add -lc for building shared libraries.
16056build_libtool_need_lc=$archive_cmds_need_lc_F77
16057
16058# Whether or not to disallow shared libs when runtime libs are static
16059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16060
16061# Whether or not to optimize for fast installation.
16062fast_install=$enable_fast_install
16063
16064# The host system.
16065host_alias=$host_alias
16066host=$host
16067host_os=$host_os
16068
16069# The build system.
16070build_alias=$build_alias
16071build=$build
16072build_os=$build_os
16073
16074# An echo program that does not interpret backslashes.
16075echo=$lt_echo
16076
16077# The archiver.
16078AR=$lt_AR
16079AR_FLAGS=$lt_AR_FLAGS
16080
16081# A C compiler.
16082LTCC=$lt_LTCC
16083
16084# LTCC compiler flags.
16085LTCFLAGS=$lt_LTCFLAGS
16086
16087# A language-specific compiler.
16088CC=$lt_compiler_F77
16089
16090# Is the compiler the GNU C compiler?
16091with_gcc=$GCC_F77
16092
16093gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16094gcc_ver=\`gcc -dumpversion\`
16095
16096# An ERE matcher.
16097EGREP=$lt_EGREP
16098
16099# The linker used to build libraries.
16100LD=$lt_LD_F77
16101
16102# Whether we need hard or soft links.
16103LN_S=$lt_LN_S
16104
16105# A BSD-compatible nm program.
16106NM=$lt_NM
16107
16108# A symbol stripping program
16109STRIP=$lt_STRIP
16110
16111# Used to examine libraries when file_magic_cmd begins "file"
16112MAGIC_CMD=$MAGIC_CMD
16113
16114# Used on cygwin: DLL creation program.
16115DLLTOOL="$DLLTOOL"
16116
16117# Used on cygwin: object dumper.
16118OBJDUMP="$OBJDUMP"
16119
16120# Used on cygwin: assembler.
16121AS="$AS"
16122
16123# The name of the directory that contains temporary libtool files.
16124objdir=$objdir
16125
16126# How to create reloadable object files.
16127reload_flag=$lt_reload_flag
16128reload_cmds=$lt_reload_cmds
16129
16130# How to pass a linker flag through the compiler.
16131wl=$lt_lt_prog_compiler_wl_F77
16132
16133# Object file suffix (normally "o").
16134objext="$ac_objext"
16135
16136# Old archive suffix (normally "a").
16137libext="$libext"
16138
16139# Shared library suffix (normally ".so").
16140shrext_cmds='$shrext_cmds'
16141
16142# Executable file suffix (normally "").
16143exeext="$exeext"
16144
16145# Additional compiler flags for building library objects.
16146pic_flag=$lt_lt_prog_compiler_pic_F77
16147pic_mode=$pic_mode
16148
16149# What is the maximum length of a command?
16150max_cmd_len=$lt_cv_sys_max_cmd_len
16151
16152# Does compiler simultaneously support -c and -o options?
16153compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16154
16155# Must we lock files when doing compilation?
16156need_locks=$lt_need_locks
16157
16158# Do we need the lib prefix for modules?
16159need_lib_prefix=$need_lib_prefix
16160
16161# Do we need a version for libraries?
16162need_version=$need_version
16163
16164# Whether dlopen is supported.
16165dlopen_support=$enable_dlopen
16166
16167# Whether dlopen of programs is supported.
16168dlopen_self=$enable_dlopen_self
16169
16170# Whether dlopen of statically linked programs is supported.
16171dlopen_self_static=$enable_dlopen_self_static
16172
16173# Compiler flag to prevent dynamic linking.
16174link_static_flag=$lt_lt_prog_compiler_static_F77
16175
16176# Compiler flag to turn off builtin functions.
16177no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16178
16179# Compiler flag to allow reflexive dlopens.
16180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16181
16182# Compiler flag to generate shared objects directly from archives.
16183whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16184
16185# Compiler flag to generate thread-safe objects.
16186thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16187
16188# Library versioning type.
16189version_type=$version_type
16190
16191# Format of library name prefix.
16192libname_spec=$lt_libname_spec
16193
16194# List of archive names. First name is the real one, the rest are links.
16195# The last name is the one that the linker finds with -lNAME.
16196library_names_spec=$lt_library_names_spec
16197
16198# The coded name of the library, if different from the real name.
16199soname_spec=$lt_soname_spec
16200
16201# Commands used to build and install an old-style archive.
16202RANLIB=$lt_RANLIB
16203old_archive_cmds=$lt_old_archive_cmds_F77
16204old_postinstall_cmds=$lt_old_postinstall_cmds
16205old_postuninstall_cmds=$lt_old_postuninstall_cmds
16206
16207# Create an old-style archive from a shared archive.
16208old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16209
16210# Create a temporary old-style archive to link instead of a shared archive.
16211old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16212
16213# Commands used to build and install a shared archive.
16214archive_cmds=$lt_archive_cmds_F77
16215archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16216postinstall_cmds=$lt_postinstall_cmds
16217postuninstall_cmds=$lt_postuninstall_cmds
16218
16219# Commands used to build a loadable module (assumed same as above if empty)
16220module_cmds=$lt_module_cmds_F77
16221module_expsym_cmds=$lt_module_expsym_cmds_F77
16222
16223# Commands to strip libraries.
16224old_striplib=$lt_old_striplib
16225striplib=$lt_striplib
16226
16227# Dependencies to place before the objects being linked to create a
16228# shared library.
16229predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16230
16231# Dependencies to place after the objects being linked to create a
16232# shared library.
16233postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16234
16235# Dependencies to place before the objects being linked to create a
16236# shared library.
16237predeps=$lt_predeps_F77
16238
16239# Dependencies to place after the objects being linked to create a
16240# shared library.
16241postdeps=$lt_postdeps_F77
16242
16243# The library search path used internally by the compiler when linking
16244# a shared library.
16245compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16246
16247# Method to check whether dependent libraries are shared objects.
16248deplibs_check_method=$lt_deplibs_check_method
16249
16250# Command to use when deplibs_check_method == file_magic.
16251file_magic_cmd=$lt_file_magic_cmd
16252
16253# Flag that allows shared libraries with undefined symbols to be built.
16254allow_undefined_flag=$lt_allow_undefined_flag_F77
16255
16256# Flag that forces no undefined symbols.
16257no_undefined_flag=$lt_no_undefined_flag_F77
16258
16259# Commands used to finish a libtool library installation in a directory.
16260finish_cmds=$lt_finish_cmds
16261
16262# Same as above, but a single script fragment to be evaled but not shown.
16263finish_eval=$lt_finish_eval
16264
16265# Take the output of nm and produce a listing of raw symbols and C names.
16266global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16267
16268# Transform the output of nm in a proper C declaration
16269global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16270
16271# Transform the output of nm in a C name address pair
16272global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16273
16274# This is the shared library runtime path variable.
16275runpath_var=$runpath_var
16276
16277# This is the shared library path variable.
16278shlibpath_var=$shlibpath_var
16279
16280# Is shlibpath searched before the hard-coded library search path?
16281shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16282
16283# How to hardcode a shared library path into an executable.
16284hardcode_action=$hardcode_action_F77
16285
16286# Whether we should hardcode library paths into libraries.
16287hardcode_into_libs=$hardcode_into_libs
16288
16289# Flag to hardcode \$libdir into a binary during linking.
16290# This must work even if \$libdir does not exist.
16291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16292
16293# If ld is used when linking, flag to hardcode \$libdir into
16294# a binary during linking. This must work even if \$libdir does
16295# not exist.
16296hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16297
16298# Whether we need a single -rpath flag with a separated argument.
16299hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16300
16301# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16302# resulting binary.
16303hardcode_direct=$hardcode_direct_F77
16304
16305# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16306# resulting binary.
16307hardcode_minus_L=$hardcode_minus_L_F77
16308
16309# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16310# the resulting binary.
16311hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16312
16313# Set to yes if building a shared library automatically hardcodes DIR into the library
16314# and all subsequent libraries and executables linked against it.
16315hardcode_automatic=$hardcode_automatic_F77
16316
16317# Variables whose values should be saved in libtool wrapper scripts and
16318# restored at relink time.
16319variables_saved_for_relink="$variables_saved_for_relink"
16320
16321# Whether libtool must link a program against all its dependency libraries.
16322link_all_deplibs=$link_all_deplibs_F77
16323
16324# Compile-time system search path for libraries
16325sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16326
16327# Run-time system search path for libraries
16328sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16329
16330# Fix the shell variable \$srcfile for the compiler.
16331fix_srcfile_path="$fix_srcfile_path_F77"
16332
16333# Set to yes if exported symbols are required.
16334always_export_symbols=$always_export_symbols_F77
16335
16336# The commands to list exported symbols.
16337export_symbols_cmds=$lt_export_symbols_cmds_F77
16338
16339# The commands to extract the exported symbol list from a shared archive.
16340extract_expsyms_cmds=$lt_extract_expsyms_cmds
16341
16342# Symbols that should not be listed in the preloaded symbols.
16343exclude_expsyms=$lt_exclude_expsyms_F77
16344
16345# Symbols that must always be exported.
16346include_expsyms=$lt_include_expsyms_F77
16347
16348# ### END LIBTOOL TAG CONFIG: $tagname
16349
16350__EOF__
16351
16352
16353else
16354 # If there is no Makefile yet, we rely on a make rule to execute
16355 # `config.status --recheck' to rerun these tests and create the
16356 # libtool script then.
16357 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16358 if test -f "$ltmain_in"; then
16359 test -f Makefile && make "$ltmain"
16360 fi
16361fi
16362
16363
16364ac_ext=c
16365ac_cpp='$CPP $CPPFLAGS'
16366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16368ac_compiler_gnu=$ac_cv_c_compiler_gnu
16369
16370CC="$lt_save_CC"
16371
16372 else
16373 tagname=""
16374 fi
16375 ;;
16376
16377 GCJ)
16378 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16379
16380
16381# Source file extension for Java test sources.
16382ac_ext=java
16383
16384# Object file extension for compiled Java test sources.
16385objext=o
16386objext_GCJ=$objext
16387
16388# Code to be used in simple compile tests
16389lt_simple_compile_test_code="class foo {}\n"
16390
16391# Code to be used in simple link tests
16392lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16393
16394# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16395
16396# If no C compiler was specified, use CC.
16397LTCC=${LTCC-"$CC"}
16398
16399# If no C compiler flags were specified, use CFLAGS.
16400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16401
16402# Allow CC to be a program name with arguments.
16403compiler=$CC
16404
16405
16406# save warnings/boilerplate of simple test code
16407ac_outfile=conftest.$ac_objext
16408printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16410_lt_compiler_boilerplate=`cat conftest.err`
16411$rm conftest*
16412
16413ac_outfile=conftest.$ac_objext
16414printf "$lt_simple_link_test_code" >conftest.$ac_ext
16415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16416_lt_linker_boilerplate=`cat conftest.err`
16417$rm conftest*
16418
16419
16420# Allow CC to be a program name with arguments.
16421lt_save_CC="$CC"
16422CC=${GCJ-"gcj"}
16423compiler=$CC
16424compiler_GCJ=$CC
16425for cc_temp in $compiler""; do
16426 case $cc_temp in
16427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16429 \-*) ;;
16430 *) break;;
16431 esac
16432done
16433cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16434
16435
16436# GCJ did not exist at the time GCC didn't implicitly link libc in.
16437archive_cmds_need_lc_GCJ=no
16438
16439old_archive_cmds_GCJ=$old_archive_cmds
16440
16441
16442lt_prog_compiler_no_builtin_flag_GCJ=
16443
16444if test "$GCC" = yes; then
16445 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16446
16447
Jef Poskanzer437537f2012-11-30 12:16:17 -080016448{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
jef56a97f92012-08-20 14:35:58 -070016449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080016450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070016451 $as_echo_n "(cached) " >&6
16452else
16453 lt_cv_prog_compiler_rtti_exceptions=no
16454 ac_outfile=conftest.$ac_objext
16455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16456 lt_compiler_flag="-fno-rtti -fno-exceptions"
16457 # Insert the option either (1) after the last *FLAGS variable, or
16458 # (2) before a word containing "conftest.", or (3) at the end.
16459 # Note that $ac_compile itself does not contain backslashes and begins
16460 # with a dollar sign (not a hyphen), so the echo should work correctly.
16461 # The option is referenced via a variable to avoid confusing sed.
16462 lt_compile=`echo "$ac_compile" | $SED \
16463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16465 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080016466 (eval echo "\"\$as_me:16466: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070016467 (eval "$lt_compile" 2>conftest.err)
16468 ac_status=$?
16469 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080016470 echo "$as_me:16470: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070016471 if (exit $ac_status) && test -s "$ac_outfile"; then
16472 # The compiler can only warn and ignore the option if not recognized
16473 # So say no if there are warnings other than the usual output.
16474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16477 lt_cv_prog_compiler_rtti_exceptions=yes
16478 fi
16479 fi
16480 $rm conftest*
16481
16482fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080016483{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
jef56a97f92012-08-20 14:35:58 -070016484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16485
16486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16487 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16488else
16489 :
16490fi
16491
16492fi
16493
16494lt_prog_compiler_wl_GCJ=
16495lt_prog_compiler_pic_GCJ=
16496lt_prog_compiler_static_GCJ=
16497
Jef Poskanzer437537f2012-11-30 12:16:17 -080016498{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
jef56a97f92012-08-20 14:35:58 -070016499$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16500
16501 if test "$GCC" = yes; then
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 lt_prog_compiler_static_GCJ='-static'
16504
16505 case $host_os in
16506 aix*)
16507 # All AIX code is PIC.
16508 if test "$host_cpu" = ia64; then
16509 # AIX 5 now supports IA64 processor
16510 lt_prog_compiler_static_GCJ='-Bstatic'
16511 fi
16512 ;;
16513
16514 amigaos*)
16515 # FIXME: we need at least 68020 code to build shared libraries, but
16516 # adding the `-m68020' flag to GCC prevents building anything better,
16517 # like `-m68040'.
16518 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16519 ;;
16520
16521 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16522 # PIC is the default for these OSes.
16523 ;;
16524
16525 mingw* | pw32* | os2*)
16526 # This hack is so that the source file can tell whether it is being
16527 # built for inclusion in a dll (and should export symbols for example).
16528 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16529 ;;
16530
16531 darwin* | rhapsody*)
16532 # PIC is the default on this platform
16533 # Common symbols not allowed in MH_DYLIB files
16534 lt_prog_compiler_pic_GCJ='-fno-common'
16535 ;;
16536
16537 interix3*)
16538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16539 # Instead, we relocate shared libraries at runtime.
16540 ;;
16541
16542 msdosdjgpp*)
16543 # Just because we use GCC doesn't mean we suddenly get shared libraries
16544 # on systems that don't support them.
16545 lt_prog_compiler_can_build_shared_GCJ=no
16546 enable_shared=no
16547 ;;
16548
16549 sysv4*MP*)
16550 if test -d /usr/nec; then
16551 lt_prog_compiler_pic_GCJ=-Kconform_pic
16552 fi
16553 ;;
16554
16555 hpux*)
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16558 case $host_cpu in
16559 hppa*64*|ia64*)
16560 # +Z the default
16561 ;;
16562 *)
16563 lt_prog_compiler_pic_GCJ='-fPIC'
16564 ;;
16565 esac
16566 ;;
16567
16568 *)
16569 lt_prog_compiler_pic_GCJ='-fPIC'
16570 ;;
16571 esac
16572 else
16573 # PORTME Check for flag to pass linker flags through the system compiler.
16574 case $host_os in
16575 aix*)
16576 lt_prog_compiler_wl_GCJ='-Wl,'
16577 if test "$host_cpu" = ia64; then
16578 # AIX 5 now supports IA64 processor
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16580 else
16581 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16582 fi
16583 ;;
16584 darwin*)
16585 # PIC is the default on this platform
16586 # Common symbols not allowed in MH_DYLIB files
16587 case $cc_basename in
16588 xlc*)
16589 lt_prog_compiler_pic_GCJ='-qnocommon'
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 ;;
16592 esac
16593 ;;
16594
16595 mingw* | pw32* | os2*)
16596 # This hack is so that the source file can tell whether it is being
16597 # built for inclusion in a dll (and should export symbols for example).
16598 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16599 ;;
16600
16601 hpux9* | hpux10* | hpux11*)
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16604 # not for PA HP-UX.
16605 case $host_cpu in
16606 hppa*64*|ia64*)
16607 # +Z the default
16608 ;;
16609 *)
16610 lt_prog_compiler_pic_GCJ='+Z'
16611 ;;
16612 esac
16613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16614 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16615 ;;
16616
16617 irix5* | irix6* | nonstopux*)
16618 lt_prog_compiler_wl_GCJ='-Wl,'
16619 # PIC (with -KPIC) is the default.
16620 lt_prog_compiler_static_GCJ='-non_shared'
16621 ;;
16622
16623 newsos6)
16624 lt_prog_compiler_pic_GCJ='-KPIC'
16625 lt_prog_compiler_static_GCJ='-Bstatic'
16626 ;;
16627
16628 linux*)
16629 case $cc_basename in
16630 icc* | ecc*)
16631 lt_prog_compiler_wl_GCJ='-Wl,'
16632 lt_prog_compiler_pic_GCJ='-KPIC'
16633 lt_prog_compiler_static_GCJ='-static'
16634 ;;
16635 pgcc* | pgf77* | pgf90* | pgf95*)
16636 # Portland Group compilers (*not* the Pentium gcc compiler,
16637 # which looks to be a dead project)
16638 lt_prog_compiler_wl_GCJ='-Wl,'
16639 lt_prog_compiler_pic_GCJ='-fpic'
16640 lt_prog_compiler_static_GCJ='-Bstatic'
16641 ;;
16642 ccc*)
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 # All Alpha code is PIC.
16645 lt_prog_compiler_static_GCJ='-non_shared'
16646 ;;
16647 esac
16648 ;;
16649
16650 osf3* | osf4* | osf5*)
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 # All OSF/1 code is PIC.
16653 lt_prog_compiler_static_GCJ='-non_shared'
16654 ;;
16655
16656 solaris*)
16657 lt_prog_compiler_pic_GCJ='-KPIC'
16658 lt_prog_compiler_static_GCJ='-Bstatic'
16659 case $cc_basename in
16660 f77* | f90* | f95*)
16661 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16662 *)
16663 lt_prog_compiler_wl_GCJ='-Wl,';;
16664 esac
16665 ;;
16666
16667 sunos4*)
16668 lt_prog_compiler_wl_GCJ='-Qoption ld '
16669 lt_prog_compiler_pic_GCJ='-PIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16671 ;;
16672
16673 sysv4 | sysv4.2uw2* | sysv4.3*)
16674 lt_prog_compiler_wl_GCJ='-Wl,'
16675 lt_prog_compiler_pic_GCJ='-KPIC'
16676 lt_prog_compiler_static_GCJ='-Bstatic'
16677 ;;
16678
16679 sysv4*MP*)
16680 if test -d /usr/nec ;then
16681 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16682 lt_prog_compiler_static_GCJ='-Bstatic'
16683 fi
16684 ;;
16685
16686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16687 lt_prog_compiler_wl_GCJ='-Wl,'
16688 lt_prog_compiler_pic_GCJ='-KPIC'
16689 lt_prog_compiler_static_GCJ='-Bstatic'
16690 ;;
16691
16692 unicos*)
16693 lt_prog_compiler_wl_GCJ='-Wl,'
16694 lt_prog_compiler_can_build_shared_GCJ=no
16695 ;;
16696
16697 uts4*)
16698 lt_prog_compiler_pic_GCJ='-pic'
16699 lt_prog_compiler_static_GCJ='-Bstatic'
16700 ;;
16701
16702 *)
16703 lt_prog_compiler_can_build_shared_GCJ=no
16704 ;;
16705 esac
16706 fi
16707
Jef Poskanzer437537f2012-11-30 12:16:17 -080016708{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070016709$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16710
16711#
16712# Check to make sure the PIC flag actually works.
16713#
16714if test -n "$lt_prog_compiler_pic_GCJ"; then
16715
Jef Poskanzer437537f2012-11-30 12:16:17 -080016716{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
jef56a97f92012-08-20 14:35:58 -070016717$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080016718if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070016719 $as_echo_n "(cached) " >&6
16720else
16721 lt_prog_compiler_pic_works_GCJ=no
16722 ac_outfile=conftest.$ac_objext
16723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16724 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16725 # Insert the option either (1) after the last *FLAGS variable, or
16726 # (2) before a word containing "conftest.", or (3) at the end.
16727 # Note that $ac_compile itself does not contain backslashes and begins
16728 # with a dollar sign (not a hyphen), so the echo should work correctly.
16729 # The option is referenced via a variable to avoid confusing sed.
16730 lt_compile=`echo "$ac_compile" | $SED \
16731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16733 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080016734 (eval echo "\"\$as_me:16734: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070016735 (eval "$lt_compile" 2>conftest.err)
16736 ac_status=$?
16737 cat conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080016738 echo "$as_me:16738: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070016739 if (exit $ac_status) && test -s "$ac_outfile"; then
16740 # The compiler can only warn and ignore the option if not recognized
16741 # So say no if there are warnings other than the usual output.
16742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16745 lt_prog_compiler_pic_works_GCJ=yes
16746 fi
16747 fi
16748 $rm conftest*
16749
16750fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080016751{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070016752$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16753
16754if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16755 case $lt_prog_compiler_pic_GCJ in
16756 "" | " "*) ;;
16757 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16758 esac
16759else
16760 lt_prog_compiler_pic_GCJ=
16761 lt_prog_compiler_can_build_shared_GCJ=no
16762fi
16763
16764fi
16765case $host_os in
16766 # For platforms which do not support PIC, -DPIC is meaningless:
16767 *djgpp*)
16768 lt_prog_compiler_pic_GCJ=
16769 ;;
16770 *)
16771 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16772 ;;
16773esac
16774
16775#
16776# Check to make sure the static flag actually works.
16777#
16778wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
Jef Poskanzer437537f2012-11-30 12:16:17 -080016779{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
jef56a97f92012-08-20 14:35:58 -070016780$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080016781if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070016782 $as_echo_n "(cached) " >&6
16783else
16784 lt_prog_compiler_static_works_GCJ=no
16785 save_LDFLAGS="$LDFLAGS"
16786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16787 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16789 # The linker can only warn and ignore the option if not recognized
16790 # So say no if there are warnings
16791 if test -s conftest.err; then
16792 # Append any errors to the config.log.
16793 cat conftest.err 1>&5
16794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16796 if diff conftest.exp conftest.er2 >/dev/null; then
16797 lt_prog_compiler_static_works_GCJ=yes
16798 fi
16799 else
16800 lt_prog_compiler_static_works_GCJ=yes
16801 fi
16802 fi
16803 $rm conftest*
16804 LDFLAGS="$save_LDFLAGS"
16805
16806fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080016807{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070016808$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16809
16810if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16811 :
16812else
16813 lt_prog_compiler_static_GCJ=
16814fi
16815
16816
Jef Poskanzer437537f2012-11-30 12:16:17 -080016817{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
jef56a97f92012-08-20 14:35:58 -070016818$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080016819if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
jef56a97f92012-08-20 14:35:58 -070016820 $as_echo_n "(cached) " >&6
16821else
16822 lt_cv_prog_compiler_c_o_GCJ=no
16823 $rm -r conftest 2>/dev/null
16824 mkdir conftest
16825 cd conftest
16826 mkdir out
16827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16828
16829 lt_compiler_flag="-o out/conftest2.$ac_objext"
16830 # Insert the option either (1) after the last *FLAGS variable, or
16831 # (2) before a word containing "conftest.", or (3) at the end.
16832 # Note that $ac_compile itself does not contain backslashes and begins
16833 # with a dollar sign (not a hyphen), so the echo should work correctly.
16834 lt_compile=`echo "$ac_compile" | $SED \
16835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16837 -e 's:$: $lt_compiler_flag:'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080016838 (eval echo "\"\$as_me:16838: $lt_compile\"" >&5)
jef56a97f92012-08-20 14:35:58 -070016839 (eval "$lt_compile" 2>out/conftest.err)
16840 ac_status=$?
16841 cat out/conftest.err >&5
Jef Poskanzer437537f2012-11-30 12:16:17 -080016842 echo "$as_me:16842: \$? = $ac_status" >&5
jef56a97f92012-08-20 14:35:58 -070016843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16844 then
16845 # The compiler can only warn and ignore the option if not recognized
16846 # So say no if there are warnings
16847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16850 lt_cv_prog_compiler_c_o_GCJ=yes
16851 fi
16852 fi
16853 chmod u+w . 2>&5
16854 $rm conftest*
16855 # SGI C++ compiler will create directory out/ii_files/ for
16856 # template instantiation
16857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16858 $rm out/* && rmdir out
16859 cd ..
16860 rmdir conftest
16861 $rm conftest*
16862
16863fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080016864{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070016865$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16866
16867
16868hard_links="nottested"
16869if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16870 # do not overwrite the value of need_locks provided by the user
Jef Poskanzer437537f2012-11-30 12:16:17 -080016871 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
jef56a97f92012-08-20 14:35:58 -070016872$as_echo_n "checking if we can lock with hard links... " >&6; }
16873 hard_links=yes
16874 $rm conftest*
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876 touch conftest.a
16877 ln conftest.a conftest.b 2>&5 || hard_links=no
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jef Poskanzer437537f2012-11-30 12:16:17 -080016879 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
jef56a97f92012-08-20 14:35:58 -070016880$as_echo "$hard_links" >&6; }
16881 if test "$hard_links" = no; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080016882 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
jef56a97f92012-08-20 14:35:58 -070016883$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884 need_locks=warn
16885 fi
16886else
16887 need_locks=no
16888fi
16889
Jef Poskanzer437537f2012-11-30 12:16:17 -080016890{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
jef56a97f92012-08-20 14:35:58 -070016891$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16892
16893 runpath_var=
16894 allow_undefined_flag_GCJ=
16895 enable_shared_with_static_runtimes_GCJ=no
16896 archive_cmds_GCJ=
16897 archive_expsym_cmds_GCJ=
16898 old_archive_From_new_cmds_GCJ=
16899 old_archive_from_expsyms_cmds_GCJ=
16900 export_dynamic_flag_spec_GCJ=
16901 whole_archive_flag_spec_GCJ=
16902 thread_safe_flag_spec_GCJ=
16903 hardcode_libdir_flag_spec_GCJ=
16904 hardcode_libdir_flag_spec_ld_GCJ=
16905 hardcode_libdir_separator_GCJ=
16906 hardcode_direct_GCJ=no
16907 hardcode_minus_L_GCJ=no
16908 hardcode_shlibpath_var_GCJ=unsupported
16909 link_all_deplibs_GCJ=unknown
16910 hardcode_automatic_GCJ=no
16911 module_cmds_GCJ=
16912 module_expsym_cmds_GCJ=
16913 always_export_symbols_GCJ=no
16914 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16915 # include_expsyms should be a list of space-separated symbols to be *always*
16916 # included in the symbol list
16917 include_expsyms_GCJ=
16918 # exclude_expsyms can be an extended regexp of symbols to exclude
16919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16921 # as well as any symbol that contains `d'.
16922 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16924 # platforms (ab)use it in PIC code, but their linkers get confused if
16925 # the symbol is explicitly referenced. Since portable code cannot
16926 # rely on this symbol name, it's probably fine to never include it in
16927 # preloaded symbol tables.
16928 extract_expsyms_cmds=
16929 # Just being paranoid about ensuring that cc_basename is set.
16930 for cc_temp in $compiler""; do
16931 case $cc_temp in
16932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16934 \-*) ;;
16935 *) break;;
16936 esac
16937done
16938cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16939
16940 case $host_os in
16941 cygwin* | mingw* | pw32*)
16942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16943 # When not using gcc, we currently assume that we are using
16944 # Microsoft Visual C++.
16945 if test "$GCC" != yes; then
16946 with_gnu_ld=no
16947 fi
16948 ;;
16949 interix*)
16950 # we just hope/assume this is gcc and not c89 (= MSVC++)
16951 with_gnu_ld=yes
16952 ;;
16953 openbsd*)
16954 with_gnu_ld=no
16955 ;;
16956 esac
16957
16958 ld_shlibs_GCJ=yes
16959 if test "$with_gnu_ld" = yes; then
16960 # If archive_cmds runs LD, not CC, wlarc should be empty
16961 wlarc='${wl}'
16962
16963 # Set some defaults for GNU ld with shared library support. These
16964 # are reset later if shared libraries are not supported. Putting them
16965 # here allows them to be overridden if necessary.
16966 runpath_var=LD_RUN_PATH
16967 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16968 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16969 # ancient GNU ld didn't support --whole-archive et. al.
16970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16971 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16972 else
16973 whole_archive_flag_spec_GCJ=
16974 fi
16975 supports_anon_versioning=no
16976 case `$LD -v 2>/dev/null` in
16977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16980 *\ 2.11.*) ;; # other 2.11 versions
16981 *) supports_anon_versioning=yes ;;
16982 esac
16983
16984 # See if GNU ld supports shared libraries.
16985 case $host_os in
16986 aix3* | aix4* | aix5*)
16987 # On AIX/PPC, the GNU linker is very broken
16988 if test "$host_cpu" != ia64; then
16989 ld_shlibs_GCJ=no
16990 cat <<EOF 1>&2
16991
16992*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16993*** to be unable to reliably create shared libraries on AIX.
16994*** Therefore, libtool is disabling shared libraries support. If you
16995*** really care for shared libraries, you may want to modify your PATH
16996*** so that a non-GNU linker is found, and then restart.
16997
16998EOF
16999 fi
17000 ;;
17001
17002 amigaos*)
17003 archive_cmds_GCJ='$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)'
17004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17005 hardcode_minus_L_GCJ=yes
17006
17007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17008 # that the semantics of dynamic libraries on AmigaOS, at least up
17009 # to version 4, is to share data among multiple programs linked
17010 # with the same dynamic library. Since this doesn't match the
17011 # behavior of shared libraries on other platforms, we can't use
17012 # them.
17013 ld_shlibs_GCJ=no
17014 ;;
17015
17016 beos*)
17017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17018 allow_undefined_flag_GCJ=unsupported
17019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17020 # support --undefined. This deserves some investigation. FIXME
17021 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 else
17023 ld_shlibs_GCJ=no
17024 fi
17025 ;;
17026
17027 cygwin* | mingw* | pw32*)
17028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17029 # as there is no search path for DLLs.
17030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17031 allow_undefined_flag_GCJ=unsupported
17032 always_export_symbols_GCJ=no
17033 enable_shared_with_static_runtimes_GCJ=yes
17034 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17035
17036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17037 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17038 # If the export-symbols file already is a .def file (1st line
17039 # is EXPORTS), use it as is; otherwise, prepend...
17040 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17041 cp $export_symbols $output_objdir/$soname.def;
17042 else
17043 echo EXPORTS > $output_objdir/$soname.def;
17044 cat $export_symbols >> $output_objdir/$soname.def;
17045 fi~
17046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 else
17048 ld_shlibs_GCJ=no
17049 fi
17050 ;;
17051
17052 interix3*)
17053 hardcode_direct_GCJ=no
17054 hardcode_shlibpath_var_GCJ=no
17055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17056 export_dynamic_flag_spec_GCJ='${wl}-E'
17057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17058 # Instead, shared libraries are loaded at an image base (0x10000000 by
17059 # default) and relocated if they conflict, which is a slow very memory
17060 # consuming and fragmenting process. To avoid this, we pick a random,
17061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17063 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17064 archive_expsym_cmds_GCJ='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'
17065 ;;
17066
17067 linux*)
17068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17069 tmp_addflag=
17070 case $cc_basename,$host_cpu in
17071 pgcc*) # Portland Group C compiler
17072 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17073 tmp_addflag=' $pic_flag'
17074 ;;
17075 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17076 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17077 tmp_addflag=' $pic_flag -Mnomain' ;;
17078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17079 tmp_addflag=' -i_dynamic' ;;
17080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17081 tmp_addflag=' -i_dynamic -nofor_main' ;;
17082 ifc* | ifort*) # Intel Fortran compiler
17083 tmp_addflag=' -nofor_main' ;;
17084 esac
17085 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086
17087 if test $supports_anon_versioning = yes; then
17088 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17090 $echo "local: *; };" >> $output_objdir/$libname.ver~
17091 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17092 fi
17093 else
17094 ld_shlibs_GCJ=no
17095 fi
17096 ;;
17097
17098 netbsd*)
17099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17101 wlarc=
17102 else
17103 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17104 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17105 fi
17106 ;;
17107
17108 solaris*)
17109 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17110 ld_shlibs_GCJ=no
17111 cat <<EOF 1>&2
17112
17113*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17114*** create shared libraries on Solaris systems. Therefore, libtool
17115*** is disabling shared libraries support. We urge you to upgrade GNU
17116*** binutils to release 2.9.1 or newer. Another option is to modify
17117*** your PATH or compiler configuration so that the native linker is
17118*** used, and then restart.
17119
17120EOF
17121 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17122 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17124 else
17125 ld_shlibs_GCJ=no
17126 fi
17127 ;;
17128
17129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17130 case `$LD -v 2>&1` in
17131 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17132 ld_shlibs_GCJ=no
17133 cat <<_LT_EOF 1>&2
17134
17135*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17136*** reliably create shared libraries on SCO systems. Therefore, libtool
17137*** is disabling shared libraries support. We urge you to upgrade GNU
17138*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17139*** your PATH or compiler configuration so that the native linker is
17140*** used, and then restart.
17141
17142_LT_EOF
17143 ;;
17144 *)
17145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17146 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17149 else
17150 ld_shlibs_GCJ=no
17151 fi
17152 ;;
17153 esac
17154 ;;
17155
17156 sunos4*)
17157 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17158 wlarc=
17159 hardcode_direct_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17161 ;;
17162
17163 *)
17164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17167 else
17168 ld_shlibs_GCJ=no
17169 fi
17170 ;;
17171 esac
17172
17173 if test "$ld_shlibs_GCJ" = no; then
17174 runpath_var=
17175 hardcode_libdir_flag_spec_GCJ=
17176 export_dynamic_flag_spec_GCJ=
17177 whole_archive_flag_spec_GCJ=
17178 fi
17179 else
17180 # PORTME fill in a description of your system's linker (not GNU ld)
17181 case $host_os in
17182 aix3*)
17183 allow_undefined_flag_GCJ=unsupported
17184 always_export_symbols_GCJ=yes
17185 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17186 # Note: this linker hardcodes the directories in LIBPATH if there
17187 # are no directories specified by -L.
17188 hardcode_minus_L_GCJ=yes
17189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17190 # Neither direct hardcoding nor static linking is supported with a
17191 # broken collect2.
17192 hardcode_direct_GCJ=unsupported
17193 fi
17194 ;;
17195
17196 aix4* | aix5*)
17197 if test "$host_cpu" = ia64; then
17198 # On IA64, the linker does run time linking by default, so we don't
17199 # have to do anything special.
17200 aix_use_runtimelinking=no
17201 exp_sym_flag='-Bexport'
17202 no_entry_flag=""
17203 else
17204 # If we're using GNU nm, then we don't want the "-C" option.
17205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17206 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17207 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17208 else
17209 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17210 fi
17211 aix_use_runtimelinking=no
17212
17213 # Test if we are trying to use run time linking or normal
17214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17215 # need to do runtime linking.
17216 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17217 for ld_flag in $LDFLAGS; do
17218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17219 aix_use_runtimelinking=yes
17220 break
17221 fi
17222 done
17223 ;;
17224 esac
17225
17226 exp_sym_flag='-bexport'
17227 no_entry_flag='-bnoentry'
17228 fi
17229
17230 # When large executables or shared objects are built, AIX ld can
17231 # have problems creating the table of contents. If linking a library
17232 # or program results in "error TOC overflow" add -mminimal-toc to
17233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17235
17236 archive_cmds_GCJ=''
17237 hardcode_direct_GCJ=yes
17238 hardcode_libdir_separator_GCJ=':'
17239 link_all_deplibs_GCJ=yes
17240
17241 if test "$GCC" = yes; then
17242 case $host_os in aix4.[012]|aix4.[012].*)
17243 # We only want to do this on AIX 4.2 and lower, the check
17244 # below for broken collect2 doesn't work under 4.3+
17245 collect2name=`${CC} -print-prog-name=collect2`
17246 if test -f "$collect2name" && \
17247 strings "$collect2name" | grep resolve_lib_name >/dev/null
17248 then
17249 # We have reworked collect2
17250 hardcode_direct_GCJ=yes
17251 else
17252 # We have old collect2
17253 hardcode_direct_GCJ=unsupported
17254 # It fails to find uninstalled libraries when the uninstalled
17255 # path is not listed in the libpath. Setting hardcode_minus_L
17256 # to unsupported forces relinking
17257 hardcode_minus_L_GCJ=yes
17258 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17259 hardcode_libdir_separator_GCJ=
17260 fi
17261 ;;
17262 esac
17263 shared_flag='-shared'
17264 if test "$aix_use_runtimelinking" = yes; then
17265 shared_flag="$shared_flag "'${wl}-G'
17266 fi
17267 else
17268 # not using gcc
17269 if test "$host_cpu" = ia64; then
17270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17271 # chokes on -Wl,-G. The following line is correct:
17272 shared_flag='-G'
17273 else
17274 if test "$aix_use_runtimelinking" = yes; then
17275 shared_flag='${wl}-G'
17276 else
17277 shared_flag='${wl}-bM:SRE'
17278 fi
17279 fi
17280 fi
17281
17282 # It seems that -bexpall does not export symbols beginning with
17283 # underscore (_), so it is better to generate a list of symbols to export.
17284 always_export_symbols_GCJ=yes
17285 if test "$aix_use_runtimelinking" = yes; then
17286 # Warning - without using the other runtime loading flags (-brtl),
17287 # -berok will link without error, but may produce a broken library.
17288 allow_undefined_flag_GCJ='-berok'
17289 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080017290 cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070017295/* end confdefs.h. */
17296
17297int
17298main ()
17299{
17300
17301 ;
17302 return 0;
17303}
17304_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080017305rm -f conftest.$ac_objext conftest$ac_exeext
17306if { (ac_try="$ac_link"
17307case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17312$as_echo "$ac_try_echo") >&5
17313 (eval "$ac_link") 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } && {
17320 test -z "$ac_c_werror_flag" ||
17321 test ! -s conftest.err
17322 } && test -s conftest$ac_exeext && {
17323 test "$cross_compiling" = yes ||
17324 $as_test_x conftest$ac_exeext
17325 }; then
jef56a97f92012-08-20 14:35:58 -070017326
17327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17328}'`
17329# Check for a 64-bit object if we didn't find anything.
17330if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17331}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080017332else
17333 $as_echo "$as_me: failed program was:" >&5
17334sed 's/^/| /' conftest.$ac_ext >&5
17335
17336
jef56a97f92012-08-20 14:35:58 -070017337fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080017338
17339rm -rf conftest.dSYM
17340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17341 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070017342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17343
17344 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17345 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17346 else
17347 if test "$host_cpu" = ia64; then
17348 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17349 allow_undefined_flag_GCJ="-z nodefs"
17350 archive_expsym_cmds_GCJ="\$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"
17351 else
17352 # Determine the default libpath from the value encoded in an empty executable.
Jef Poskanzer437537f2012-11-30 12:16:17 -080017353 cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h. */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
jef56a97f92012-08-20 14:35:58 -070017358/* end confdefs.h. */
17359
17360int
17361main ()
17362{
17363
17364 ;
17365 return 0;
17366}
17367_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080017368rm -f conftest.$ac_objext conftest$ac_exeext
17369if { (ac_try="$ac_link"
17370case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373esac
17374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17375$as_echo "$ac_try_echo") >&5
17376 (eval "$ac_link") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest$ac_exeext && {
17386 test "$cross_compiling" = yes ||
17387 $as_test_x conftest$ac_exeext
17388 }; then
jef56a97f92012-08-20 14:35:58 -070017389
17390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17391}'`
17392# Check for a 64-bit object if we didn't find anything.
17393if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17394}'`; fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080017395else
17396 $as_echo "$as_me: failed program was:" >&5
17397sed 's/^/| /' conftest.$ac_ext >&5
17398
17399
jef56a97f92012-08-20 14:35:58 -070017400fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080017401
17402rm -rf conftest.dSYM
17403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -070017405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17406
17407 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17408 # Warning - without using the other run time loading flags,
17409 # -berok will link without error, but may produce a broken library.
17410 no_undefined_flag_GCJ=' ${wl}-bernotok'
17411 allow_undefined_flag_GCJ=' ${wl}-berok'
17412 # Exported symbols can be pulled into shared objects from archives
17413 whole_archive_flag_spec_GCJ='$convenience'
17414 archive_cmds_need_lc_GCJ=yes
17415 # This is similar to how AIX traditionally builds its shared libraries.
17416 archive_expsym_cmds_GCJ="\$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'
17417 fi
17418 fi
17419 ;;
17420
17421 amigaos*)
17422 archive_cmds_GCJ='$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)'
17423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17424 hardcode_minus_L_GCJ=yes
17425 # see comment about different semantics on the GNU ld section
17426 ld_shlibs_GCJ=no
17427 ;;
17428
17429 bsdi[45]*)
17430 export_dynamic_flag_spec_GCJ=-rdynamic
17431 ;;
17432
17433 cygwin* | mingw* | pw32*)
17434 # When not using gcc, we currently assume that we are using
17435 # Microsoft Visual C++.
17436 # hardcode_libdir_flag_spec is actually meaningless, as there is
17437 # no search path for DLLs.
17438 hardcode_libdir_flag_spec_GCJ=' '
17439 allow_undefined_flag_GCJ=unsupported
17440 # Tell ltmain to make .lib files, not .a files.
17441 libext=lib
17442 # Tell ltmain to make .dll files, not .so files.
17443 shrext_cmds=".dll"
17444 # FIXME: Setting linknames here is a bad hack.
17445 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17446 # The linker will automatically build a .lib file if we build a DLL.
17447 old_archive_From_new_cmds_GCJ='true'
17448 # FIXME: Should let the user specify the lib program.
17449 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17450 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17451 enable_shared_with_static_runtimes_GCJ=yes
17452 ;;
17453
17454 darwin* | rhapsody*)
17455 case $host_os in
17456 rhapsody* | darwin1.[012])
17457 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17458 ;;
17459 *) # Darwin 1.3 on
17460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17461 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17462 else
17463 case ${MACOSX_DEPLOYMENT_TARGET} in
17464 10.[012])
17465 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17466 ;;
17467 10.*)
17468 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17469 ;;
17470 esac
17471 fi
17472 ;;
17473 esac
17474 archive_cmds_need_lc_GCJ=no
17475 hardcode_direct_GCJ=no
17476 hardcode_automatic_GCJ=yes
17477 hardcode_shlibpath_var_GCJ=unsupported
17478 whole_archive_flag_spec_GCJ=''
17479 link_all_deplibs_GCJ=yes
17480 if test "$GCC" = yes ; then
17481 output_verbose_link_cmd='echo'
17482 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17483 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17485 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17486 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17487 else
17488 case $cc_basename in
17489 xlc*)
17490 output_verbose_link_cmd='echo'
17491 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17492 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17494 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17495 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17496 ;;
17497 *)
17498 ld_shlibs_GCJ=no
17499 ;;
17500 esac
17501 fi
17502 ;;
17503
17504 dgux*)
17505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17507 hardcode_shlibpath_var_GCJ=no
17508 ;;
17509
17510 freebsd1*)
17511 ld_shlibs_GCJ=no
17512 ;;
17513
17514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17515 # support. Future versions do this automatically, but an explicit c++rt0.o
17516 # does not break anything, and helps significantly (at the cost of a little
17517 # extra space).
17518 freebsd2.2*)
17519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17523 ;;
17524
17525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17526 freebsd2*)
17527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct_GCJ=yes
17529 hardcode_minus_L_GCJ=yes
17530 hardcode_shlibpath_var_GCJ=no
17531 ;;
17532
17533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17534 freebsd* | kfreebsd*-gnu | dragonfly*)
17535 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17536 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17537 hardcode_direct_GCJ=yes
17538 hardcode_shlibpath_var_GCJ=no
17539 ;;
17540
17541 hpux9*)
17542 if test "$GCC" = yes; then
17543 archive_cmds_GCJ='$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'
17544 else
17545 archive_cmds_GCJ='$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'
17546 fi
17547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548 hardcode_libdir_separator_GCJ=:
17549 hardcode_direct_GCJ=yes
17550
17551 # hardcode_minus_L: Not really in the search PATH,
17552 # but as the default location of the library.
17553 hardcode_minus_L_GCJ=yes
17554 export_dynamic_flag_spec_GCJ='${wl}-E'
17555 ;;
17556
17557 hpux10*)
17558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17559 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17560 else
17561 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17562 fi
17563 if test "$with_gnu_ld" = no; then
17564 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17565 hardcode_libdir_separator_GCJ=:
17566
17567 hardcode_direct_GCJ=yes
17568 export_dynamic_flag_spec_GCJ='${wl}-E'
17569
17570 # hardcode_minus_L: Not really in the search PATH,
17571 # but as the default location of the library.
17572 hardcode_minus_L_GCJ=yes
17573 fi
17574 ;;
17575
17576 hpux11*)
17577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17578 case $host_cpu in
17579 hppa*64*)
17580 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 ;;
17582 ia64*)
17583 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584 ;;
17585 *)
17586 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587 ;;
17588 esac
17589 else
17590 case $host_cpu in
17591 hppa*64*)
17592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 ;;
17594 ia64*)
17595 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17596 ;;
17597 *)
17598 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17599 ;;
17600 esac
17601 fi
17602 if test "$with_gnu_ld" = no; then
17603 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17604 hardcode_libdir_separator_GCJ=:
17605
17606 case $host_cpu in
17607 hppa*64*|ia64*)
17608 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17609 hardcode_direct_GCJ=no
17610 hardcode_shlibpath_var_GCJ=no
17611 ;;
17612 *)
17613 hardcode_direct_GCJ=yes
17614 export_dynamic_flag_spec_GCJ='${wl}-E'
17615
17616 # hardcode_minus_L: Not really in the search PATH,
17617 # but as the default location of the library.
17618 hardcode_minus_L_GCJ=yes
17619 ;;
17620 esac
17621 fi
17622 ;;
17623
17624 irix5* | irix6* | nonstopux*)
17625 if test "$GCC" = yes; then
17626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17627 else
17628 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17629 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17630 fi
17631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17632 hardcode_libdir_separator_GCJ=:
17633 link_all_deplibs_GCJ=yes
17634 ;;
17635
17636 netbsd*)
17637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17639 else
17640 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17641 fi
17642 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17643 hardcode_direct_GCJ=yes
17644 hardcode_shlibpath_var_GCJ=no
17645 ;;
17646
17647 newsos6)
17648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_direct_GCJ=yes
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651 hardcode_libdir_separator_GCJ=:
17652 hardcode_shlibpath_var_GCJ=no
17653 ;;
17654
17655 openbsd*)
17656 hardcode_direct_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=no
17658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17659 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17662 export_dynamic_flag_spec_GCJ='${wl}-E'
17663 else
17664 case $host_os in
17665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17666 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17667 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17668 ;;
17669 *)
17670 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17672 ;;
17673 esac
17674 fi
17675 ;;
17676
17677 os2*)
17678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679 hardcode_minus_L_GCJ=yes
17680 allow_undefined_flag_GCJ=unsupported
17681 archive_cmds_GCJ='$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'
17682 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17683 ;;
17684
17685 osf3*)
17686 if test "$GCC" = yes; then
17687 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17688 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17689 else
17690 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17692 fi
17693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694 hardcode_libdir_separator_GCJ=:
17695 ;;
17696
17697 osf4* | osf5*) # as osf3* with the addition of -msym flag
17698 if test "$GCC" = yes; then
17699 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17700 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17702 else
17703 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17705 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17706 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17707
17708 # Both c and cxx compiler support -rpath directly
17709 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17710 fi
17711 hardcode_libdir_separator_GCJ=:
17712 ;;
17713
17714 solaris*)
17715 no_undefined_flag_GCJ=' -z text'
17716 if test "$GCC" = yes; then
17717 wlarc='${wl}'
17718 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17719 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17720 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17721 else
17722 wlarc=''
17723 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17726 fi
17727 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728 hardcode_shlibpath_var_GCJ=no
17729 case $host_os in
17730 solaris2.[0-5] | solaris2.[0-5].*) ;;
17731 *)
17732 # The compiler driver will combine linker options so we
17733 # cannot just pass the convience library names through
17734 # without $wl, iff we do not link with $LD.
17735 # Luckily, gcc supports the same syntax we need for Sun Studio.
17736 # Supported since Solaris 2.6 (maybe 2.5.1?)
17737 case $wlarc in
17738 '')
17739 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17740 *)
17741 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17742 esac ;;
17743 esac
17744 link_all_deplibs_GCJ=yes
17745 ;;
17746
17747 sunos4*)
17748 if test "x$host_vendor" = xsequent; then
17749 # Use $CC to link under sequent, because it throws in some extra .o
17750 # files that make .init and .fini sections work.
17751 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17752 else
17753 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17754 fi
17755 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17756 hardcode_direct_GCJ=yes
17757 hardcode_minus_L_GCJ=yes
17758 hardcode_shlibpath_var_GCJ=no
17759 ;;
17760
17761 sysv4)
17762 case $host_vendor in
17763 sni)
17764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765 hardcode_direct_GCJ=yes # is this really true???
17766 ;;
17767 siemens)
17768 ## LD is ld it makes a PLAMLIB
17769 ## CC just makes a GrossModule.
17770 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17771 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17772 hardcode_direct_GCJ=no
17773 ;;
17774 motorola)
17775 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17776 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17777 ;;
17778 esac
17779 runpath_var='LD_RUN_PATH'
17780 hardcode_shlibpath_var_GCJ=no
17781 ;;
17782
17783 sysv4.3*)
17784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17785 hardcode_shlibpath_var_GCJ=no
17786 export_dynamic_flag_spec_GCJ='-Bexport'
17787 ;;
17788
17789 sysv4*MP*)
17790 if test -d /usr/nec; then
17791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792 hardcode_shlibpath_var_GCJ=no
17793 runpath_var=LD_RUN_PATH
17794 hardcode_runpath_var=yes
17795 ld_shlibs_GCJ=yes
17796 fi
17797 ;;
17798
17799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17800 no_undefined_flag_GCJ='${wl}-z,text'
17801 archive_cmds_need_lc_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17803 runpath_var='LD_RUN_PATH'
17804
17805 if test "$GCC" = yes; then
17806 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808 else
17809 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811 fi
17812 ;;
17813
17814 sysv5* | sco3.2v5* | sco5v6*)
17815 # Note: We can NOT use -z defs as we might desire, because we do not
17816 # link with -lc, and that would cause any symbols used from libc to
17817 # always be unresolved, which means just about no library would
17818 # ever link correctly. If we're not using GNU ld we use -z text
17819 # though, which does catch some bad symbols but isn't as heavy-handed
17820 # as -z defs.
17821 no_undefined_flag_GCJ='${wl}-z,text'
17822 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17823 archive_cmds_need_lc_GCJ=no
17824 hardcode_shlibpath_var_GCJ=no
17825 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17826 hardcode_libdir_separator_GCJ=':'
17827 link_all_deplibs_GCJ=yes
17828 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17829 runpath_var='LD_RUN_PATH'
17830
17831 if test "$GCC" = yes; then
17832 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834 else
17835 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 fi
17838 ;;
17839
17840 uts4*)
17841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17843 hardcode_shlibpath_var_GCJ=no
17844 ;;
17845
17846 *)
17847 ld_shlibs_GCJ=no
17848 ;;
17849 esac
17850 fi
17851
Jef Poskanzer437537f2012-11-30 12:16:17 -080017852{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070017853$as_echo "$ld_shlibs_GCJ" >&6; }
17854test "$ld_shlibs_GCJ" = no && can_build_shared=no
17855
17856#
17857# Do we need to explicitly link libc?
17858#
17859case "x$archive_cmds_need_lc_GCJ" in
17860x|xyes)
17861 # Assume -lc should be added
17862 archive_cmds_need_lc_GCJ=yes
17863
17864 if test "$enable_shared" = yes && test "$GCC" = yes; then
17865 case $archive_cmds_GCJ in
17866 *'~'*)
17867 # FIXME: we may have to deal with multi-command sequences.
17868 ;;
17869 '$CC '*)
17870 # Test whether the compiler implicitly links with -lc since on some
17871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17872 # to ld, don't add -lc before -lgcc.
Jef Poskanzer437537f2012-11-30 12:16:17 -080017873 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
jef56a97f92012-08-20 14:35:58 -070017874$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17875 $rm conftest*
17876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17877
Jef Poskanzer437537f2012-11-30 12:16:17 -080017878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070017879 (eval $ac_compile) 2>&5
17880 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080017881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } 2>conftest.err; then
jef56a97f92012-08-20 14:35:58 -070017883 soname=conftest
17884 lib=conftest
17885 libobjs=conftest.$ac_objext
17886 deplibs=
17887 wl=$lt_prog_compiler_wl_GCJ
17888 pic_flag=$lt_prog_compiler_pic_GCJ
17889 compiler_flags=-v
17890 linker_flags=-v
17891 verstring=
17892 output_objdir=.
17893 libname=conftest
17894 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17895 allow_undefined_flag_GCJ=
Jef Poskanzer437537f2012-11-30 12:16:17 -080017896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
jef56a97f92012-08-20 14:35:58 -070017897 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17898 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080017899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }
jef56a97f92012-08-20 14:35:58 -070017901 then
17902 archive_cmds_need_lc_GCJ=no
17903 else
17904 archive_cmds_need_lc_GCJ=yes
17905 fi
17906 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17907 else
17908 cat conftest.err 1>&5
17909 fi
17910 $rm conftest*
Jef Poskanzer437537f2012-11-30 12:16:17 -080017911 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070017912$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17913 ;;
17914 esac
17915 fi
17916 ;;
17917esac
17918
Jef Poskanzer437537f2012-11-30 12:16:17 -080017919{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
jef56a97f92012-08-20 14:35:58 -070017920$as_echo_n "checking dynamic linker characteristics... " >&6; }
17921library_names_spec=
17922libname_spec='lib$name'
17923soname_spec=
17924shrext_cmds=".so"
17925postinstall_cmds=
17926postuninstall_cmds=
17927finish_cmds=
17928finish_eval=
17929shlibpath_var=
17930shlibpath_overrides_runpath=unknown
17931version_type=none
17932dynamic_linker="$host_os ld.so"
17933sys_lib_dlsearch_path_spec="/lib /usr/lib"
17934if test "$GCC" = yes; then
17935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17937 # if the path contains ";" then we assume it to be the separator
17938 # otherwise default to the standard path separator (i.e. ":") - it is
17939 # assumed that no part of a normal pathname contains ";" but that should
17940 # okay in the real world where ";" in dirpaths is itself problematic.
17941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17942 else
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17944 fi
17945else
17946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17947fi
17948need_lib_prefix=unknown
17949hardcode_into_libs=no
17950
17951# when you set need_version to no, make sure it does not cause -set_version
17952# flags to be left without arguments
17953need_version=unknown
17954
17955case $host_os in
17956aix3*)
17957 version_type=linux
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17959 shlibpath_var=LIBPATH
17960
17961 # AIX 3 has no versioning support, so we append a major version to the name.
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 ;;
17964
17965aix4* | aix5*)
17966 version_type=linux
17967 need_lib_prefix=no
17968 need_version=no
17969 hardcode_into_libs=yes
17970 if test "$host_cpu" = ia64; then
17971 # AIX 5 supports IA64
17972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 else
17975 # With GCC up to 2.95.x, collect2 would create an import file
17976 # for dependence libraries. The import file would start with
17977 # the line `#! .'. This would cause the generated library to
17978 # depend on `.', always an invalid library. This was fixed in
17979 # development snapshots of GCC prior to 3.0.
17980 case $host_os in
17981 aix4 | aix4.[01] | aix4.[01].*)
17982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17983 echo ' yes '
17984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17985 :
17986 else
17987 can_build_shared=no
17988 fi
17989 ;;
17990 esac
17991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17992 # soname into executable. Probably we can add versioning support to
17993 # collect2, so additional links can be useful in future.
17994 if test "$aix_use_runtimelinking" = yes; then
17995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17996 # instead of lib<name>.a to let people know that these are not
17997 # typical AIX shared libraries.
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 else
18000 # We preserve .a as extension for shared libraries through AIX4.2
18001 # and later when we are not doing run time linking.
18002 library_names_spec='${libname}${release}.a $libname.a'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 fi
18005 shlibpath_var=LIBPATH
18006 fi
18007 ;;
18008
18009amigaos*)
18010 library_names_spec='$libname.ixlibrary $libname.a'
18011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18012 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'
18013 ;;
18014
18015beos*)
18016 library_names_spec='${libname}${shared_ext}'
18017 dynamic_linker="$host_os ld.so"
18018 shlibpath_var=LIBRARY_PATH
18019 ;;
18020
18021bsdi[45]*)
18022 version_type=linux
18023 need_version=no
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 soname_spec='${libname}${release}${shared_ext}$major'
18026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18027 shlibpath_var=LD_LIBRARY_PATH
18028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18030 # the default ld.so.conf also contains /usr/contrib/lib and
18031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18032 # libtool to hard-code these into programs
18033 ;;
18034
18035cygwin* | mingw* | pw32*)
18036 version_type=windows
18037 shrext_cmds=".dll"
18038 need_version=no
18039 need_lib_prefix=no
18040
18041 case $GCC,$host_os in
18042 yes,cygwin* | yes,mingw* | yes,pw32*)
18043 library_names_spec='$libname.dll.a'
18044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18045 postinstall_cmds='base_file=`basename \${file}`~
18046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18047 dldir=$destdir/`dirname \$dlpath`~
18048 test -d \$dldir || mkdir -p \$dldir~
18049 $install_prog $dir/$dlname \$dldir/$dlname~
18050 chmod a+x \$dldir/$dlname'
18051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18052 dlpath=$dir/\$dldll~
18053 $rm \$dlpath'
18054 shlibpath_overrides_runpath=yes
18055
18056 case $host_os in
18057 cygwin*)
18058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18061 ;;
18062 mingw*)
18063 # MinGW DLLs use traditional 'lib' prefix
18064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18067 # It is most probably a Windows format PATH printed by
18068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18069 # path with ; separators, and with drive letters. We can handle the
18070 # drive letters (cygwin fileutils understands them), so leave them,
18071 # especially as we might pass files found there to a mingw objdump,
18072 # which wouldn't understand a cygwinified path. Ahh.
18073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18074 else
18075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18076 fi
18077 ;;
18078 pw32*)
18079 # pw32 DLLs use 'pw' prefix rather than 'lib'
18080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18081 ;;
18082 esac
18083 ;;
18084
18085 *)
18086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18087 ;;
18088 esac
18089 dynamic_linker='Win32 ld.exe'
18090 # FIXME: first we should search . and the directory the executable is in
18091 shlibpath_var=PATH
18092 ;;
18093
18094darwin* | rhapsody*)
18095 dynamic_linker="$host_os dyld"
18096 version_type=darwin
18097 need_lib_prefix=no
18098 need_version=no
18099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18100 soname_spec='${libname}${release}${major}$shared_ext'
18101 shlibpath_overrides_runpath=yes
18102 shlibpath_var=DYLD_LIBRARY_PATH
18103 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18105 if test "$GCC" = yes; then
18106 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18107 else
18108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18109 fi
18110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18111 ;;
18112
18113dgux*)
18114 version_type=linux
18115 need_lib_prefix=no
18116 need_version=no
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 ;;
18121
18122freebsd1*)
18123 dynamic_linker=no
18124 ;;
18125
18126kfreebsd*-gnu)
18127 version_type=linux
18128 need_lib_prefix=no
18129 need_version=no
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 shlibpath_var=LD_LIBRARY_PATH
18133 shlibpath_overrides_runpath=no
18134 hardcode_into_libs=yes
18135 dynamic_linker='GNU ld.so'
18136 ;;
18137
18138freebsd* | dragonfly*)
18139 # DragonFly does not have aout. When/if they implement a new
18140 # versioning mechanism, adjust this.
18141 if test -x /usr/bin/objformat; then
18142 objformat=`/usr/bin/objformat`
18143 else
18144 case $host_os in
18145 freebsd[123]*) objformat=aout ;;
18146 *) objformat=elf ;;
18147 esac
18148 fi
18149 version_type=freebsd-$objformat
18150 case $version_type in
18151 freebsd-elf*)
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18153 need_version=no
18154 need_lib_prefix=no
18155 ;;
18156 freebsd-*)
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18158 need_version=yes
18159 ;;
18160 esac
18161 shlibpath_var=LD_LIBRARY_PATH
18162 case $host_os in
18163 freebsd2*)
18164 shlibpath_overrides_runpath=yes
18165 ;;
18166 freebsd3.[01]* | freebsdelf3.[01]*)
18167 shlibpath_overrides_runpath=yes
18168 hardcode_into_libs=yes
18169 ;;
18170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18172 shlibpath_overrides_runpath=no
18173 hardcode_into_libs=yes
18174 ;;
18175 freebsd*) # from 4.6 on
18176 shlibpath_overrides_runpath=yes
18177 hardcode_into_libs=yes
18178 ;;
18179 esac
18180 ;;
18181
18182gnu*)
18183 version_type=linux
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 hardcode_into_libs=yes
18190 ;;
18191
18192hpux9* | hpux10* | hpux11*)
18193 # Give a soname corresponding to the major version so that dld.sl refuses to
18194 # link against other versions.
18195 version_type=sunos
18196 need_lib_prefix=no
18197 need_version=no
18198 case $host_cpu in
18199 ia64*)
18200 shrext_cmds='.so'
18201 hardcode_into_libs=yes
18202 dynamic_linker="$host_os dld.so"
18203 shlibpath_var=LD_LIBRARY_PATH
18204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206 soname_spec='${libname}${release}${shared_ext}$major'
18207 if test "X$HPUX_IA64_MODE" = X32; then
18208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18209 else
18210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18211 fi
18212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18213 ;;
18214 hppa*64*)
18215 shrext_cmds='.sl'
18216 hardcode_into_libs=yes
18217 dynamic_linker="$host_os dld.sl"
18218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18224 ;;
18225 *)
18226 shrext_cmds='.sl'
18227 dynamic_linker="$host_os dld.sl"
18228 shlibpath_var=SHLIB_PATH
18229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 ;;
18233 esac
18234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18235 postinstall_cmds='chmod 555 $lib'
18236 ;;
18237
18238interix3*)
18239 version_type=linux
18240 need_lib_prefix=no
18241 need_version=no
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18243 soname_spec='${libname}${release}${shared_ext}$major'
18244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 shlibpath_overrides_runpath=no
18247 hardcode_into_libs=yes
18248 ;;
18249
18250irix5* | irix6* | nonstopux*)
18251 case $host_os in
18252 nonstopux*) version_type=nonstopux ;;
18253 *)
18254 if test "$lt_cv_prog_gnu_ld" = yes; then
18255 version_type=linux
18256 else
18257 version_type=irix
18258 fi ;;
18259 esac
18260 need_lib_prefix=no
18261 need_version=no
18262 soname_spec='${libname}${release}${shared_ext}$major'
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18264 case $host_os in
18265 irix5* | nonstopux*)
18266 libsuff= shlibsuff=
18267 ;;
18268 *)
18269 case $LD in # libtool.m4 will add one of these switches to LD
18270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18271 libsuff= shlibsuff= libmagic=32-bit;;
18272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18273 libsuff=32 shlibsuff=N32 libmagic=N32;;
18274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18276 *) libsuff= shlibsuff= libmagic=never-match;;
18277 esac
18278 ;;
18279 esac
18280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18281 shlibpath_overrides_runpath=no
18282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18284 hardcode_into_libs=yes
18285 ;;
18286
18287# No shared lib support for Linux oldld, aout, or coff.
18288linux*oldld* | linux*aout* | linux*coff*)
18289 dynamic_linker=no
18290 ;;
18291
18292# This must be Linux ELF.
18293linux*)
18294 version_type=linux
18295 need_lib_prefix=no
18296 need_version=no
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 shlibpath_overrides_runpath=no
18302 # This implies no fast_install, which is unacceptable.
18303 # Some rework will be needed to allow for fast_install
18304 # before this can be enabled.
18305 hardcode_into_libs=yes
18306
18307 # find out which ABI we are using
18308 libsuff=
18309 case "$host_cpu" in
18310 x86_64*|s390x*|powerpc64*)
Jef Poskanzer437537f2012-11-30 12:16:17 -080018311 echo '#line 18311 "configure"' > conftest.$ac_ext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -070018313 (eval $ac_compile) 2>&5
18314 ac_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080018315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -070018317 case `/usr/bin/file conftest.$ac_objext` in
18318 *64-bit*)
18319 libsuff=64
18320 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18321 ;;
18322 esac
18323 fi
18324 rm -rf conftest*
18325 ;;
18326 esac
18327
18328 # Append ld.so.conf contents to the search path
18329 if test -f /etc/ld.so.conf; then
18330 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18331 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18332 fi
18333
18334 # We used to test for /lib/ld.so.1 and disable shared libraries on
18335 # powerpc, because MkLinux only supported shared libraries with the
18336 # GNU dynamic linker. Since this was broken with cross compilers,
18337 # most powerpc-linux boxes support dynamic linking these days and
18338 # people can always --disable-shared, the test was removed, and we
18339 # assume the GNU/Linux dynamic linker is in use.
18340 dynamic_linker='GNU/Linux ld.so'
18341 ;;
18342
18343knetbsd*-gnu)
18344 version_type=linux
18345 need_lib_prefix=no
18346 need_version=no
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=no
18351 hardcode_into_libs=yes
18352 dynamic_linker='GNU ld.so'
18353 ;;
18354
18355netbsd*)
18356 version_type=sunos
18357 need_lib_prefix=no
18358 need_version=no
18359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18362 dynamic_linker='NetBSD (a.out) ld.so'
18363 else
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 dynamic_linker='NetBSD ld.elf_so'
18367 fi
18368 shlibpath_var=LD_LIBRARY_PATH
18369 shlibpath_overrides_runpath=yes
18370 hardcode_into_libs=yes
18371 ;;
18372
18373newsos6)
18374 version_type=linux
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 ;;
18379
18380nto-qnx*)
18381 version_type=linux
18382 need_lib_prefix=no
18383 need_version=no
18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385 soname_spec='${libname}${release}${shared_ext}$major'
18386 shlibpath_var=LD_LIBRARY_PATH
18387 shlibpath_overrides_runpath=yes
18388 ;;
18389
18390openbsd*)
18391 version_type=sunos
18392 sys_lib_dlsearch_path_spec="/usr/lib"
18393 need_lib_prefix=no
18394 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18395 case $host_os in
18396 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18397 *) need_version=no ;;
18398 esac
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18403 case $host_os in
18404 openbsd2.[89] | openbsd2.[89].*)
18405 shlibpath_overrides_runpath=no
18406 ;;
18407 *)
18408 shlibpath_overrides_runpath=yes
18409 ;;
18410 esac
18411 else
18412 shlibpath_overrides_runpath=yes
18413 fi
18414 ;;
18415
18416os2*)
18417 libname_spec='$name'
18418 shrext_cmds=".dll"
18419 need_lib_prefix=no
18420 library_names_spec='$libname${shared_ext} $libname.a'
18421 dynamic_linker='OS/2 ld.exe'
18422 shlibpath_var=LIBPATH
18423 ;;
18424
18425osf3* | osf4* | osf5*)
18426 version_type=osf
18427 need_lib_prefix=no
18428 need_version=no
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18434 ;;
18435
18436solaris*)
18437 version_type=linux
18438 need_lib_prefix=no
18439 need_version=no
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 shlibpath_var=LD_LIBRARY_PATH
18443 shlibpath_overrides_runpath=yes
18444 hardcode_into_libs=yes
18445 # ldd complains unless libraries are executable
18446 postinstall_cmds='chmod +x $lib'
18447 ;;
18448
18449sunos4*)
18450 version_type=sunos
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath=yes
18455 if test "$with_gnu_ld" = yes; then
18456 need_lib_prefix=no
18457 fi
18458 need_version=yes
18459 ;;
18460
18461sysv4 | sysv4.3*)
18462 version_type=linux
18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18464 soname_spec='${libname}${release}${shared_ext}$major'
18465 shlibpath_var=LD_LIBRARY_PATH
18466 case $host_vendor in
18467 sni)
18468 shlibpath_overrides_runpath=no
18469 need_lib_prefix=no
18470 export_dynamic_flag_spec='${wl}-Blargedynsym'
18471 runpath_var=LD_RUN_PATH
18472 ;;
18473 siemens)
18474 need_lib_prefix=no
18475 ;;
18476 motorola)
18477 need_lib_prefix=no
18478 need_version=no
18479 shlibpath_overrides_runpath=no
18480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18481 ;;
18482 esac
18483 ;;
18484
18485sysv4*MP*)
18486 if test -d /usr/nec ;then
18487 version_type=linux
18488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18489 soname_spec='$libname${shared_ext}.$major'
18490 shlibpath_var=LD_LIBRARY_PATH
18491 fi
18492 ;;
18493
18494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18495 version_type=freebsd-elf
18496 need_lib_prefix=no
18497 need_version=no
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18499 soname_spec='${libname}${release}${shared_ext}$major'
18500 shlibpath_var=LD_LIBRARY_PATH
18501 hardcode_into_libs=yes
18502 if test "$with_gnu_ld" = yes; then
18503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18504 shlibpath_overrides_runpath=no
18505 else
18506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18507 shlibpath_overrides_runpath=yes
18508 case $host_os in
18509 sco3.2v5*)
18510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18511 ;;
18512 esac
18513 fi
18514 sys_lib_dlsearch_path_spec='/usr/lib'
18515 ;;
18516
18517uts4*)
18518 version_type=linux
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 shlibpath_var=LD_LIBRARY_PATH
18522 ;;
18523
18524*)
18525 dynamic_linker=no
18526 ;;
18527esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080018528{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
jef56a97f92012-08-20 14:35:58 -070018529$as_echo "$dynamic_linker" >&6; }
18530test "$dynamic_linker" = no && can_build_shared=no
18531
18532variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18533if test "$GCC" = yes; then
18534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18535fi
18536
Jef Poskanzer437537f2012-11-30 12:16:17 -080018537{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
jef56a97f92012-08-20 14:35:58 -070018538$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18539hardcode_action_GCJ=
18540if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18541 test -n "$runpath_var_GCJ" || \
18542 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18543
18544 # We can hardcode non-existant directories.
18545 if test "$hardcode_direct_GCJ" != no &&
18546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18547 # have to relink, otherwise we might link with an installed library
18548 # when we should be linking with a yet-to-be-installed one
18549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18550 test "$hardcode_minus_L_GCJ" != no; then
18551 # Linking always hardcodes the temporary library directory.
18552 hardcode_action_GCJ=relink
18553 else
18554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18555 hardcode_action_GCJ=immediate
18556 fi
18557else
18558 # We cannot hardcode anything, or else we can only hardcode existing
18559 # directories.
18560 hardcode_action_GCJ=unsupported
18561fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080018562{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
jef56a97f92012-08-20 14:35:58 -070018563$as_echo "$hardcode_action_GCJ" >&6; }
18564
18565if test "$hardcode_action_GCJ" = relink; then
18566 # Fast installation is not supported
18567 enable_fast_install=no
18568elif test "$shlibpath_overrides_runpath" = yes ||
18569 test "$enable_shared" = no; then
18570 # Fast installation is not necessary
18571 enable_fast_install=needless
18572fi
18573
18574
18575# The else clause should only fire when bootstrapping the
18576# libtool distribution, otherwise you forgot to ship ltmain.sh
18577# with your package, and you will get complaints that there are
18578# no rules to generate ltmain.sh.
18579if test -f "$ltmain"; then
18580 # See if we are running on zsh, and set the options which allow our commands through
18581 # without removal of \ escapes.
18582 if test -n "${ZSH_VERSION+set}" ; then
18583 setopt NO_GLOB_SUBST
18584 fi
18585 # Now quote all the things that may contain metacharacters while being
18586 # careful not to overquote the AC_SUBSTed values. We take copies of the
18587 # variables and quote the copies for generation of the libtool script.
18588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18589 SED SHELL STRIP \
18590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18592 deplibs_check_method reload_flag reload_cmds need_locks \
18593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18594 lt_cv_sys_global_symbol_to_c_name_address \
18595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18596 old_postinstall_cmds old_postuninstall_cmds \
18597 compiler_GCJ \
18598 CC_GCJ \
18599 LD_GCJ \
18600 lt_prog_compiler_wl_GCJ \
18601 lt_prog_compiler_pic_GCJ \
18602 lt_prog_compiler_static_GCJ \
18603 lt_prog_compiler_no_builtin_flag_GCJ \
18604 export_dynamic_flag_spec_GCJ \
18605 thread_safe_flag_spec_GCJ \
18606 whole_archive_flag_spec_GCJ \
18607 enable_shared_with_static_runtimes_GCJ \
18608 old_archive_cmds_GCJ \
18609 old_archive_from_new_cmds_GCJ \
18610 predep_objects_GCJ \
18611 postdep_objects_GCJ \
18612 predeps_GCJ \
18613 postdeps_GCJ \
18614 compiler_lib_search_path_GCJ \
18615 archive_cmds_GCJ \
18616 archive_expsym_cmds_GCJ \
18617 postinstall_cmds_GCJ \
18618 postuninstall_cmds_GCJ \
18619 old_archive_from_expsyms_cmds_GCJ \
18620 allow_undefined_flag_GCJ \
18621 no_undefined_flag_GCJ \
18622 export_symbols_cmds_GCJ \
18623 hardcode_libdir_flag_spec_GCJ \
18624 hardcode_libdir_flag_spec_ld_GCJ \
18625 hardcode_libdir_separator_GCJ \
18626 hardcode_automatic_GCJ \
18627 module_cmds_GCJ \
18628 module_expsym_cmds_GCJ \
18629 lt_cv_prog_compiler_c_o_GCJ \
18630 exclude_expsyms_GCJ \
18631 include_expsyms_GCJ; do
18632
18633 case $var in
18634 old_archive_cmds_GCJ | \
18635 old_archive_from_new_cmds_GCJ | \
18636 archive_cmds_GCJ | \
18637 archive_expsym_cmds_GCJ | \
18638 module_cmds_GCJ | \
18639 module_expsym_cmds_GCJ | \
18640 old_archive_from_expsyms_cmds_GCJ | \
18641 export_symbols_cmds_GCJ | \
18642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18643 postinstall_cmds | postuninstall_cmds | \
18644 old_postinstall_cmds | old_postuninstall_cmds | \
18645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18646 # Double-quote double-evaled strings.
18647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18648 ;;
18649 *)
18650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18651 ;;
18652 esac
18653 done
18654
18655 case $lt_echo in
18656 *'\$0 --fallback-echo"')
18657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18658 ;;
18659 esac
18660
18661cfgfile="$ofile"
18662
18663 cat <<__EOF__ >> "$cfgfile"
18664# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18665
18666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18667
18668# Shell to use when invoking shell scripts.
18669SHELL=$lt_SHELL
18670
18671# Whether or not to build shared libraries.
18672build_libtool_libs=$enable_shared
18673
18674# Whether or not to build static libraries.
18675build_old_libs=$enable_static
18676
18677# Whether or not to add -lc for building shared libraries.
18678build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18679
18680# Whether or not to disallow shared libs when runtime libs are static
18681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18682
18683# Whether or not to optimize for fast installation.
18684fast_install=$enable_fast_install
18685
18686# The host system.
18687host_alias=$host_alias
18688host=$host
18689host_os=$host_os
18690
18691# The build system.
18692build_alias=$build_alias
18693build=$build
18694build_os=$build_os
18695
18696# An echo program that does not interpret backslashes.
18697echo=$lt_echo
18698
18699# The archiver.
18700AR=$lt_AR
18701AR_FLAGS=$lt_AR_FLAGS
18702
18703# A C compiler.
18704LTCC=$lt_LTCC
18705
18706# LTCC compiler flags.
18707LTCFLAGS=$lt_LTCFLAGS
18708
18709# A language-specific compiler.
18710CC=$lt_compiler_GCJ
18711
18712# Is the compiler the GNU C compiler?
18713with_gcc=$GCC_GCJ
18714
18715gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18716gcc_ver=\`gcc -dumpversion\`
18717
18718# An ERE matcher.
18719EGREP=$lt_EGREP
18720
18721# The linker used to build libraries.
18722LD=$lt_LD_GCJ
18723
18724# Whether we need hard or soft links.
18725LN_S=$lt_LN_S
18726
18727# A BSD-compatible nm program.
18728NM=$lt_NM
18729
18730# A symbol stripping program
18731STRIP=$lt_STRIP
18732
18733# Used to examine libraries when file_magic_cmd begins "file"
18734MAGIC_CMD=$MAGIC_CMD
18735
18736# Used on cygwin: DLL creation program.
18737DLLTOOL="$DLLTOOL"
18738
18739# Used on cygwin: object dumper.
18740OBJDUMP="$OBJDUMP"
18741
18742# Used on cygwin: assembler.
18743AS="$AS"
18744
18745# The name of the directory that contains temporary libtool files.
18746objdir=$objdir
18747
18748# How to create reloadable object files.
18749reload_flag=$lt_reload_flag
18750reload_cmds=$lt_reload_cmds
18751
18752# How to pass a linker flag through the compiler.
18753wl=$lt_lt_prog_compiler_wl_GCJ
18754
18755# Object file suffix (normally "o").
18756objext="$ac_objext"
18757
18758# Old archive suffix (normally "a").
18759libext="$libext"
18760
18761# Shared library suffix (normally ".so").
18762shrext_cmds='$shrext_cmds'
18763
18764# Executable file suffix (normally "").
18765exeext="$exeext"
18766
18767# Additional compiler flags for building library objects.
18768pic_flag=$lt_lt_prog_compiler_pic_GCJ
18769pic_mode=$pic_mode
18770
18771# What is the maximum length of a command?
18772max_cmd_len=$lt_cv_sys_max_cmd_len
18773
18774# Does compiler simultaneously support -c and -o options?
18775compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18776
18777# Must we lock files when doing compilation?
18778need_locks=$lt_need_locks
18779
18780# Do we need the lib prefix for modules?
18781need_lib_prefix=$need_lib_prefix
18782
18783# Do we need a version for libraries?
18784need_version=$need_version
18785
18786# Whether dlopen is supported.
18787dlopen_support=$enable_dlopen
18788
18789# Whether dlopen of programs is supported.
18790dlopen_self=$enable_dlopen_self
18791
18792# Whether dlopen of statically linked programs is supported.
18793dlopen_self_static=$enable_dlopen_self_static
18794
18795# Compiler flag to prevent dynamic linking.
18796link_static_flag=$lt_lt_prog_compiler_static_GCJ
18797
18798# Compiler flag to turn off builtin functions.
18799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18800
18801# Compiler flag to allow reflexive dlopens.
18802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18803
18804# Compiler flag to generate shared objects directly from archives.
18805whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18806
18807# Compiler flag to generate thread-safe objects.
18808thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18809
18810# Library versioning type.
18811version_type=$version_type
18812
18813# Format of library name prefix.
18814libname_spec=$lt_libname_spec
18815
18816# List of archive names. First name is the real one, the rest are links.
18817# The last name is the one that the linker finds with -lNAME.
18818library_names_spec=$lt_library_names_spec
18819
18820# The coded name of the library, if different from the real name.
18821soname_spec=$lt_soname_spec
18822
18823# Commands used to build and install an old-style archive.
18824RANLIB=$lt_RANLIB
18825old_archive_cmds=$lt_old_archive_cmds_GCJ
18826old_postinstall_cmds=$lt_old_postinstall_cmds
18827old_postuninstall_cmds=$lt_old_postuninstall_cmds
18828
18829# Create an old-style archive from a shared archive.
18830old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18831
18832# Create a temporary old-style archive to link instead of a shared archive.
18833old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18834
18835# Commands used to build and install a shared archive.
18836archive_cmds=$lt_archive_cmds_GCJ
18837archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18838postinstall_cmds=$lt_postinstall_cmds
18839postuninstall_cmds=$lt_postuninstall_cmds
18840
18841# Commands used to build a loadable module (assumed same as above if empty)
18842module_cmds=$lt_module_cmds_GCJ
18843module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18844
18845# Commands to strip libraries.
18846old_striplib=$lt_old_striplib
18847striplib=$lt_striplib
18848
18849# Dependencies to place before the objects being linked to create a
18850# shared library.
18851predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18852
18853# Dependencies to place after the objects being linked to create a
18854# shared library.
18855postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18856
18857# Dependencies to place before the objects being linked to create a
18858# shared library.
18859predeps=$lt_predeps_GCJ
18860
18861# Dependencies to place after the objects being linked to create a
18862# shared library.
18863postdeps=$lt_postdeps_GCJ
18864
18865# The library search path used internally by the compiler when linking
18866# a shared library.
18867compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18868
18869# Method to check whether dependent libraries are shared objects.
18870deplibs_check_method=$lt_deplibs_check_method
18871
18872# Command to use when deplibs_check_method == file_magic.
18873file_magic_cmd=$lt_file_magic_cmd
18874
18875# Flag that allows shared libraries with undefined symbols to be built.
18876allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18877
18878# Flag that forces no undefined symbols.
18879no_undefined_flag=$lt_no_undefined_flag_GCJ
18880
18881# Commands used to finish a libtool library installation in a directory.
18882finish_cmds=$lt_finish_cmds
18883
18884# Same as above, but a single script fragment to be evaled but not shown.
18885finish_eval=$lt_finish_eval
18886
18887# Take the output of nm and produce a listing of raw symbols and C names.
18888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18889
18890# Transform the output of nm in a proper C declaration
18891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18892
18893# Transform the output of nm in a C name address pair
18894global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18895
18896# This is the shared library runtime path variable.
18897runpath_var=$runpath_var
18898
18899# This is the shared library path variable.
18900shlibpath_var=$shlibpath_var
18901
18902# Is shlibpath searched before the hard-coded library search path?
18903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18904
18905# How to hardcode a shared library path into an executable.
18906hardcode_action=$hardcode_action_GCJ
18907
18908# Whether we should hardcode library paths into libraries.
18909hardcode_into_libs=$hardcode_into_libs
18910
18911# Flag to hardcode \$libdir into a binary during linking.
18912# This must work even if \$libdir does not exist.
18913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18914
18915# If ld is used when linking, flag to hardcode \$libdir into
18916# a binary during linking. This must work even if \$libdir does
18917# not exist.
18918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18919
18920# Whether we need a single -rpath flag with a separated argument.
18921hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18922
18923# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18924# resulting binary.
18925hardcode_direct=$hardcode_direct_GCJ
18926
18927# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18928# resulting binary.
18929hardcode_minus_L=$hardcode_minus_L_GCJ
18930
18931# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18932# the resulting binary.
18933hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18934
18935# Set to yes if building a shared library automatically hardcodes DIR into the library
18936# and all subsequent libraries and executables linked against it.
18937hardcode_automatic=$hardcode_automatic_GCJ
18938
18939# Variables whose values should be saved in libtool wrapper scripts and
18940# restored at relink time.
18941variables_saved_for_relink="$variables_saved_for_relink"
18942
18943# Whether libtool must link a program against all its dependency libraries.
18944link_all_deplibs=$link_all_deplibs_GCJ
18945
18946# Compile-time system search path for libraries
18947sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18948
18949# Run-time system search path for libraries
18950sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18951
18952# Fix the shell variable \$srcfile for the compiler.
18953fix_srcfile_path="$fix_srcfile_path_GCJ"
18954
18955# Set to yes if exported symbols are required.
18956always_export_symbols=$always_export_symbols_GCJ
18957
18958# The commands to list exported symbols.
18959export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18960
18961# The commands to extract the exported symbol list from a shared archive.
18962extract_expsyms_cmds=$lt_extract_expsyms_cmds
18963
18964# Symbols that should not be listed in the preloaded symbols.
18965exclude_expsyms=$lt_exclude_expsyms_GCJ
18966
18967# Symbols that must always be exported.
18968include_expsyms=$lt_include_expsyms_GCJ
18969
18970# ### END LIBTOOL TAG CONFIG: $tagname
18971
18972__EOF__
18973
18974
18975else
18976 # If there is no Makefile yet, we rely on a make rule to execute
18977 # `config.status --recheck' to rerun these tests and create the
18978 # libtool script then.
18979 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18980 if test -f "$ltmain_in"; then
18981 test -f Makefile && make "$ltmain"
18982 fi
18983fi
18984
18985
18986ac_ext=c
18987ac_cpp='$CPP $CPPFLAGS'
18988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991
18992CC="$lt_save_CC"
18993
18994 else
18995 tagname=""
18996 fi
18997 ;;
18998
18999 RC)
19000
19001
19002# Source file extension for RC test sources.
19003ac_ext=rc
19004
19005# Object file extension for compiled RC test sources.
19006objext=o
19007objext_RC=$objext
19008
19009# Code to be used in simple compile tests
19010lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19011
19012# Code to be used in simple link tests
19013lt_simple_link_test_code="$lt_simple_compile_test_code"
19014
19015# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19016
19017# If no C compiler was specified, use CC.
19018LTCC=${LTCC-"$CC"}
19019
19020# If no C compiler flags were specified, use CFLAGS.
19021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19022
19023# Allow CC to be a program name with arguments.
19024compiler=$CC
19025
19026
19027# save warnings/boilerplate of simple test code
19028ac_outfile=conftest.$ac_objext
19029printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19031_lt_compiler_boilerplate=`cat conftest.err`
19032$rm conftest*
19033
19034ac_outfile=conftest.$ac_objext
19035printf "$lt_simple_link_test_code" >conftest.$ac_ext
19036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19037_lt_linker_boilerplate=`cat conftest.err`
19038$rm conftest*
19039
19040
19041# Allow CC to be a program name with arguments.
19042lt_save_CC="$CC"
19043CC=${RC-"windres"}
19044compiler=$CC
19045compiler_RC=$CC
19046for cc_temp in $compiler""; do
19047 case $cc_temp in
19048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19050 \-*) ;;
19051 *) break;;
19052 esac
19053done
19054cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19055
19056lt_cv_prog_compiler_c_o_RC=yes
19057
19058# The else clause should only fire when bootstrapping the
19059# libtool distribution, otherwise you forgot to ship ltmain.sh
19060# with your package, and you will get complaints that there are
19061# no rules to generate ltmain.sh.
19062if test -f "$ltmain"; then
19063 # See if we are running on zsh, and set the options which allow our commands through
19064 # without removal of \ escapes.
19065 if test -n "${ZSH_VERSION+set}" ; then
19066 setopt NO_GLOB_SUBST
19067 fi
19068 # Now quote all the things that may contain metacharacters while being
19069 # careful not to overquote the AC_SUBSTed values. We take copies of the
19070 # variables and quote the copies for generation of the libtool script.
19071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19072 SED SHELL STRIP \
19073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19075 deplibs_check_method reload_flag reload_cmds need_locks \
19076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19077 lt_cv_sys_global_symbol_to_c_name_address \
19078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19079 old_postinstall_cmds old_postuninstall_cmds \
19080 compiler_RC \
19081 CC_RC \
19082 LD_RC \
19083 lt_prog_compiler_wl_RC \
19084 lt_prog_compiler_pic_RC \
19085 lt_prog_compiler_static_RC \
19086 lt_prog_compiler_no_builtin_flag_RC \
19087 export_dynamic_flag_spec_RC \
19088 thread_safe_flag_spec_RC \
19089 whole_archive_flag_spec_RC \
19090 enable_shared_with_static_runtimes_RC \
19091 old_archive_cmds_RC \
19092 old_archive_from_new_cmds_RC \
19093 predep_objects_RC \
19094 postdep_objects_RC \
19095 predeps_RC \
19096 postdeps_RC \
19097 compiler_lib_search_path_RC \
19098 archive_cmds_RC \
19099 archive_expsym_cmds_RC \
19100 postinstall_cmds_RC \
19101 postuninstall_cmds_RC \
19102 old_archive_from_expsyms_cmds_RC \
19103 allow_undefined_flag_RC \
19104 no_undefined_flag_RC \
19105 export_symbols_cmds_RC \
19106 hardcode_libdir_flag_spec_RC \
19107 hardcode_libdir_flag_spec_ld_RC \
19108 hardcode_libdir_separator_RC \
19109 hardcode_automatic_RC \
19110 module_cmds_RC \
19111 module_expsym_cmds_RC \
19112 lt_cv_prog_compiler_c_o_RC \
19113 exclude_expsyms_RC \
19114 include_expsyms_RC; do
19115
19116 case $var in
19117 old_archive_cmds_RC | \
19118 old_archive_from_new_cmds_RC | \
19119 archive_cmds_RC | \
19120 archive_expsym_cmds_RC | \
19121 module_cmds_RC | \
19122 module_expsym_cmds_RC | \
19123 old_archive_from_expsyms_cmds_RC | \
19124 export_symbols_cmds_RC | \
19125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19126 postinstall_cmds | postuninstall_cmds | \
19127 old_postinstall_cmds | old_postuninstall_cmds | \
19128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19129 # Double-quote double-evaled strings.
19130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19131 ;;
19132 *)
19133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19134 ;;
19135 esac
19136 done
19137
19138 case $lt_echo in
19139 *'\$0 --fallback-echo"')
19140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19141 ;;
19142 esac
19143
19144cfgfile="$ofile"
19145
19146 cat <<__EOF__ >> "$cfgfile"
19147# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19148
19149# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19150
19151# Shell to use when invoking shell scripts.
19152SHELL=$lt_SHELL
19153
19154# Whether or not to build shared libraries.
19155build_libtool_libs=$enable_shared
19156
19157# Whether or not to build static libraries.
19158build_old_libs=$enable_static
19159
19160# Whether or not to add -lc for building shared libraries.
19161build_libtool_need_lc=$archive_cmds_need_lc_RC
19162
19163# Whether or not to disallow shared libs when runtime libs are static
19164allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19165
19166# Whether or not to optimize for fast installation.
19167fast_install=$enable_fast_install
19168
19169# The host system.
19170host_alias=$host_alias
19171host=$host
19172host_os=$host_os
19173
19174# The build system.
19175build_alias=$build_alias
19176build=$build
19177build_os=$build_os
19178
19179# An echo program that does not interpret backslashes.
19180echo=$lt_echo
19181
19182# The archiver.
19183AR=$lt_AR
19184AR_FLAGS=$lt_AR_FLAGS
19185
19186# A C compiler.
19187LTCC=$lt_LTCC
19188
19189# LTCC compiler flags.
19190LTCFLAGS=$lt_LTCFLAGS
19191
19192# A language-specific compiler.
19193CC=$lt_compiler_RC
19194
19195# Is the compiler the GNU C compiler?
19196with_gcc=$GCC_RC
19197
19198gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19199gcc_ver=\`gcc -dumpversion\`
19200
19201# An ERE matcher.
19202EGREP=$lt_EGREP
19203
19204# The linker used to build libraries.
19205LD=$lt_LD_RC
19206
19207# Whether we need hard or soft links.
19208LN_S=$lt_LN_S
19209
19210# A BSD-compatible nm program.
19211NM=$lt_NM
19212
19213# A symbol stripping program
19214STRIP=$lt_STRIP
19215
19216# Used to examine libraries when file_magic_cmd begins "file"
19217MAGIC_CMD=$MAGIC_CMD
19218
19219# Used on cygwin: DLL creation program.
19220DLLTOOL="$DLLTOOL"
19221
19222# Used on cygwin: object dumper.
19223OBJDUMP="$OBJDUMP"
19224
19225# Used on cygwin: assembler.
19226AS="$AS"
19227
19228# The name of the directory that contains temporary libtool files.
19229objdir=$objdir
19230
19231# How to create reloadable object files.
19232reload_flag=$lt_reload_flag
19233reload_cmds=$lt_reload_cmds
19234
19235# How to pass a linker flag through the compiler.
19236wl=$lt_lt_prog_compiler_wl_RC
19237
19238# Object file suffix (normally "o").
19239objext="$ac_objext"
19240
19241# Old archive suffix (normally "a").
19242libext="$libext"
19243
19244# Shared library suffix (normally ".so").
19245shrext_cmds='$shrext_cmds'
19246
19247# Executable file suffix (normally "").
19248exeext="$exeext"
19249
19250# Additional compiler flags for building library objects.
19251pic_flag=$lt_lt_prog_compiler_pic_RC
19252pic_mode=$pic_mode
19253
19254# What is the maximum length of a command?
19255max_cmd_len=$lt_cv_sys_max_cmd_len
19256
19257# Does compiler simultaneously support -c and -o options?
19258compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19259
19260# Must we lock files when doing compilation?
19261need_locks=$lt_need_locks
19262
19263# Do we need the lib prefix for modules?
19264need_lib_prefix=$need_lib_prefix
19265
19266# Do we need a version for libraries?
19267need_version=$need_version
19268
19269# Whether dlopen is supported.
19270dlopen_support=$enable_dlopen
19271
19272# Whether dlopen of programs is supported.
19273dlopen_self=$enable_dlopen_self
19274
19275# Whether dlopen of statically linked programs is supported.
19276dlopen_self_static=$enable_dlopen_self_static
19277
19278# Compiler flag to prevent dynamic linking.
19279link_static_flag=$lt_lt_prog_compiler_static_RC
19280
19281# Compiler flag to turn off builtin functions.
19282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19283
19284# Compiler flag to allow reflexive dlopens.
19285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19286
19287# Compiler flag to generate shared objects directly from archives.
19288whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19289
19290# Compiler flag to generate thread-safe objects.
19291thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19292
19293# Library versioning type.
19294version_type=$version_type
19295
19296# Format of library name prefix.
19297libname_spec=$lt_libname_spec
19298
19299# List of archive names. First name is the real one, the rest are links.
19300# The last name is the one that the linker finds with -lNAME.
19301library_names_spec=$lt_library_names_spec
19302
19303# The coded name of the library, if different from the real name.
19304soname_spec=$lt_soname_spec
19305
19306# Commands used to build and install an old-style archive.
19307RANLIB=$lt_RANLIB
19308old_archive_cmds=$lt_old_archive_cmds_RC
19309old_postinstall_cmds=$lt_old_postinstall_cmds
19310old_postuninstall_cmds=$lt_old_postuninstall_cmds
19311
19312# Create an old-style archive from a shared archive.
19313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19314
19315# Create a temporary old-style archive to link instead of a shared archive.
19316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19317
19318# Commands used to build and install a shared archive.
19319archive_cmds=$lt_archive_cmds_RC
19320archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19321postinstall_cmds=$lt_postinstall_cmds
19322postuninstall_cmds=$lt_postuninstall_cmds
19323
19324# Commands used to build a loadable module (assumed same as above if empty)
19325module_cmds=$lt_module_cmds_RC
19326module_expsym_cmds=$lt_module_expsym_cmds_RC
19327
19328# Commands to strip libraries.
19329old_striplib=$lt_old_striplib
19330striplib=$lt_striplib
19331
19332# Dependencies to place before the objects being linked to create a
19333# shared library.
19334predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19335
19336# Dependencies to place after the objects being linked to create a
19337# shared library.
19338postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19339
19340# Dependencies to place before the objects being linked to create a
19341# shared library.
19342predeps=$lt_predeps_RC
19343
19344# Dependencies to place after the objects being linked to create a
19345# shared library.
19346postdeps=$lt_postdeps_RC
19347
19348# The library search path used internally by the compiler when linking
19349# a shared library.
19350compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19351
19352# Method to check whether dependent libraries are shared objects.
19353deplibs_check_method=$lt_deplibs_check_method
19354
19355# Command to use when deplibs_check_method == file_magic.
19356file_magic_cmd=$lt_file_magic_cmd
19357
19358# Flag that allows shared libraries with undefined symbols to be built.
19359allow_undefined_flag=$lt_allow_undefined_flag_RC
19360
19361# Flag that forces no undefined symbols.
19362no_undefined_flag=$lt_no_undefined_flag_RC
19363
19364# Commands used to finish a libtool library installation in a directory.
19365finish_cmds=$lt_finish_cmds
19366
19367# Same as above, but a single script fragment to be evaled but not shown.
19368finish_eval=$lt_finish_eval
19369
19370# Take the output of nm and produce a listing of raw symbols and C names.
19371global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19372
19373# Transform the output of nm in a proper C declaration
19374global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19375
19376# Transform the output of nm in a C name address pair
19377global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19378
19379# This is the shared library runtime path variable.
19380runpath_var=$runpath_var
19381
19382# This is the shared library path variable.
19383shlibpath_var=$shlibpath_var
19384
19385# Is shlibpath searched before the hard-coded library search path?
19386shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19387
19388# How to hardcode a shared library path into an executable.
19389hardcode_action=$hardcode_action_RC
19390
19391# Whether we should hardcode library paths into libraries.
19392hardcode_into_libs=$hardcode_into_libs
19393
19394# Flag to hardcode \$libdir into a binary during linking.
19395# This must work even if \$libdir does not exist.
19396hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19397
19398# If ld is used when linking, flag to hardcode \$libdir into
19399# a binary during linking. This must work even if \$libdir does
19400# not exist.
19401hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19402
19403# Whether we need a single -rpath flag with a separated argument.
19404hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19405
19406# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19407# resulting binary.
19408hardcode_direct=$hardcode_direct_RC
19409
19410# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19411# resulting binary.
19412hardcode_minus_L=$hardcode_minus_L_RC
19413
19414# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19415# the resulting binary.
19416hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19417
19418# Set to yes if building a shared library automatically hardcodes DIR into the library
19419# and all subsequent libraries and executables linked against it.
19420hardcode_automatic=$hardcode_automatic_RC
19421
19422# Variables whose values should be saved in libtool wrapper scripts and
19423# restored at relink time.
19424variables_saved_for_relink="$variables_saved_for_relink"
19425
19426# Whether libtool must link a program against all its dependency libraries.
19427link_all_deplibs=$link_all_deplibs_RC
19428
19429# Compile-time system search path for libraries
19430sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19431
19432# Run-time system search path for libraries
19433sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19434
19435# Fix the shell variable \$srcfile for the compiler.
19436fix_srcfile_path="$fix_srcfile_path_RC"
19437
19438# Set to yes if exported symbols are required.
19439always_export_symbols=$always_export_symbols_RC
19440
19441# The commands to list exported symbols.
19442export_symbols_cmds=$lt_export_symbols_cmds_RC
19443
19444# The commands to extract the exported symbol list from a shared archive.
19445extract_expsyms_cmds=$lt_extract_expsyms_cmds
19446
19447# Symbols that should not be listed in the preloaded symbols.
19448exclude_expsyms=$lt_exclude_expsyms_RC
19449
19450# Symbols that must always be exported.
19451include_expsyms=$lt_include_expsyms_RC
19452
19453# ### END LIBTOOL TAG CONFIG: $tagname
19454
19455__EOF__
19456
19457
19458else
19459 # If there is no Makefile yet, we rely on a make rule to execute
19460 # `config.status --recheck' to rerun these tests and create the
19461 # libtool script then.
19462 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19463 if test -f "$ltmain_in"; then
19464 test -f Makefile && make "$ltmain"
19465 fi
19466fi
19467
19468
19469ac_ext=c
19470ac_cpp='$CPP $CPPFLAGS'
19471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474
19475CC="$lt_save_CC"
19476
19477 ;;
19478
19479 *)
Jef Poskanzer437537f2012-11-30 12:16:17 -080019480 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19481$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19482 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -070019483 ;;
19484 esac
19485
19486 # Append the new tag name to the list of available tags.
19487 if test -n "$tagname" ; then
19488 available_tags="$available_tags $tagname"
19489 fi
19490 fi
19491 done
19492 IFS="$lt_save_ifs"
19493
19494 # Now substitute the updated list of available tags.
19495 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19496 mv "${ofile}T" "$ofile"
19497 chmod +x "$ofile"
19498 else
19499 rm -f "${ofile}T"
Jef Poskanzer437537f2012-11-30 12:16:17 -080019500 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19501$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19502 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -070019503 fi
19504fi
19505
19506
19507
19508# This can be used to rebuild libtool when needed
19509LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19510
19511# Always use our own libtool.
19512LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19513
19514# Prevent multiple expansion
Jon Dugane34c20c2010-07-08 23:26:52 +000019515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
Jon Dugane34c20c2010-07-08 23:26:52 +000019526
19527
19528
19529
jef56a97f92012-08-20 14:35:58 -070019530
19531
19532
Jon Dugane34c20c2010-07-08 23:26:52 +000019533
19534
19535
19536
19537# Sets a conditional makefile variable so that certain Makefile tasks will be
19538# performed only on linux (currently, add -luuid to LD_FLAGS)
jef56a97f92012-08-20 14:35:58 -070019539
19540
19541if case $host_os in linux*) true;; *) false;; esac; then
Jon Dugane34c20c2010-07-08 23:26:52 +000019542 LINUX_TRUE=
19543 LINUX_FALSE='#'
19544else
19545 LINUX_TRUE='#'
19546 LINUX_FALSE=
19547fi
19548
19549
19550# Checks for header files.
Jef Poskanzer437537f2012-11-30 12:16:17 -080019551{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019552$as_echo_n "checking for ANSI C header files... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080019553if test "${ac_cv_header_stdc+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019554 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000019555else
Jef Poskanzer437537f2012-11-30 12:16:17 -080019556 cat >conftest.$ac_ext <<_ACEOF
19557/* confdefs.h. */
19558_ACEOF
19559cat confdefs.h >>conftest.$ac_ext
19560cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000019561/* end confdefs.h. */
19562#include <stdlib.h>
19563#include <stdarg.h>
19564#include <string.h>
19565#include <float.h>
19566
19567int
19568main ()
19569{
19570
19571 ;
19572 return 0;
19573}
19574_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080019575rm -f conftest.$ac_objext
19576if { (ac_try="$ac_compile"
19577case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19580esac
19581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582$as_echo "$ac_try_echo") >&5
19583 (eval "$ac_compile") 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +000019593 ac_cv_header_stdc=yes
19594else
Jef Poskanzer437537f2012-11-30 12:16:17 -080019595 $as_echo "$as_me: failed program was:" >&5
19596sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000019599fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019600
Jon Dugane34c20c2010-07-08 23:26:52 +000019601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602
19603if test $ac_cv_header_stdc = yes; then
19604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jef Poskanzer437537f2012-11-30 12:16:17 -080019605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000019610/* end confdefs.h. */
19611#include <string.h>
19612
19613_ACEOF
19614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jef Poskanzer437537f2012-11-30 12:16:17 -080019615 $EGREP "memchr" >/dev/null 2>&1; then
19616 :
Jon Dugane34c20c2010-07-08 23:26:52 +000019617else
19618 ac_cv_header_stdc=no
19619fi
Jon Dugan92864152010-09-20 21:50:12 +000019620rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000019621
19622fi
19623
19624if test $ac_cv_header_stdc = yes; then
19625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jef Poskanzer437537f2012-11-30 12:16:17 -080019626 cat >conftest.$ac_ext <<_ACEOF
19627/* confdefs.h. */
19628_ACEOF
19629cat confdefs.h >>conftest.$ac_ext
19630cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000019631/* end confdefs.h. */
19632#include <stdlib.h>
19633
19634_ACEOF
19635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jef Poskanzer437537f2012-11-30 12:16:17 -080019636 $EGREP "free" >/dev/null 2>&1; then
19637 :
Jon Dugane34c20c2010-07-08 23:26:52 +000019638else
19639 ac_cv_header_stdc=no
19640fi
Jon Dugan92864152010-09-20 21:50:12 +000019641rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000019642
19643fi
19644
19645if test $ac_cv_header_stdc = yes; then
19646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jef Poskanzer437537f2012-11-30 12:16:17 -080019647 if test "$cross_compiling" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000019648 :
19649else
Jef Poskanzer437537f2012-11-30 12:16:17 -080019650 cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000019655/* end confdefs.h. */
19656#include <ctype.h>
19657#include <stdlib.h>
19658#if ((' ' & 0x0FF) == 0x020)
19659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19661#else
19662# define ISLOWER(c) \
19663 (('a' <= (c) && (c) <= 'i') \
19664 || ('j' <= (c) && (c) <= 'r') \
19665 || ('s' <= (c) && (c) <= 'z'))
19666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19667#endif
19668
19669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19670int
19671main ()
19672{
19673 int i;
19674 for (i = 0; i < 256; i++)
19675 if (XOR (islower (i), ISLOWER (i))
19676 || toupper (i) != TOUPPER (i))
19677 return 2;
19678 return 0;
19679}
19680_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080019681rm -f conftest$ac_exeext
19682if { (ac_try="$ac_link"
19683case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688$as_echo "$ac_try_echo") >&5
19689 (eval "$ac_link") 2>&5
19690 ac_status=$?
19691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696esac
19697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19698$as_echo "$ac_try_echo") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 :
Jon Dugane34c20c2010-07-08 23:26:52 +000019704else
Jef Poskanzer437537f2012-11-30 12:16:17 -080019705 $as_echo "$as_me: program exited with status $ac_status" >&5
19706$as_echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
19708
19709( exit $ac_status )
19710ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000019711fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019712rm -rf conftest.dSYM
19713rm -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 +000019714fi
19715
Jef Poskanzer437537f2012-11-30 12:16:17 -080019716
Jon Dugane34c20c2010-07-08 23:26:52 +000019717fi
19718fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019719{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019720$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000019721if test $ac_cv_header_stdc = yes; then
19722
Jef Poskanzer437537f2012-11-30 12:16:17 -080019723cat >>confdefs.h <<\_ACEOF
19724#define STDC_HEADERS 1
19725_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000019726
19727fi
19728
19729
19730# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070019731#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000019732
19733# Solaris puts nanosleep in -lrt
Jef Poskanzer437537f2012-11-30 12:16:17 -080019734{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019735$as_echo_n "checking for library containing nanosleep... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080019736if test "${ac_cv_search_nanosleep+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019737 $as_echo_n "(cached) " >&6
19738else
19739 ac_func_search_save_LIBS=$LIBS
Jef Poskanzer437537f2012-11-30 12:16:17 -080019740cat >conftest.$ac_ext <<_ACEOF
19741/* confdefs.h. */
19742_ACEOF
19743cat confdefs.h >>conftest.$ac_ext
19744cat >>conftest.$ac_ext <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000019745/* end confdefs.h. */
19746
19747/* Override any GCC internal prototype to avoid an error.
19748 Use char because int might match the return type of a GCC
19749 builtin and then its argument prototype would still apply. */
19750#ifdef __cplusplus
19751extern "C"
19752#endif
19753char nanosleep ();
19754int
19755main ()
19756{
19757return nanosleep ();
19758 ;
19759 return 0;
19760}
19761_ACEOF
19762for ac_lib in '' rt; do
19763 if test -z "$ac_lib"; then
19764 ac_res="none required"
19765 else
19766 ac_res=-l$ac_lib
19767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19768 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019769 rm -f conftest.$ac_objext conftest$ac_exeext
19770if { (ac_try="$ac_link"
19771case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19776$as_echo "$ac_try_echo") >&5
19777 (eval "$ac_link") 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest$ac_exeext && {
19787 test "$cross_compiling" = yes ||
19788 $as_test_x conftest$ac_exeext
19789 }; then
Jon Dugan92864152010-09-20 21:50:12 +000019790 ac_cv_search_nanosleep=$ac_res
Jef Poskanzer437537f2012-11-30 12:16:17 -080019791else
19792 $as_echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795
Jon Dugan92864152010-09-20 21:50:12 +000019796fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019797
19798rm -rf conftest.dSYM
19799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19800 conftest$ac_exeext
19801 if test "${ac_cv_search_nanosleep+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019802 break
19803fi
19804done
Jef Poskanzer437537f2012-11-30 12:16:17 -080019805if test "${ac_cv_search_nanosleep+set}" = set; then
19806 :
Jon Dugan92864152010-09-20 21:50:12 +000019807else
19808 ac_cv_search_nanosleep=no
19809fi
19810rm conftest.$ac_ext
19811LIBS=$ac_func_search_save_LIBS
19812fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019813{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019814$as_echo "$ac_cv_search_nanosleep" >&6; }
19815ac_res=$ac_cv_search_nanosleep
Jef Poskanzer437537f2012-11-30 12:16:17 -080019816if test "$ac_res" != no; then
Jon Dugan92864152010-09-20 21:50:12 +000019817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19818
19819else
19820
19821echo "nanosleep() required for timing operations."
19822exit 1
19823
19824fi
19825
19826
19827# Solaris puts hstrerror in -lresolv
Jef Poskanzer437537f2012-11-30 12:16:17 -080019828{ $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019829$as_echo_n "checking for library containing hstrerror... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080019830if test "${ac_cv_search_hstrerror+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019831 $as_echo_n "(cached) " >&6
19832else
19833 ac_func_search_save_LIBS=$LIBS
Jef Poskanzer437537f2012-11-30 12:16:17 -080019834cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000019839/* end confdefs.h. */
19840
19841/* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847char hstrerror ();
19848int
19849main ()
19850{
19851return hstrerror ();
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856for ac_lib in '' resolv; do
19857 if test -z "$ac_lib"; then
19858 ac_res="none required"
19859 else
19860 ac_res=-l$ac_lib
19861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19862 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019863 rm -f conftest.$ac_objext conftest$ac_exeext
19864if { (ac_try="$ac_link"
19865case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868esac
19869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19870$as_echo "$ac_try_echo") >&5
19871 (eval "$ac_link") 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext && {
19881 test "$cross_compiling" = yes ||
19882 $as_test_x conftest$ac_exeext
19883 }; then
Jon Dugan92864152010-09-20 21:50:12 +000019884 ac_cv_search_hstrerror=$ac_res
Jef Poskanzer437537f2012-11-30 12:16:17 -080019885else
19886 $as_echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889
Jon Dugan92864152010-09-20 21:50:12 +000019890fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019891
19892rm -rf conftest.dSYM
19893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext
19895 if test "${ac_cv_search_hstrerror+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019896 break
19897fi
19898done
Jef Poskanzer437537f2012-11-30 12:16:17 -080019899if test "${ac_cv_search_hstrerror+set}" = set; then
19900 :
Jon Dugan92864152010-09-20 21:50:12 +000019901else
19902 ac_cv_search_hstrerror=no
19903fi
19904rm conftest.$ac_ext
19905LIBS=$ac_func_search_save_LIBS
19906fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080019907{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019908$as_echo "$ac_cv_search_hstrerror" >&6; }
19909ac_res=$ac_cv_search_hstrerror
Jef Poskanzer437537f2012-11-30 12:16:17 -080019910if test "$ac_res" != no; then
Jon Dugan92864152010-09-20 21:50:12 +000019911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19912
19913else
19914
19915echo "nanosleep() required for timing operations."
19916exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000019917
19918fi
19919
19920
Jon Dugane34c20c2010-07-08 23:26:52 +000019921# Checks for typedefs, structures, and compiler characteristics.
Jef Poskanzer437537f2012-11-30 12:16:17 -080019922{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Jon Dugan92864152010-09-20 21:50:12 +000019923$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Jef Poskanzer437537f2012-11-30 12:16:17 -080019924if test "${ac_cv_c_const+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000019925 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000019926else
Jef Poskanzer437537f2012-11-30 12:16:17 -080019927 cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000019932/* end confdefs.h. */
19933
19934int
19935main ()
19936{
19937/* FIXME: Include the comments suggested by Paul. */
19938#ifndef __cplusplus
19939 /* Ultrix mips cc rejects this. */
19940 typedef int charset[2];
19941 const charset cs;
19942 /* SunOS 4.1.1 cc rejects this. */
19943 char const *const *pcpcc;
19944 char **ppc;
19945 /* NEC SVR4.0.2 mips cc rejects this. */
19946 struct point {int x, y;};
19947 static struct point const zero = {0,0};
19948 /* AIX XL C 1.02.0.0 rejects this.
19949 It does not let you subtract one const X* pointer from another in
19950 an arm of an if-expression whose if-part is not a constant
19951 expression */
19952 const char *g = "string";
19953 pcpcc = &g + (g ? g-g : 0);
19954 /* HPUX 7.0 cc rejects these. */
19955 ++pcpcc;
19956 ppc = (char**) pcpcc;
19957 pcpcc = (char const *const *) ppc;
19958 { /* SCO 3.2v4 cc rejects this. */
19959 char *t;
19960 char const *s = 0 ? (char *) 0 : (char const *) 0;
19961
19962 *t++ = 0;
19963 if (s) return 0;
19964 }
19965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19966 int x[] = {25, 17};
19967 const int *foo = &x[0];
19968 ++foo;
19969 }
19970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19971 typedef const int *iptr;
19972 iptr p = 0;
19973 ++p;
19974 }
19975 { /* AIX XL C 1.02.0.0 rejects this saying
19976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19977 struct s { int j; const int *ap[3]; };
19978 struct s *b; b->j = 5;
19979 }
19980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19981 const int foo = 10;
19982 if (!foo) return 0;
19983 }
19984 return !cs[0] && !zero.x;
19985#endif
19986
19987 ;
19988 return 0;
19989}
19990_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080019991rm -f conftest.$ac_objext
19992if { (ac_try="$ac_compile"
19993case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19998$as_echo "$ac_try_echo") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +000020009 ac_cv_c_const=yes
20010else
Jef Poskanzer437537f2012-11-30 12:16:17 -080020011 $as_echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000020015fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080020016
Jon Dugane34c20c2010-07-08 23:26:52 +000020017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080020019{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Jon Dugan92864152010-09-20 21:50:12 +000020020$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020021if test $ac_cv_c_const = no; then
20022
Jef Poskanzer437537f2012-11-30 12:16:17 -080020023cat >>confdefs.h <<\_ACEOF
20024#define const /**/
20025_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000020026
20027fi
20028
20029
20030ac_config_files="$ac_config_files Makefile src/Makefile"
20031
20032cat >confcache <<\_ACEOF
20033# This file is a shell script that caches the results of configure
20034# tests run on this system so they can be shared between configure
20035# scripts and configure runs, see configure's option --config-cache.
20036# It is not useful on other systems. If it contains results you don't
20037# want to keep, you may remove or edit it.
20038#
20039# config.status only pays attention to the cache file if you give it
20040# the --recheck option to rerun configure.
20041#
20042# `ac_cv_env_foo' variables (set or unset) will be overridden when
20043# loading this file, other *unset* `ac_cv_foo' will be assigned the
20044# following values.
20045
20046_ACEOF
20047
20048# The following way of writing the cache mishandles newlines in values,
20049# but we know of no workaround that is simple, portable, and efficient.
20050# So, we kill variables containing newlines.
20051# Ultrix sh set writes to stderr and can't be redirected directly,
20052# and sets the high bit in the cache file unless we assign to the vars.
20053(
20054 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20055 eval ac_val=\$$ac_var
20056 case $ac_val in #(
20057 *${as_nl}*)
20058 case $ac_var in #(
Jef Poskanzer437537f2012-11-30 12:16:17 -080020059 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Jon Dugan92864152010-09-20 21:50:12 +000020060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020061 esac
20062 case $ac_var in #(
20063 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +000020064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Jef Poskanzer437537f2012-11-30 12:16:17 -080020065 *) $as_unset $ac_var ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020066 esac ;;
20067 esac
20068 done
20069
20070 (set) 2>&1 |
20071 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20072 *${as_nl}ac_space=\ *)
Jef Poskanzer437537f2012-11-30 12:16:17 -080020073 # `set' does not quote correctly, so add quotes (double-quote
20074 # substitution turns \\\\ into \\, and sed turns \\ into \).
Jon Dugane34c20c2010-07-08 23:26:52 +000020075 sed -n \
20076 "s/'/'\\\\''/g;
20077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20078 ;; #(
20079 *)
20080 # `set' quotes correctly as required by POSIX, so do not add quotes.
20081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20082 ;;
20083 esac |
20084 sort
20085) |
20086 sed '
20087 /^ac_cv_env_/b end
20088 t clear
20089 :clear
20090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20091 t end
20092 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20093 :end' >>confcache
20094if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20095 if test -w "$cache_file"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020096 test "x$cache_file" != "x/dev/null" &&
20097 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +000020098$as_echo "$as_me: updating cache $cache_file" >&6;}
Jef Poskanzer437537f2012-11-30 12:16:17 -080020099 cat confcache >$cache_file
Jon Dugane34c20c2010-07-08 23:26:52 +000020100 else
Jef Poskanzer437537f2012-11-30 12:16:17 -080020101 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +000020102$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000020103 fi
20104fi
20105rm -f confcache
20106
20107test "x$prefix" = xNONE && prefix=$ac_default_prefix
20108# Let make expand exec_prefix.
20109test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20110
20111DEFS=-DHAVE_CONFIG_H
20112
20113ac_libobjs=
20114ac_ltlibobjs=
20115for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20116 # 1. Remove the extension, and $U if already installed.
20117 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jon Dugan92864152010-09-20 21:50:12 +000020118 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000020119 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20120 # will be set to the directory where LIBOBJS objects are built.
Jef Poskanzer437537f2012-11-30 12:16:17 -080020121 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20122 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000020123done
20124LIBOBJS=$ac_libobjs
20125
20126LTLIBOBJS=$ac_ltlibobjs
20127
20128
20129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020130 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20131Usually this means the macro was only invoked conditionally." >&5
20132$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20133Usually this means the macro was only invoked conditionally." >&2;}
20134 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020135fi
20136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020137 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20138Usually this means the macro was only invoked conditionally." >&5
20139$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20140Usually this means the macro was only invoked conditionally." >&2;}
20141 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020142fi
jef56a97f92012-08-20 14:35:58 -070020143if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020144 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20145Usually this means the macro was only invoked conditionally." >&5
20146$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20147Usually this means the macro was only invoked conditionally." >&2;}
20148 { (exit 1); exit 1; }; }
jef56a97f92012-08-20 14:35:58 -070020149fi
Jon Dugane34c20c2010-07-08 23:26:52 +000020150if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020151 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
20152Usually this means the macro was only invoked conditionally." >&5
20153$as_echo "$as_me: error: conditional \"LINUX\" was never defined.
20154Usually this means the macro was only invoked conditionally." >&2;}
20155 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020156fi
20157
Jef Poskanzer437537f2012-11-30 12:16:17 -080020158: ${CONFIG_STATUS=./config.status}
Jon Dugan92864152010-09-20 21:50:12 +000020159ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000020160ac_clean_files_save=$ac_clean_files
20161ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jef Poskanzer437537f2012-11-30 12:16:17 -080020162{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Jon Dugan92864152010-09-20 21:50:12 +000020163$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Jef Poskanzer437537f2012-11-30 12:16:17 -080020164cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020165#! $SHELL
20166# Generated by $as_me.
20167# Run this file to recreate the current configuration.
20168# Compiler output produced by configure, useful for debugging
20169# configure, is in config.log if it exists.
20170
20171debug=false
20172ac_cs_recheck=false
20173ac_cs_silent=false
Jon Dugan92864152010-09-20 21:50:12 +000020174SHELL=\${CONFIG_SHELL-$SHELL}
Jef Poskanzer437537f2012-11-30 12:16:17 -080020175_ACEOF
20176
20177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178## --------------------- ##
20179## M4sh Initialization. ##
20180## --------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000020181
20182# Be more Bourne compatible
20183DUALCASE=1; export DUALCASE # for MKS sh
Jef Poskanzer437537f2012-11-30 12:16:17 -080020184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +000020185 emulate sh
20186 NULLCMD=:
Jon Dugan92864152010-09-20 21:50:12 +000020187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000020188 # is contrary to our usage. Disable this feature.
20189 alias -g '${1+"$@"}'='"$@"'
20190 setopt NO_GLOB_SUBST
20191else
Jef Poskanzer437537f2012-11-30 12:16:17 -080020192 case `(set -o) 2>/dev/null` in
20193 *posix*) set -o posix ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020194esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080020195
Jon Dugane34c20c2010-07-08 23:26:52 +000020196fi
20197
20198
Jef Poskanzer437537f2012-11-30 12:16:17 -080020199
20200
20201# PATH needs CR
20202# Avoid depending upon Character Ranges.
20203as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20204as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20205as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20206as_cr_digits='0123456789'
20207as_cr_alnum=$as_cr_Letters$as_cr_digits
20208
Jon Dugan92864152010-09-20 21:50:12 +000020209as_nl='
20210'
20211export as_nl
20212# Printing a long string crashes Solaris 7 /usr/bin/printf.
20213as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20214as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20215as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Jef Poskanzer437537f2012-11-30 12:16:17 -080020216if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +000020217 as_echo='printf %s\n'
20218 as_echo_n='printf %s'
20219else
20220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20221 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20222 as_echo_n='/usr/ucb/echo -n'
20223 else
20224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20225 as_echo_n_body='eval
20226 arg=$1;
Jef Poskanzer437537f2012-11-30 12:16:17 -080020227 case $arg in
Jon Dugan92864152010-09-20 21:50:12 +000020228 *"$as_nl"*)
20229 expr "X$arg" : "X\\(.*\\)$as_nl";
20230 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20231 esac;
20232 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20233 '
20234 export as_echo_n_body
20235 as_echo_n='sh -c $as_echo_n_body as_echo'
20236 fi
20237 export as_echo_body
20238 as_echo='sh -c $as_echo_body as_echo'
20239fi
Jon Dugane34c20c2010-07-08 23:26:52 +000020240
20241# The user is always right.
20242if test "${PATH_SEPARATOR+set}" != set; then
Jon Dugan92864152010-09-20 21:50:12 +000020243 PATH_SEPARATOR=:
20244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20246 PATH_SEPARATOR=';'
20247 }
Jon Dugane34c20c2010-07-08 23:26:52 +000020248fi
20249
Jef Poskanzer437537f2012-11-30 12:16:17 -080020250# Support unset when possible.
20251if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20252 as_unset=unset
20253else
20254 as_unset=false
20255fi
20256
Jon Dugane34c20c2010-07-08 23:26:52 +000020257
20258# IFS
20259# We need space, tab and new line, in precisely that order. Quoting is
20260# there to prevent editors from complaining about space-tab.
20261# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20262# splitting by setting IFS to empty value.)
20263IFS=" "" $as_nl"
20264
20265# Find who we are. Look in the path if we contain no directory separator.
Jef Poskanzer437537f2012-11-30 12:16:17 -080020266case $0 in
Jon Dugane34c20c2010-07-08 23:26:52 +000020267 *[\\/]* ) as_myself=$0 ;;
20268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269for as_dir in $PATH
20270do
20271 IFS=$as_save_IFS
20272 test -z "$as_dir" && as_dir=.
Jef Poskanzer437537f2012-11-30 12:16:17 -080020273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20274done
Jon Dugane34c20c2010-07-08 23:26:52 +000020275IFS=$as_save_IFS
20276
20277 ;;
20278esac
20279# We did not find ourselves, most probably we were run as `sh COMMAND'
20280# in which case we are not to be found in the path.
20281if test "x$as_myself" = x; then
20282 as_myself=$0
20283fi
20284if test ! -f "$as_myself"; then
Jon Dugan92864152010-09-20 21:50:12 +000020285 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Jef Poskanzer437537f2012-11-30 12:16:17 -080020286 { (exit 1); exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020287fi
20288
Jef Poskanzer437537f2012-11-30 12:16:17 -080020289# Work around bugs in pre-3.0 UWIN ksh.
20290for as_var in ENV MAIL MAILPATH
20291do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Jon Dugane34c20c2010-07-08 23:26:52 +000020292done
20293PS1='$ '
20294PS2='> '
20295PS4='+ '
20296
20297# NLS nuisances.
Jon Dugan92864152010-09-20 21:50:12 +000020298LC_ALL=C
20299export LC_ALL
20300LANGUAGE=C
20301export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000020302
Jef Poskanzer437537f2012-11-30 12:16:17 -080020303# Required to use basename.
Jon Dugane34c20c2010-07-08 23:26:52 +000020304if expr a : '\(a\)' >/dev/null 2>&1 &&
20305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20306 as_expr=expr
20307else
20308 as_expr=false
20309fi
20310
20311if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20312 as_basename=basename
20313else
20314 as_basename=false
20315fi
20316
Jon Dugane34c20c2010-07-08 23:26:52 +000020317
Jef Poskanzer437537f2012-11-30 12:16:17 -080020318# Name of the executable.
Jon Dugane34c20c2010-07-08 23:26:52 +000020319as_me=`$as_basename -- "$0" ||
20320$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20321 X"$0" : 'X\(//\)$' \| \
20322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000020323$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000020324 sed '/^.*\/\([^/][^/]*\)\/*$/{
20325 s//\1/
20326 q
20327 }
20328 /^X\/\(\/\/\)$/{
20329 s//\1/
20330 q
20331 }
20332 /^X\/\(\/\).*/{
20333 s//\1/
20334 q
20335 }
20336 s/.*/./; q'`
20337
Jef Poskanzer437537f2012-11-30 12:16:17 -080020338# CDPATH.
20339$as_unset CDPATH
20340
20341
20342
20343 as_lineno_1=$LINENO
20344 as_lineno_2=$LINENO
20345 test "x$as_lineno_1" != "x$as_lineno_2" &&
20346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20347
20348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20349 # uniformly replaced by the line number. The first 'sed' inserts a
20350 # line-number line after each line using $LINENO; the second 'sed'
20351 # does the real work. The second script uses 'N' to pair each
20352 # line-number line with the line containing $LINENO, and appends
20353 # trailing '-' during substitution so that $LINENO is not a special
20354 # case at line end.
20355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20356 # scripts with optimization help from Paolo Bonzini. Blame Lee
20357 # E. McMahon (1931-1989) for sed's syntax. :-)
20358 sed -n '
20359 p
20360 /[$]LINENO/=
20361 ' <$as_myself |
20362 sed '
20363 s/[$]LINENO.*/&-/
20364 t lineno
20365 b
20366 :lineno
20367 N
20368 :loop
20369 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20370 t loop
20371 s/-\n.*//
20372 ' >$as_me.lineno &&
20373 chmod +x "$as_me.lineno" ||
20374 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20375 { (exit 1); exit 1; }; }
20376
20377 # Don't try to exec as it changes $[0], causing all sort of problems
20378 # (the dirname of $[0] is not the place where we might find the
20379 # original and so on. Autoconf is especially sensitive to this).
20380 . "./$as_me.lineno"
20381 # Exit status is that of the last command.
20382 exit
20383}
20384
20385
20386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20387 as_dirname=dirname
20388else
20389 as_dirname=false
20390fi
Jon Dugane34c20c2010-07-08 23:26:52 +000020391
20392ECHO_C= ECHO_N= ECHO_T=
Jef Poskanzer437537f2012-11-30 12:16:17 -080020393case `echo -n x` in
Jon Dugane34c20c2010-07-08 23:26:52 +000020394-n*)
Jef Poskanzer437537f2012-11-30 12:16:17 -080020395 case `echo 'x\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000020396 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jef Poskanzer437537f2012-11-30 12:16:17 -080020397 *) ECHO_C='\c';;
Jon Dugane34c20c2010-07-08 23:26:52 +000020398 esac;;
20399*)
20400 ECHO_N='-n';;
20401esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080020402if expr a : '\(a\)' >/dev/null 2>&1 &&
20403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20404 as_expr=expr
20405else
20406 as_expr=false
20407fi
Jon Dugane34c20c2010-07-08 23:26:52 +000020408
20409rm -f conf$$ conf$$.exe conf$$.file
20410if test -d conf$$.dir; then
20411 rm -f conf$$.dir/conf$$.file
20412else
20413 rm -f conf$$.dir
Jon Dugan92864152010-09-20 21:50:12 +000020414 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000020415fi
Jon Dugan92864152010-09-20 21:50:12 +000020416if (echo >conf$$.file) 2>/dev/null; then
20417 if ln -s conf$$.file conf$$ 2>/dev/null; then
20418 as_ln_s='ln -s'
20419 # ... but there are two gotchas:
20420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20422 # In both cases, we have to default to `cp -p'.
20423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20424 as_ln_s='cp -p'
20425 elif ln conf$$.file conf$$ 2>/dev/null; then
20426 as_ln_s=ln
20427 else
Jon Dugane34c20c2010-07-08 23:26:52 +000020428 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +000020429 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000020430else
20431 as_ln_s='cp -p'
20432fi
20433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20434rmdir conf$$.dir 2>/dev/null
20435
Jon Dugane34c20c2010-07-08 23:26:52 +000020436if mkdir -p . 2>/dev/null; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020437 as_mkdir_p=:
Jon Dugane34c20c2010-07-08 23:26:52 +000020438else
20439 test -d ./-p && rmdir ./-p
20440 as_mkdir_p=false
20441fi
20442
20443if test -x / >/dev/null 2>&1; then
20444 as_test_x='test -x'
20445else
20446 if ls -dL / >/dev/null 2>&1; then
20447 as_ls_L_option=L
20448 else
20449 as_ls_L_option=
20450 fi
20451 as_test_x='
20452 eval sh -c '\''
20453 if test -d "$1"; then
Jon Dugan92864152010-09-20 21:50:12 +000020454 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +000020455 else
Jef Poskanzer437537f2012-11-30 12:16:17 -080020456 case $1 in
Jon Dugan92864152010-09-20 21:50:12 +000020457 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +000020458 esac;
Jef Poskanzer437537f2012-11-30 12:16:17 -080020459 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Jon Dugane34c20c2010-07-08 23:26:52 +000020460 ???[sx]*):;;*)false;;esac;fi
20461 '\'' sh
20462 '
20463fi
20464as_executable_p=$as_test_x
20465
20466# Sed expression to map a string onto a valid CPP name.
20467as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20468
20469# Sed expression to map a string onto a valid variable name.
20470as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20471
20472
20473exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +000020474
Jef Poskanzer437537f2012-11-30 12:16:17 -080020475# Save the log message, to keep $[0] and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000020476# report actual input values of CONFIG_FILES etc. instead of their
20477# values after options handling.
20478ac_log="
20479This file was extended by iperf $as_me 3.0a4, which was
Jef Poskanzer437537f2012-11-30 12:16:17 -080020480generated by GNU Autoconf 2.63. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000020481
20482 CONFIG_FILES = $CONFIG_FILES
20483 CONFIG_HEADERS = $CONFIG_HEADERS
20484 CONFIG_LINKS = $CONFIG_LINKS
20485 CONFIG_COMMANDS = $CONFIG_COMMANDS
20486 $ $0 $@
20487
20488on `(hostname || uname -n) 2>/dev/null | sed 1q`
20489"
20490
20491_ACEOF
20492
Jon Dugan92864152010-09-20 21:50:12 +000020493case $ac_config_files in *"
20494"*) set x $ac_config_files; shift; ac_config_files=$*;;
20495esac
20496
20497case $ac_config_headers in *"
20498"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20499esac
20500
20501
20502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020503# Files that config.status was made for.
20504config_files="$ac_config_files"
20505config_headers="$ac_config_headers"
20506config_commands="$ac_config_commands"
20507
20508_ACEOF
20509
Jon Dugan92864152010-09-20 21:50:12 +000020510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020511ac_cs_usage="\
Jef Poskanzer437537f2012-11-30 12:16:17 -080020512\`$as_me' instantiates files from templates according to the
20513current configuration.
Jon Dugane34c20c2010-07-08 23:26:52 +000020514
Jef Poskanzer437537f2012-11-30 12:16:17 -080020515Usage: $0 [OPTION]... [FILE]...
Jon Dugane34c20c2010-07-08 23:26:52 +000020516
20517 -h, --help print this help, then exit
20518 -V, --version print version number and configuration settings, then exit
Jon Dugan92864152010-09-20 21:50:12 +000020519 -q, --quiet, --silent
20520 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000020521 -d, --debug don't remove temporary files
20522 --recheck update $as_me by reconfiguring in the same conditions
Jon Dugan92864152010-09-20 21:50:12 +000020523 --file=FILE[:TEMPLATE]
20524 instantiate the configuration file FILE
20525 --header=FILE[:TEMPLATE]
20526 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000020527
20528Configuration files:
20529$config_files
20530
20531Configuration headers:
20532$config_headers
20533
20534Configuration commands:
20535$config_commands
20536
Jef Poskanzer437537f2012-11-30 12:16:17 -080020537Report bugs to <bug-autoconf@gnu.org>."
Jon Dugane34c20c2010-07-08 23:26:52 +000020538
20539_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020541ac_cs_version="\\
20542iperf config.status 3.0a4
Jef Poskanzer437537f2012-11-30 12:16:17 -080020543configured by $0, generated by GNU Autoconf 2.63,
20544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000020545
Jef Poskanzer437537f2012-11-30 12:16:17 -080020546Copyright (C) 2008 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000020547This config.status script is free software; the Free Software Foundation
20548gives unlimited permission to copy, distribute and modify it."
20549
20550ac_pwd='$ac_pwd'
20551srcdir='$srcdir'
20552INSTALL='$INSTALL'
Jon Dugan92864152010-09-20 21:50:12 +000020553AWK='$AWK'
20554test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000020555_ACEOF
20556
Jon Dugan92864152010-09-20 21:50:12 +000020557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20558# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000020559ac_need_defaults=:
20560while test $# != 0
20561do
20562 case $1 in
Jef Poskanzer437537f2012-11-30 12:16:17 -080020563 --*=*)
Jon Dugane34c20c2010-07-08 23:26:52 +000020564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20566 ac_shift=:
20567 ;;
20568 *)
20569 ac_option=$1
20570 ac_optarg=$2
20571 ac_shift=shift
20572 ;;
20573 esac
20574
20575 case $ac_option in
20576 # Handling of the options.
20577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20578 ac_cs_recheck=: ;;
20579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jon Dugan92864152010-09-20 21:50:12 +000020580 $as_echo "$ac_cs_version"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020581 --debug | --debu | --deb | --de | --d | -d )
20582 debug=: ;;
20583 --file | --fil | --fi | --f )
20584 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000020585 case $ac_optarg in
20586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20587 esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080020588 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000020589 ac_need_defaults=false;;
20590 --header | --heade | --head | --hea )
20591 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000020592 case $ac_optarg in
20593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20594 esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080020595 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000020596 ac_need_defaults=false;;
20597 --he | --h)
20598 # Conflict between --help and --header
Jef Poskanzer437537f2012-11-30 12:16:17 -080020599 { $as_echo "$as_me: error: ambiguous option: $1
20600Try \`$0 --help' for more information." >&2
20601 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000020602 --help | --hel | -h )
Jon Dugan92864152010-09-20 21:50:12 +000020603 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20606 ac_cs_silent=: ;;
20607
20608 # This is an error.
Jef Poskanzer437537f2012-11-30 12:16:17 -080020609 -*) { $as_echo "$as_me: error: unrecognized option: $1
20610Try \`$0 --help' for more information." >&2
20611 { (exit 1); exit 1; }; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020612
Jef Poskanzer437537f2012-11-30 12:16:17 -080020613 *) ac_config_targets="$ac_config_targets $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000020614 ac_need_defaults=false ;;
20615
20616 esac
20617 shift
20618done
20619
20620ac_configure_extra_args=
20621
20622if $ac_cs_silent; then
20623 exec 6>/dev/null
20624 ac_configure_extra_args="$ac_configure_extra_args --silent"
20625fi
20626
20627_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020629if \$ac_cs_recheck; then
Jon Dugan92864152010-09-20 21:50:12 +000020630 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20631 shift
20632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20633 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000020634 export CONFIG_SHELL
Jon Dugan92864152010-09-20 21:50:12 +000020635 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000020636fi
20637
20638_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020640exec 5>>config.log
20641{
20642 echo
20643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20644## Running $as_me. ##
20645_ASBOX
Jon Dugan92864152010-09-20 21:50:12 +000020646 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000020647} >&5
20648
20649_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020651#
20652# INIT-COMMANDS
20653#
20654AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20655
Jon Dugane34c20c2010-07-08 23:26:52 +000020656_ACEOF
20657
Jon Dugan92864152010-09-20 21:50:12 +000020658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020659
20660# Handling of arguments.
20661for ac_config_target in $ac_config_targets
20662do
20663 case $ac_config_target in
20664 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000020666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20667 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20668
Jef Poskanzer437537f2012-11-30 12:16:17 -080020669 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20670$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20671 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000020672 esac
20673done
20674
20675
20676# If the user did not use the arguments to specify the items to instantiate,
20677# then the envvar interface is used. Set only those that are not.
20678# We use the long form for the default assignment because of an extremely
20679# bizarre bug on SunOS 4.1.3.
20680if $ac_need_defaults; then
20681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20684fi
20685
20686# Have a temporary directory for convenience. Make it in the build tree
20687# simply because there is no reason against having it here, and in addition,
20688# creating and moving files from /tmp can sometimes cause problems.
20689# Hook for its removal unless debugging.
20690# Note that there is a small window in which the directory will not be cleaned:
20691# after its creation but before its name has been assigned to `$tmp'.
20692$debug ||
20693{
Jef Poskanzer437537f2012-11-30 12:16:17 -080020694 tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000020695 trap 'exit_status=$?
Jef Poskanzer437537f2012-11-30 12:16:17 -080020696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000020697' 0
Jef Poskanzer437537f2012-11-30 12:16:17 -080020698 trap '{ (exit 1); exit 1; }' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000020699}
20700# Create a (secure) tmp directory for tmp files.
20701
20702{
20703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Jef Poskanzer437537f2012-11-30 12:16:17 -080020704 test -n "$tmp" && test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000020705} ||
20706{
20707 tmp=./conf$$-$RANDOM
20708 (umask 077 && mkdir "$tmp")
Jef Poskanzer437537f2012-11-30 12:16:17 -080020709} ||
20710{
20711 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20712 { (exit 1); exit 1; }
20713}
Jon Dugane34c20c2010-07-08 23:26:52 +000020714
Jon Dugan92864152010-09-20 21:50:12 +000020715# Set up the scripts for CONFIG_FILES section.
20716# No need to generate them if there are no CONFIG_FILES.
20717# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000020718if test -n "$CONFIG_FILES"; then
20719
Jon Dugan92864152010-09-20 21:50:12 +000020720
Jef Poskanzer437537f2012-11-30 12:16:17 -080020721ac_cr=' '
Jon Dugan92864152010-09-20 21:50:12 +000020722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
jef2ab386b2012-08-10 12:43:50 -070020724 ac_cs_awk_cr='\\r'
Jon Dugan92864152010-09-20 21:50:12 +000020725else
20726 ac_cs_awk_cr=$ac_cr
20727fi
20728
Jef Poskanzer437537f2012-11-30 12:16:17 -080020729echo 'BEGIN {' >"$tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000020730_ACEOF
20731
20732
Jon Dugan92864152010-09-20 21:50:12 +000020733{
20734 echo "cat >conf$$subs.awk <<_ACEOF" &&
20735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20736 echo "_ACEOF"
20737} >conf$$subs.sh ||
Jef Poskanzer437537f2012-11-30 12:16:17 -080020738 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20739$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20740 { (exit 1); exit 1; }; }
20741ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Jon Dugane34c20c2010-07-08 23:26:52 +000020742ac_delim='%!_!# '
20743for ac_last_try in false false false false false :; do
Jon Dugan92864152010-09-20 21:50:12 +000020744 . ./conf$$subs.sh ||
Jef Poskanzer437537f2012-11-30 12:16:17 -080020745 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20746$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20747 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020748
Jon Dugan92864152010-09-20 21:50:12 +000020749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20750 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000020751 break
20752 elif $ac_last_try; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20754$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20755 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020756 else
20757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20758 fi
20759done
Jon Dugan92864152010-09-20 21:50:12 +000020760rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000020761
Jon Dugan92864152010-09-20 21:50:12 +000020762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jef Poskanzer437537f2012-11-30 12:16:17 -080020763cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000020764_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020765sed -n '
20766h
20767s/^/S["/; s/!.*/"]=/
20768p
20769g
20770s/^[^!]*!//
20771:repl
20772t repl
20773s/'"$ac_delim"'$//
20774t delim
20775:nl
20776h
Jef Poskanzer437537f2012-11-30 12:16:17 -080020777s/\(.\{148\}\).*/\1/
Jon Dugan92864152010-09-20 21:50:12 +000020778t more1
20779s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20780p
20781n
20782b repl
20783:more1
20784s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20785p
20786g
20787s/.\{148\}//
20788t nl
20789:delim
20790h
Jef Poskanzer437537f2012-11-30 12:16:17 -080020791s/\(.\{148\}\).*/\1/
Jon Dugan92864152010-09-20 21:50:12 +000020792t more2
20793s/["\\]/\\&/g; s/^/"/; s/$/"/
20794p
20795b
20796:more2
20797s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20798p
20799g
20800s/.\{148\}//
20801t delim
20802' <conf$$subs.awk | sed '
20803/^[^""]/{
20804 N
20805 s/\n//
20806}
20807' >>$CONFIG_STATUS || ac_write_fail=1
20808rm -f conf$$subs.awk
20809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20810_ACAWK
Jef Poskanzer437537f2012-11-30 12:16:17 -080020811cat >>"\$tmp/subs1.awk" <<_ACAWK &&
Jon Dugan92864152010-09-20 21:50:12 +000020812 for (key in S) S_is_set[key] = 1
20813 FS = ""
20814
20815}
20816{
20817 line = $ 0
20818 nfields = split(line, field, "@")
20819 substed = 0
20820 len = length(field[1])
20821 for (i = 2; i < nfields; i++) {
20822 key = field[i]
20823 keylen = length(key)
20824 if (S_is_set[key]) {
20825 value = S[key]
20826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20827 len += length(value) + length(field[++i])
20828 substed = 1
20829 } else
20830 len += 1 + keylen
20831 }
20832
20833 print line
20834}
20835
20836_ACAWK
Jon Dugane34c20c2010-07-08 23:26:52 +000020837_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000020838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20839if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20841else
20842 cat
Jef Poskanzer437537f2012-11-30 12:16:17 -080020843fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20844 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20845$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20846 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000020847_ACEOF
20848
Jef Poskanzer437537f2012-11-30 12:16:17 -080020849# VPATH may cause trouble with some makes, so we remove $(srcdir),
20850# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000020851# trailing colons and then remove the whole line if VPATH becomes empty
20852# (actually we leave an empty line to preserve line numbers).
20853if test "x$srcdir" = x.; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020854 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20855s/:*\$(srcdir):*/:/
20856s/:*\${srcdir}:*/:/
20857s/:*@srcdir@:*/:/
20858s/^\([^=]*=[ ]*\):*/\1/
Jon Dugane34c20c2010-07-08 23:26:52 +000020859s/:*$//
20860s/^[^=]*=[ ]*$//
20861}'
20862fi
20863
Jon Dugan92864152010-09-20 21:50:12 +000020864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000020865fi # test -n "$CONFIG_FILES"
20866
Jon Dugan92864152010-09-20 21:50:12 +000020867# Set up the scripts for CONFIG_HEADERS section.
20868# No need to generate them if there are no CONFIG_HEADERS.
20869# This happens for instance with `./config.status Makefile'.
20870if test -n "$CONFIG_HEADERS"; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020871cat >"$tmp/defines.awk" <<\_ACAWK ||
Jon Dugan92864152010-09-20 21:50:12 +000020872BEGIN {
20873_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000020874
Jon Dugan92864152010-09-20 21:50:12 +000020875# Transform confdefs.h into an awk script `defines.awk', embedded as
20876# here-document in config.status, that substitutes the proper values into
20877# config.h.in to produce config.h.
20878
20879# Create a delimiter string that does not exist in confdefs.h, to ease
20880# handling of long lines.
20881ac_delim='%!_!# '
20882for ac_last_try in false false :; do
Jef Poskanzer437537f2012-11-30 12:16:17 -080020883 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20884 if test -z "$ac_t"; then
Jon Dugan92864152010-09-20 21:50:12 +000020885 break
20886 elif $ac_last_try; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080020887 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20888$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20889 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +000020890 else
20891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20892 fi
20893done
20894
20895# For the awk script, D is an array of macro values keyed by name,
20896# likewise P contains macro parameters if any. Preserve backslash
20897# newline sequences.
20898
20899ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20900sed -n '
20901s/.\{148\}/&'"$ac_delim"'/g
20902t rset
20903:rset
20904s/^[ ]*#[ ]*define[ ][ ]*/ /
20905t def
20906d
20907:def
20908s/\\$//
20909t bsnl
20910s/["\\]/\\&/g
20911s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20912D["\1"]=" \3"/p
20913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20914d
20915:bsnl
20916s/["\\]/\\&/g
20917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20918D["\1"]=" \3\\\\\\n"\\/p
20919t cont
20920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20921t cont
20922d
20923:cont
20924n
20925s/.\{148\}/&'"$ac_delim"'/g
20926t clear
20927:clear
20928s/\\$//
20929t bsnlc
20930s/["\\]/\\&/g; s/^/"/; s/$/"/p
20931d
20932:bsnlc
20933s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20934b cont
20935' <confdefs.h | sed '
20936s/'"$ac_delim"'/"\\\
20937"/g' >>$CONFIG_STATUS || ac_write_fail=1
20938
20939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20940 for (key in D) D_is_set[key] = 1
20941 FS = ""
20942}
20943/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20944 line = \$ 0
20945 split(line, arg, " ")
20946 if (arg[1] == "#") {
20947 defundef = arg[2]
20948 mac1 = arg[3]
20949 } else {
20950 defundef = substr(arg[1], 2)
20951 mac1 = arg[2]
20952 }
20953 split(mac1, mac2, "(") #)
20954 macro = mac2[1]
20955 prefix = substr(line, 1, index(line, defundef) - 1)
20956 if (D_is_set[macro]) {
20957 # Preserve the white space surrounding the "#".
20958 print prefix "define", macro P[macro] D[macro]
20959 next
20960 } else {
20961 # Replace #undef with comments. This is necessary, for example,
20962 # in the case of _POSIX_SOURCE, which is predefined and required
20963 # on some systems where configure will not decide to define it.
20964 if (defundef == "undef") {
20965 print "/*", prefix defundef, macro, "*/"
20966 next
20967 }
20968 }
20969}
20970{ print }
20971_ACAWK
20972_ACEOF
20973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jef Poskanzer437537f2012-11-30 12:16:17 -080020974 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20975$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20976 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +000020977fi # test -n "$CONFIG_HEADERS"
20978
20979
20980eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20981shift
20982for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000020983do
20984 case $ac_tag in
20985 :[FHLC]) ac_mode=$ac_tag; continue;;
20986 esac
20987 case $ac_mode$ac_tag in
20988 :[FHL]*:*);;
Jef Poskanzer437537f2012-11-30 12:16:17 -080020989 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20990$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20991 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000020992 :[FH]-) ac_tag=-:-;;
20993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20994 esac
20995 ac_save_IFS=$IFS
20996 IFS=:
20997 set x $ac_tag
20998 IFS=$ac_save_IFS
20999 shift
21000 ac_file=$1
21001 shift
21002
21003 case $ac_mode in
21004 :L) ac_source=$1;;
21005 :[FH])
21006 ac_file_inputs=
21007 for ac_f
21008 do
21009 case $ac_f in
Jef Poskanzer437537f2012-11-30 12:16:17 -080021010 -) ac_f="$tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000021011 *) # Look for the file first in the build tree, then in the source tree
21012 # (if the path is not absolute). The absolute path cannot be DOS-style,
21013 # because $ac_f cannot contain `:'.
21014 test -f "$ac_f" ||
21015 case $ac_f in
21016 [\\/$]*) false;;
21017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21018 esac ||
Jef Poskanzer437537f2012-11-30 12:16:17 -080021019 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21020$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21021 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000021022 esac
Jon Dugan92864152010-09-20 21:50:12 +000021023 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Jef Poskanzer437537f2012-11-30 12:16:17 -080021024 ac_file_inputs="$ac_file_inputs '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000021025 done
21026
21027 # Let's still pretend it is `configure' which instantiates (i.e., don't
21028 # use $as_me), people would be surprised to read:
21029 # /* config.h. Generated by config.status. */
Jon Dugan92864152010-09-20 21:50:12 +000021030 configure_input='Generated from '`
21031 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21032 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000021033 if test x"$ac_file" != x-; then
21034 configure_input="$ac_file. $configure_input"
Jef Poskanzer437537f2012-11-30 12:16:17 -080021035 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
Jon Dugan92864152010-09-20 21:50:12 +000021036$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021037 fi
Jon Dugan92864152010-09-20 21:50:12 +000021038 # Neutralize special characters interpreted by sed in replacement strings.
21039 case $configure_input in #(
21040 *\&* | *\|* | *\\* )
21041 ac_sed_conf_input=`$as_echo "$configure_input" |
21042 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21043 *) ac_sed_conf_input=$configure_input;;
21044 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000021045
21046 case $ac_tag in
Jef Poskanzer437537f2012-11-30 12:16:17 -080021047 *:-:* | *:-) cat >"$tmp/stdin" \
21048 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21049$as_echo "$as_me: error: could not create $ac_file" >&2;}
21050 { (exit 1); exit 1; }; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000021051 esac
21052 ;;
21053 esac
21054
21055 ac_dir=`$as_dirname -- "$ac_file" ||
21056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057 X"$ac_file" : 'X\(//\)[^/]' \| \
21058 X"$ac_file" : 'X\(//\)$' \| \
21059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000021060$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000021061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21062 s//\1/
21063 q
21064 }
21065 /^X\(\/\/\)[^/].*/{
21066 s//\1/
21067 q
21068 }
21069 /^X\(\/\/\)$/{
21070 s//\1/
21071 q
21072 }
21073 /^X\(\/\).*/{
21074 s//\1/
21075 q
21076 }
21077 s/.*/./; q'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080021078 { as_dir="$ac_dir"
21079 case $as_dir in #(
21080 -*) as_dir=./$as_dir;;
21081 esac
21082 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21083 as_dirs=
21084 while :; do
21085 case $as_dir in #(
21086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21087 *) as_qdir=$as_dir;;
21088 esac
21089 as_dirs="'$as_qdir' $as_dirs"
21090 as_dir=`$as_dirname -- "$as_dir" ||
21091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21092 X"$as_dir" : 'X\(//\)[^/]' \| \
21093 X"$as_dir" : 'X\(//\)$' \| \
21094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21095$as_echo X"$as_dir" |
21096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21097 s//\1/
21098 q
21099 }
21100 /^X\(\/\/\)[^/].*/{
21101 s//\1/
21102 q
21103 }
21104 /^X\(\/\/\)$/{
21105 s//\1/
21106 q
21107 }
21108 /^X\(\/\).*/{
21109 s//\1/
21110 q
21111 }
21112 s/.*/./; q'`
21113 test -d "$as_dir" && break
21114 done
21115 test -z "$as_dirs" || eval "mkdir $as_dirs"
21116 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21117$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21118 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021119 ac_builddir=.
21120
21121case "$ac_dir" in
21122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21123*)
Jon Dugan92864152010-09-20 21:50:12 +000021124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000021125 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +000021126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000021127 case $ac_top_builddir_sub in
21128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21130 esac ;;
21131esac
21132ac_abs_top_builddir=$ac_pwd
21133ac_abs_builddir=$ac_pwd$ac_dir_suffix
21134# for backward compatibility:
21135ac_top_builddir=$ac_top_build_prefix
21136
21137case $srcdir in
21138 .) # We are building in place.
21139 ac_srcdir=.
21140 ac_top_srcdir=$ac_top_builddir_sub
21141 ac_abs_top_srcdir=$ac_pwd ;;
21142 [\\/]* | ?:[\\/]* ) # Absolute name.
21143 ac_srcdir=$srcdir$ac_dir_suffix;
21144 ac_top_srcdir=$srcdir
21145 ac_abs_top_srcdir=$srcdir ;;
21146 *) # Relative name.
21147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21148 ac_top_srcdir=$ac_top_build_prefix$srcdir
21149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21150esac
21151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21152
21153
21154 case $ac_mode in
21155 :F)
21156 #
21157 # CONFIG_FILE
21158 #
21159
21160 case $INSTALL in
21161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21163 esac
21164_ACEOF
21165
Jon Dugan92864152010-09-20 21:50:12 +000021166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000021167# If the template does not know about datarootdir, expand it.
21168# FIXME: This hack should be removed a few years after 2.60.
21169ac_datarootdir_hack=; ac_datarootdir_seen=
Jef Poskanzer437537f2012-11-30 12:16:17 -080021170
Jon Dugan92864152010-09-20 21:50:12 +000021171ac_sed_dataroot='
21172/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000021173 p
21174 q
21175}
21176/@datadir@/p
21177/@docdir@/p
21178/@infodir@/p
21179/@localedir@/p
Jef Poskanzer437537f2012-11-30 12:16:17 -080021180/@mandir@/p
21181'
Jon Dugan92864152010-09-20 21:50:12 +000021182case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000021183*datarootdir*) ac_datarootdir_seen=yes;;
21184*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jef Poskanzer437537f2012-11-30 12:16:17 -080021185 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Jon Dugan92864152010-09-20 21:50:12 +000021186$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021187_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000021188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000021189 ac_datarootdir_hack='
21190 s&@datadir@&$datadir&g
21191 s&@docdir@&$docdir&g
21192 s&@infodir@&$infodir&g
21193 s&@localedir@&$localedir&g
21194 s&@mandir@&$mandir&g
Jef Poskanzer437537f2012-11-30 12:16:17 -080021195 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000021196esac
21197_ACEOF
21198
21199# Neutralize VPATH when `$srcdir' = `.'.
21200# Shell code in configure.ac might set extrasub.
21201# FIXME: do we really want to maintain this feature?
Jon Dugan92864152010-09-20 21:50:12 +000021202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21203ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000021204$extrasub
21205_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000021206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000021207:t
21208/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jon Dugan92864152010-09-20 21:50:12 +000021209s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000021210s&@top_builddir@&$ac_top_builddir_sub&;t t
Jon Dugan92864152010-09-20 21:50:12 +000021211s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000021212s&@srcdir@&$ac_srcdir&;t t
21213s&@abs_srcdir@&$ac_abs_srcdir&;t t
21214s&@top_srcdir@&$ac_top_srcdir&;t t
21215s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21216s&@builddir@&$ac_builddir&;t t
21217s&@abs_builddir@&$ac_abs_builddir&;t t
21218s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21219s&@INSTALL@&$ac_INSTALL&;t t
21220$ac_datarootdir_hack
Jon Dugan92864152010-09-20 21:50:12 +000021221"
Jef Poskanzer437537f2012-11-30 12:16:17 -080021222eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21223 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21224$as_echo "$as_me: error: could not create $ac_file" >&2;}
21225 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021226
21227test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Jef Poskanzer437537f2012-11-30 12:16:17 -080021228 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21230 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21231which seems to be undefined. Please make sure it is defined." >&5
Jon Dugan92864152010-09-20 21:50:12 +000021232$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jef Poskanzer437537f2012-11-30 12:16:17 -080021233which seems to be undefined. Please make sure it is defined." >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021234
Jef Poskanzer437537f2012-11-30 12:16:17 -080021235 rm -f "$tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000021236 case $ac_file in
Jef Poskanzer437537f2012-11-30 12:16:17 -080021237 -) cat "$tmp/out" && rm -f "$tmp/out";;
21238 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
Jon Dugan92864152010-09-20 21:50:12 +000021239 esac \
Jef Poskanzer437537f2012-11-30 12:16:17 -080021240 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21241$as_echo "$as_me: error: could not create $ac_file" >&2;}
21242 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021243 ;;
21244 :H)
21245 #
21246 # CONFIG_HEADER
21247 #
21248 if test x"$ac_file" != x-; then
Jon Dugan92864152010-09-20 21:50:12 +000021249 {
21250 $as_echo "/* $configure_input */" \
Jef Poskanzer437537f2012-11-30 12:16:17 -080021251 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21252 } >"$tmp/config.h" \
21253 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21254$as_echo "$as_me: error: could not create $ac_file" >&2;}
21255 { (exit 1); exit 1; }; }
21256 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21257 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Jon Dugan92864152010-09-20 21:50:12 +000021258$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021259 else
Jon Dugan92864152010-09-20 21:50:12 +000021260 rm -f "$ac_file"
Jef Poskanzer437537f2012-11-30 12:16:17 -080021261 mv "$tmp/config.h" "$ac_file" \
21262 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21263$as_echo "$as_me: error: could not create $ac_file" >&2;}
21264 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021265 fi
21266 else
Jon Dugan92864152010-09-20 21:50:12 +000021267 $as_echo "/* $configure_input */" \
Jef Poskanzer437537f2012-11-30 12:16:17 -080021268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21269 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21270$as_echo "$as_me: error: could not create -" >&2;}
21271 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021272 fi
Jon Dugan92864152010-09-20 21:50:12 +000021273# Compute "$ac_file"'s index in $config_headers.
Jon Dugane34c20c2010-07-08 23:26:52 +000021274_am_stamp_count=1
21275for _am_header in $config_headers :; do
21276 case $_am_header in
jef56a97f92012-08-20 14:35:58 -070021277 "$ac_file" | "$ac_file":* )
Jon Dugane34c20c2010-07-08 23:26:52 +000021278 break ;;
21279 * )
21280 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21281 esac
21282done
jef56a97f92012-08-20 14:35:58 -070021283echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
21284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285 X"$ac_file" : 'X\(//\)[^/]' \| \
21286 X"$ac_file" : 'X\(//\)$' \| \
21287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21288$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000021289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21290 s//\1/
21291 q
21292 }
21293 /^X\(\/\/\)[^/].*/{
21294 s//\1/
21295 q
21296 }
21297 /^X\(\/\/\)$/{
21298 s//\1/
21299 q
21300 }
21301 /^X\(\/\).*/{
21302 s//\1/
21303 q
21304 }
21305 s/.*/./; q'`/stamp-h$_am_stamp_count
21306 ;;
21307
Jef Poskanzer437537f2012-11-30 12:16:17 -080021308 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
Jon Dugan92864152010-09-20 21:50:12 +000021309$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021310 ;;
21311 esac
21312
21313
21314 case $ac_file$ac_mode in
jef56a97f92012-08-20 14:35:58 -070021315 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21316 # Strip MF so we end up with the name of the file.
21317 mf=`echo "$mf" | sed -e 's/:.*$//'`
21318 # Check whether this is an Automake generated Makefile or not.
21319 # We used to match only the files named `Makefile.in', but
21320 # some people rename them; so instead we look at the file content.
21321 # Grep'ing the first line is not enough: some people post-process
21322 # each Makefile.in and add a new line on top of each file to say so.
21323 # So let's grep whole file.
21324 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21325 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000021326$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$mf" : 'X\(//\)[^/]' \| \
21328 X"$mf" : 'X\(//\)$' \| \
21329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000021330$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000021331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21332 s//\1/
21333 q
21334 }
21335 /^X\(\/\/\)[^/].*/{
21336 s//\1/
21337 q
21338 }
21339 /^X\(\/\/\)$/{
21340 s//\1/
21341 q
21342 }
21343 /^X\(\/\).*/{
21344 s//\1/
21345 q
21346 }
21347 s/.*/./; q'`
jef56a97f92012-08-20 14:35:58 -070021348 else
21349 continue
21350 fi
21351 # Extract the definition of DEPDIR, am__include, and am__quote
21352 # from the Makefile without running `make'.
21353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21354 test -z "$DEPDIR" && continue
21355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21356 test -z "am__include" && continue
21357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21358 # When using ansi2knr, U may be empty or an underscore; expand it
21359 U=`sed -n 's/^U = //p' < "$mf"`
21360 # Find all dependency output files, they are included files with
21361 # $(DEPDIR) in their names. We invoke sed twice because it is the
21362 # simplest approach to changing $(DEPDIR) to its actual value in the
21363 # expansion.
21364 for file in `sed -n "
21365 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21366 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21367 # Make sure the directory exists.
21368 test -f "$dirpart/$file" && continue
21369 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000021370$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21371 X"$file" : 'X\(//\)[^/]' \| \
21372 X"$file" : 'X\(//\)$' \| \
21373 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000021374$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000021375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21376 s//\1/
21377 q
21378 }
21379 /^X\(\/\/\)[^/].*/{
21380 s//\1/
21381 q
21382 }
21383 /^X\(\/\/\)$/{
21384 s//\1/
21385 q
21386 }
21387 /^X\(\/\).*/{
21388 s//\1/
21389 q
21390 }
21391 s/.*/./; q'`
Jef Poskanzer437537f2012-11-30 12:16:17 -080021392 { as_dir=$dirpart/$fdir
21393 case $as_dir in #(
21394 -*) as_dir=./$as_dir;;
21395 esac
21396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21397 as_dirs=
21398 while :; do
21399 case $as_dir in #(
21400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21401 *) as_qdir=$as_dir;;
21402 esac
21403 as_dirs="'$as_qdir' $as_dirs"
21404 as_dir=`$as_dirname -- "$as_dir" ||
21405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406 X"$as_dir" : 'X\(//\)[^/]' \| \
21407 X"$as_dir" : 'X\(//\)$' \| \
21408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21409$as_echo X"$as_dir" |
21410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21411 s//\1/
21412 q
21413 }
21414 /^X\(\/\/\)[^/].*/{
21415 s//\1/
21416 q
21417 }
21418 /^X\(\/\/\)$/{
21419 s//\1/
21420 q
21421 }
21422 /^X\(\/\).*/{
21423 s//\1/
21424 q
21425 }
21426 s/.*/./; q'`
21427 test -d "$as_dir" && break
21428 done
21429 test -z "$as_dirs" || eval "mkdir $as_dirs"
21430 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21431$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21432 { (exit 1); exit 1; }; }; }
jef56a97f92012-08-20 14:35:58 -070021433 # echo "creating $dirpart/$file"
21434 echo '# dummy' > "$dirpart/$file"
Jon Dugane34c20c2010-07-08 23:26:52 +000021435 done
jef56a97f92012-08-20 14:35:58 -070021436done
Jon Dugane34c20c2010-07-08 23:26:52 +000021437 ;;
21438
21439 esac
21440done # for ac_tag
21441
21442
Jef Poskanzer437537f2012-11-30 12:16:17 -080021443{ (exit 0); exit 0; }
Jon Dugane34c20c2010-07-08 23:26:52 +000021444_ACEOF
Jef Poskanzer437537f2012-11-30 12:16:17 -080021445chmod +x $CONFIG_STATUS
Jon Dugane34c20c2010-07-08 23:26:52 +000021446ac_clean_files=$ac_clean_files_save
21447
Jon Dugan92864152010-09-20 21:50:12 +000021448test $ac_write_fail = 0 ||
Jef Poskanzer437537f2012-11-30 12:16:17 -080021449 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21450$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21451 { (exit 1); exit 1; }; }
Jon Dugan92864152010-09-20 21:50:12 +000021452
Jon Dugane34c20c2010-07-08 23:26:52 +000021453
21454# configure is writing to config.log, and then calls config.status.
21455# config.status does its own redirection, appending to config.log.
21456# Unfortunately, on DOS this fails, as config.log is still kept open
21457# by configure, so config.status won't be able to write to it; its
21458# output is simply discarded. So we exec the FD to /dev/null,
21459# effectively closing config.log, so it can be properly (re)opened and
21460# appended to by config.status. When coming back to configure, we
21461# need to make the FD available again.
21462if test "$no_create" != yes; then
21463 ac_cs_success=:
21464 ac_config_status_args=
21465 test "$silent" = yes &&
21466 ac_config_status_args="$ac_config_status_args --quiet"
21467 exec 5>/dev/null
21468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21469 exec 5>>config.log
21470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21471 # would make configure fail if this is the last instruction.
Jef Poskanzer437537f2012-11-30 12:16:17 -080021472 $ac_cs_success || { (exit 1); exit 1; }
Jon Dugan92864152010-09-20 21:50:12 +000021473fi
21474if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Jef Poskanzer437537f2012-11-30 12:16:17 -080021475 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Jon Dugan92864152010-09-20 21:50:12 +000021476$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000021477fi
21478