blob: da17472792c3728b76cef33d8a416f0c0bd4d82a [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jef2ab386b2012-08-10 12:43:50 -07003# Generated by GNU Autoconf 2.68 for iperf 3.0a4.
Jon Dugane34c20c2010-07-08 23:26:52 +00004#
5# Report bugs to <iperf-users@lists.sourceforge.net>.
6#
Jon Dugan92864152010-09-20 21:50:12 +00007#
Jon Dugane34c20c2010-07-08 23:26:52 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
jef2ab386b2012-08-10 12:43:50 -07009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
Jon Dugan92864152010-09-20 21:50:12 +000011#
12#
Jon Dugane34c20c2010-07-08 23:26:52 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Jon Dugan92864152010-09-20 21:50:12 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Jon Dugan92864152010-09-20 21:50:12 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000022 emulate sh
23 NULLCMD=:
Jon Dugan92864152010-09-20 21:50:12 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
Jon Dugan92864152010-09-20 21:50:12 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000034esac
35fi
36
37
Jon Dugan92864152010-09-20 21:50:12 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
Jon Dugane34c20c2010-07-08 23:26:52 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Jon Dugan92864152010-09-20 21:50:12 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
Jon Dugane34c20c2010-07-08 23:26:52 +000083fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jef2ab386b2012-08-10 12:43:50 -070094as_myself=
Jon Dugan92864152010-09-20 21:50:12 +000095case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
Jon Dugane34c20c2010-07-08 23:26:52 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
Jon Dugan92864152010-09-20 21:50:12 +0000114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +0000116fi
117
Jon Dugan92864152010-09-20 21:50:12 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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
Jon Dugan92864152010-09-20 21:50:12 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
jef2ab386b2012-08-10 12:43:50 -0700228 # Preserve -v and -x to the replacement shell.
Jon Dugan92864152010-09-20 21:50:12 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
jef2ab386b2012-08-10 12:43:50 -0700233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Jon Dugan92864152010-09-20 21:50:12 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: iperf-users@lists.sourceforge.net about your system,
251$0: including any error possibly output before this
252$0: message. Then install a modern shell, or manually run
253$0: the script under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
jef2ab386b2012-08-10 12:43:50 -0700338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Jon Dugan92864152010-09-20 21:50:12 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
jef2ab386b2012-08-10 12:43:50 -0700378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
Jon Dugan92864152010-09-20 21:50:12 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
jef2ab386b2012-08-10 12:43:50 -0700382# script with STATUS, using 1 if that was 0.
Jon Dugan92864152010-09-20 21:50:12 +0000383as_fn_error ()
384{
jef2ab386b2012-08-10 12:43:50 -0700385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Jon Dugan92864152010-09-20 21:50:12 +0000389 fi
jef2ab386b2012-08-10 12:43:50 -0700390 $as_echo "$as_me: error: $2" >&2
Jon Dugan92864152010-09-20 21:50:12 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
Jon Dugane34c20c2010-07-08 23:26:52 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
Jon Dugan92864152010-09-20 21:50:12 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +0000417$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +0000418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
Jon Dugan92864152010-09-20 21:50:12 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +0000438
439
Jon Dugan92864152010-09-20 21:50:12 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Jon Dugane34c20c2010-07-08 23:26:52 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
Jon Dugan92864152010-09-20 21:50:12 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
Jon Dugan92864152010-09-20 21:50:12 +0000472case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +0000473-n*)
Jon Dugan92864152010-09-20 21:50:12 +0000474 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jon Dugan92864152010-09-20 21:50:12 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
Jon Dugan92864152010-09-20 21:50:12 +0000489 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000490fi
Jon Dugan92864152010-09-20 21:50:12 +0000491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
Jon Dugane34c20c2010-07-08 23:26:52 +0000503 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +0000504 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
Jon Dugan92864152010-09-20 21:50:12 +0000529 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +0000530 else
Jon Dugan92864152010-09-20 21:50:12 +0000531 case $1 in #(
532 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +0000533 esac;
Jon Dugan92864152010-09-20 21:50:12 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Jon Dugane34c20c2010-07-08 23:26:52 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
Jon Dugan92864152010-09-20 21:50:12 +0000550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000552
553# Name of the host.
jef2ab386b2012-08-10 12:43:50 -0700554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Jon Dugane34c20c2010-07-08 23:26:52 +0000555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='iperf'
572PACKAGE_TARNAME='iperf'
573PACKAGE_VERSION='3.0a4'
574PACKAGE_STRING='iperf 3.0a4'
575PACKAGE_BUGREPORT='iperf-users@lists.sourceforge.net'
Jon Dugan92864152010-09-20 21:50:12 +0000576PACKAGE_URL=''
Jon Dugane34c20c2010-07-08 23:26:52 +0000577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592# include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597# include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
Jon Dugan92864152010-09-20 21:50:12 +0000614ac_subst_vars='am__EXEEXT_FALSE
615am__EXEEXT_TRUE
616LTLIBOBJS
sethdelliott01ca9722010-07-19 20:38:40 +0000617LIBOBJS
Jon Dugan92864152010-09-20 21:50:12 +0000618LINUX_FALSE
619LINUX_TRUE
620CPP
621OTOOL64
622OTOOL
623LIPO
624NMEDIT
625DSYMUTIL
jef2ab386b2012-08-10 12:43:50 -0700626MANIFEST_TOOL
627ac_ct_AR
Jon Dugan92864152010-09-20 21:50:12 +0000628AR
jef2ab386b2012-08-10 12:43:50 -0700629DLLTOOL
Jon Dugan92864152010-09-20 21:50:12 +0000630OBJDUMP
631NM
632ac_ct_DUMPBIN
633DUMPBIN
634LD
635FGREP
636EGREP
637GREP
638SED
639LIBTOOL
640LN_S
641RANLIB
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658host_os
659host_vendor
660host_cpu
661host
662build_os
663build_vendor
664build_cpu
665build
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000727ac_subst_files=''
Jon Dugan92864152010-09-20 21:50:12 +0000728ac_user_opts='
729enable_option_checking
730enable_dependency_tracking
731enable_shared
732enable_static
733with_pic
734enable_fast_install
735with_gnu_ld
jef2ab386b2012-08-10 12:43:50 -0700736with_sysroot
Jon Dugan92864152010-09-20 21:50:12 +0000737enable_libtool_lock
738'
Jon Dugane34c20c2010-07-08 23:26:52 +0000739 ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP'
748
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
Jon Dugan92864152010-09-20 21:50:12 +0000753ac_unrecognized_opts=
754ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000755# The variables have the same names as the options, with
756# dashes changed to underlines.
757cache_file=/dev/null
758exec_prefix=NONE
759no_create=
760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
765silent=
766site=
767srcdir=
768verbose=
769x_includes=NONE
770x_libraries=NONE
771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
777# (The list follows the same order as the GNU Coding Standards.)
778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
786includedir='${prefix}/include'
787oldincludedir='/usr/include'
788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
797
798ac_prev=
799ac_dashdash=
800for ac_option
801do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
jef2ab386b2012-08-10 12:43:50 -0700810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
Jon Dugan92864152010-09-20 21:50:12 +0000854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000855 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +0000856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
jef2ab386b2012-08-10 12:43:50 -0700857 as_fn_error $? "invalid feature name: $ac_useropt"
Jon Dugan92864152010-09-20 21:50:12 +0000858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862"enable_$ac_useropt"
863"*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
Jon Dugan92864152010-09-20 21:50:12 +0000880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000881 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +0000882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
jef2ab386b2012-08-10 12:43:50 -0700883 as_fn_error $? "invalid feature name: $ac_useropt"
Jon Dugan92864152010-09-20 21:50:12 +0000884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888"enable_$ac_useropt"
889"*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
Jon Dugan92864152010-09-20 21:50:12 +00001084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001085 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
jef2ab386b2012-08-10 12:43:50 -07001087 as_fn_error $? "invalid package name: $ac_useropt"
Jon Dugan92864152010-09-20 21:50:12 +00001088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092"with_$ac_useropt"
1093"*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001098
1099 -without-* | --without-*)
Jon Dugan92864152010-09-20 21:50:12 +00001100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001101 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
jef2ab386b2012-08-10 12:43:50 -07001103 as_fn_error $? "invalid package name: $ac_useropt"
Jon Dugan92864152010-09-20 21:50:12 +00001104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108"with_$ac_useropt"
1109"*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
jef2ab386b2012-08-10 12:43:50 -07001133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
jef2ab386b2012-08-10 12:43:50 -07001142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Jon Dugan92864152010-09-20 21:50:12 +00001143 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
Jon Dugan92864152010-09-20 21:50:12 +00001149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jon Dugan92864152010-09-20 21:50:12 +00001151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
jef2ab386b2012-08-10 12:43:50 -07001152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001153 ;;
1154
1155 esac
1156done
1157
1158if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jef2ab386b2012-08-10 12:43:50 -07001160 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001161fi
1162
Jon Dugan92864152010-09-20 21:50:12 +00001163if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
jef2ab386b2012-08-10 12:43:50 -07001166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Jon Dugan92864152010-09-20 21:50:12 +00001167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169fi
1170
1171# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176do
1177 eval ac_val=\$$ac_var
Jon Dugan92864152010-09-20 21:50:12 +00001178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
jef2ab386b2012-08-10 12:43:50 -07001189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001190done
1191
1192# There might be people who depend on the old broken behavior: `$host'
1193# used to hold the argument of --host etc.
1194# FIXME: To remove some day.
1195build=$build_alias
1196host=$host_alias
1197target=$target_alias
1198
1199# FIXME: To remove some day.
1200if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
jef2ab386b2012-08-10 12:43:50 -07001203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
1215
1216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jef2ab386b2012-08-10 12:43:50 -07001219 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001220test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jef2ab386b2012-08-10 12:43:50 -07001221 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001222
1223
1224# Find the source files, if location was not specified.
1225if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
Jon Dugan92864152010-09-20 21:50:12 +00001228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255else
1256 ac_srcdir_defaulted=no
1257fi
1258if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jef2ab386b2012-08-10 12:43:50 -07001260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001261fi
1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
jef2ab386b2012-08-10 12:43:50 -07001264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
1282
1283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290\`configure' configures iperf 3.0a4 to adapt to many kinds of systems.
1291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
jef2ab386b2012-08-10 12:43:50 -07001304 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001312 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001314 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
Jon Dugan92864152010-09-20 21:50:12 +00001324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001343_ACEOF
1344
1345 cat <<\_ACEOF
1346
1347Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of iperf 3.0a4:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364Optional Features:
Jon Dugan92864152010-09-20 21:50:12 +00001365 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
sethdelliott01ca9722010-07-19 20:38:40 +00001368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
Jon Dugane34c20c2010-07-08 23:26:52 +00001370 --enable-shared[=PKGS] build shared libraries [default=yes]
1371 --enable-static[=PKGS] build static libraries [default=yes]
1372 --enable-fast-install[=PKGS]
1373 optimize for fast installation [default=yes]
1374 --disable-libtool-lock avoid locking (might break parallel builds)
1375
1376Optional Packages:
1377 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1378 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1379 --with-pic try to use only PIC/non-PIC objects [default=use
1380 both]
1381 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
jef2ab386b2012-08-10 12:43:50 -07001382 --with-sysroot=DIR Search for dependent libraries within DIR
1383 (or the compiler's sysroot if not specified).
Jon Dugane34c20c2010-07-08 23:26:52 +00001384
1385Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
Jon Dugan92864152010-09-20 21:50:12 +00001391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1394
1395Use these variables to override the choices made by `configure' or to help
1396it to find libraries and programs with nonstandard names/locations.
1397
1398Report bugs to <iperf-users@lists.sourceforge.net>.
1399_ACEOF
1400ac_status=$?
1401fi
1402
1403if test "$ac_init_help" = "recursive"; then
1404 # If there are subdirs, report their specific --help.
1405 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jon Dugan92864152010-09-20 21:50:12 +00001406 test -d "$ac_dir" ||
1407 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001409 ac_builddir=.
1410
1411case "$ac_dir" in
1412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413*)
Jon Dugan92864152010-09-20 21:50:12 +00001414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001415 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +00001416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421esac
1422ac_abs_top_builddir=$ac_pwd
1423ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424# for backward compatibility:
1425ac_top_builddir=$ac_top_build_prefix
1426
1427case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440esac
1441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
Jon Dugan92864152010-09-20 21:50:12 +00001452 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1456fi
1457
1458test -n "$ac_init_help" && exit $ac_status
1459if $ac_init_version; then
1460 cat <<\_ACEOF
1461iperf configure 3.0a4
jef2ab386b2012-08-10 12:43:50 -07001462generated by GNU Autoconf 2.68
Jon Dugane34c20c2010-07-08 23:26:52 +00001463
jef2ab386b2012-08-10 12:43:50 -07001464Copyright (C) 2010 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001465This configure script is free software; the Free Software Foundation
1466gives unlimited permission to copy, distribute and modify it.
1467_ACEOF
1468 exit
1469fi
Jon Dugan92864152010-09-20 21:50:12 +00001470
1471## ------------------------ ##
1472## Autoconf initialization. ##
1473## ------------------------ ##
1474
1475# ac_fn_c_try_compile LINENO
1476# --------------------------
1477# Try to compile conftest.$ac_ext, and return whether this succeeded.
1478ac_fn_c_try_compile ()
1479{
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486esac
1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488$as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502else
1503 $as_echo "$as_me: failed program was:" >&5
1504sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507fi
jef2ab386b2012-08-10 12:43:50 -07001508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001509 as_fn_set_status $ac_retval
1510
1511} # ac_fn_c_try_compile
1512
1513# ac_fn_c_try_link LINENO
1514# -----------------------
1515# Try to link conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_c_try_link ()
1517{
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext conftest$ac_exeext
1520 if { { ac_try="$ac_link"
1521case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524esac
1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526$as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest$ac_exeext && {
1539 test "$cross_compiling" = yes ||
1540 $as_test_x conftest$ac_exeext
1541 }; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548fi
1549 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1550 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1551 # interfere with the next link command; also delete a directory that is
1552 # left behind by Apple's compiler. We do this before executing the actions.
1553 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
jef2ab386b2012-08-10 12:43:50 -07001554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001555 as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_link
1558
1559# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1560# -------------------------------------------------------
1561# Tests whether HEADER exists and can be compiled using the include files in
1562# INCLUDES, setting the cache variable VAR accordingly.
1563ac_fn_c_check_header_compile ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567$as_echo_n "checking for $2... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07001568if eval \${$3+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00001569 $as_echo_n "(cached) " >&6
1570else
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572/* end confdefs.h. */
1573$4
1574#include <$2>
1575_ACEOF
1576if ac_fn_c_try_compile "$LINENO"; then :
1577 eval "$3=yes"
1578else
1579 eval "$3=no"
1580fi
1581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582fi
1583eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585$as_echo "$ac_res" >&6; }
jef2ab386b2012-08-10 12:43:50 -07001586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001587
1588} # ac_fn_c_check_header_compile
1589
1590# ac_fn_c_try_cpp LINENO
1591# ----------------------
1592# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_cpp ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
jef2ab386b2012-08-10 12:43:50 -07001611 test $ac_status = 0; } > conftest.i && {
Jon Dugan92864152010-09-20 21:50:12 +00001612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 }; then :
1615 ac_retval=0
1616else
1617 $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621fi
jef2ab386b2012-08-10 12:43:50 -07001622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001623 as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_cpp
1626
1627# ac_fn_c_try_run LINENO
1628# ----------------------
1629# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1630# that executables *can* be run.
1631ac_fn_c_try_run ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_link"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>&5
1642 ac_status=$?
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1645 { { case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_try") 2>&5
1652 ac_status=$?
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; }; }; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: program exited with status $ac_status" >&5
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=$ac_status
1662fi
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
jef2ab386b2012-08-10 12:43:50 -07001664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001665 as_fn_set_status $ac_retval
1666
1667} # ac_fn_c_try_run
1668
1669# ac_fn_c_check_func LINENO FUNC VAR
1670# ----------------------------------
1671# Tests whether FUNC exists, setting the cache variable VAR accordingly
1672ac_fn_c_check_func ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07001677if eval \${$3+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00001678 $as_echo_n "(cached) " >&6
1679else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1684#define $2 innocuous_$2
1685
1686/* System header to define __stub macros and hopefully few prototypes,
1687 which can conflict with char $2 (); below.
1688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1689 <limits.h> exists even on freestanding compilers. */
1690
1691#ifdef __STDC__
1692# include <limits.h>
1693#else
1694# include <assert.h>
1695#endif
1696
1697#undef $2
1698
1699/* Override any GCC internal prototype to avoid an error.
1700 Use char because int might match the return type of a GCC
1701 builtin and then its argument prototype would still apply. */
1702#ifdef __cplusplus
1703extern "C"
1704#endif
1705char $2 ();
1706/* The GNU C library defines this for functions which it implements
1707 to always fail with ENOSYS. Some functions are actually named
1708 something starting with __ and the normal name is an alias. */
1709#if defined __stub_$2 || defined __stub___$2
1710choke me
1711#endif
1712
1713int
1714main ()
1715{
1716return $2 ();
1717 ;
1718 return 0;
1719}
1720_ACEOF
1721if ac_fn_c_try_link "$LINENO"; then :
1722 eval "$3=yes"
1723else
1724 eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext \
1727 conftest$ac_exeext conftest.$ac_ext
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
jef2ab386b2012-08-10 12:43:50 -07001732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Jon Dugan92864152010-09-20 21:50:12 +00001733
1734} # ac_fn_c_check_func
Jon Dugane34c20c2010-07-08 23:26:52 +00001735cat >config.log <<_ACEOF
1736This file contains any messages produced by compilers while
1737running configure, to aid debugging if configure makes a mistake.
1738
1739It was created by iperf $as_me 3.0a4, which was
jef2ab386b2012-08-10 12:43:50 -07001740generated by GNU Autoconf 2.68. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001741
1742 $ $0 $@
1743
1744_ACEOF
1745exec 5>>config.log
1746{
1747cat <<_ASUNAME
1748## --------- ##
1749## Platform. ##
1750## --------- ##
1751
1752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757
1758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1760
1761/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1762/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1765/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1766/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1767/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1768
1769_ASUNAME
1770
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00001776 $as_echo "PATH: $as_dir"
1777 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001778IFS=$as_save_IFS
1779
1780} >&5
1781
1782cat >&5 <<_ACEOF
1783
1784
1785## ----------- ##
1786## Core tests. ##
1787## ----------- ##
1788
1789_ACEOF
1790
1791
1792# Keep a trace of the command line.
1793# Strip out --no-create and --no-recursion so they do not pile up.
1794# Strip out --silent because we don't want to record it for future runs.
1795# Also quote any args containing shell meta-characters.
1796# Make two passes to allow for proper duplicate-argument suppression.
1797ac_configure_args=
1798ac_configure_args0=
1799ac_configure_args1=
1800ac_must_keep_next=false
1801for ac_pass in 1 2
1802do
1803 for ac_arg
1804 do
1805 case $ac_arg in
1806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808 | -silent | --silent | --silen | --sile | --sil)
1809 continue ;;
1810 *\'*)
Jon Dugan92864152010-09-20 21:50:12 +00001811 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001812 esac
1813 case $ac_pass in
Jon Dugan92864152010-09-20 21:50:12 +00001814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001815 2)
Jon Dugan92864152010-09-20 21:50:12 +00001816 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001817 if test $ac_must_keep_next = true; then
1818 ac_must_keep_next=false # Got value, back to normal.
1819 else
1820 case $ac_arg in
1821 *=* | --config-cache | -C | -disable-* | --disable-* \
1822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824 | -with-* | --with-* | -without-* | --without-* | --x)
1825 case "$ac_configure_args0 " in
1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 esac
1828 ;;
1829 -* ) ac_must_keep_next=true ;;
1830 esac
1831 fi
Jon Dugan92864152010-09-20 21:50:12 +00001832 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001833 ;;
1834 esac
1835 done
1836done
Jon Dugan92864152010-09-20 21:50:12 +00001837{ ac_configure_args0=; unset ac_configure_args0;}
1838{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001839
1840# When interrupted or exit'd, cleanup temporary files, and complete
1841# config.log. We remove comments because anyway the quotes in there
1842# would cause problems or look ugly.
1843# WARNING: Use '\'' to represent an apostrophe within the trap.
1844# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845trap 'exit_status=$?
1846 # Save into config.log some information that might help in debugging.
1847 {
1848 echo
1849
jef2ab386b2012-08-10 12:43:50 -07001850 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001851## Cache variables. ##
jef2ab386b2012-08-10 12:43:50 -07001852## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855(
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
Jon Dugan92864152010-09-20 21:50:12 +00001861 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +00001866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883)
1884 echo
1885
jef2ab386b2012-08-10 12:43:50 -07001886 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001887## Output variables. ##
jef2ab386b2012-08-10 12:43:50 -07001888## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001889 echo
1890 for ac_var in $ac_subst_vars
1891 do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001895 esac
Jon Dugan92864152010-09-20 21:50:12 +00001896 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001897 done | sort
1898 echo
1899
1900 if test -n "$ac_subst_files"; then
jef2ab386b2012-08-10 12:43:50 -07001901 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001902## File substitutions. ##
jef2ab386b2012-08-10 12:43:50 -07001903## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001904 echo
1905 for ac_var in $ac_subst_files
1906 do
1907 eval ac_val=\$$ac_var
1908 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001909 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001910 esac
Jon Dugan92864152010-09-20 21:50:12 +00001911 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001912 done | sort
1913 echo
1914 fi
1915
1916 if test -s confdefs.h; then
jef2ab386b2012-08-10 12:43:50 -07001917 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001918## confdefs.h. ##
jef2ab386b2012-08-10 12:43:50 -07001919## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00001920 echo
1921 cat confdefs.h
1922 echo
1923 fi
1924 test "$ac_signal" != 0 &&
Jon Dugan92864152010-09-20 21:50:12 +00001925 $as_echo "$as_me: caught signal $ac_signal"
1926 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00001927 } >&5
1928 rm -f core *.core core.conftest.* &&
1929 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930 exit $exit_status
1931' 0
1932for ac_signal in 1 2 13 15; do
Jon Dugan92864152010-09-20 21:50:12 +00001933 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00001934done
1935ac_signal=0
1936
1937# confdefs.h avoids OS command line length limits that DEFS can exceed.
1938rm -f -r conftest* confdefs.h
1939
Jon Dugan92864152010-09-20 21:50:12 +00001940$as_echo "/* confdefs.h */" > confdefs.h
1941
Jon Dugane34c20c2010-07-08 23:26:52 +00001942# Predefined preprocessor variables.
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_NAME "$PACKAGE_NAME"
1946_ACEOF
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_VERSION "$PACKAGE_VERSION"
1954_ACEOF
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_STRING "$PACKAGE_STRING"
1958_ACEOF
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962_ACEOF
1963
Jon Dugan92864152010-09-20 21:50:12 +00001964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_URL "$PACKAGE_URL"
1966_ACEOF
1967
Jon Dugane34c20c2010-07-08 23:26:52 +00001968
1969# Let the site file select an alternate cache file if it wants to.
Jon Dugan92864152010-09-20 21:50:12 +00001970# Prefer an explicitly selected file to automatically selected ones.
1971ac_site_file1=NONE
1972ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00001973if test -n "$CONFIG_SITE"; then
jef2ab386b2012-08-10 12:43:50 -07001974 # We do not want a PATH search for config.site.
1975 case $CONFIG_SITE in #((
1976 -*) ac_site_file1=./$CONFIG_SITE;;
1977 */*) ac_site_file1=$CONFIG_SITE;;
1978 *) ac_site_file1=./$CONFIG_SITE;;
1979 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001980elif test "x$prefix" != xNONE; then
Jon Dugan92864152010-09-20 21:50:12 +00001981 ac_site_file1=$prefix/share/config.site
1982 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001983else
Jon Dugan92864152010-09-20 21:50:12 +00001984 ac_site_file1=$ac_default_prefix/share/config.site
1985 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001986fi
Jon Dugan92864152010-09-20 21:50:12 +00001987for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00001988do
Jon Dugan92864152010-09-20 21:50:12 +00001989 test "x$ac_site_file" = xNONE && continue
1990 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1992$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001993 sed 's/^/| /' "$ac_site_file" >&5
jef2ab386b2012-08-10 12:43:50 -07001994 . "$ac_site_file" \
1995 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1997as_fn_error $? "failed to load site script $ac_site_file
1998See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001999 fi
2000done
2001
2002if test -r "$cache_file"; then
Jon Dugan92864152010-09-20 21:50:12 +00002003 # Some versions of bash will fail to source /dev/null (special files
2004 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2005 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2007$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002008 case $cache_file in
2009 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2010 *) . "./$cache_file";;
2011 esac
2012 fi
2013else
Jon Dugan92864152010-09-20 21:50:12 +00002014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2015$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002016 >$cache_file
2017fi
2018
2019# Check that the precious variables saved in the cache have kept the same
2020# value.
2021ac_cache_corrupted=false
2022for ac_var in $ac_precious_vars; do
2023 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2024 eval ac_new_set=\$ac_env_${ac_var}_set
2025 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2026 eval ac_new_val=\$ac_env_${ac_var}_value
2027 case $ac_old_set,$ac_new_set in
2028 set,)
Jon Dugan92864152010-09-20 21:50:12 +00002029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2030$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 +00002031 ac_cache_corrupted=: ;;
2032 ,set)
Jon Dugan92864152010-09-20 21:50:12 +00002033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2034$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002035 ac_cache_corrupted=: ;;
2036 ,);;
2037 *)
2038 if test "x$ac_old_val" != "x$ac_new_val"; then
Jon Dugan92864152010-09-20 21:50:12 +00002039 # differences in whitespace do not lead to failure.
2040 ac_old_val_w=`echo x $ac_old_val`
2041 ac_new_val_w=`echo x $ac_new_val`
2042 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2044$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2045 ac_cache_corrupted=:
2046 else
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2048$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2049 eval $ac_var=\$ac_old_val
2050 fi
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2052$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2054$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002055 fi;;
2056 esac
2057 # Pass precious variables to config.status.
2058 if test "$ac_new_set" = set; then
2059 case $ac_new_val in
Jon Dugan92864152010-09-20 21:50:12 +00002060 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002061 *) ac_arg=$ac_var=$ac_new_val ;;
2062 esac
2063 case " $ac_configure_args " in
2064 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jon Dugan92864152010-09-20 21:50:12 +00002065 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002066 esac
2067 fi
2068done
2069if $ac_cache_corrupted; then
Jon Dugan92864152010-09-20 21:50:12 +00002070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2073$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
jef2ab386b2012-08-10 12:43:50 -07002074 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002075fi
Jon Dugan92864152010-09-20 21:50:12 +00002076## -------------------- ##
2077## Main body of script. ##
2078## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002079
2080ac_ext=c
2081ac_cpp='$CPP $CPPFLAGS'
2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086
2087
2088# Specify where the auxiliary files created by configure should go. The config
2089# directory is picked so that they don't clutter up more useful directories.
2090ac_aux_dir=
2091for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002105done
2106if test -z "$ac_aux_dir"; then
jef2ab386b2012-08-10 12:43:50 -07002107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002108fi
2109
2110# These three variables are undocumented and unsupported,
2111# and are intended to be withdrawn in a future Autoconf release.
2112# They can cause serious problems if a builder's source tree is in a directory
2113# whose full name contains unusual characters.
2114ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119
2120
2121# Initialize the automake system
Jon Dugan92864152010-09-20 21:50:12 +00002122am__api_version='1.11'
sethdelliott01ca9722010-07-19 20:38:40 +00002123
Jon Dugane34c20c2010-07-08 23:26:52 +00002124# Find a good install program. We prefer a C program (faster),
2125# so one script is as good as another. But avoid the broken or
2126# incompatible versions:
2127# SysV /etc/install, /usr/sbin/install
2128# SunOS /usr/etc/install
2129# IRIX /sbin/install
2130# AIX /bin/install
2131# AmigaOS /C/install, which installs bootblocks on floppy discs
2132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135# OS/2's system install, which has a completely different semantic
2136# ./install, which can be erroneously created by make from ./install.sh.
Jon Dugan92864152010-09-20 21:50:12 +00002137# Reject install programs that cannot install multiple files.
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2139$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002140if test -z "$INSTALL"; then
jef2ab386b2012-08-10 12:43:50 -07002141if ${ac_cv_path_install+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002142 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002143else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002149 # Account for people who put trailing slashes in PATH elements.
2150case $as_dir/ in #((
2151 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jon Dugan92864152010-09-20 21:50:12 +00002153 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002154 /usr/ucb/* ) ;;
2155 *)
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2158 # by default.
2159 for ac_prog in ginstall scoinst install; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162 if test $ac_prog = install &&
2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2165 :
2166 elif test $ac_prog = install &&
2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2169 :
2170 else
Jon Dugan92864152010-09-20 21:50:12 +00002171 rm -rf conftest.one conftest.two conftest.dir
2172 echo one > conftest.one
2173 echo two > conftest.two
2174 mkdir conftest.dir
2175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176 test -s conftest.one && test -s conftest.two &&
2177 test -s conftest.dir/conftest.one &&
2178 test -s conftest.dir/conftest.two
2179 then
2180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 break 3
2182 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002183 fi
2184 fi
2185 done
2186 done
2187 ;;
2188esac
Jon Dugan92864152010-09-20 21:50:12 +00002189
2190 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002191IFS=$as_save_IFS
2192
Jon Dugan92864152010-09-20 21:50:12 +00002193rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002194
2195fi
2196 if test "${ac_cv_path_install+set}" = set; then
2197 INSTALL=$ac_cv_path_install
2198 else
2199 # As a last resort, use the slow shell script. Don't cache a
2200 # value for INSTALL within a source directory, because that will
2201 # break other packages using the cache if that directory is
2202 # removed, or if the value is a relative name.
2203 INSTALL=$ac_install_sh
2204 fi
2205fi
Jon Dugan92864152010-09-20 21:50:12 +00002206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2207$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002208
2209# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210# It thinks the first close brace ends the variable substitution.
2211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
Jon Dugan92864152010-09-20 21:50:12 +00002217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2218$as_echo_n "checking whether build environment is sane... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002219# Just in case
2220sleep 1
2221echo timestamp > conftest.file
Jon Dugan92864152010-09-20 21:50:12 +00002222# Reject unsafe characters in $srcdir or the absolute working directory
2223# name. Accept space and tab only in the latter.
2224am_lf='
2225'
2226case `pwd` in
2227 *[\\\"\#\$\&\'\`$am_lf]*)
jef2ab386b2012-08-10 12:43:50 -07002228 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Jon Dugan92864152010-09-20 21:50:12 +00002229esac
2230case $srcdir in
2231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
jef2ab386b2012-08-10 12:43:50 -07002232 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Jon Dugan92864152010-09-20 21:50:12 +00002233esac
2234
Jon Dugane34c20c2010-07-08 23:26:52 +00002235# Do `set' in a subshell so we don't clobber the current shell's
2236# arguments. Must try -L first in case configure is actually a
2237# symlink; some systems play weird games with the mod time of symlinks
2238# (eg FreeBSD returns the mod time of the symlink's containing
2239# directory).
2240if (
Jon Dugan92864152010-09-20 21:50:12 +00002241 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Jon Dugane34c20c2010-07-08 23:26:52 +00002242 if test "$*" = "X"; then
2243 # -L didn't work.
Jon Dugan92864152010-09-20 21:50:12 +00002244 set X `ls -t "$srcdir/configure" conftest.file`
Jon Dugane34c20c2010-07-08 23:26:52 +00002245 fi
2246 rm -f conftest.file
2247 if test "$*" != "X $srcdir/configure conftest.file" \
2248 && test "$*" != "X conftest.file $srcdir/configure"; then
2249
2250 # If neither matched, then we have a broken ls. This can happen
2251 # if, for instance, CONFIG_SHELL is bash and it inherits a
2252 # broken ls alias from the environment. This has actually
2253 # happened. Such a system could not be considered "sane".
jef2ab386b2012-08-10 12:43:50 -07002254 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Jon Dugan92864152010-09-20 21:50:12 +00002255alias in your environment" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002256 fi
2257
2258 test "$2" = conftest.file
2259 )
2260then
2261 # Ok.
2262 :
2263else
jef2ab386b2012-08-10 12:43:50 -07002264 as_fn_error $? "newly created file is older than distributed files!
Jon Dugan92864152010-09-20 21:50:12 +00002265Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002266fi
Jon Dugan92864152010-09-20 21:50:12 +00002267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002269test "$program_prefix" != NONE &&
2270 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271# Use a double $ so make ignores it.
2272test "$program_suffix" != NONE &&
2273 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Jon Dugan92864152010-09-20 21:50:12 +00002274# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002275# By default was `s,x,x', remove it if useless.
Jon Dugan92864152010-09-20 21:50:12 +00002276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002278
2279# expand $ac_aux_dir to an absolute path
2280am_aux_dir=`cd $ac_aux_dir && pwd`
2281
Jon Dugan92864152010-09-20 21:50:12 +00002282if test x"${MISSING+set}" != xset; then
2283 case $am_aux_dir in
2284 *\ * | *\ *)
2285 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2286 *)
2287 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2288 esac
2289fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002290# Use eval to expand $SHELL
2291if eval "$MISSING --run true"; then
2292 am_missing_run="$MISSING --run "
2293else
2294 am_missing_run=
Jon Dugan92864152010-09-20 21:50:12 +00002295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2296$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002297fi
2298
Jon Dugan92864152010-09-20 21:50:12 +00002299if test x"${install_sh}" != xset; then
2300 case $am_aux_dir in
2301 *\ * | *\ *)
2302 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2303 *)
2304 install_sh="\${SHELL} $am_aux_dir/install-sh"
2305 esac
2306fi
2307
2308# Installed binaries are usually stripped using `strip' when the user
2309# run `make install-strip'. However `strip' might not be the right
2310# tool to use in cross-compilation environments, therefore Automake
2311# will honor the `STRIP' environment variable to overrule this program.
2312if test "$cross_compiling" != no; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315set dummy ${ac_tool_prefix}strip; ac_word=$2
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2317$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002318if ${ac_cv_prog_STRIP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 if test -n "$STRIP"; then
2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336 done
2337IFS=$as_save_IFS
2338
2339fi
2340fi
2341STRIP=$ac_cv_prog_STRIP
2342if test -n "$STRIP"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2344$as_echo "$STRIP" >&6; }
2345else
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2347$as_echo "no" >&6; }
2348fi
2349
2350
2351fi
2352if test -z "$ac_cv_prog_STRIP"; then
2353 ac_ct_STRIP=$STRIP
2354 # Extract the first word of "strip", so it can be a program name with args.
2355set dummy strip; ac_word=$2
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002358if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002359 $as_echo_n "(cached) " >&6
2360else
2361 if test -n "$ac_ct_STRIP"; then
2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_STRIP="strip"
2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375done
2376 done
2377IFS=$as_save_IFS
2378
2379fi
2380fi
2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382if test -n "$ac_ct_STRIP"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2384$as_echo "$ac_ct_STRIP" >&6; }
2385else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387$as_echo "no" >&6; }
2388fi
2389
2390 if test "x$ac_ct_STRIP" = x; then
2391 STRIP=":"
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394yes:)
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397ac_tool_warned=yes ;;
2398esac
2399 STRIP=$ac_ct_STRIP
2400 fi
2401else
2402 STRIP="$ac_cv_prog_STRIP"
2403fi
2404
2405fi
2406INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2407
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2409$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
sethdelliott01ca9722010-07-19 20:38:40 +00002410if test -z "$MKDIR_P"; then
jef2ab386b2012-08-10 12:43:50 -07002411 if ${ac_cv_path_mkdir+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002412 $as_echo_n "(cached) " >&6
sethdelliott01ca9722010-07-19 20:38:40 +00002413else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002419 for ac_prog in mkdir gmkdir; do
sethdelliott01ca9722010-07-19 20:38:40 +00002420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2422 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2423 'mkdir (GNU coreutils) '* | \
2424 'mkdir (coreutils) '* | \
2425 'mkdir (fileutils) '4.1*)
2426 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2427 break 3;;
2428 esac
2429 done
2430 done
Jon Dugan92864152010-09-20 21:50:12 +00002431 done
sethdelliott01ca9722010-07-19 20:38:40 +00002432IFS=$as_save_IFS
2433
2434fi
2435
Jon Dugan92864152010-09-20 21:50:12 +00002436 test -d ./--version && rmdir ./--version
sethdelliott01ca9722010-07-19 20:38:40 +00002437 if test "${ac_cv_path_mkdir+set}" = set; then
2438 MKDIR_P="$ac_cv_path_mkdir -p"
2439 else
2440 # As a last resort, use the slow shell script. Don't cache a
2441 # value for MKDIR_P within a source directory, because that will
2442 # break other packages using the cache if that directory is
2443 # removed, or if the value is a relative name.
sethdelliott01ca9722010-07-19 20:38:40 +00002444 MKDIR_P="$ac_install_sh -d"
2445 fi
2446fi
Jon Dugan92864152010-09-20 21:50:12 +00002447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2448$as_echo "$MKDIR_P" >&6; }
sethdelliott01ca9722010-07-19 20:38:40 +00002449
2450mkdir_p="$MKDIR_P"
2451case $mkdir_p in
2452 [\\/$]* | ?:[\\/]*) ;;
2453 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2454esac
2455
Jon Dugane34c20c2010-07-08 23:26:52 +00002456for ac_prog in gawk mawk nawk awk
2457do
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002462if ${ac_cv_prog_AWK+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002463 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002464else
2465 if test -n "$AWK"; then
2466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002473 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_AWK="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00002476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002477 break 2
2478 fi
2479done
Jon Dugan92864152010-09-20 21:50:12 +00002480 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002481IFS=$as_save_IFS
2482
2483fi
2484fi
2485AWK=$ac_cv_prog_AWK
2486if test -n "$AWK"; then
Jon Dugan92864152010-09-20 21:50:12 +00002487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2488$as_echo "$AWK" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002489else
Jon Dugan92864152010-09-20 21:50:12 +00002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002492fi
2493
2494
2495 test -n "$AWK" && break
2496done
2497
Jon Dugan92864152010-09-20 21:50:12 +00002498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2500set x ${MAKE-make}
2501ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
jef2ab386b2012-08-10 12:43:50 -07002502if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002503 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002504else
2505 cat >conftest.make <<\_ACEOF
2506SHELL = /bin/sh
2507all:
2508 @echo '@@@%%%=$(MAKE)=@@@%%%'
2509_ACEOF
jef2ab386b2012-08-10 12:43:50 -07002510# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jon Dugane34c20c2010-07-08 23:26:52 +00002511case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512 *@@@%%%=?*=@@@%%%*)
2513 eval ac_cv_prog_make_${ac_make}_set=yes;;
2514 *)
2515 eval ac_cv_prog_make_${ac_make}_set=no;;
2516esac
2517rm -f conftest.make
2518fi
2519if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00002520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002522 SET_MAKE=
2523else
Jon Dugan92864152010-09-20 21:50:12 +00002524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002526 SET_MAKE="MAKE=${MAKE-make}"
2527fi
2528
2529rm -rf .tst 2>/dev/null
2530mkdir .tst 2>/dev/null
2531if test -d .tst; then
2532 am__leading_dot=.
2533else
2534 am__leading_dot=_
2535fi
2536rmdir .tst 2>/dev/null
2537
sethdelliott01ca9722010-07-19 20:38:40 +00002538if test "`cd $srcdir && pwd`" != "`pwd`"; then
2539 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2540 # is not polluted with repeated "-I."
2541 am__isrc=' -I$(srcdir)'
2542 # test to see if srcdir already configured
2543 if test -f $srcdir/config.status; then
jef2ab386b2012-08-10 12:43:50 -07002544 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
sethdelliott01ca9722010-07-19 20:38:40 +00002545 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002546fi
2547
2548# test whether we have cygpath
2549if test -z "$CYGPATH_W"; then
2550 if (cygpath --version) >/dev/null 2>/dev/null; then
2551 CYGPATH_W='cygpath -w'
2552 else
2553 CYGPATH_W=echo
2554 fi
2555fi
2556
2557
2558# Define the identity of the package.
2559 PACKAGE='iperf'
2560 VERSION='3.0a4'
2561
2562
2563cat >>confdefs.h <<_ACEOF
2564#define PACKAGE "$PACKAGE"
2565_ACEOF
2566
2567
2568cat >>confdefs.h <<_ACEOF
2569#define VERSION "$VERSION"
2570_ACEOF
2571
2572# Some tools Automake needs.
2573
2574ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2575
2576
2577AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2578
2579
2580AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2581
2582
2583AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2584
2585
2586MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2587
Jon Dugane34c20c2010-07-08 23:26:52 +00002588# We need awk for the "check" target. The system "awk" is bad on
2589# some platforms.
sethdelliott01ca9722010-07-19 20:38:40 +00002590# Always define AMTAR for backward compatibility.
2591
2592AMTAR=${AMTAR-"${am_missing_run}tar"}
2593
2594am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2595
2596
Jon Dugane34c20c2010-07-08 23:26:52 +00002597
2598
2599
2600
2601ac_config_headers="$ac_config_headers src/config.h"
2602
2603
2604# Make sure we can run config.sub.
2605$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
jef2ab386b2012-08-10 12:43:50 -07002606 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002607
Jon Dugan92864152010-09-20 21:50:12 +00002608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2609$as_echo_n "checking build system type... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002610if ${ac_cv_build+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002611 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002612else
2613 ac_build_alias=$build_alias
2614test "x$ac_build_alias" = x &&
2615 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2616test "x$ac_build_alias" = x &&
jef2ab386b2012-08-10 12:43:50 -07002617 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002618ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
jef2ab386b2012-08-10 12:43:50 -07002619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002620
2621fi
Jon Dugan92864152010-09-20 21:50:12 +00002622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2623$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002624case $ac_cv_build in
2625*-*-*) ;;
jef2ab386b2012-08-10 12:43:50 -07002626*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002627esac
2628build=$ac_cv_build
2629ac_save_IFS=$IFS; IFS='-'
2630set x $ac_cv_build
2631shift
2632build_cpu=$1
2633build_vendor=$2
2634shift; shift
2635# Remember, the first character of IFS is used to create $*,
2636# except with old shells:
2637build_os=$*
2638IFS=$ac_save_IFS
2639case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2640
2641
Jon Dugan92864152010-09-20 21:50:12 +00002642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2643$as_echo_n "checking host system type... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002644if ${ac_cv_host+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002645 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002646else
2647 if test "x$host_alias" = x; then
2648 ac_cv_host=$ac_cv_build
2649else
2650 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
jef2ab386b2012-08-10 12:43:50 -07002651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002652fi
2653
2654fi
Jon Dugan92864152010-09-20 21:50:12 +00002655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2656$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002657case $ac_cv_host in
2658*-*-*) ;;
jef2ab386b2012-08-10 12:43:50 -07002659*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002660esac
2661host=$ac_cv_host
2662ac_save_IFS=$IFS; IFS='-'
2663set x $ac_cv_host
2664shift
2665host_cpu=$1
2666host_vendor=$2
2667shift; shift
2668# Remember, the first character of IFS is used to create $*,
2669# except with old shells:
2670host_os=$*
2671IFS=$ac_save_IFS
2672case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673
2674
2675
2676# Checks for tools: c compiler, ranlib (used for creating static libraries),
2677# symlinks and libtool
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002688if ${ac_cv_prog_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002689 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002690else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002699 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jon Dugan92864152010-09-20 21:50:12 +00002702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002703 break 2
2704 fi
2705done
Jon Dugan92864152010-09-20 21:50:12 +00002706 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002707IFS=$as_save_IFS
2708
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002715else
Jon Dugan92864152010-09-20 21:50:12 +00002716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002718fi
2719
2720
2721fi
2722if test -z "$ac_cv_prog_CC"; then
2723 ac_ct_CC=$CC
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725set dummy gcc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002728if ${ac_cv_prog_ac_ct_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002729 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002730else
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002739 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="gcc"
Jon Dugan92864152010-09-20 21:50:12 +00002742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002743 break 2
2744 fi
2745done
Jon Dugan92864152010-09-20 21:50:12 +00002746 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002747IFS=$as_save_IFS
2748
2749fi
2750fi
2751ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752if test -n "$ac_ct_CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002755else
Jon Dugan92864152010-09-20 21:50:12 +00002756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002758fi
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764yes:)
Jon Dugan92864152010-09-20 21:50:12 +00002765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002767ac_tool_warned=yes ;;
2768esac
2769 CC=$ac_ct_CC
2770 fi
2771else
2772 CC="$ac_cv_prog_CC"
2773fi
2774
2775if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}cc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002781if ${ac_cv_prog_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002782 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002792 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jon Dugan92864152010-09-20 21:50:12 +00002795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002796 break 2
2797 fi
2798done
Jon Dugan92864152010-09-20 21:50:12 +00002799 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002800IFS=$as_save_IFS
2801
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002808else
Jon Dugan92864152010-09-20 21:50:12 +00002809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002811fi
2812
2813
2814 fi
2815fi
2816if test -z "$CC"; then
2817 # Extract the first word of "cc", so it can be a program name with args.
2818set dummy cc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002821if ${ac_cv_prog_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002822 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002823else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826else
2827 ac_prog_rejected=no
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002833 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836 ac_prog_rejected=yes
2837 continue
2838 fi
2839 ac_cv_prog_CC="cc"
Jon Dugan92864152010-09-20 21:50:12 +00002840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002841 break 2
2842 fi
2843done
Jon Dugan92864152010-09-20 21:50:12 +00002844 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002845IFS=$as_save_IFS
2846
2847if test $ac_prog_rejected = yes; then
2848 # We found a bogon in the path, so make sure we never use it.
2849 set dummy $ac_cv_prog_CC
2850 shift
2851 if test $# != 0; then
2852 # We chose a different compiler from the bogus one.
2853 # However, it has the same basename, so the bogon will be chosen
2854 # first if we set CC to just the basename; use the full file name.
2855 shift
2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857 fi
2858fi
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002865else
Jon Dugan92864152010-09-20 21:50:12 +00002866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002868fi
2869
2870
2871fi
2872if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in cl.exe
2875 do
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002880if ${ac_cv_prog_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002881 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002882else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002891 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00002894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002895 break 2
2896 fi
2897done
Jon Dugan92864152010-09-20 21:50:12 +00002898 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002899IFS=$as_save_IFS
2900
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002907else
Jon Dugan92864152010-09-20 21:50:12 +00002908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002910fi
2911
2912
2913 test -n "$CC" && break
2914 done
2915fi
2916if test -z "$CC"; then
2917 ac_ct_CC=$CC
2918 for ac_prog in cl.exe
2919do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07002924if ${ac_cv_prog_ac_ct_CC+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00002925 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002926else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002935 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00002938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002939 break 2
2940 fi
2941done
Jon Dugan92864152010-09-20 21:50:12 +00002942 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002943IFS=$as_save_IFS
2944
2945fi
2946fi
2947ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948if test -n "$ac_ct_CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002951else
Jon Dugan92864152010-09-20 21:50:12 +00002952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002954fi
2955
2956
2957 test -n "$ac_ct_CC" && break
2958done
2959
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964yes:)
Jon Dugan92864152010-09-20 21:50:12 +00002965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002967ac_tool_warned=yes ;;
2968esac
2969 CC=$ac_ct_CC
2970 fi
2971fi
2972
2973fi
2974
2975
Jon Dugan92864152010-09-20 21:50:12 +00002976test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07002978as_fn_error $? "no acceptable C compiler found in \$PATH
2979See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002980
2981# Provide some information about the compiler.
Jon Dugan92864152010-09-20 21:50:12 +00002982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983set X $ac_compile
2984ac_compiler=$2
2985for ac_option in --version -v -V -qversion; do
2986 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00002987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
Jon Dugan92864152010-09-20 21:50:12 +00002991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00002994 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00002995 if test -s conftest.err; then
2996 sed '10a\
2997... rest of stderr output deleted ...
2998 10q' conftest.err >conftest.er1
2999 cat conftest.er1 >&5
3000 fi
3001 rm -f conftest.er1 conftest.err
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }
3004done
Jon Dugane34c20c2010-07-08 23:26:52 +00003005
Jon Dugan92864152010-09-20 21:50:12 +00003006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017ac_clean_files_save=$ac_clean_files
Jon Dugan92864152010-09-20 21:50:12 +00003018ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003019# Try to create an executable without -o first, disregard a.out.
3020# It will help us diagnose broken compilers, and finding out an intuition
3021# of exeext.
Jon Dugan92864152010-09-20 21:50:12 +00003022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3023$as_echo_n "checking whether the C compiler works... " >&6; }
3024ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025
3026# The possible output files:
3027ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028
Jon Dugane34c20c2010-07-08 23:26:52 +00003029ac_rmfiles=
3030for ac_file in $ac_files
3031do
3032 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 esac
3036done
3037rm -f $ac_rmfiles
3038
Jon Dugan92864152010-09-20 21:50:12 +00003039if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
Jon Dugan92864152010-09-20 21:50:12 +00003044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003046 (eval "$ac_link_default") 2>&5
3047 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3051# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3052# in a Makefile. We should not override ac_cv_exeext if it was cached,
3053# so that the user can short-circuit this test for compilers unknown to
3054# Autoconf.
3055for ac_file in $ac_files ''
3056do
3057 test -f "$ac_file" || continue
3058 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003060 ;;
3061 [ab].out )
3062 # We found the default executable, but exeext='' is most
3063 # certainly right.
3064 break;;
3065 *.* )
Jon Dugan92864152010-09-20 21:50:12 +00003066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003067 then :; else
3068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 fi
3070 # We set ac_cv_exeext here because the later test for it is not
3071 # safe: cross compilers may not add the suffix if given an `-o'
3072 # argument, so we may need to know it at that point already.
3073 # Even if this section looks crufty: it has the advantage of
3074 # actually working.
3075 break;;
3076 * )
3077 break;;
3078 esac
3079done
3080test "$ac_cv_exeext" = no && ac_cv_exeext=
3081
3082else
3083 ac_file=''
3084fi
Jon Dugan92864152010-09-20 21:50:12 +00003085if test -z "$ac_file"; then :
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003089sed 's/^/| /' conftest.$ac_ext >&5
3090
Jon Dugan92864152010-09-20 21:50:12 +00003091{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07003093as_fn_error 77 "C compiler cannot create executables
3094See \`config.log' for more details" "$LINENO" 5; }
Jon Dugan92864152010-09-20 21:50:12 +00003095else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003098fi
Jon Dugan92864152010-09-20 21:50:12 +00003099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3100$as_echo_n "checking for C compiler default output file name... " >&6; }
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3102$as_echo "$ac_file" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003103ac_exeext=$ac_cv_exeext
3104
Jon Dugan92864152010-09-20 21:50:12 +00003105rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003106ac_clean_files=$ac_clean_files_save
Jon Dugan92864152010-09-20 21:50:12 +00003107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3108$as_echo_n "checking for suffix of executables... " >&6; }
3109if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
Jon Dugan92864152010-09-20 21:50:12 +00003114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003116 (eval "$ac_link") 2>&5
3117 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3121# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3122# work properly (i.e., refer to `conftest.exe'), while it won't with
3123# `rm'.
3124for ac_file in conftest.exe conftest conftest.*; do
3125 test -f "$ac_file" || continue
3126 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 break;;
3130 * ) break;;
3131 esac
3132done
3133else
Jon Dugan92864152010-09-20 21:50:12 +00003134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07003136as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3137See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003138fi
Jon Dugan92864152010-09-20 21:50:12 +00003139rm -f conftest conftest$ac_cv_exeext
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3141$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003142
3143rm -f conftest.$ac_ext
3144EXEEXT=$ac_cv_exeext
3145ac_exeext=$EXEEXT
Jon Dugan92864152010-09-20 21:50:12 +00003146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h. */
3148#include <stdio.h>
3149int
3150main ()
3151{
3152FILE *f = fopen ("conftest.out", "w");
3153 return ferror (f) || fclose (f) != 0;
3154
3155 ;
3156 return 0;
3157}
sethdelliott01ca9722010-07-19 20:38:40 +00003158_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003159ac_clean_files="$ac_clean_files conftest.out"
3160# Check that the compiler produces executables we can run. If not, either
3161# the compiler is broken, or we cross compile.
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3163$as_echo_n "checking whether we are cross compiling... " >&6; }
3164if test "$cross_compiling" != yes; then
3165 { { ac_try="$ac_link"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_link") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }
3176 if { ac_try='./conftest$ac_cv_exeext'
3177 { { case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_try") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; }; then
3187 cross_compiling=no
3188 else
3189 if test "$cross_compiling" = maybe; then
3190 cross_compiling=yes
3191 else
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07003194as_fn_error $? "cannot run C compiled programs.
Jon Dugan92864152010-09-20 21:50:12 +00003195If you meant to cross compile, use \`--host'.
jef2ab386b2012-08-10 12:43:50 -07003196See \`config.log' for more details" "$LINENO" 5; }
Jon Dugan92864152010-09-20 21:50:12 +00003197 fi
3198 fi
3199fi
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3201$as_echo "$cross_compiling" >&6; }
3202
3203rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3204ac_clean_files=$ac_clean_files_save
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3206$as_echo_n "checking for suffix of object files... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003207if ${ac_cv_objext+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003208 $as_echo_n "(cached) " >&6
3209else
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.o conftest.obj
Jon Dugan92864152010-09-20 21:50:12 +00003222if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
Jon Dugan92864152010-09-20 21:50:12 +00003227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003229 (eval "$ac_compile") 2>&5
3230 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003233 for ac_file in conftest.o conftest.obj conftest.*; do
3234 test -f "$ac_file" || continue;
3235 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 break;;
3239 esac
3240done
3241else
Jon Dugan92864152010-09-20 21:50:12 +00003242 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003243sed 's/^/| /' conftest.$ac_ext >&5
3244
Jon Dugan92864152010-09-20 21:50:12 +00003245{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07003247as_fn_error $? "cannot compute suffix of object files: cannot compile
3248See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003249fi
3250rm -f conftest.$ac_cv_objext conftest.$ac_ext
3251fi
Jon Dugan92864152010-09-20 21:50:12 +00003252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3253$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003254OBJEXT=$ac_cv_objext
3255ac_objext=$OBJEXT
Jon Dugan92864152010-09-20 21:50:12 +00003256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3257$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003258if ${ac_cv_c_compiler_gnu+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003259 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003260else
Jon Dugan92864152010-09-20 21:50:12 +00003261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003262/* end confdefs.h. */
3263
3264int
3265main ()
3266{
3267#ifndef __GNUC__
3268 choke me
3269#endif
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003275if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003276 ac_compiler_gnu=yes
3277else
Jon Dugan92864152010-09-20 21:50:12 +00003278 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003279fi
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282
3283fi
Jon Dugan92864152010-09-20 21:50:12 +00003284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3285$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3286if test $ac_compiler_gnu = yes; then
3287 GCC=yes
3288else
3289 GCC=
3290fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003291ac_test_CFLAGS=${CFLAGS+set}
3292ac_save_CFLAGS=$CFLAGS
Jon Dugan92864152010-09-20 21:50:12 +00003293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3294$as_echo_n "checking whether $CC accepts -g... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003295if ${ac_cv_prog_cc_g+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003296 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003297else
3298 ac_save_c_werror_flag=$ac_c_werror_flag
3299 ac_c_werror_flag=yes
3300 ac_cv_prog_cc_g=no
3301 CFLAGS="-g"
Jon Dugan92864152010-09-20 21:50:12 +00003302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308
3309 ;
3310 return 0;
3311}
3312_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003313if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003314 ac_cv_prog_cc_g=yes
3315else
Jon Dugan92864152010-09-20 21:50:12 +00003316 CFLAGS=""
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003328if ac_fn_c_try_compile "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00003329
Jon Dugan92864152010-09-20 21:50:12 +00003330else
3331 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003332 CFLAGS="-g"
Jon Dugan92864152010-09-20 21:50:12 +00003333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003334/* end confdefs.h. */
3335
3336int
3337main ()
3338{
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003344if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003345 ac_cv_prog_cc_g=yes
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348fi
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350fi
3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3353fi
Jon Dugan92864152010-09-20 21:50:12 +00003354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3355$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003356if test "$ac_test_CFLAGS" = set; then
3357 CFLAGS=$ac_save_CFLAGS
3358elif test $ac_cv_prog_cc_g = yes; then
3359 if test "$GCC" = yes; then
3360 CFLAGS="-g -O2"
3361 else
3362 CFLAGS="-g"
3363 fi
3364else
3365 if test "$GCC" = yes; then
3366 CFLAGS="-O2"
3367 else
3368 CFLAGS=
3369 fi
3370fi
Jon Dugan92864152010-09-20 21:50:12 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3372$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003373if ${ac_cv_prog_cc_c89+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003374 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003375else
3376 ac_cv_prog_cc_c89=no
3377ac_save_CC=$CC
Jon Dugan92864152010-09-20 21:50:12 +00003378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003379/* end confdefs.h. */
3380#include <stdarg.h>
3381#include <stdio.h>
3382#include <sys/types.h>
3383#include <sys/stat.h>
3384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385struct buf { int x; };
3386FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387static char *e (p, i)
3388 char **p;
3389 int i;
3390{
3391 return p[i];
3392}
3393static char *f (char * (*g) (char **, int), char **p, ...)
3394{
3395 char *s;
3396 va_list v;
3397 va_start (v,p);
3398 s = g (p, va_arg (v,int));
3399 va_end (v);
3400 return s;
3401}
3402
3403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
3412/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3414#define FOO(x) 'x'
3415int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
3417int test (int i, double x);
3418struct s1 {int (*f) (int a);};
3419struct s2 {int (*f) (double a);};
3420int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421int argc;
3422char **argv;
3423int
3424main ()
3425{
3426return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 ;
3428 return 0;
3429}
3430_ACEOF
3431for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433do
3434 CC="$ac_save_CC $ac_arg"
Jon Dugan92864152010-09-20 21:50:12 +00003435 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003436 ac_cv_prog_cc_c89=$ac_arg
3437fi
3438rm -f core conftest.err conftest.$ac_objext
3439 test "x$ac_cv_prog_cc_c89" != "xno" && break
3440done
3441rm -f conftest.$ac_ext
3442CC=$ac_save_CC
3443
3444fi
3445# AC_CACHE_VAL
3446case "x$ac_cv_prog_cc_c89" in
3447 x)
Jon Dugan92864152010-09-20 21:50:12 +00003448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3449$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003450 xno)
Jon Dugan92864152010-09-20 21:50:12 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3452$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003453 *)
3454 CC="$CC $ac_cv_prog_cc_c89"
Jon Dugan92864152010-09-20 21:50:12 +00003455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3456$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003457esac
Jon Dugan92864152010-09-20 21:50:12 +00003458if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003459
Jon Dugan92864152010-09-20 21:50:12 +00003460fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467DEPDIR="${am__leading_dot}deps"
3468
3469ac_config_commands="$ac_config_commands depfiles"
3470
3471
3472am_make=${MAKE-make}
3473cat > confinc << 'END'
3474am__doit:
Jon Dugan92864152010-09-20 21:50:12 +00003475 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003476.PHONY: am__doit
3477END
3478# If we don't find an include directive, just comment out the code.
Jon Dugan92864152010-09-20 21:50:12 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3480$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003481am__include="#"
3482am__quote=
3483_am_result=none
3484# First try GNU make style include.
3485echo "include confinc" > confmf
Jon Dugan92864152010-09-20 21:50:12 +00003486# Ignore all kinds of additional output from `make'.
3487case `$am_make -s -f confmf 2> /dev/null` in #(
3488*the\ am__doit\ target*)
3489 am__include=include
3490 am__quote=
3491 _am_result=GNU
3492 ;;
3493esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003494# Now try BSD make style include.
3495if test "$am__include" = "#"; then
3496 echo '.include "confinc"' > confmf
Jon Dugan92864152010-09-20 21:50:12 +00003497 case `$am_make -s -f confmf 2> /dev/null` in #(
3498 *the\ am__doit\ target*)
3499 am__include=.include
3500 am__quote="\""
3501 _am_result=BSD
3502 ;;
3503 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003504fi
3505
3506
Jon Dugan92864152010-09-20 21:50:12 +00003507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3508$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003509rm -f confinc confmf
3510
3511# Check whether --enable-dependency-tracking was given.
Jon Dugan92864152010-09-20 21:50:12 +00003512if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003513 enableval=$enable_dependency_tracking;
3514fi
3515
3516if test "x$enable_dependency_tracking" != xno; then
3517 am_depcomp="$ac_aux_dir/depcomp"
3518 AMDEPBACKSLASH='\'
3519fi
sethdelliott01ca9722010-07-19 20:38:40 +00003520 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003521 AMDEP_TRUE=
3522 AMDEP_FALSE='#'
3523else
3524 AMDEP_TRUE='#'
3525 AMDEP_FALSE=
3526fi
3527
3528
3529
Jon Dugane34c20c2010-07-08 23:26:52 +00003530depcc="$CC" am_compiler_list=
3531
Jon Dugan92864152010-09-20 21:50:12 +00003532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3533$as_echo_n "checking dependency style of $depcc... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003534if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003535 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003536else
3537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3538 # We make a subdir and do the tests there. Otherwise we can end up
3539 # making bogus files that we don't know about and never remove. For
3540 # instance it was reported that on HP-UX the gcc test will end up
3541 # making a dummy file named `D' -- because `-MD' means `put the output
3542 # in D'.
3543 mkdir conftest.dir
3544 # Copy depcomp to subdir because otherwise we won't find it if we're
3545 # using a relative directory.
3546 cp "$am_depcomp" conftest.dir
3547 cd conftest.dir
3548 # We will build objects and dependencies in a subdirectory because
3549 # it helps to detect inapplicable dependency modes. For instance
3550 # both Tru64's cc and ICC support -MD to output dependencies as a
3551 # side effect of compilation, but ICC will put the dependencies in
3552 # the current directory while Tru64 will put them in the object
3553 # directory.
3554 mkdir sub
3555
3556 am_cv_CC_dependencies_compiler_type=none
3557 if test "$am_compiler_list" = ""; then
3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559 fi
Jon Dugan92864152010-09-20 21:50:12 +00003560 am__universal=false
3561 case " $depcc " in #(
3562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3563 esac
3564
Jon Dugane34c20c2010-07-08 23:26:52 +00003565 for depmode in $am_compiler_list; do
3566 # Setup a source with many dependencies, because some compilers
3567 # like to wrap large dependency lists on column 80 (with \), and
3568 # we should not choose a depcomp mode which is confused by this.
3569 #
3570 # We need to recreate these files for each test, as the compiler may
3571 # overwrite some of them when testing with obscure command lines.
3572 # This happens at least with the AIX C compiler.
3573 : > sub/conftest.c
3574 for i in 1 2 3 4 5 6; do
3575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
sethdelliott01ca9722010-07-19 20:38:40 +00003576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577 # Solaris 8's {/usr,}/bin/sh.
3578 touch sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003579 done
3580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
Jon Dugan92864152010-09-20 21:50:12 +00003582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3583 # mode. It turns out that the SunPro C++ compiler does not properly
3584 # handle `-M -o', and we need to detect this. Also, some Intel
3585 # versions had trouble with output in subdirs
3586 am__obj=sub/conftest.${OBJEXT-o}
3587 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003588 case $depmode in
Jon Dugan92864152010-09-20 21:50:12 +00003589 gcc)
3590 # This depmode causes a compiler race in universal mode.
3591 test "$am__universal" = false || continue
3592 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003593 nosideeffect)
3594 # after this tag, mechanisms are not by side-effect, so they'll
3595 # only be used when explicitly requested
3596 if test "x$enable_dependency_tracking" = xyes; then
3597 continue
3598 else
3599 break
3600 fi
3601 ;;
Jon Dugan92864152010-09-20 21:50:12 +00003602 msvisualcpp | msvcmsys)
3603 # This compiler won't grok `-c -o', but also, the minuso test has
3604 # not run yet. These depmodes are late enough in the game, and
3605 # so weak that their functioning should not be impacted.
3606 am__obj=conftest.${OBJEXT-o}
3607 am__minus_obj=
3608 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003609 none) break ;;
3610 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003611 if depmode=$depmode \
Jon Dugan92864152010-09-20 21:50:12 +00003612 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Jon Dugan92864152010-09-20 21:50:12 +00003614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003615 >/dev/null 2>conftest.err &&
sethdelliott01ca9722010-07-19 20:38:40 +00003616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugan92864152010-09-20 21:50:12 +00003618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003621 # or remarks (even with -Werror). So we grep stderr for any message
3622 # that says an option was ignored or not supported.
3623 # When given -MP, icc 7.0 and 7.1 complain thusly:
3624 # icc: Command line warning: ignoring option '-M'; no argument required
3625 # The diagnosis changed in icc 8.0:
3626 # icc: Command line remark: option '-MP' not supported
3627 if (grep 'ignoring option' conftest.err ||
3628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003629 am_cv_CC_dependencies_compiler_type=$depmode
3630 break
3631 fi
3632 fi
3633 done
3634
3635 cd ..
3636 rm -rf conftest.dir
3637else
3638 am_cv_CC_dependencies_compiler_type=none
3639fi
3640
3641fi
Jon Dugan92864152010-09-20 21:50:12 +00003642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3643$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003644CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645
sethdelliott01ca9722010-07-19 20:38:40 +00003646 if
Jon Dugane34c20c2010-07-08 23:26:52 +00003647 test "x$enable_dependency_tracking" != xno \
3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649 am__fastdepCC_TRUE=
3650 am__fastdepCC_FALSE='#'
3651else
3652 am__fastdepCC_TRUE='#'
3653 am__fastdepCC_FALSE=
3654fi
3655
3656
3657if test -n "$ac_tool_prefix"; then
3658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3659set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00003660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003662if ${ac_cv_prog_RANLIB+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003663 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003664else
3665 if test -n "$RANLIB"; then
3666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003673 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00003676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003677 break 2
3678 fi
3679done
Jon Dugan92864152010-09-20 21:50:12 +00003680 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003681IFS=$as_save_IFS
3682
3683fi
3684fi
3685RANLIB=$ac_cv_prog_RANLIB
3686if test -n "$RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00003687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3688$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003689else
Jon Dugan92864152010-09-20 21:50:12 +00003690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003692fi
3693
3694
3695fi
3696if test -z "$ac_cv_prog_RANLIB"; then
3697 ac_ct_RANLIB=$RANLIB
3698 # Extract the first word of "ranlib", so it can be a program name with args.
3699set dummy ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00003700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003702if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003703 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003704else
3705 if test -n "$ac_ct_RANLIB"; then
3706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003713 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00003716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003717 break 2
3718 fi
3719done
Jon Dugan92864152010-09-20 21:50:12 +00003720 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003721IFS=$as_save_IFS
3722
3723fi
3724fi
3725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3726if test -n "$ac_ct_RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3728$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003729else
Jon Dugan92864152010-09-20 21:50:12 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003732fi
3733
3734 if test "x$ac_ct_RANLIB" = x; then
3735 RANLIB=":"
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738yes:)
Jon Dugan92864152010-09-20 21:50:12 +00003739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003741ac_tool_warned=yes ;;
3742esac
3743 RANLIB=$ac_ct_RANLIB
3744 fi
3745else
3746 RANLIB="$ac_cv_prog_RANLIB"
3747fi
3748
Jon Dugan92864152010-09-20 21:50:12 +00003749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3750$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003751LN_S=$as_ln_s
3752if test "$LN_S" = "ln -s"; then
Jon Dugan92864152010-09-20 21:50:12 +00003753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003755else
Jon Dugan92864152010-09-20 21:50:12 +00003756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3757$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003758fi
3759
3760case `pwd` in
3761 *\ * | *\ *)
Jon Dugan92864152010-09-20 21:50:12 +00003762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3763$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003764esac
3765
3766
3767
jef2ab386b2012-08-10 12:43:50 -07003768macro_version='2.4'
3769macro_revision='1.3293'
Jon Dugane34c20c2010-07-08 23:26:52 +00003770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783ltmain="$ac_aux_dir/ltmain.sh"
3784
Jon Dugan92864152010-09-20 21:50:12 +00003785# Backslashify metacharacters that are still active within
3786# double-quoted strings.
3787sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3788
3789# Same as above, but do not quote variable references.
3790double_quote_subst='s/\(["`\\]\)/\\\1/g'
3791
3792# Sed substitution to delay expansion of an escaped shell variable in a
3793# double_quote_subst'ed string.
3794delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3795
3796# Sed substitution to delay expansion of an escaped single quote.
3797delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3798
3799# Sed substitution to avoid accidental globbing in evaled expressions
3800no_glob_subst='s/\*/\\\*/g'
3801
3802ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3803ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3804ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3805
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3807$as_echo_n "checking how to print strings... " >&6; }
3808# Test print first, because it will be a builtin if present.
jef2ab386b2012-08-10 12:43:50 -07003809if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Jon Dugan92864152010-09-20 21:50:12 +00003810 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3811 ECHO='print -r --'
3812elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3813 ECHO='printf %s\n'
3814else
3815 # Use this function as a fallback that always works.
3816 func_fallback_echo ()
3817 {
3818 eval 'cat <<_LTECHO_EOF
3819$1
3820_LTECHO_EOF'
3821 }
3822 ECHO='func_fallback_echo'
3823fi
3824
3825# func_echo_all arg...
3826# Invoke $ECHO with all args, space-separated.
3827func_echo_all ()
3828{
3829 $ECHO ""
3830}
3831
3832case "$ECHO" in
3833 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3834$as_echo "printf" >&6; } ;;
3835 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3836$as_echo "print -r" >&6; } ;;
3837 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3838$as_echo "cat" >&6; } ;;
3839esac
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3855$as_echo_n "checking for a sed that does not truncate output... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003856if ${ac_cv_path_SED+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003857 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003858else
3859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3860 for ac_i in 1 2 3 4 5 6 7; do
3861 ac_script="$ac_script$as_nl$ac_script"
3862 done
Jon Dugan92864152010-09-20 21:50:12 +00003863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3864 { ac_script=; unset ac_script;}
3865 if test -z "$SED"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003866 ac_path_SED_found=false
Jon Dugan92864152010-09-20 21:50:12 +00003867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003873 for ac_prog in sed gsed; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3877# Check for GNU ac_path_SED and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00003878 # Check for GNU $ac_path_SED
3879case `"$ac_path_SED" --version 2>&1` in
3880*GNU*)
3881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3882*)
3883 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00003884 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00003885 while :
3886 do
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00003890 $as_echo '' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00003891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00003893 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00003894 if test $ac_count -gt ${ac_path_SED_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_SED="$ac_path_SED"
3897 ac_path_SED_max=$ac_count
3898 fi
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3901 done
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903esac
3904
Jon Dugan92864152010-09-20 21:50:12 +00003905 $ac_path_SED_found && break 3
3906 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003907 done
Jon Dugan92864152010-09-20 21:50:12 +00003908 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003909IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00003910 if test -z "$ac_cv_path_SED"; then
jef2ab386b2012-08-10 12:43:50 -07003911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +00003912 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003913else
3914 ac_cv_path_SED=$SED
3915fi
3916
3917fi
Jon Dugan92864152010-09-20 21:50:12 +00003918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3919$as_echo "$ac_cv_path_SED" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003920 SED="$ac_cv_path_SED"
3921 rm -f conftest.sed
3922
3923test -z "$SED" && SED=sed
3924Xsed="$SED -e 1s/^X//"
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
Jon Dugan92864152010-09-20 21:50:12 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3937$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07003938if ${ac_cv_path_GREP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00003939 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003940else
Jon Dugan92864152010-09-20 21:50:12 +00003941 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003942 ac_path_GREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00003943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003945for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003949 for ac_prog in grep ggrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3953# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00003954 # Check for GNU $ac_path_GREP
3955case `"$ac_path_GREP" --version 2>&1` in
3956*GNU*)
3957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3958*)
3959 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00003960 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00003961 while :
3962 do
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00003966 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00003967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00003969 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00003970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_GREP="$ac_path_GREP"
3973 ac_path_GREP_max=$ac_count
3974 fi
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3977 done
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979esac
3980
Jon Dugan92864152010-09-20 21:50:12 +00003981 $ac_path_GREP_found && break 3
3982 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003983 done
Jon Dugan92864152010-09-20 21:50:12 +00003984 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003985IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00003986 if test -z "$ac_cv_path_GREP"; then
jef2ab386b2012-08-10 12:43:50 -07003987 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +00003988 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003989else
3990 ac_cv_path_GREP=$GREP
3991fi
3992
3993fi
Jon Dugan92864152010-09-20 21:50:12 +00003994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3995$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003996 GREP="$ac_cv_path_GREP"
3997
3998
Jon Dugan92864152010-09-20 21:50:12 +00003999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4000$as_echo_n "checking for egrep... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004001if ${ac_cv_path_EGREP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004002 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004003else
4004 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005 then ac_cv_path_EGREP="$GREP -E"
4006 else
Jon Dugan92864152010-09-20 21:50:12 +00004007 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004008 ac_path_EGREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004015 for ac_prog in egrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4019# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004020 # Check for GNU $ac_path_EGREP
4021case `"$ac_path_EGREP" --version 2>&1` in
4022*GNU*)
4023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4024*)
4025 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004026 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004032 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00004035 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_EGREP="$ac_path_EGREP"
4039 ac_path_EGREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
Jon Dugan92864152010-09-20 21:50:12 +00004047 $ac_path_EGREP_found && break 3
4048 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004049 done
Jon Dugan92864152010-09-20 21:50:12 +00004050 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004051IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004052 if test -z "$ac_cv_path_EGREP"; then
jef2ab386b2012-08-10 12:43:50 -07004053 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +00004054 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004055else
4056 ac_cv_path_EGREP=$EGREP
4057fi
4058
4059 fi
4060fi
Jon Dugan92864152010-09-20 21:50:12 +00004061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4062$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004063 EGREP="$ac_cv_path_EGREP"
4064
4065
Jon Dugan92864152010-09-20 21:50:12 +00004066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4067$as_echo_n "checking for fgrep... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004068if ${ac_cv_path_FGREP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004069 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004070else
4071 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4072 then ac_cv_path_FGREP="$GREP -F"
4073 else
Jon Dugan92864152010-09-20 21:50:12 +00004074 if test -z "$FGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004075 ac_path_FGREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004082 for ac_prog in fgrep; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4085 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4086# Check for GNU ac_path_FGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004087 # Check for GNU $ac_path_FGREP
4088case `"$ac_path_FGREP" --version 2>&1` in
4089*GNU*)
4090 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4091*)
4092 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004093 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004094 while :
4095 do
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004099 $as_echo 'FGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004100 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00004102 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004103 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_FGREP="$ac_path_FGREP"
4106 ac_path_FGREP_max=$ac_count
4107 fi
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112esac
4113
Jon Dugan92864152010-09-20 21:50:12 +00004114 $ac_path_FGREP_found && break 3
4115 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004116 done
Jon Dugan92864152010-09-20 21:50:12 +00004117 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004118IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004119 if test -z "$ac_cv_path_FGREP"; then
jef2ab386b2012-08-10 12:43:50 -07004120 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +00004121 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004122else
4123 ac_cv_path_FGREP=$FGREP
4124fi
4125
4126 fi
4127fi
Jon Dugan92864152010-09-20 21:50:12 +00004128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4129$as_echo "$ac_cv_path_FGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004130 FGREP="$ac_cv_path_FGREP"
4131
4132
4133test -z "$GREP" && GREP=grep
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153# Check whether --with-gnu-ld was given.
Jon Dugan92864152010-09-20 21:50:12 +00004154if test "${with_gnu_ld+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00004155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4156else
4157 with_gnu_ld=no
4158fi
4159
4160ac_prog=ld
4161if test "$GCC" = yes; then
4162 # Check if gcc -print-prog-name=ld gives a path.
Jon Dugan92864152010-09-20 21:50:12 +00004163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4164$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004165 case $host in
4166 *-*-mingw*)
4167 # gcc leaves a trailing carriage return which upsets mingw
4168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4169 *)
4170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4171 esac
4172 case $ac_prog in
4173 # Accept absolute paths.
4174 [\\/]* | ?:[\\/]*)
4175 re_direlt='/[^/][^/]*/\.\./'
4176 # Canonicalize the pathname of ld
4177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4180 done
4181 test -z "$LD" && LD="$ac_prog"
4182 ;;
4183 "")
4184 # If it fails, then pretend we aren't using GCC.
4185 ac_prog=ld
4186 ;;
4187 *)
4188 # If it is relative, then search for the first ld in PATH.
4189 with_gnu_ld=unknown
4190 ;;
4191 esac
4192elif test "$with_gnu_ld" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00004193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4194$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004195else
Jon Dugan92864152010-09-20 21:50:12 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4197$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004198fi
jef2ab386b2012-08-10 12:43:50 -07004199if ${lt_cv_path_LD+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004200 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004201else
4202 if test -z "$LD"; then
4203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204 for ac_dir in $PATH; do
4205 IFS="$lt_save_ifs"
4206 test -z "$ac_dir" && ac_dir=.
4207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4208 lt_cv_path_LD="$ac_dir/$ac_prog"
4209 # Check to see if the program is GNU ld. I'd rather use --version,
4210 # but apparently some variants of GNU ld only accept -v.
4211 # Break only if it was the GNU/non-GNU ld that we prefer.
4212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4213 *GNU* | *'with BFD'*)
4214 test "$with_gnu_ld" != no && break
4215 ;;
4216 *)
4217 test "$with_gnu_ld" != yes && break
4218 ;;
4219 esac
4220 fi
4221 done
4222 IFS="$lt_save_ifs"
4223else
4224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4225fi
4226fi
4227
4228LD="$lt_cv_path_LD"
4229if test -n "$LD"; then
Jon Dugan92864152010-09-20 21:50:12 +00004230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4231$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004232else
Jon Dugan92864152010-09-20 21:50:12 +00004233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004235fi
jef2ab386b2012-08-10 12:43:50 -07004236test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +00004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4238$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004239if ${lt_cv_prog_gnu_ld+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004240 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004241else
4242 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4243case `$LD -v 2>&1 </dev/null` in
4244*GNU* | *'with BFD'*)
4245 lt_cv_prog_gnu_ld=yes
4246 ;;
4247*)
4248 lt_cv_prog_gnu_ld=no
4249 ;;
4250esac
4251fi
Jon Dugan92864152010-09-20 21:50:12 +00004252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4253$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004254with_gnu_ld=$lt_cv_prog_gnu_ld
4255
4256
4257
4258
4259
4260
4261
4262
4263
Jon Dugan92864152010-09-20 21:50:12 +00004264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4265$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004266if ${lt_cv_path_NM+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004267 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004268else
4269 if test -n "$NM"; then
4270 # Let the user override the test.
4271 lt_cv_path_NM="$NM"
4272else
4273 lt_nm_to_check="${ac_tool_prefix}nm"
4274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4275 lt_nm_to_check="$lt_nm_to_check nm"
4276 fi
4277 for lt_tmp_nm in $lt_nm_to_check; do
4278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4280 IFS="$lt_save_ifs"
4281 test -z "$ac_dir" && ac_dir=.
4282 tmp_nm="$ac_dir/$lt_tmp_nm"
4283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4284 # Check to see if the nm accepts a BSD-compat flag.
4285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4286 # nm: unknown option "B" ignored
4287 # Tru64's nm complains that /dev/null is an invalid object file
4288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4289 */dev/null* | *'Invalid file or object type'*)
4290 lt_cv_path_NM="$tmp_nm -B"
4291 break
4292 ;;
4293 *)
4294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4295 */dev/null*)
4296 lt_cv_path_NM="$tmp_nm -p"
4297 break
4298 ;;
4299 *)
4300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4301 continue # so that we can try to find one that supports BSD flags
4302 ;;
4303 esac
4304 ;;
4305 esac
4306 fi
4307 done
4308 IFS="$lt_save_ifs"
4309 done
4310 : ${lt_cv_path_NM=no}
4311fi
4312fi
Jon Dugan92864152010-09-20 21:50:12 +00004313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4314$as_echo "$lt_cv_path_NM" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004315if test "$lt_cv_path_NM" != "no"; then
4316 NM="$lt_cv_path_NM"
4317else
4318 # Didn't find any BSD compatible name lister, look for dumpbin.
Jon Dugan92864152010-09-20 21:50:12 +00004319 if test -n "$DUMPBIN"; then :
4320 # Let the user override the test.
4321 else
4322 if test -n "$ac_tool_prefix"; then
4323 for ac_prog in dumpbin "link -dump"
Jon Dugane34c20c2010-07-08 23:26:52 +00004324 do
4325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00004327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004329if ${ac_cv_prog_DUMPBIN+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004330 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004331else
4332 if test -n "$DUMPBIN"; then
4333 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4334else
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004340 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00004341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00004343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004344 break 2
4345 fi
4346done
Jon Dugan92864152010-09-20 21:50:12 +00004347 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004348IFS=$as_save_IFS
4349
4350fi
4351fi
4352DUMPBIN=$ac_cv_prog_DUMPBIN
4353if test -n "$DUMPBIN"; then
Jon Dugan92864152010-09-20 21:50:12 +00004354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4355$as_echo "$DUMPBIN" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004356else
Jon Dugan92864152010-09-20 21:50:12 +00004357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004359fi
4360
4361
4362 test -n "$DUMPBIN" && break
4363 done
4364fi
4365if test -z "$DUMPBIN"; then
4366 ac_ct_DUMPBIN=$DUMPBIN
Jon Dugan92864152010-09-20 21:50:12 +00004367 for ac_prog in dumpbin "link -dump"
Jon Dugane34c20c2010-07-08 23:26:52 +00004368do
4369 # Extract the first word of "$ac_prog", so it can be a program name with args.
4370set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00004371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004373if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004374 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004375else
4376 if test -n "$ac_ct_DUMPBIN"; then
4377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004384 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00004385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00004387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004388 break 2
4389 fi
4390done
Jon Dugan92864152010-09-20 21:50:12 +00004391 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004392IFS=$as_save_IFS
4393
4394fi
4395fi
4396ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4397if test -n "$ac_ct_DUMPBIN"; then
Jon Dugan92864152010-09-20 21:50:12 +00004398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4399$as_echo "$ac_ct_DUMPBIN" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004400else
Jon Dugan92864152010-09-20 21:50:12 +00004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004403fi
4404
4405
4406 test -n "$ac_ct_DUMPBIN" && break
4407done
4408
4409 if test "x$ac_ct_DUMPBIN" = x; then
4410 DUMPBIN=":"
4411 else
4412 case $cross_compiling:$ac_tool_warned in
4413yes:)
Jon Dugan92864152010-09-20 21:50:12 +00004414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004416ac_tool_warned=yes ;;
4417esac
4418 DUMPBIN=$ac_ct_DUMPBIN
4419 fi
4420fi
4421
Jon Dugan92864152010-09-20 21:50:12 +00004422 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4423 *COFF*)
4424 DUMPBIN="$DUMPBIN -symbols"
4425 ;;
4426 *)
4427 DUMPBIN=:
4428 ;;
4429 esac
4430 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004431
4432 if test "$DUMPBIN" != ":"; then
4433 NM="$DUMPBIN"
4434 fi
4435fi
4436test -z "$NM" && NM=nm
4437
4438
4439
4440
4441
4442
Jon Dugan92864152010-09-20 21:50:12 +00004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4444$as_echo_n "checking the name lister ($NM) interface... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004445if ${lt_cv_nm_interface+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004446 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004447else
4448 lt_cv_nm_interface="BSD nm"
4449 echo "int some_variable = 0;" > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00004450 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004451 (eval "$ac_compile" 2>conftest.err)
4452 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00004453 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004454 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4455 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00004456 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004457 cat conftest.out >&5
4458 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4459 lt_cv_nm_interface="MS dumpbin"
4460 fi
Jon Dugan92864152010-09-20 21:50:12 +00004461 rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00004462fi
Jon Dugan92864152010-09-20 21:50:12 +00004463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4464$as_echo "$lt_cv_nm_interface" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004465
4466# find the maximum length of command line arguments
Jon Dugan92864152010-09-20 21:50:12 +00004467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4468$as_echo_n "checking the maximum length of command line arguments... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004469if ${lt_cv_sys_max_cmd_len+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004470 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004471else
4472 i=0
4473 teststring="ABCD"
4474
4475 case $build_os in
4476 msdosdjgpp*)
4477 # On DJGPP, this test can blow up pretty badly due to problems in libc
4478 # (any single argument exceeding 2000 bytes causes a buffer overrun
4479 # during glob expansion). Even if it were fixed, the result of this
4480 # check would be larger than it should be.
4481 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4482 ;;
4483
4484 gnu*)
4485 # Under GNU Hurd, this test is not required because there is
4486 # no limit to the length of command line arguments.
4487 # Libtool will interpret -1 as no limit whatsoever
4488 lt_cv_sys_max_cmd_len=-1;
4489 ;;
4490
Jon Dugan92864152010-09-20 21:50:12 +00004491 cygwin* | mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004492 # On Win9x/ME, this test blows up -- it succeeds, but takes
4493 # about 5 minutes as the teststring grows exponentially.
4494 # Worse, since 9x/ME are not pre-emptively multitasking,
4495 # you end up with a "frozen" computer, even though with patience
4496 # the test eventually succeeds (with a max line length of 256k).
4497 # Instead, let's just punt: use the minimum linelength reported by
4498 # all of the supported platforms: 8192 (on NT/2K/XP).
4499 lt_cv_sys_max_cmd_len=8192;
4500 ;;
4501
Jon Dugan92864152010-09-20 21:50:12 +00004502 mint*)
4503 # On MiNT this can take a long time and run out of memory.
4504 lt_cv_sys_max_cmd_len=8192;
4505 ;;
4506
Jon Dugane34c20c2010-07-08 23:26:52 +00004507 amigaos*)
4508 # On AmigaOS with pdksh, this test takes hours, literally.
4509 # So we just punt and use a minimum line length of 8192.
4510 lt_cv_sys_max_cmd_len=8192;
4511 ;;
4512
4513 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4514 # This has been around since 386BSD, at least. Likely further.
4515 if test -x /sbin/sysctl; then
4516 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4517 elif test -x /usr/sbin/sysctl; then
4518 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4519 else
4520 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4521 fi
4522 # And add a safety zone
4523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4525 ;;
4526
4527 interix*)
4528 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4529 lt_cv_sys_max_cmd_len=196608
4530 ;;
4531
4532 osf*)
4533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4535 # nice to cause kernel panics so lets avoid the loop below.
4536 # First set a reasonable default.
4537 lt_cv_sys_max_cmd_len=16384
4538 #
4539 if test -x /sbin/sysconfig; then
4540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4542 esac
4543 fi
4544 ;;
4545 sco3.2v5*)
4546 lt_cv_sys_max_cmd_len=102400
4547 ;;
4548 sysv5* | sco5v6* | sysv4.2uw2*)
4549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4550 if test -n "$kargmax"; then
4551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4552 else
4553 lt_cv_sys_max_cmd_len=32768
4554 fi
4555 ;;
4556 *)
4557 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4558 if test -n "$lt_cv_sys_max_cmd_len"; then
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4561 else
4562 # Make teststring a little bigger before we do anything with it.
4563 # a 1K string should be a reasonable start.
4564 for i in 1 2 3 4 5 6 7 8 ; do
4565 teststring=$teststring$teststring
4566 done
4567 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4568 # If test is not a shell built-in, we'll probably end up computing a
4569 # maximum length that is only half of the actual maximum length, but
4570 # we can't tell.
Jon Dugan92864152010-09-20 21:50:12 +00004571 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4572 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004573 test $i != 17 # 1/2 MB should be enough
4574 do
4575 i=`expr $i + 1`
4576 teststring=$teststring$teststring
4577 done
4578 # Only check the string length outside the loop.
4579 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4580 teststring=
4581 # Add a significant safety factor because C++ compilers can tack on
4582 # massive amounts of additional arguments before passing them to the
4583 # linker. It appears as though 1/2 is a usable value.
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4585 fi
4586 ;;
4587 esac
4588
4589fi
4590
4591if test -n $lt_cv_sys_max_cmd_len ; then
Jon Dugan92864152010-09-20 21:50:12 +00004592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4593$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004594else
Jon Dugan92864152010-09-20 21:50:12 +00004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4596$as_echo "none" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004597fi
4598max_cmd_len=$lt_cv_sys_max_cmd_len
4599
4600
4601
4602
4603
4604
4605: ${CP="cp -f"}
4606: ${MV="mv -f"}
4607: ${RM="rm -f"}
4608
Jon Dugan92864152010-09-20 21:50:12 +00004609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4610$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004611# Try some XSI features
4612xsi_shell=no
4613( _lt_dummy="a/b/c"
jef2ab386b2012-08-10 12:43:50 -07004614 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4615 = c,a/b,b/c, \
Jon Dugane34c20c2010-07-08 23:26:52 +00004616 && eval 'test $(( 1 + 1 )) -eq 2 \
4617 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4618 && xsi_shell=yes
Jon Dugan92864152010-09-20 21:50:12 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4620$as_echo "$xsi_shell" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004621
4622
Jon Dugan92864152010-09-20 21:50:12 +00004623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4624$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004625lt_shell_append=no
4626( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4627 >/dev/null 2>&1 \
4628 && lt_shell_append=yes
Jon Dugan92864152010-09-20 21:50:12 +00004629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4630$as_echo "$lt_shell_append" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004631
4632
4633if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4634 lt_unset=unset
4635else
4636 lt_unset=false
4637fi
4638
4639
4640
4641
4642
4643# test EBCDIC or ASCII
4644case `echo X|tr X '\101'` in
4645 A) # ASCII based system
4646 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4647 lt_SP2NL='tr \040 \012'
4648 lt_NL2SP='tr \015\012 \040\040'
4649 ;;
4650 *) # EBCDIC based system
4651 lt_SP2NL='tr \100 \n'
4652 lt_NL2SP='tr \r\n \100\100'
4653 ;;
4654esac
4655
4656
4657
4658
4659
4660
4661
4662
4663
jef2ab386b2012-08-10 12:43:50 -07004664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4665$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4666if ${lt_cv_to_host_file_cmd+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668else
4669 case $host in
4670 *-*-mingw* )
4671 case $build in
4672 *-*-mingw* ) # actually msys
4673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4674 ;;
4675 *-*-cygwin* )
4676 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4677 ;;
4678 * ) # otherwise, assume *nix
4679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4680 ;;
4681 esac
4682 ;;
4683 *-*-cygwin* )
4684 case $build in
4685 *-*-mingw* ) # actually msys
4686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4687 ;;
4688 *-*-cygwin* )
4689 lt_cv_to_host_file_cmd=func_convert_file_noop
4690 ;;
4691 * ) # otherwise, assume *nix
4692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4693 ;;
4694 esac
4695 ;;
4696 * ) # unhandled hosts (and "normal" native builds)
4697 lt_cv_to_host_file_cmd=func_convert_file_noop
4698 ;;
4699esac
4700
4701fi
4702
4703to_host_file_cmd=$lt_cv_to_host_file_cmd
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4705$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4712$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4713if ${lt_cv_to_tool_file_cmd+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715else
4716 #assume ordinary cross tools, or native build.
4717lt_cv_to_tool_file_cmd=func_convert_file_noop
4718case $host in
4719 *-*-mingw* )
4720 case $build in
4721 *-*-mingw* ) # actually msys
4722 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4723 ;;
4724 esac
4725 ;;
4726esac
4727
4728fi
4729
4730to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4732$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4733
4734
4735
4736
4737
Jon Dugan92864152010-09-20 21:50:12 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4739$as_echo_n "checking for $LD option to reload object files... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004740if ${lt_cv_ld_reload_flag+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004741 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004742else
4743 lt_cv_ld_reload_flag='-r'
4744fi
Jon Dugan92864152010-09-20 21:50:12 +00004745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4746$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004747reload_flag=$lt_cv_ld_reload_flag
4748case $reload_flag in
4749"" | " "*) ;;
4750*) reload_flag=" $reload_flag" ;;
4751esac
4752reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753case $host_os in
jef2ab386b2012-08-10 12:43:50 -07004754 cygwin* | mingw* | pw32* | cegcc*)
4755 if test "$GCC" != yes; then
4756 reload_cmds=false
4757 fi
4758 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004759 darwin*)
4760 if test "$GCC" = yes; then
4761 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4762 else
4763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4764 fi
4765 ;;
4766esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
Jon Dugan92864152010-09-20 21:50:12 +00004776if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4778set dummy ${ac_tool_prefix}objdump; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004781if ${ac_cv_prog_OBJDUMP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$OBJDUMP"; then
4785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799 done
4800IFS=$as_save_IFS
Jon Dugane34c20c2010-07-08 23:26:52 +00004801
Jon Dugan92864152010-09-20 21:50:12 +00004802fi
4803fi
4804OBJDUMP=$ac_cv_prog_OBJDUMP
4805if test -n "$OBJDUMP"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4807$as_echo "$OBJDUMP" >&6; }
4808else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814fi
4815if test -z "$ac_cv_prog_OBJDUMP"; then
4816 ac_ct_OBJDUMP=$OBJDUMP
4817 # Extract the first word of "objdump", so it can be a program name with args.
4818set dummy objdump; ac_word=$2
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004821if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004822 $as_echo_n "(cached) " >&6
4823else
4824 if test -n "$ac_ct_OBJDUMP"; then
4825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839 done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4845if test -n "$ac_ct_OBJDUMP"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4847$as_echo "$ac_ct_OBJDUMP" >&6; }
4848else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850$as_echo "no" >&6; }
4851fi
4852
4853 if test "x$ac_ct_OBJDUMP" = x; then
4854 OBJDUMP="false"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857yes:)
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860ac_tool_warned=yes ;;
4861esac
4862 OBJDUMP=$ac_ct_OBJDUMP
4863 fi
4864else
4865 OBJDUMP="$ac_cv_prog_OBJDUMP"
4866fi
4867
4868test -z "$OBJDUMP" && OBJDUMP=objdump
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4879$as_echo_n "checking how to recognize dependent libraries... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07004880if ${lt_cv_deplibs_check_method+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00004881 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004882else
4883 lt_cv_file_magic_cmd='$MAGIC_CMD'
4884lt_cv_file_magic_test_file=
4885lt_cv_deplibs_check_method='unknown'
4886# Need to set the preceding variable on all platforms that support
4887# interlibrary dependencies.
4888# 'none' -- dependencies not supported.
4889# `unknown' -- same as none, but documents that we really don't know.
4890# 'pass_all' -- all dependencies passed with no checks.
4891# 'test_compile' -- check by making test program.
4892# 'file_magic [[regex]]' -- check by looking for files in library path
4893# which responds to the $file_magic_cmd with a given extended regex.
4894# If you have `file' or equivalent on your system and you're not sure
4895# whether `pass_all' will *always* work, you probably want this one.
4896
4897case $host_os in
4898aix[4-9]*)
4899 lt_cv_deplibs_check_method=pass_all
4900 ;;
4901
4902beos*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906bsdi[45]*)
4907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4908 lt_cv_file_magic_cmd='/usr/bin/file -L'
4909 lt_cv_file_magic_test_file=/shlib/libc.so
4910 ;;
4911
4912cygwin*)
4913 # func_win32_libid is a shell function defined in ltmain.sh
4914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4915 lt_cv_file_magic_cmd='func_win32_libid'
4916 ;;
4917
4918mingw* | pw32*)
4919 # Base MSYS/MinGW do not provide the 'file' command needed by
4920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4921 # unless we find 'file', for example because we are cross-compiling.
Jon Dugan92864152010-09-20 21:50:12 +00004922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4926 else
Jon Dugan92864152010-09-20 21:50:12 +00004927 # Keep this pattern in sync with the one in func_win32_libid.
4928 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Jon Dugane34c20c2010-07-08 23:26:52 +00004929 lt_cv_file_magic_cmd='$OBJDUMP -f'
4930 fi
4931 ;;
4932
Jon Dugan92864152010-09-20 21:50:12 +00004933cegcc*)
4934 # use the weaker test based on 'objdump'. See mingw*.
4935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4936 lt_cv_file_magic_cmd='$OBJDUMP -f'
4937 ;;
4938
Jon Dugane34c20c2010-07-08 23:26:52 +00004939darwin* | rhapsody*)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942
4943freebsd* | dragonfly*)
4944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4945 case $host_cpu in
4946 i*86 )
4947 # Not sure whether the presence of OpenBSD here was a mistake.
4948 # Let's accept both of them until this is cleared up.
4949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4950 lt_cv_file_magic_cmd=/usr/bin/file
4951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4952 ;;
4953 esac
4954 else
4955 lt_cv_deplibs_check_method=pass_all
4956 fi
4957 ;;
4958
4959gnu*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
4962
Jon Dugan92864152010-09-20 21:50:12 +00004963haiku*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
Jon Dugane34c20c2010-07-08 23:26:52 +00004967hpux10.20* | hpux11*)
4968 lt_cv_file_magic_cmd=/usr/bin/file
4969 case $host_cpu in
4970 ia64*)
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4973 ;;
4974 hppa*64*)
Jon Dugan92864152010-09-20 21:50:12 +00004975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Jon Dugane34c20c2010-07-08 23:26:52 +00004976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4977 ;;
4978 *)
Jon Dugan92864152010-09-20 21:50:12 +00004979 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 +00004980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4981 ;;
4982 esac
4983 ;;
4984
4985interix[3-9]*)
4986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4988 ;;
4989
4990irix5* | irix6* | nonstopux*)
4991 case $LD in
4992 *-32|*"-32 ") libmagic=32-bit;;
4993 *-n32|*"-n32 ") libmagic=N32;;
4994 *-64|*"-64 ") libmagic=64-bit;;
4995 *) libmagic=never-match;;
4996 esac
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000# This must be Linux ELF.
Jon Dugan92864152010-09-20 21:50:12 +00005001linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00005002 lt_cv_deplibs_check_method=pass_all
5003 ;;
5004
5005netbsd*)
5006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5008 else
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5010 fi
5011 ;;
5012
5013newos6*)
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5015 lt_cv_file_magic_cmd=/usr/bin/file
5016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5017 ;;
5018
5019*nto* | *qnx*)
5020 lt_cv_deplibs_check_method=pass_all
5021 ;;
5022
5023openbsd*)
5024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5026 else
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5028 fi
5029 ;;
5030
5031osf3* | osf4* | osf5*)
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
5034
5035rdos*)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039solaris*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042
5043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047sysv4 | sysv4.3*)
5048 case $host_vendor in
5049 motorola)
5050 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]'
5051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5052 ;;
5053 ncr)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056 sequent)
5057 lt_cv_file_magic_cmd='/bin/file'
5058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5059 ;;
5060 sni)
5061 lt_cv_file_magic_cmd='/bin/file'
5062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5063 lt_cv_file_magic_test_file=/lib/libc.so
5064 ;;
5065 siemens)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068 pc)
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071 esac
5072 ;;
5073
5074tpf*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077esac
5078
5079fi
Jon Dugan92864152010-09-20 21:50:12 +00005080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5081$as_echo "$lt_cv_deplibs_check_method" >&6; }
jef2ab386b2012-08-10 12:43:50 -07005082
5083file_magic_glob=
5084want_nocaseglob=no
5085if test "$build" = "$host"; then
5086 case $host_os in
5087 mingw* | pw32*)
5088 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5089 want_nocaseglob=yes
5090 else
5091 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5092 fi
5093 ;;
5094 esac
5095fi
5096
Jon Dugane34c20c2010-07-08 23:26:52 +00005097file_magic_cmd=$lt_cv_file_magic_cmd
5098deplibs_check_method=$lt_cv_deplibs_check_method
5099test -z "$deplibs_check_method" && deplibs_check_method=unknown
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
jef2ab386b2012-08-10 12:43:50 -07005112
5113
5114
5115
5116
5117
5118
5119
5120
5121
Jon Dugane34c20c2010-07-08 23:26:52 +00005122if test -n "$ac_tool_prefix"; then
jef2ab386b2012-08-10 12:43:50 -07005123 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005127if ${ac_cv_prog_DLLTOOL+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129else
5130 if test -n "$DLLTOOL"; then
5131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145 done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150DLLTOOL=$ac_cv_prog_DLLTOOL
5151if test -n "$DLLTOOL"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5153$as_echo "$DLLTOOL" >&6; }
5154else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160fi
5161if test -z "$ac_cv_prog_DLLTOOL"; then
5162 ac_ct_DLLTOOL=$DLLTOOL
5163 # Extract the first word of "dlltool", so it can be a program name with args.
5164set dummy dlltool; ac_word=$2
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169else
5170 if test -n "$ac_ct_DLLTOOL"; then
5171 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184done
5185 done
5186IFS=$as_save_IFS
5187
5188fi
5189fi
5190ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5191if test -n "$ac_ct_DLLTOOL"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5193$as_echo "$ac_ct_DLLTOOL" >&6; }
5194else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199 if test "x$ac_ct_DLLTOOL" = x; then
5200 DLLTOOL="false"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203yes:)
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206ac_tool_warned=yes ;;
5207esac
5208 DLLTOOL=$ac_ct_DLLTOOL
5209 fi
5210else
5211 DLLTOOL="$ac_cv_prog_DLLTOOL"
5212fi
5213
5214test -z "$DLLTOOL" && DLLTOOL=dlltool
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5226$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5227if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 lt_cv_sharedlib_from_linklib_cmd='unknown'
5231
5232case $host_os in
5233cygwin* | mingw* | pw32* | cegcc*)
5234 # two different shell functions defined in ltmain.sh
5235 # decide which to use based on capabilities of $DLLTOOL
5236 case `$DLLTOOL --help 2>&1` in
5237 *--identify-strict*)
5238 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5239 ;;
5240 *)
5241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5242 ;;
5243 esac
5244 ;;
5245*)
5246 # fallback: assume linklib IS sharedlib
5247 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5248 ;;
5249esac
5250
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5253$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5254sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5255test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5256
5257
5258
5259
5260
5261
5262
5263
5264if test -n "$ac_tool_prefix"; then
5265 for ac_prog in ar
5266 do
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if ${ac_cv_prog_AR+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005272 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005273else
5274 if test -n "$AR"; then
5275 ac_cv_prog_AR="$AR" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005282 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
jef2ab386b2012-08-10 12:43:50 -07005284 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00005285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005286 break 2
5287 fi
5288done
Jon Dugan92864152010-09-20 21:50:12 +00005289 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005290IFS=$as_save_IFS
5291
5292fi
5293fi
5294AR=$ac_cv_prog_AR
5295if test -n "$AR"; then
Jon Dugan92864152010-09-20 21:50:12 +00005296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5297$as_echo "$AR" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005298else
Jon Dugan92864152010-09-20 21:50:12 +00005299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005301fi
5302
5303
jef2ab386b2012-08-10 12:43:50 -07005304 test -n "$AR" && break
5305 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005306fi
jef2ab386b2012-08-10 12:43:50 -07005307if test -z "$AR"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005308 ac_ct_AR=$AR
jef2ab386b2012-08-10 12:43:50 -07005309 for ac_prog in ar
5310do
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005315if ${ac_cv_prog_ac_ct_AR+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005316 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005317else
5318 if test -n "$ac_ct_AR"; then
5319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005326 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
jef2ab386b2012-08-10 12:43:50 -07005328 ac_cv_prog_ac_ct_AR="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00005329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005330 break 2
5331 fi
5332done
Jon Dugan92864152010-09-20 21:50:12 +00005333 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005334IFS=$as_save_IFS
5335
5336fi
5337fi
5338ac_ct_AR=$ac_cv_prog_ac_ct_AR
5339if test -n "$ac_ct_AR"; then
Jon Dugan92864152010-09-20 21:50:12 +00005340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5341$as_echo "$ac_ct_AR" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005342else
Jon Dugan92864152010-09-20 21:50:12 +00005343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005345fi
5346
jef2ab386b2012-08-10 12:43:50 -07005347
5348 test -n "$ac_ct_AR" && break
5349done
5350
Jon Dugane34c20c2010-07-08 23:26:52 +00005351 if test "x$ac_ct_AR" = x; then
5352 AR="false"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005358ac_tool_warned=yes ;;
5359esac
5360 AR=$ac_ct_AR
5361 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005362fi
5363
jef2ab386b2012-08-10 12:43:50 -07005364: ${AR=ar}
5365: ${AR_FLAGS=cru}
Jon Dugane34c20c2010-07-08 23:26:52 +00005366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
jef2ab386b2012-08-10 12:43:50 -07005377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5378$as_echo_n "checking for archiver @FILE support... " >&6; }
5379if ${lt_cv_ar_at_file+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381else
5382 lt_cv_ar_at_file=no
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385
5386int
5387main ()
5388{
5389
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394if ac_fn_c_try_compile "$LINENO"; then :
5395 echo conftest.$ac_objext > conftest.lst
5396 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5398 (eval $lt_ar_try) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 if test "$ac_status" -eq 0; then
5403 # Ensure the archiver fails upon bogus file names.
5404 rm -f conftest.$ac_objext libconftest.a
5405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5406 (eval $lt_ar_try) 2>&5
5407 ac_status=$?
5408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409 test $ac_status = 0; }
5410 if test "$ac_status" -ne 0; then
5411 lt_cv_ar_at_file=@
5412 fi
5413 fi
5414 rm -f conftest.* libconftest.a
5415
5416fi
5417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5421$as_echo "$lt_cv_ar_at_file" >&6; }
5422
5423if test "x$lt_cv_ar_at_file" = xno; then
5424 archiver_list_spec=
5425else
5426 archiver_list_spec=$lt_cv_ar_at_file
5427fi
5428
5429
5430
5431
5432
5433
5434
Jon Dugane34c20c2010-07-08 23:26:52 +00005435if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5437set dummy ${ac_tool_prefix}strip; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005440if ${ac_cv_prog_STRIP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005441 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005442else
5443 if test -n "$STRIP"; then
5444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005451 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Jon Dugan92864152010-09-20 21:50:12 +00005454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005455 break 2
5456 fi
5457done
Jon Dugan92864152010-09-20 21:50:12 +00005458 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005459IFS=$as_save_IFS
5460
5461fi
5462fi
5463STRIP=$ac_cv_prog_STRIP
5464if test -n "$STRIP"; then
Jon Dugan92864152010-09-20 21:50:12 +00005465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5466$as_echo "$STRIP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005467else
Jon Dugan92864152010-09-20 21:50:12 +00005468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005470fi
5471
5472
5473fi
5474if test -z "$ac_cv_prog_STRIP"; then
5475 ac_ct_STRIP=$STRIP
5476 # Extract the first word of "strip", so it can be a program name with args.
5477set dummy strip; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005480if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005481 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005482else
5483 if test -n "$ac_ct_STRIP"; then
5484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005491 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_STRIP="strip"
Jon Dugan92864152010-09-20 21:50:12 +00005494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005495 break 2
5496 fi
5497done
Jon Dugan92864152010-09-20 21:50:12 +00005498 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005499IFS=$as_save_IFS
5500
5501fi
5502fi
5503ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5504if test -n "$ac_ct_STRIP"; then
Jon Dugan92864152010-09-20 21:50:12 +00005505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5506$as_echo "$ac_ct_STRIP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005507else
Jon Dugan92864152010-09-20 21:50:12 +00005508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005510fi
5511
5512 if test "x$ac_ct_STRIP" = x; then
5513 STRIP=":"
5514 else
5515 case $cross_compiling:$ac_tool_warned in
5516yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005519ac_tool_warned=yes ;;
5520esac
5521 STRIP=$ac_ct_STRIP
5522 fi
5523else
5524 STRIP="$ac_cv_prog_STRIP"
5525fi
5526
5527test -z "$STRIP" && STRIP=:
5528
5529
5530
5531
5532
5533
5534if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005539if ${ac_cv_prog_RANLIB+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005540 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005541else
5542 if test -n "$RANLIB"; then
5543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005550 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00005553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005554 break 2
5555 fi
5556done
Jon Dugan92864152010-09-20 21:50:12 +00005557 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005558IFS=$as_save_IFS
5559
5560fi
5561fi
5562RANLIB=$ac_cv_prog_RANLIB
5563if test -n "$RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00005564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5565$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005566else
Jon Dugan92864152010-09-20 21:50:12 +00005567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005569fi
5570
5571
5572fi
5573if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576set dummy ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005579if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005580 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005581else
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005590 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00005593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005594 break 2
5595 fi
5596done
Jon Dugan92864152010-09-20 21:50:12 +00005597 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005598IFS=$as_save_IFS
5599
5600fi
5601fi
5602ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603if test -n "$ac_ct_RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00005604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5605$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005606else
Jon Dugan92864152010-09-20 21:50:12 +00005607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005609fi
5610
5611 if test "x$ac_ct_RANLIB" = x; then
5612 RANLIB=":"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005618ac_tool_warned=yes ;;
5619esac
5620 RANLIB=$ac_ct_RANLIB
5621 fi
5622else
5623 RANLIB="$ac_cv_prog_RANLIB"
5624fi
5625
5626test -z "$RANLIB" && RANLIB=:
5627
5628
5629
5630
5631
5632
5633# Determine commands to create old-style static archives.
5634old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635old_postinstall_cmds='chmod 644 $oldlib'
5636old_postuninstall_cmds=
5637
5638if test -n "$RANLIB"; then
5639 case $host_os in
5640 openbsd*)
5641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5642 ;;
5643 *)
5644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5645 ;;
5646 esac
5647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5648fi
5649
Jon Dugan92864152010-09-20 21:50:12 +00005650case $host_os in
5651 darwin*)
5652 lock_old_archive_extraction=yes ;;
5653 *)
5654 lock_old_archive_extraction=no ;;
5655esac
5656
5657
5658
5659
5660
5661
Jon Dugane34c20c2010-07-08 23:26:52 +00005662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695# If no C compiler was specified, use CC.
5696LTCC=${LTCC-"$CC"}
5697
5698# If no C compiler flags were specified, use CFLAGS.
5699LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5700
5701# Allow CC to be a program name with arguments.
5702compiler=$CC
5703
5704
5705# Check for command to grab the raw symbol name followed by C symbol from nm.
Jon Dugan92864152010-09-20 21:50:12 +00005706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5707$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07005708if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00005709 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005710else
5711
5712# These are sane defaults that work on at least a few old systems.
5713# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5714
5715# Character class describing NM global symbol codes.
5716symcode='[BCDEGRST]'
5717
5718# Regexp to match symbols that can be accessed directly from C.
5719sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5720
5721# Define system-specific variables.
5722case $host_os in
5723aix*)
5724 symcode='[BCDT]'
5725 ;;
Jon Dugan92864152010-09-20 21:50:12 +00005726cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00005727 symcode='[ABCDGISTW]'
5728 ;;
5729hpux*)
5730 if test "$host_cpu" = ia64; then
5731 symcode='[ABCDEGRST]'
5732 fi
5733 ;;
5734irix* | nonstopux*)
5735 symcode='[BCDEGRST]'
5736 ;;
5737osf*)
5738 symcode='[BCDEGQRST]'
5739 ;;
5740solaris*)
5741 symcode='[BDRT]'
5742 ;;
5743sco3.2v5*)
5744 symcode='[DT]'
5745 ;;
5746sysv4.2uw2*)
5747 symcode='[DT]'
5748 ;;
5749sysv5* | sco5v6* | unixware* | OpenUNIX*)
5750 symcode='[ABDT]'
5751 ;;
5752sysv4)
5753 symcode='[DFNSTU]'
5754 ;;
5755esac
5756
5757# If we're using GNU nm, then use its standard symbol codes.
5758case `$NM -V 2>&1` in
5759*GNU* | *'with BFD'*)
5760 symcode='[ABCDGIRSTW]' ;;
5761esac
5762
5763# Transform an extracted symbol line into a proper C declaration.
5764# Some systems (esp. on ia64) link data and code symbols differently,
5765# so use this general approach.
5766lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5767
5768# Transform an extracted symbol line into symbol name and symbol address
jef2ab386b2012-08-10 12:43:50 -07005769lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5770lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Jon Dugane34c20c2010-07-08 23:26:52 +00005771
5772# Handle CRLF in mingw tool chain
5773opt_cr=
5774case $build_os in
5775mingw*)
5776 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5777 ;;
5778esac
5779
5780# Try without a prefix underscore, then with it.
5781for ac_symprfx in "" "_"; do
5782
5783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5784 symxfrm="\\1 $ac_symprfx\\2 \\2"
5785
5786 # Write the raw and C identifiers.
5787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5788 # Fake it for dumpbin and say T for any non-static function
5789 # and D for any global variable.
5790 # Also find C++ and __fastcall symbols from MSVC++,
5791 # which start with @ or ?.
5792 lt_cv_sys_global_symbol_pipe="$AWK '"\
5793" {last_section=section; section=\$ 3};"\
5794" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5795" \$ 0!~/External *\|/{next};"\
5796" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5797" {if(hide[section]) next};"\
5798" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5799" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5800" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5801" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5802" ' prfx=^$ac_symprfx"
5803 else
5804 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5805 fi
jef2ab386b2012-08-10 12:43:50 -07005806 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Jon Dugane34c20c2010-07-08 23:26:52 +00005807
5808 # Check to see that the pipe works correctly.
5809 pipe_works=no
5810
Jon Dugan92864152010-09-20 21:50:12 +00005811 rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00005812 cat > conftest.$ac_ext <<_LT_EOF
5813#ifdef __cplusplus
5814extern "C" {
5815#endif
5816char nm_test_var;
5817void nm_test_func(void);
5818void nm_test_func(void){}
5819#ifdef __cplusplus
5820}
5821#endif
5822int main(){nm_test_var='a';nm_test_func();return(0);}
5823_LT_EOF
5824
Jon Dugan92864152010-09-20 21:50:12 +00005825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005826 (eval $ac_compile) 2>&5
5827 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005830 # Now try to grab the symbols.
5831 nlist=conftest.nm
Jon Dugan92864152010-09-20 21:50:12 +00005832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5833 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005834 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; } && test -s "$nlist"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005837 # Try sorting and uniquifying the output.
5838 if sort "$nlist" | uniq > "$nlist"T; then
5839 mv -f "$nlist"T "$nlist"
5840 else
5841 rm -f "$nlist"T
5842 fi
5843
5844 # Make sure that we snagged all the symbols we need.
5845 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5846 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5847 cat <<_LT_EOF > conftest.$ac_ext
jef2ab386b2012-08-10 12:43:50 -07005848/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5849#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5850/* DATA imports from DLLs on WIN32 con't be const, because runtime
5851 relocations are performed -- see ld's documentation on pseudo-relocs. */
5852# define LT_DLSYM_CONST
5853#elif defined(__osf__)
5854/* This system does not cope well with relocations in const data. */
5855# define LT_DLSYM_CONST
5856#else
5857# define LT_DLSYM_CONST const
5858#endif
5859
Jon Dugane34c20c2010-07-08 23:26:52 +00005860#ifdef __cplusplus
5861extern "C" {
5862#endif
5863
5864_LT_EOF
5865 # Now generate the symbol file.
5866 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5867
5868 cat <<_LT_EOF >> conftest.$ac_ext
5869
5870/* The mapping between symbol names and symbols. */
jef2ab386b2012-08-10 12:43:50 -07005871LT_DLSYM_CONST struct {
Jon Dugane34c20c2010-07-08 23:26:52 +00005872 const char *name;
5873 void *address;
5874}
5875lt__PROGRAM__LTX_preloaded_symbols[] =
5876{
5877 { "@PROGRAM@", (void *) 0 },
5878_LT_EOF
5879 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5880 cat <<\_LT_EOF >> conftest.$ac_ext
5881 {0, (void *) 0}
5882};
5883
5884/* This works around a problem in FreeBSD linker */
5885#ifdef FREEBSD_WORKAROUND
5886static const void *lt_preloaded_setup() {
5887 return lt__PROGRAM__LTX_preloaded_symbols;
5888}
5889#endif
5890
5891#ifdef __cplusplus
5892}
5893#endif
5894_LT_EOF
5895 # Now try linking the two files.
5896 mv conftest.$ac_objext conftstm.$ac_objext
jef2ab386b2012-08-10 12:43:50 -07005897 lt_globsym_save_LIBS=$LIBS
5898 lt_globsym_save_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00005899 LIBS="conftstm.$ac_objext"
5900 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jon Dugan92864152010-09-20 21:50:12 +00005901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005902 (eval $ac_link) 2>&5
5903 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005906 pipe_works=yes
5907 fi
jef2ab386b2012-08-10 12:43:50 -07005908 LIBS=$lt_globsym_save_LIBS
5909 CFLAGS=$lt_globsym_save_CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00005910 else
5911 echo "cannot find nm_test_func in $nlist" >&5
5912 fi
5913 else
5914 echo "cannot find nm_test_var in $nlist" >&5
5915 fi
5916 else
5917 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5918 fi
5919 else
5920 echo "$progname: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 fi
5923 rm -rf conftest* conftst*
5924
5925 # Do not use the global_symbol_pipe unless it works.
5926 if test "$pipe_works" = yes; then
5927 break
5928 else
5929 lt_cv_sys_global_symbol_pipe=
5930 fi
5931done
5932
5933fi
5934
5935if test -z "$lt_cv_sys_global_symbol_pipe"; then
5936 lt_cv_sys_global_symbol_to_cdecl=
5937fi
5938if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jon Dugan92864152010-09-20 21:50:12 +00005939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5940$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005941else
Jon Dugan92864152010-09-20 21:50:12 +00005942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5943$as_echo "ok" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005944fi
5945
jef2ab386b2012-08-10 12:43:50 -07005946# Response file support.
5947if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5948 nm_file_list_spec='@'
5949elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5950 nm_file_list_spec='@'
5951fi
Jon Dugane34c20c2010-07-08 23:26:52 +00005952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
jef2ab386b2012-08-10 12:43:50 -07005974
5975
5976
5977
5978
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5980$as_echo_n "checking for sysroot... " >&6; }
5981
5982# Check whether --with-sysroot was given.
5983if test "${with_sysroot+set}" = set; then :
5984 withval=$with_sysroot;
5985else
5986 with_sysroot=no
5987fi
5988
5989
5990lt_sysroot=
5991case ${with_sysroot} in #(
5992 yes)
5993 if test "$GCC" = yes; then
5994 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5995 fi
5996 ;; #(
5997 /*)
5998 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5999 ;; #(
6000 no|'')
6001 ;; #(
6002 *)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6004$as_echo "${with_sysroot}" >&6; }
6005 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6006 ;;
6007esac
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6010$as_echo "${lt_sysroot:-no}" >&6; }
6011
6012
6013
6014
6015
Jon Dugane34c20c2010-07-08 23:26:52 +00006016# Check whether --enable-libtool-lock was given.
Jon Dugan92864152010-09-20 21:50:12 +00006017if test "${enable_libtool_lock+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006018 enableval=$enable_libtool_lock;
6019fi
6020
6021test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6022
6023# Some flags need to be propagated to the compiler or linker for good
6024# libtool support.
6025case $host in
6026ia64-*-hpux*)
6027 # Find out which ABI we are using.
6028 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00006029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006030 (eval $ac_compile) 2>&5
6031 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00006032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006034 case `/usr/bin/file conftest.$ac_objext` in
6035 *ELF-32*)
6036 HPUX_IA64_MODE="32"
6037 ;;
6038 *ELF-64*)
6039 HPUX_IA64_MODE="64"
6040 ;;
6041 esac
6042 fi
6043 rm -rf conftest*
6044 ;;
6045*-*-irix6*)
6046 # Find out which ABI we are using.
Jon Dugan92864152010-09-20 21:50:12 +00006047 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006049 (eval $ac_compile) 2>&5
6050 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00006051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006053 if test "$lt_cv_prog_gnu_ld" = yes; then
6054 case `/usr/bin/file conftest.$ac_objext` in
6055 *32-bit*)
6056 LD="${LD-ld} -melf32bsmip"
6057 ;;
6058 *N32*)
6059 LD="${LD-ld} -melf32bmipn32"
6060 ;;
6061 *64-bit*)
6062 LD="${LD-ld} -melf64bmip"
6063 ;;
6064 esac
6065 else
6066 case `/usr/bin/file conftest.$ac_objext` in
6067 *32-bit*)
6068 LD="${LD-ld} -32"
6069 ;;
6070 *N32*)
6071 LD="${LD-ld} -n32"
6072 ;;
6073 *64-bit*)
6074 LD="${LD-ld} -64"
6075 ;;
6076 esac
6077 fi
6078 fi
6079 rm -rf conftest*
6080 ;;
6081
6082x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6083s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6084 # Find out which ABI we are using.
6085 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00006086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006087 (eval $ac_compile) 2>&5
6088 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00006089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006091 case `/usr/bin/file conftest.o` in
6092 *32-bit*)
6093 case $host in
6094 x86_64-*kfreebsd*-gnu)
6095 LD="${LD-ld} -m elf_i386_fbsd"
6096 ;;
6097 x86_64-*linux*)
6098 LD="${LD-ld} -m elf_i386"
6099 ;;
6100 ppc64-*linux*|powerpc64-*linux*)
6101 LD="${LD-ld} -m elf32ppclinux"
6102 ;;
6103 s390x-*linux*)
6104 LD="${LD-ld} -m elf_s390"
6105 ;;
6106 sparc64-*linux*)
6107 LD="${LD-ld} -m elf32_sparc"
6108 ;;
6109 esac
6110 ;;
6111 *64-bit*)
6112 case $host in
6113 x86_64-*kfreebsd*-gnu)
6114 LD="${LD-ld} -m elf_x86_64_fbsd"
6115 ;;
6116 x86_64-*linux*)
6117 LD="${LD-ld} -m elf_x86_64"
6118 ;;
6119 ppc*-*linux*|powerpc*-*linux*)
6120 LD="${LD-ld} -m elf64ppc"
6121 ;;
6122 s390*-*linux*|s390*-*tpf*)
6123 LD="${LD-ld} -m elf64_s390"
6124 ;;
6125 sparc*-*linux*)
6126 LD="${LD-ld} -m elf64_sparc"
6127 ;;
6128 esac
6129 ;;
6130 esac
6131 fi
6132 rm -rf conftest*
6133 ;;
6134
6135*-*-sco3.2v5*)
6136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6137 SAVE_CFLAGS="$CFLAGS"
6138 CFLAGS="$CFLAGS -belf"
Jon Dugan92864152010-09-20 21:50:12 +00006139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6140$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006141if ${lt_cv_cc_needs_belf+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006142 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006143else
6144 ac_ext=c
6145ac_cpp='$CPP $CPPFLAGS'
6146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
Jon Dugan92864152010-09-20 21:50:12 +00006150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006151/* end confdefs.h. */
6152
6153int
6154main ()
6155{
6156
6157 ;
6158 return 0;
6159}
6160_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006161if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006162 lt_cv_cc_needs_belf=yes
6163else
Jon Dugan92864152010-09-20 21:50:12 +00006164 lt_cv_cc_needs_belf=no
Jon Dugane34c20c2010-07-08 23:26:52 +00006165fi
Jon Dugan92864152010-09-20 21:50:12 +00006166rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006168 ac_ext=c
6169ac_cpp='$CPP $CPPFLAGS'
6170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173
6174fi
Jon Dugan92864152010-09-20 21:50:12 +00006175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6176$as_echo "$lt_cv_cc_needs_belf" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006177 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6178 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6179 CFLAGS="$SAVE_CFLAGS"
6180 fi
6181 ;;
6182sparc*-*solaris*)
6183 # Find out which ABI we are using.
6184 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00006185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006186 (eval $ac_compile) 2>&5
6187 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00006188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006190 case `/usr/bin/file conftest.o` in
6191 *64-bit*)
6192 case $lt_cv_prog_gnu_ld in
6193 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6194 *)
6195 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6196 LD="${LD-ld} -64"
6197 fi
6198 ;;
6199 esac
6200 ;;
6201 esac
6202 fi
6203 rm -rf conftest*
6204 ;;
6205esac
6206
6207need_locks="$enable_libtool_lock"
6208
jef2ab386b2012-08-10 12:43:50 -07006209if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6211set dummy ${ac_tool_prefix}mt; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$MANIFEST_TOOL"; then
6218 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6238if test -n "$MANIFEST_TOOL"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6240$as_echo "$MANIFEST_TOOL" >&6; }
6241else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246
6247fi
6248if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6249 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6250 # Extract the first word of "mt", so it can be a program name with args.
6251set dummy mt; ac_word=$2
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256else
6257 if test -n "$ac_ct_MANIFEST_TOOL"; then
6258 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271done
6272 done
6273IFS=$as_save_IFS
6274
6275fi
6276fi
6277ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6278if test -n "$ac_ct_MANIFEST_TOOL"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6280$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6281else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
6284fi
6285
6286 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6287 MANIFEST_TOOL=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290yes:)
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293ac_tool_warned=yes ;;
6294esac
6295 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6296 fi
6297else
6298 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6299fi
6300
6301test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6303$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6304if ${lt_cv_path_mainfest_tool+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 lt_cv_path_mainfest_tool=no
6308 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6309 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6310 cat conftest.err >&5
6311 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6312 lt_cv_path_mainfest_tool=yes
6313 fi
6314 rm -f conftest*
6315fi
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6317$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6318if test "x$lt_cv_path_mainfest_tool" != xyes; then
6319 MANIFEST_TOOL=:
6320fi
6321
6322
6323
6324
6325
Jon Dugane34c20c2010-07-08 23:26:52 +00006326
6327 case $host_os in
6328 rhapsody* | darwin*)
6329 if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6331set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006334if ${ac_cv_prog_DSYMUTIL+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006335 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006336else
6337 if test -n "$DSYMUTIL"; then
6338 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6339else
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006345 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Jon Dugan92864152010-09-20 21:50:12 +00006348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006349 break 2
6350 fi
6351done
Jon Dugan92864152010-09-20 21:50:12 +00006352 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006353IFS=$as_save_IFS
6354
6355fi
6356fi
6357DSYMUTIL=$ac_cv_prog_DSYMUTIL
6358if test -n "$DSYMUTIL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6360$as_echo "$DSYMUTIL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006361else
Jon Dugan92864152010-09-20 21:50:12 +00006362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006364fi
6365
6366
6367fi
6368if test -z "$ac_cv_prog_DSYMUTIL"; then
6369 ac_ct_DSYMUTIL=$DSYMUTIL
6370 # Extract the first word of "dsymutil", so it can be a program name with args.
6371set dummy dsymutil; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006374if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006375 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006376else
6377 if test -n "$ac_ct_DSYMUTIL"; then
6378 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006385 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Jon Dugan92864152010-09-20 21:50:12 +00006388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006389 break 2
6390 fi
6391done
Jon Dugan92864152010-09-20 21:50:12 +00006392 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6398if test -n "$ac_ct_DSYMUTIL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6400$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006401else
Jon Dugan92864152010-09-20 21:50:12 +00006402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006404fi
6405
6406 if test "x$ac_ct_DSYMUTIL" = x; then
6407 DSYMUTIL=":"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006413ac_tool_warned=yes ;;
6414esac
6415 DSYMUTIL=$ac_ct_DSYMUTIL
6416 fi
6417else
6418 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6419fi
6420
6421 if test -n "$ac_tool_prefix"; then
6422 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6423set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006426if ${ac_cv_prog_NMEDIT+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006427 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006428else
6429 if test -n "$NMEDIT"; then
6430 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6431else
6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006437 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Jon Dugan92864152010-09-20 21:50:12 +00006440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006441 break 2
6442 fi
6443done
Jon Dugan92864152010-09-20 21:50:12 +00006444 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006445IFS=$as_save_IFS
6446
6447fi
6448fi
6449NMEDIT=$ac_cv_prog_NMEDIT
6450if test -n "$NMEDIT"; then
Jon Dugan92864152010-09-20 21:50:12 +00006451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6452$as_echo "$NMEDIT" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006453else
Jon Dugan92864152010-09-20 21:50:12 +00006454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006456fi
6457
6458
6459fi
6460if test -z "$ac_cv_prog_NMEDIT"; then
6461 ac_ct_NMEDIT=$NMEDIT
6462 # Extract the first word of "nmedit", so it can be a program name with args.
6463set dummy nmedit; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006466if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006467 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006468else
6469 if test -n "$ac_ct_NMEDIT"; then
6470 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006477 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Jon Dugan92864152010-09-20 21:50:12 +00006480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006481 break 2
6482 fi
6483done
Jon Dugan92864152010-09-20 21:50:12 +00006484 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006485IFS=$as_save_IFS
6486
6487fi
6488fi
6489ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6490if test -n "$ac_ct_NMEDIT"; then
Jon Dugan92864152010-09-20 21:50:12 +00006491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6492$as_echo "$ac_ct_NMEDIT" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006493else
Jon Dugan92864152010-09-20 21:50:12 +00006494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006496fi
6497
6498 if test "x$ac_ct_NMEDIT" = x; then
6499 NMEDIT=":"
6500 else
6501 case $cross_compiling:$ac_tool_warned in
6502yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006505ac_tool_warned=yes ;;
6506esac
6507 NMEDIT=$ac_ct_NMEDIT
6508 fi
6509else
6510 NMEDIT="$ac_cv_prog_NMEDIT"
6511fi
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}lipo; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006518if ${ac_cv_prog_LIPO+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006519 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006520else
6521 if test -n "$LIPO"; then
6522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006529 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Jon Dugan92864152010-09-20 21:50:12 +00006532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006533 break 2
6534 fi
6535done
Jon Dugan92864152010-09-20 21:50:12 +00006536 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006537IFS=$as_save_IFS
6538
6539fi
6540fi
6541LIPO=$ac_cv_prog_LIPO
6542if test -n "$LIPO"; then
Jon Dugan92864152010-09-20 21:50:12 +00006543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6544$as_echo "$LIPO" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006545else
Jon Dugan92864152010-09-20 21:50:12 +00006546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006548fi
6549
6550
6551fi
6552if test -z "$ac_cv_prog_LIPO"; then
6553 ac_ct_LIPO=$LIPO
6554 # Extract the first word of "lipo", so it can be a program name with args.
6555set dummy lipo; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006558if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006559 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006560else
6561 if test -n "$ac_ct_LIPO"; then
6562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006569 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_ac_ct_LIPO="lipo"
Jon Dugan92864152010-09-20 21:50:12 +00006572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006573 break 2
6574 fi
6575done
Jon Dugan92864152010-09-20 21:50:12 +00006576 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006577IFS=$as_save_IFS
6578
6579fi
6580fi
6581ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6582if test -n "$ac_ct_LIPO"; then
Jon Dugan92864152010-09-20 21:50:12 +00006583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6584$as_echo "$ac_ct_LIPO" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006585else
Jon Dugan92864152010-09-20 21:50:12 +00006586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006588fi
6589
6590 if test "x$ac_ct_LIPO" = x; then
6591 LIPO=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006597ac_tool_warned=yes ;;
6598esac
6599 LIPO=$ac_ct_LIPO
6600 fi
6601else
6602 LIPO="$ac_cv_prog_LIPO"
6603fi
6604
6605 if test -n "$ac_tool_prefix"; then
6606 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6607set dummy ${ac_tool_prefix}otool; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006610if ${ac_cv_prog_OTOOL+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006611 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006612else
6613 if test -n "$OTOOL"; then
6614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6615else
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006621 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Jon Dugan92864152010-09-20 21:50:12 +00006624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006625 break 2
6626 fi
6627done
Jon Dugan92864152010-09-20 21:50:12 +00006628 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006629IFS=$as_save_IFS
6630
6631fi
6632fi
6633OTOOL=$ac_cv_prog_OTOOL
6634if test -n "$OTOOL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6636$as_echo "$OTOOL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006637else
Jon Dugan92864152010-09-20 21:50:12 +00006638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006640fi
6641
6642
6643fi
6644if test -z "$ac_cv_prog_OTOOL"; then
6645 ac_ct_OTOOL=$OTOOL
6646 # Extract the first word of "otool", so it can be a program name with args.
6647set dummy otool; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006650if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006651 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006652else
6653 if test -n "$ac_ct_OTOOL"; then
6654 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6655else
6656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006661 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_ac_ct_OTOOL="otool"
Jon Dugan92864152010-09-20 21:50:12 +00006664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006665 break 2
6666 fi
6667done
Jon Dugan92864152010-09-20 21:50:12 +00006668 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006669IFS=$as_save_IFS
6670
6671fi
6672fi
6673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6674if test -n "$ac_ct_OTOOL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6676$as_echo "$ac_ct_OTOOL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006677else
Jon Dugan92864152010-09-20 21:50:12 +00006678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006680fi
6681
6682 if test "x$ac_ct_OTOOL" = x; then
6683 OTOOL=":"
6684 else
6685 case $cross_compiling:$ac_tool_warned in
6686yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006689ac_tool_warned=yes ;;
6690esac
6691 OTOOL=$ac_ct_OTOOL
6692 fi
6693else
6694 OTOOL="$ac_cv_prog_OTOOL"
6695fi
6696
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6699set dummy ${ac_tool_prefix}otool64; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006702if ${ac_cv_prog_OTOOL64+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006703 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006704else
6705 if test -n "$OTOOL64"; then
6706 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006713 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Jon Dugan92864152010-09-20 21:50:12 +00006716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006717 break 2
6718 fi
6719done
Jon Dugan92864152010-09-20 21:50:12 +00006720 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006721IFS=$as_save_IFS
6722
6723fi
6724fi
6725OTOOL64=$ac_cv_prog_OTOOL64
6726if test -n "$OTOOL64"; then
Jon Dugan92864152010-09-20 21:50:12 +00006727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6728$as_echo "$OTOOL64" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006729else
Jon Dugan92864152010-09-20 21:50:12 +00006730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006732fi
6733
6734
6735fi
6736if test -z "$ac_cv_prog_OTOOL64"; then
6737 ac_ct_OTOOL64=$OTOOL64
6738 # Extract the first word of "otool64", so it can be a program name with args.
6739set dummy otool64; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741$as_echo_n "checking for $ac_word... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006742if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006743 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006744else
6745 if test -n "$ac_ct_OTOOL64"; then
6746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006753 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_ac_ct_OTOOL64="otool64"
Jon Dugan92864152010-09-20 21:50:12 +00006756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006757 break 2
6758 fi
6759done
Jon Dugan92864152010-09-20 21:50:12 +00006760 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006761IFS=$as_save_IFS
6762
6763fi
6764fi
6765ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6766if test -n "$ac_ct_OTOOL64"; then
Jon Dugan92864152010-09-20 21:50:12 +00006767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6768$as_echo "$ac_ct_OTOOL64" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006769else
Jon Dugan92864152010-09-20 21:50:12 +00006770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006772fi
6773
6774 if test "x$ac_ct_OTOOL64" = x; then
6775 OTOOL64=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006781ac_tool_warned=yes ;;
6782esac
6783 OTOOL64=$ac_ct_OTOOL64
6784 fi
6785else
6786 OTOOL64="$ac_cv_prog_OTOOL64"
6787fi
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
Jon Dugan92864152010-09-20 21:50:12 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6816$as_echo_n "checking for -single_module linker flag... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006817if ${lt_cv_apple_cc_single_mod+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006818 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006819else
6820 lt_cv_apple_cc_single_mod=no
6821 if test -z "${LT_MULTI_MODULE}"; then
6822 # By default we will add the -single_module flag. You can override
6823 # by either setting the environment variable LT_MULTI_MODULE
6824 # non-empty at configure time, or by adding -multi_module to the
6825 # link flags.
6826 rm -rf libconftest.dylib*
6827 echo "int foo(void){return 1;}" > conftest.c
6828 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6829-dynamiclib -Wl,-single_module conftest.c" >&5
6830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6831 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6832 _lt_result=$?
6833 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6834 lt_cv_apple_cc_single_mod=yes
6835 else
6836 cat conftest.err >&5
6837 fi
6838 rm -rf libconftest.dylib*
6839 rm -f conftest.*
6840 fi
6841fi
Jon Dugan92864152010-09-20 21:50:12 +00006842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6843$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6845$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006846if ${lt_cv_ld_exported_symbols_list+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006847 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006848else
6849 lt_cv_ld_exported_symbols_list=no
6850 save_LDFLAGS=$LDFLAGS
6851 echo "_main" > conftest.sym
6852 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Jon Dugan92864152010-09-20 21:50:12 +00006853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006854/* end confdefs.h. */
6855
6856int
6857main ()
6858{
6859
6860 ;
6861 return 0;
6862}
6863_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006864if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006865 lt_cv_ld_exported_symbols_list=yes
6866else
Jon Dugan92864152010-09-20 21:50:12 +00006867 lt_cv_ld_exported_symbols_list=no
Jon Dugane34c20c2010-07-08 23:26:52 +00006868fi
Jon Dugan92864152010-09-20 21:50:12 +00006869rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006871 LDFLAGS="$save_LDFLAGS"
6872
6873fi
Jon Dugan92864152010-09-20 21:50:12 +00006874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6875$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6877$as_echo_n "checking for -force_load linker flag... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07006878if ${lt_cv_ld_force_load+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006879 $as_echo_n "(cached) " >&6
6880else
6881 lt_cv_ld_force_load=no
6882 cat > conftest.c << _LT_EOF
6883int forced_loaded() { return 2;}
6884_LT_EOF
6885 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6886 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6887 echo "$AR cru libconftest.a conftest.o" >&5
6888 $AR cru libconftest.a conftest.o 2>&5
6889 echo "$RANLIB libconftest.a" >&5
6890 $RANLIB libconftest.a 2>&5
6891 cat > conftest.c << _LT_EOF
6892int main() { return 0;}
6893_LT_EOF
6894 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6895 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6896 _lt_result=$?
6897 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6898 lt_cv_ld_force_load=yes
6899 else
6900 cat conftest.err >&5
6901 fi
6902 rm -f conftest.err libconftest.a conftest conftest.c
6903 rm -rf conftest.dSYM
6904
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6907$as_echo "$lt_cv_ld_force_load" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006908 case $host_os in
6909 rhapsody* | darwin1.[012])
6910 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6911 darwin1.*)
6912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6913 darwin*) # darwin 5.x on
6914 # if running on 10.5 or later, the deployment target defaults
6915 # to the OS version, if on x86, and 10.4, the deployment
6916 # target defaults to 10.4. Don't you love it?
6917 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6918 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6919 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6920 10.[012]*)
6921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6922 10.*)
6923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6924 esac
6925 ;;
6926 esac
6927 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6928 _lt_dar_single_mod='$single_module'
6929 fi
6930 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6931 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6932 else
6933 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6934 fi
Jon Dugan92864152010-09-20 21:50:12 +00006935 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006936 _lt_dsymutil='~$DSYMUTIL $lib || :'
6937 else
6938 _lt_dsymutil=
6939 fi
6940 ;;
6941 esac
6942
6943ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jon Dugan92864152010-09-20 21:50:12 +00006948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6949$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006950# On Suns, sometimes $CPP names a directory.
6951if test -n "$CPP" && test -d "$CPP"; then
6952 CPP=
6953fi
6954if test -z "$CPP"; then
jef2ab386b2012-08-10 12:43:50 -07006955 if ${ac_cv_prog_CPP+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00006956 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006957else
6958 # Double quotes because CPP needs to be expanded
6959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6960 do
6961 ac_preproc_ok=false
6962for ac_c_preproc_warn_flag in '' yes
6963do
6964 # Use a header file that comes with gcc, so configuring glibc
6965 # with a fresh cross-compiler works.
6966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 # <limits.h> exists even on freestanding compilers.
6968 # On the NeXT, cc -E runs the code through the compiler's parser,
6969 # not just through cpp. "Syntax error" is here to catch this case.
Jon Dugan92864152010-09-20 21:50:12 +00006970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006971/* end confdefs.h. */
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977 Syntax error
6978_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006979if ac_fn_c_try_cpp "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00006980
Jon Dugan92864152010-09-20 21:50:12 +00006981else
Jon Dugane34c20c2010-07-08 23:26:52 +00006982 # Broken: fails on valid input.
6983continue
6984fi
jef2ab386b2012-08-10 12:43:50 -07006985rm -f conftest.err conftest.i conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006986
6987 # OK, works on sane cases. Now check whether nonexistent headers
6988 # can be detected and how.
Jon Dugan92864152010-09-20 21:50:12 +00006989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006990/* end confdefs.h. */
6991#include <ac_nonexistent.h>
6992_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006993if ac_fn_c_try_cpp "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006994 # Broken: success on invalid input.
6995continue
6996else
6997 # Passes both tests.
6998ac_preproc_ok=:
6999break
7000fi
jef2ab386b2012-08-10 12:43:50 -07007001rm -f conftest.err conftest.i conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jef2ab386b2012-08-10 12:43:50 -07007005rm -f conftest.i conftest.err conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00007006if $ac_preproc_ok; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007007 break
7008fi
7009
7010 done
7011 ac_cv_prog_CPP=$CPP
7012
7013fi
7014 CPP=$ac_cv_prog_CPP
7015else
7016 ac_cv_prog_CPP=$CPP
7017fi
Jon Dugan92864152010-09-20 21:50:12 +00007018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7019$as_echo "$CPP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007020ac_preproc_ok=false
7021for ac_c_preproc_warn_flag in '' yes
7022do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
Jon Dugan92864152010-09-20 21:50:12 +00007029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007030/* end confdefs.h. */
7031#ifdef __STDC__
7032# include <limits.h>
7033#else
7034# include <assert.h>
7035#endif
7036 Syntax error
7037_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007038if ac_fn_c_try_cpp "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00007039
Jon Dugan92864152010-09-20 21:50:12 +00007040else
Jon Dugane34c20c2010-07-08 23:26:52 +00007041 # Broken: fails on valid input.
7042continue
7043fi
jef2ab386b2012-08-10 12:43:50 -07007044rm -f conftest.err conftest.i conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007045
7046 # OK, works on sane cases. Now check whether nonexistent headers
7047 # can be detected and how.
Jon Dugan92864152010-09-20 21:50:12 +00007048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007049/* end confdefs.h. */
7050#include <ac_nonexistent.h>
7051_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007052if ac_fn_c_try_cpp "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007053 # Broken: success on invalid input.
7054continue
7055else
7056 # Passes both tests.
7057ac_preproc_ok=:
7058break
7059fi
jef2ab386b2012-08-10 12:43:50 -07007060rm -f conftest.err conftest.i conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007061
7062done
7063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jef2ab386b2012-08-10 12:43:50 -07007064rm -f conftest.i conftest.err conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00007065if $ac_preproc_ok; then :
7066
Jon Dugane34c20c2010-07-08 23:26:52 +00007067else
Jon Dugan92864152010-09-20 21:50:12 +00007068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jef2ab386b2012-08-10 12:43:50 -07007070as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7071See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007072fi
7073
7074ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080
Jon Dugan92864152010-09-20 21:50:12 +00007081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7082$as_echo_n "checking for ANSI C header files... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07007083if ${ac_cv_header_stdc+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00007084 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007085else
Jon Dugan92864152010-09-20 21:50:12 +00007086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007087/* end confdefs.h. */
7088#include <stdlib.h>
7089#include <stdarg.h>
7090#include <string.h>
7091#include <float.h>
7092
7093int
7094main ()
7095{
7096
7097 ;
7098 return 0;
7099}
7100_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007101if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007102 ac_cv_header_stdc=yes
7103else
Jon Dugan92864152010-09-20 21:50:12 +00007104 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107
7108if test $ac_cv_header_stdc = yes; then
7109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +00007110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007111/* end confdefs.h. */
7112#include <string.h>
7113
7114_ACEOF
7115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +00007116 $EGREP "memchr" >/dev/null 2>&1; then :
7117
Jon Dugane34c20c2010-07-08 23:26:52 +00007118else
7119 ac_cv_header_stdc=no
7120fi
Jon Dugan92864152010-09-20 21:50:12 +00007121rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007122
7123fi
7124
7125if test $ac_cv_header_stdc = yes; then
7126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +00007127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007128/* end confdefs.h. */
7129#include <stdlib.h>
7130
7131_ACEOF
7132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +00007133 $EGREP "free" >/dev/null 2>&1; then :
7134
Jon Dugane34c20c2010-07-08 23:26:52 +00007135else
7136 ac_cv_header_stdc=no
7137fi
Jon Dugan92864152010-09-20 21:50:12 +00007138rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007139
7140fi
7141
7142if test $ac_cv_header_stdc = yes; then
7143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jon Dugan92864152010-09-20 21:50:12 +00007144 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007145 :
7146else
Jon Dugan92864152010-09-20 21:50:12 +00007147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007148/* end confdefs.h. */
7149#include <ctype.h>
7150#include <stdlib.h>
7151#if ((' ' & 0x0FF) == 0x020)
7152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7154#else
7155# define ISLOWER(c) \
7156 (('a' <= (c) && (c) <= 'i') \
7157 || ('j' <= (c) && (c) <= 'r') \
7158 || ('s' <= (c) && (c) <= 'z'))
7159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7160#endif
7161
7162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7163int
7164main ()
7165{
7166 int i;
7167 for (i = 0; i < 256; i++)
7168 if (XOR (islower (i), ISLOWER (i))
7169 || toupper (i) != TOUPPER (i))
7170 return 2;
7171 return 0;
7172}
7173_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007174if ac_fn_c_try_run "$LINENO"; then :
7175
Jon Dugane34c20c2010-07-08 23:26:52 +00007176else
Jon Dugan92864152010-09-20 21:50:12 +00007177 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007178fi
Jon Dugan92864152010-09-20 21:50:12 +00007179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7180 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007181fi
7182
7183fi
7184fi
Jon Dugan92864152010-09-20 21:50:12 +00007185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7186$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007187if test $ac_cv_header_stdc = yes; then
7188
Jon Dugan92864152010-09-20 21:50:12 +00007189$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +00007190
7191fi
7192
7193# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7194for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7195 inttypes.h stdint.h unistd.h
Jon Dugan92864152010-09-20 21:50:12 +00007196do :
7197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7199"
jef2ab386b2012-08-10 12:43:50 -07007200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007201 cat >>confdefs.h <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jon Dugane34c20c2010-07-08 23:26:52 +00007203_ACEOF
7204
7205fi
7206
7207done
7208
7209
7210for ac_header in dlfcn.h
Jon Dugan92864152010-09-20 21:50:12 +00007211do :
7212 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7213"
jef2ab386b2012-08-10 12:43:50 -07007214if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007215 cat >>confdefs.h <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00007216#define HAVE_DLFCN_H 1
Jon Dugane34c20c2010-07-08 23:26:52 +00007217_ACEOF
7218
7219fi
7220
7221done
7222
7223
7224
Jon Dugan92864152010-09-20 21:50:12 +00007225
7226
Jon Dugane34c20c2010-07-08 23:26:52 +00007227# Set options
7228
7229
7230
7231 enable_dlopen=no
7232
7233
7234 enable_win32_dll=no
7235
7236
7237 # Check whether --enable-shared was given.
Jon Dugan92864152010-09-20 21:50:12 +00007238if test "${enable_shared+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007239 enableval=$enable_shared; p=${PACKAGE-default}
7240 case $enableval in
7241 yes) enable_shared=yes ;;
7242 no) enable_shared=no ;;
7243 *)
7244 enable_shared=no
7245 # Look at the argument we got. We use all the common list separators.
7246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7247 for pkg in $enableval; do
7248 IFS="$lt_save_ifs"
7249 if test "X$pkg" = "X$p"; then
7250 enable_shared=yes
7251 fi
7252 done
7253 IFS="$lt_save_ifs"
7254 ;;
7255 esac
7256else
7257 enable_shared=yes
7258fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 # Check whether --enable-static was given.
Jon Dugan92864152010-09-20 21:50:12 +00007269if test "${enable_static+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007270 enableval=$enable_static; p=${PACKAGE-default}
7271 case $enableval in
7272 yes) enable_static=yes ;;
7273 no) enable_static=no ;;
7274 *)
7275 enable_static=no
7276 # Look at the argument we got. We use all the common list separators.
7277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7278 for pkg in $enableval; do
7279 IFS="$lt_save_ifs"
7280 if test "X$pkg" = "X$p"; then
7281 enable_static=yes
7282 fi
7283 done
7284 IFS="$lt_save_ifs"
7285 ;;
7286 esac
7287else
7288 enable_static=yes
7289fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300# Check whether --with-pic was given.
Jon Dugan92864152010-09-20 21:50:12 +00007301if test "${with_pic+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007302 withval=$with_pic; pic_mode="$withval"
7303else
7304 pic_mode=default
7305fi
7306
7307
7308test -z "$pic_mode" && pic_mode=default
7309
7310
7311
7312
7313
7314
7315
7316 # Check whether --enable-fast-install was given.
Jon Dugan92864152010-09-20 21:50:12 +00007317if test "${enable_fast_install+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00007318 enableval=$enable_fast_install; p=${PACKAGE-default}
7319 case $enableval in
7320 yes) enable_fast_install=yes ;;
7321 no) enable_fast_install=no ;;
7322 *)
7323 enable_fast_install=no
7324 # Look at the argument we got. We use all the common list separators.
7325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7326 for pkg in $enableval; do
7327 IFS="$lt_save_ifs"
7328 if test "X$pkg" = "X$p"; then
7329 enable_fast_install=yes
7330 fi
7331 done
7332 IFS="$lt_save_ifs"
7333 ;;
7334 esac
7335else
7336 enable_fast_install=yes
7337fi
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349# This can be used to rebuild libtool when needed
7350LIBTOOL_DEPS="$ltmain"
7351
7352# Always use our own libtool.
7353LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
Jon Dugan92864152010-09-20 21:50:12 +00007379
Jon Dugane34c20c2010-07-08 23:26:52 +00007380test -z "$LN_S" && LN_S="ln -s"
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395if test -n "${ZSH_VERSION+set}" ; then
7396 setopt NO_GLOB_SUBST
7397fi
7398
Jon Dugan92864152010-09-20 21:50:12 +00007399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7400$as_echo_n "checking for objdir... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07007401if ${lt_cv_objdir+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00007402 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007403else
7404 rm -f .libs 2>/dev/null
7405mkdir .libs 2>/dev/null
7406if test -d .libs; then
7407 lt_cv_objdir=.libs
7408else
7409 # MS-DOS does not allow filenames that begin with a dot.
7410 lt_cv_objdir=_libs
7411fi
7412rmdir .libs 2>/dev/null
7413fi
Jon Dugan92864152010-09-20 21:50:12 +00007414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7415$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007416objdir=$lt_cv_objdir
7417
7418
7419
7420
7421
7422cat >>confdefs.h <<_ACEOF
7423#define LT_OBJDIR "$lt_cv_objdir/"
7424_ACEOF
7425
7426
7427
7428
7429case $host_os in
7430aix3*)
7431 # AIX sometimes has problems with the GCC collect2 program. For some
7432 # reason, if we set the COLLECT_NAMES environment variable, the problems
7433 # vanish in a puff of smoke.
7434 if test "X${COLLECT_NAMES+set}" != Xset; then
7435 COLLECT_NAMES=
7436 export COLLECT_NAMES
7437 fi
7438 ;;
7439esac
7440
7441# Global variables:
7442ofile=libtool
7443can_build_shared=yes
7444
7445# All known linkers require a `.a' archive for static linking (except MSVC,
7446# which needs '.lib').
7447libext=a
7448
7449with_gnu_ld="$lt_cv_prog_gnu_ld"
7450
7451old_CC="$CC"
7452old_CFLAGS="$CFLAGS"
7453
7454# Set sane defaults for various variables
7455test -z "$CC" && CC=cc
7456test -z "$LTCC" && LTCC=$CC
7457test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7458test -z "$LD" && LD=ld
7459test -z "$ac_objext" && ac_objext=o
7460
7461for cc_temp in $compiler""; do
7462 case $cc_temp in
7463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7465 \-*) ;;
7466 *) break;;
7467 esac
7468done
Jon Dugan92864152010-09-20 21:50:12 +00007469cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007470
7471
7472# Only perform the check for file, if the check method requires it
7473test -z "$MAGIC_CMD" && MAGIC_CMD=file
7474case $deplibs_check_method in
7475file_magic*)
7476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Jon Dugan92864152010-09-20 21:50:12 +00007477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7478$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07007479if ${lt_cv_path_MAGIC_CMD+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00007480 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007481else
7482 case $MAGIC_CMD in
7483[\\/*] | ?:[\\/]*)
7484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7485 ;;
7486*)
7487 lt_save_MAGIC_CMD="$MAGIC_CMD"
7488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7490 for ac_dir in $ac_dummy; do
7491 IFS="$lt_save_ifs"
7492 test -z "$ac_dir" && ac_dir=.
7493 if test -f $ac_dir/${ac_tool_prefix}file; then
7494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7495 if test -n "$file_magic_test_file"; then
7496 case $deplibs_check_method in
7497 "file_magic "*)
7498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7501 $EGREP "$file_magic_regex" > /dev/null; then
7502 :
7503 else
7504 cat <<_LT_EOF 1>&2
7505
7506*** Warning: the command libtool uses to detect shared libraries,
7507*** $file_magic_cmd, produces output that libtool cannot recognize.
7508*** The result is that libtool may fail to recognize shared libraries
7509*** as such. This will affect the creation of libtool libraries that
7510*** depend on shared libraries, but programs linked with such libtool
7511*** libraries will work regardless of this problem. Nevertheless, you
7512*** may want to report the problem to your system manager and/or to
7513*** bug-libtool@gnu.org
7514
7515_LT_EOF
7516 fi ;;
7517 esac
7518 fi
7519 break
7520 fi
7521 done
7522 IFS="$lt_save_ifs"
7523 MAGIC_CMD="$lt_save_MAGIC_CMD"
7524 ;;
7525esac
7526fi
7527
7528MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7529if test -n "$MAGIC_CMD"; then
Jon Dugan92864152010-09-20 21:50:12 +00007530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7531$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007532else
Jon Dugan92864152010-09-20 21:50:12 +00007533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007535fi
7536
7537
7538
7539
7540
7541if test -z "$lt_cv_path_MAGIC_CMD"; then
7542 if test -n "$ac_tool_prefix"; then
Jon Dugan92864152010-09-20 21:50:12 +00007543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7544$as_echo_n "checking for file... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07007545if ${lt_cv_path_MAGIC_CMD+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00007546 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007547else
7548 case $MAGIC_CMD in
7549[\\/*] | ?:[\\/]*)
7550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7551 ;;
7552*)
7553 lt_save_MAGIC_CMD="$MAGIC_CMD"
7554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7556 for ac_dir in $ac_dummy; do
7557 IFS="$lt_save_ifs"
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/file; then
7560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7561 if test -n "$file_magic_test_file"; then
7562 case $deplibs_check_method in
7563 "file_magic "*)
7564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7567 $EGREP "$file_magic_regex" > /dev/null; then
7568 :
7569 else
7570 cat <<_LT_EOF 1>&2
7571
7572*** Warning: the command libtool uses to detect shared libraries,
7573*** $file_magic_cmd, produces output that libtool cannot recognize.
7574*** The result is that libtool may fail to recognize shared libraries
7575*** as such. This will affect the creation of libtool libraries that
7576*** depend on shared libraries, but programs linked with such libtool
7577*** libraries will work regardless of this problem. Nevertheless, you
7578*** may want to report the problem to your system manager and/or to
7579*** bug-libtool@gnu.org
7580
7581_LT_EOF
7582 fi ;;
7583 esac
7584 fi
7585 break
7586 fi
7587 done
7588 IFS="$lt_save_ifs"
7589 MAGIC_CMD="$lt_save_MAGIC_CMD"
7590 ;;
7591esac
7592fi
7593
7594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595if test -n "$MAGIC_CMD"; then
Jon Dugan92864152010-09-20 21:50:12 +00007596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7597$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007598else
Jon Dugan92864152010-09-20 21:50:12 +00007599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007601fi
7602
7603
7604 else
7605 MAGIC_CMD=:
7606 fi
7607fi
7608
7609 fi
7610 ;;
7611esac
7612
7613# Use C for the default configuration in the libtool script
7614
7615lt_save_CC="$CC"
7616ac_ext=c
7617ac_cpp='$CPP $CPPFLAGS'
7618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622
7623# Source file extension for C test sources.
7624ac_ext=c
7625
7626# Object file extension for compiled C test sources.
7627objext=o
7628objext=$objext
7629
7630# Code to be used in simple compile tests
7631lt_simple_compile_test_code="int some_variable = 0;"
7632
7633# Code to be used in simple link tests
7634lt_simple_link_test_code='int main(){return(0);}'
7635
7636
7637
7638
7639
7640
7641
7642# If no C compiler was specified, use CC.
7643LTCC=${LTCC-"$CC"}
7644
7645# If no C compiler flags were specified, use CFLAGS.
7646LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7647
7648# Allow CC to be a program name with arguments.
7649compiler=$CC
7650
7651# Save the default compiler, since it gets overwritten when the other
7652# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7653compiler_DEFAULT=$CC
7654
7655# save warnings/boilerplate of simple test code
7656ac_outfile=conftest.$ac_objext
7657echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7659_lt_compiler_boilerplate=`cat conftest.err`
Jon Dugan92864152010-09-20 21:50:12 +00007660$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007661
7662ac_outfile=conftest.$ac_objext
7663echo "$lt_simple_link_test_code" >conftest.$ac_ext
7664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7665_lt_linker_boilerplate=`cat conftest.err`
7666$RM -r conftest*
7667
7668
7669if test -n "$compiler"; then
7670
7671lt_prog_compiler_no_builtin_flag=
7672
7673if test "$GCC" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00007674 case $cc_basename in
7675 nvcc*)
7676 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7677 *)
7678 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7679 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007680
Jon Dugan92864152010-09-20 21:50:12 +00007681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7682$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07007683if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00007684 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007685else
7686 lt_cv_prog_compiler_rtti_exceptions=no
7687 ac_outfile=conftest.$ac_objext
7688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7689 lt_compiler_flag="-fno-rtti -fno-exceptions"
7690 # Insert the option either (1) after the last *FLAGS variable, or
7691 # (2) before a word containing "conftest.", or (3) at the end.
7692 # Note that $ac_compile itself does not contain backslashes and begins
7693 # with a dollar sign (not a hyphen), so the echo should work correctly.
7694 # The option is referenced via a variable to avoid confusing sed.
7695 lt_compile=`echo "$ac_compile" | $SED \
7696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7698 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00007699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007700 (eval "$lt_compile" 2>conftest.err)
7701 ac_status=$?
7702 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00007703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007704 if (exit $ac_status) && test -s "$ac_outfile"; then
7705 # The compiler can only warn and ignore the option if not recognized
7706 # So say no if there are warnings other than the usual output.
Jon Dugan92864152010-09-20 21:50:12 +00007707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7710 lt_cv_prog_compiler_rtti_exceptions=yes
7711 fi
7712 fi
Jon Dugan92864152010-09-20 21:50:12 +00007713 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007714
7715fi
Jon Dugan92864152010-09-20 21:50:12 +00007716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7717$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007718
7719if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7721else
7722 :
7723fi
7724
7725fi
7726
7727
7728
7729
7730
7731
7732 lt_prog_compiler_wl=
7733lt_prog_compiler_pic=
7734lt_prog_compiler_static=
7735
Jon Dugane34c20c2010-07-08 23:26:52 +00007736
7737 if test "$GCC" = yes; then
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_static='-static'
7740
7741 case $host_os in
7742 aix*)
7743 # All AIX code is PIC.
7744 if test "$host_cpu" = ia64; then
7745 # AIX 5 now supports IA64 processor
7746 lt_prog_compiler_static='-Bstatic'
7747 fi
7748 ;;
7749
7750 amigaos*)
7751 case $host_cpu in
7752 powerpc)
7753 # see comment about AmigaOS4 .so support
7754 lt_prog_compiler_pic='-fPIC'
7755 ;;
7756 m68k)
7757 # FIXME: we need at least 68020 code to build shared libraries, but
7758 # adding the `-m68020' flag to GCC prevents building anything better,
7759 # like `-m68040'.
7760 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7761 ;;
7762 esac
7763 ;;
7764
7765 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7766 # PIC is the default for these OSes.
7767 ;;
7768
Jon Dugan92864152010-09-20 21:50:12 +00007769 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007770 # This hack is so that the source file can tell whether it is being
7771 # built for inclusion in a dll (and should export symbols for example).
7772 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7773 # (--disable-auto-import) libraries
7774 lt_prog_compiler_pic='-DDLL_EXPORT'
7775 ;;
7776
7777 darwin* | rhapsody*)
7778 # PIC is the default on this platform
7779 # Common symbols not allowed in MH_DYLIB files
7780 lt_prog_compiler_pic='-fno-common'
7781 ;;
7782
Jon Dugan92864152010-09-20 21:50:12 +00007783 haiku*)
7784 # PIC is the default for Haiku.
7785 # The "-static" flag exists, but is broken.
7786 lt_prog_compiler_static=
7787 ;;
7788
Jon Dugane34c20c2010-07-08 23:26:52 +00007789 hpux*)
Jon Dugan92864152010-09-20 21:50:12 +00007790 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7791 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7792 # sets the default TLS model and affects inlining.
Jon Dugane34c20c2010-07-08 23:26:52 +00007793 case $host_cpu in
Jon Dugan92864152010-09-20 21:50:12 +00007794 hppa*64*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007795 # +Z the default
7796 ;;
7797 *)
7798 lt_prog_compiler_pic='-fPIC'
7799 ;;
7800 esac
7801 ;;
7802
7803 interix[3-9]*)
7804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7805 # Instead, we relocate shared libraries at runtime.
7806 ;;
7807
7808 msdosdjgpp*)
7809 # Just because we use GCC doesn't mean we suddenly get shared libraries
7810 # on systems that don't support them.
7811 lt_prog_compiler_can_build_shared=no
7812 enable_shared=no
7813 ;;
7814
7815 *nto* | *qnx*)
7816 # QNX uses GNU C++, but need to define -shared option too, otherwise
7817 # it will coredump.
7818 lt_prog_compiler_pic='-fPIC -shared'
7819 ;;
7820
7821 sysv4*MP*)
7822 if test -d /usr/nec; then
7823 lt_prog_compiler_pic=-Kconform_pic
7824 fi
7825 ;;
7826
7827 *)
7828 lt_prog_compiler_pic='-fPIC'
7829 ;;
7830 esac
Jon Dugan92864152010-09-20 21:50:12 +00007831
7832 case $cc_basename in
7833 nvcc*) # Cuda Compiler Driver 2.2
7834 lt_prog_compiler_wl='-Xlinker '
7835 lt_prog_compiler_pic='-Xcompiler -fPIC'
7836 ;;
7837 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007838 else
7839 # PORTME Check for flag to pass linker flags through the system compiler.
7840 case $host_os in
7841 aix*)
7842 lt_prog_compiler_wl='-Wl,'
7843 if test "$host_cpu" = ia64; then
7844 # AIX 5 now supports IA64 processor
7845 lt_prog_compiler_static='-Bstatic'
7846 else
7847 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7848 fi
7849 ;;
7850
Jon Dugan92864152010-09-20 21:50:12 +00007851 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007852 # This hack is so that the source file can tell whether it is being
7853 # built for inclusion in a dll (and should export symbols for example).
7854 lt_prog_compiler_pic='-DDLL_EXPORT'
7855 ;;
7856
7857 hpux9* | hpux10* | hpux11*)
7858 lt_prog_compiler_wl='-Wl,'
7859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7860 # not for PA HP-UX.
7861 case $host_cpu in
7862 hppa*64*|ia64*)
7863 # +Z the default
7864 ;;
7865 *)
7866 lt_prog_compiler_pic='+Z'
7867 ;;
7868 esac
7869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7870 lt_prog_compiler_static='${wl}-a ${wl}archive'
7871 ;;
7872
7873 irix5* | irix6* | nonstopux*)
7874 lt_prog_compiler_wl='-Wl,'
7875 # PIC (with -KPIC) is the default.
7876 lt_prog_compiler_static='-non_shared'
7877 ;;
7878
Jon Dugan92864152010-09-20 21:50:12 +00007879 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00007880 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00007881 # old Intel for x86_64 which still supported -KPIC.
7882 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_pic='-KPIC'
7885 lt_prog_compiler_static='-static'
7886 ;;
Jon Dugan92864152010-09-20 21:50:12 +00007887 # icc used to be incompatible with GCC.
7888 # ICC 10 doesn't accept -KPIC any more.
7889 icc* | ifort*)
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_pic='-fPIC'
7892 lt_prog_compiler_static='-static'
7893 ;;
7894 # Lahey Fortran 8.1.
7895 lf95*)
7896 lt_prog_compiler_wl='-Wl,'
7897 lt_prog_compiler_pic='--shared'
7898 lt_prog_compiler_static='--static'
7899 ;;
jef2ab386b2012-08-10 12:43:50 -07007900 nagfor*)
7901 # NAG Fortran compiler
7902 lt_prog_compiler_wl='-Wl,-Wl,,'
7903 lt_prog_compiler_pic='-PIC'
7904 lt_prog_compiler_static='-Bstatic'
7905 ;;
Jon Dugan92864152010-09-20 21:50:12 +00007906 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007907 # Portland Group compilers (*not* the Pentium gcc compiler,
7908 # which looks to be a dead project)
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-fpic'
7911 lt_prog_compiler_static='-Bstatic'
7912 ;;
7913 ccc*)
7914 lt_prog_compiler_wl='-Wl,'
7915 # All Alpha code is PIC.
7916 lt_prog_compiler_static='-non_shared'
7917 ;;
Jon Dugan92864152010-09-20 21:50:12 +00007918 xl* | bgxl* | bgf* | mpixl*)
7919 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jon Dugane34c20c2010-07-08 23:26:52 +00007920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-qpic'
7922 lt_prog_compiler_static='-qstaticlink'
7923 ;;
7924 *)
7925 case `$CC -V 2>&1 | sed 5q` in
Jon Dugan92864152010-09-20 21:50:12 +00007926 *Sun\ F* | *Sun*Fortran*)
7927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7928 lt_prog_compiler_pic='-KPIC'
7929 lt_prog_compiler_static='-Bstatic'
7930 lt_prog_compiler_wl=''
7931 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007932 *Sun\ C*)
7933 # Sun C 5.9
7934 lt_prog_compiler_pic='-KPIC'
7935 lt_prog_compiler_static='-Bstatic'
7936 lt_prog_compiler_wl='-Wl,'
7937 ;;
7938 esac
7939 ;;
7940 esac
7941 ;;
7942
7943 newsos6)
7944 lt_prog_compiler_pic='-KPIC'
7945 lt_prog_compiler_static='-Bstatic'
7946 ;;
7947
7948 *nto* | *qnx*)
7949 # QNX uses GNU C++, but need to define -shared option too, otherwise
7950 # it will coredump.
7951 lt_prog_compiler_pic='-fPIC -shared'
7952 ;;
7953
7954 osf3* | osf4* | osf5*)
7955 lt_prog_compiler_wl='-Wl,'
7956 # All OSF/1 code is PIC.
7957 lt_prog_compiler_static='-non_shared'
7958 ;;
7959
7960 rdos*)
7961 lt_prog_compiler_static='-non_shared'
7962 ;;
7963
7964 solaris*)
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00007968 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007969 lt_prog_compiler_wl='-Qoption ld ';;
7970 *)
7971 lt_prog_compiler_wl='-Wl,';;
7972 esac
7973 ;;
7974
7975 sunos4*)
7976 lt_prog_compiler_wl='-Qoption ld '
7977 lt_prog_compiler_pic='-PIC'
7978 lt_prog_compiler_static='-Bstatic'
7979 ;;
7980
7981 sysv4 | sysv4.2uw2* | sysv4.3*)
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_pic='-KPIC'
7984 lt_prog_compiler_static='-Bstatic'
7985 ;;
7986
7987 sysv4*MP*)
7988 if test -d /usr/nec ;then
7989 lt_prog_compiler_pic='-Kconform_pic'
7990 lt_prog_compiler_static='-Bstatic'
7991 fi
7992 ;;
7993
7994 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-Bstatic'
7998 ;;
7999
8000 unicos*)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_can_build_shared=no
8003 ;;
8004
8005 uts4*)
8006 lt_prog_compiler_pic='-pic'
8007 lt_prog_compiler_static='-Bstatic'
8008 ;;
8009
8010 *)
8011 lt_prog_compiler_can_build_shared=no
8012 ;;
8013 esac
8014 fi
8015
8016case $host_os in
8017 # For platforms which do not support PIC, -DPIC is meaningless:
8018 *djgpp*)
8019 lt_prog_compiler_pic=
8020 ;;
8021 *)
8022 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8023 ;;
8024esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008025
jef2ab386b2012-08-10 12:43:50 -07008026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8027$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8028if ${lt_cv_prog_compiler_pic+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030else
8031 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8034$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8035lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008036
8037#
8038# Check to make sure the PIC flag actually works.
8039#
8040if test -n "$lt_prog_compiler_pic"; then
Jon Dugan92864152010-09-20 21:50:12 +00008041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8042$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07008043if ${lt_cv_prog_compiler_pic_works+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00008044 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008045else
8046 lt_cv_prog_compiler_pic_works=no
8047 ac_outfile=conftest.$ac_objext
8048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8050 # Insert the option either (1) after the last *FLAGS variable, or
8051 # (2) before a word containing "conftest.", or (3) at the end.
8052 # Note that $ac_compile itself does not contain backslashes and begins
8053 # with a dollar sign (not a hyphen), so the echo should work correctly.
8054 # The option is referenced via a variable to avoid confusing sed.
8055 lt_compile=`echo "$ac_compile" | $SED \
8056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00008059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008060 (eval "$lt_compile" 2>conftest.err)
8061 ac_status=$?
8062 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00008063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008064 if (exit $ac_status) && test -s "$ac_outfile"; then
8065 # The compiler can only warn and ignore the option if not recognized
8066 # So say no if there are warnings other than the usual output.
Jon Dugan92864152010-09-20 21:50:12 +00008067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8070 lt_cv_prog_compiler_pic_works=yes
8071 fi
8072 fi
Jon Dugan92864152010-09-20 21:50:12 +00008073 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008074
8075fi
Jon Dugan92864152010-09-20 21:50:12 +00008076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8077$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008078
8079if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8080 case $lt_prog_compiler_pic in
8081 "" | " "*) ;;
8082 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8083 esac
8084else
8085 lt_prog_compiler_pic=
8086 lt_prog_compiler_can_build_shared=no
8087fi
8088
8089fi
8090
8091
8092
8093
8094
8095
jef2ab386b2012-08-10 12:43:50 -07008096
8097
8098
8099
8100
Jon Dugane34c20c2010-07-08 23:26:52 +00008101#
8102# Check to make sure the static flag actually works.
8103#
8104wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Jon Dugan92864152010-09-20 21:50:12 +00008105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8106$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07008107if ${lt_cv_prog_compiler_static_works+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00008108 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008109else
8110 lt_cv_prog_compiler_static_works=no
8111 save_LDFLAGS="$LDFLAGS"
8112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8115 # The linker can only warn and ignore the option if not recognized
8116 # So say no if there are warnings
8117 if test -s conftest.err; then
8118 # Append any errors to the config.log.
8119 cat conftest.err 1>&5
Jon Dugan92864152010-09-20 21:50:12 +00008120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122 if diff conftest.exp conftest.er2 >/dev/null; then
8123 lt_cv_prog_compiler_static_works=yes
8124 fi
8125 else
8126 lt_cv_prog_compiler_static_works=yes
8127 fi
8128 fi
8129 $RM -r conftest*
8130 LDFLAGS="$save_LDFLAGS"
8131
8132fi
Jon Dugan92864152010-09-20 21:50:12 +00008133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8134$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008135
8136if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8137 :
8138else
8139 lt_prog_compiler_static=
8140fi
8141
8142
8143
8144
8145
8146
8147
Jon Dugan92864152010-09-20 21:50:12 +00008148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07008150if ${lt_cv_prog_compiler_c_o+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00008151 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008152else
8153 lt_cv_prog_compiler_c_o=no
8154 $RM -r conftest 2>/dev/null
8155 mkdir conftest
8156 cd conftest
8157 mkdir out
8158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8159
8160 lt_compiler_flag="-o out/conftest2.$ac_objext"
8161 # Insert the option either (1) after the last *FLAGS variable, or
8162 # (2) before a word containing "conftest.", or (3) at the end.
8163 # Note that $ac_compile itself does not contain backslashes and begins
8164 # with a dollar sign (not a hyphen), so the echo should work correctly.
8165 lt_compile=`echo "$ac_compile" | $SED \
8166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8168 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00008169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008170 (eval "$lt_compile" 2>out/conftest.err)
8171 ac_status=$?
8172 cat out/conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00008173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8175 then
8176 # The compiler can only warn and ignore the option if not recognized
8177 # So say no if there are warnings
Jon Dugan92864152010-09-20 21:50:12 +00008178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8181 lt_cv_prog_compiler_c_o=yes
8182 fi
8183 fi
8184 chmod u+w . 2>&5
Jon Dugan92864152010-09-20 21:50:12 +00008185 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008186 # SGI C++ compiler will create directory out/ii_files/ for
8187 # template instantiation
8188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8189 $RM out/* && rmdir out
8190 cd ..
8191 $RM -r conftest
Jon Dugan92864152010-09-20 21:50:12 +00008192 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008193
8194fi
Jon Dugan92864152010-09-20 21:50:12 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8196$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008197
8198
8199
8200
8201
8202
Jon Dugan92864152010-09-20 21:50:12 +00008203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8204$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07008205if ${lt_cv_prog_compiler_c_o+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00008206 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008207else
8208 lt_cv_prog_compiler_c_o=no
8209 $RM -r conftest 2>/dev/null
8210 mkdir conftest
8211 cd conftest
8212 mkdir out
8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214
8215 lt_compiler_flag="-o out/conftest2.$ac_objext"
8216 # Insert the option either (1) after the last *FLAGS variable, or
8217 # (2) before a word containing "conftest.", or (3) at the end.
8218 # Note that $ac_compile itself does not contain backslashes and begins
8219 # with a dollar sign (not a hyphen), so the echo should work correctly.
8220 lt_compile=`echo "$ac_compile" | $SED \
8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00008224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008225 (eval "$lt_compile" 2>out/conftest.err)
8226 ac_status=$?
8227 cat out/conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00008228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8230 then
8231 # The compiler can only warn and ignore the option if not recognized
8232 # So say no if there are warnings
Jon Dugan92864152010-09-20 21:50:12 +00008233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8236 lt_cv_prog_compiler_c_o=yes
8237 fi
8238 fi
8239 chmod u+w . 2>&5
Jon Dugan92864152010-09-20 21:50:12 +00008240 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008241 # SGI C++ compiler will create directory out/ii_files/ for
8242 # template instantiation
8243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8244 $RM out/* && rmdir out
8245 cd ..
8246 $RM -r conftest
Jon Dugan92864152010-09-20 21:50:12 +00008247 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008248
8249fi
Jon Dugan92864152010-09-20 21:50:12 +00008250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8251$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008252
8253
8254
8255
8256hard_links="nottested"
8257if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8258 # do not overwrite the value of need_locks provided by the user
Jon Dugan92864152010-09-20 21:50:12 +00008259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8260$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008261 hard_links=yes
Jon Dugan92864152010-09-20 21:50:12 +00008262 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8264 touch conftest.a
8265 ln conftest.a conftest.b 2>&5 || hard_links=no
8266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jon Dugan92864152010-09-20 21:50:12 +00008267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8268$as_echo "$hard_links" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008269 if test "$hard_links" = no; then
Jon Dugan92864152010-09-20 21:50:12 +00008270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8271$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 +00008272 need_locks=warn
8273 fi
8274else
8275 need_locks=no
8276fi
8277
8278
8279
8280
8281
8282
Jon Dugan92864152010-09-20 21:50:12 +00008283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8284$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008285
8286 runpath_var=
8287 allow_undefined_flag=
8288 always_export_symbols=no
8289 archive_cmds=
8290 archive_expsym_cmds=
8291 compiler_needs_object=no
8292 enable_shared_with_static_runtimes=no
8293 export_dynamic_flag_spec=
8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8295 hardcode_automatic=no
8296 hardcode_direct=no
8297 hardcode_direct_absolute=no
8298 hardcode_libdir_flag_spec=
8299 hardcode_libdir_flag_spec_ld=
8300 hardcode_libdir_separator=
8301 hardcode_minus_L=no
8302 hardcode_shlibpath_var=unsupported
8303 inherit_rpath=no
8304 link_all_deplibs=unknown
8305 module_cmds=
8306 module_expsym_cmds=
8307 old_archive_from_new_cmds=
8308 old_archive_from_expsyms_cmds=
8309 thread_safe_flag_spec=
8310 whole_archive_flag_spec=
8311 # include_expsyms should be a list of space-separated symbols to be *always*
8312 # included in the symbol list
8313 include_expsyms=
8314 # exclude_expsyms can be an extended regexp of symbols to exclude
8315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8317 # as well as any symbol that contains `d'.
8318 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8320 # platforms (ab)use it in PIC code, but their linkers get confused if
8321 # the symbol is explicitly referenced. Since portable code cannot
8322 # rely on this symbol name, it's probably fine to never include it in
8323 # preloaded symbol tables.
8324 # Exclude shared library initialization/finalization symbols.
8325 extract_expsyms_cmds=
8326
8327 case $host_os in
Jon Dugan92864152010-09-20 21:50:12 +00008328 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8330 # When not using gcc, we currently assume that we are using
8331 # Microsoft Visual C++.
8332 if test "$GCC" != yes; then
8333 with_gnu_ld=no
8334 fi
8335 ;;
8336 interix*)
8337 # we just hope/assume this is gcc and not c89 (= MSVC++)
8338 with_gnu_ld=yes
8339 ;;
8340 openbsd*)
8341 with_gnu_ld=no
8342 ;;
8343 esac
8344
8345 ld_shlibs=yes
Jon Dugan92864152010-09-20 21:50:12 +00008346
8347 # On some targets, GNU ld is compatible enough with the native linker
8348 # that we're better off using the native interface for both.
8349 lt_use_gnu_ld_interface=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008350 if test "$with_gnu_ld" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00008351 case $host_os in
8352 aix*)
8353 # The AIX port of GNU ld has always aspired to compatibility
8354 # with the native linker. However, as the warning in the GNU ld
8355 # block says, versions before 2.19.5* couldn't really create working
8356 # shared libraries, regardless of the interface used.
8357 case `$LD -v 2>&1` in
8358 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8359 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8360 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8361 *)
8362 lt_use_gnu_ld_interface=yes
8363 ;;
8364 esac
8365 ;;
8366 *)
8367 lt_use_gnu_ld_interface=yes
8368 ;;
8369 esac
8370 fi
8371
8372 if test "$lt_use_gnu_ld_interface" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008373 # If archive_cmds runs LD, not CC, wlarc should be empty
8374 wlarc='${wl}'
8375
8376 # Set some defaults for GNU ld with shared library support. These
8377 # are reset later if shared libraries are not supported. Putting them
8378 # here allows them to be overridden if necessary.
8379 runpath_var=LD_RUN_PATH
8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381 export_dynamic_flag_spec='${wl}--export-dynamic'
8382 # ancient GNU ld didn't support --whole-archive et. al.
8383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8384 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8385 else
8386 whole_archive_flag_spec=
8387 fi
8388 supports_anon_versioning=no
8389 case `$LD -v 2>&1` in
Jon Dugan92864152010-09-20 21:50:12 +00008390 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8394 *\ 2.11.*) ;; # other 2.11 versions
8395 *) supports_anon_versioning=yes ;;
8396 esac
8397
8398 # See if GNU ld supports shared libraries.
8399 case $host_os in
8400 aix[3-9]*)
8401 # On AIX/PPC, the GNU linker is very broken
8402 if test "$host_cpu" != ia64; then
8403 ld_shlibs=no
8404 cat <<_LT_EOF 1>&2
8405
Jon Dugan92864152010-09-20 21:50:12 +00008406*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00008407*** to be unable to reliably create shared libraries on AIX.
8408*** Therefore, libtool is disabling shared libraries support. If you
Jon Dugan92864152010-09-20 21:50:12 +00008409*** really care for shared libraries, you may want to install binutils
8410*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8411*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00008412
8413_LT_EOF
8414 fi
8415 ;;
8416
8417 amigaos*)
8418 case $host_cpu in
8419 powerpc)
8420 # see comment about AmigaOS4 .so support
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds=''
8423 ;;
8424 m68k)
8425 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)'
8426 hardcode_libdir_flag_spec='-L$libdir'
8427 hardcode_minus_L=yes
8428 ;;
8429 esac
8430 ;;
8431
8432 beos*)
8433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8434 allow_undefined_flag=unsupported
8435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8436 # support --undefined. This deserves some investigation. FIXME
8437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 else
8439 ld_shlibs=no
8440 fi
8441 ;;
8442
Jon Dugan92864152010-09-20 21:50:12 +00008443 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008444 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8445 # as there is no search path for DLLs.
8446 hardcode_libdir_flag_spec='-L$libdir'
Jon Dugan92864152010-09-20 21:50:12 +00008447 export_dynamic_flag_spec='${wl}--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008448 allow_undefined_flag=unsupported
8449 always_export_symbols=no
8450 enable_shared_with_static_runtimes=yes
jef2ab386b2012-08-10 12:43:50 -07008451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8452 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Jon Dugane34c20c2010-07-08 23:26:52 +00008453
8454 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8456 # If the export-symbols file already is a .def file (1st line
8457 # is EXPORTS), use it as is; otherwise, prepend...
8458 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8459 cp $export_symbols $output_objdir/$soname.def;
8460 else
8461 echo EXPORTS > $output_objdir/$soname.def;
8462 cat $export_symbols >> $output_objdir/$soname.def;
8463 fi~
8464 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8465 else
8466 ld_shlibs=no
8467 fi
8468 ;;
8469
Jon Dugan92864152010-09-20 21:50:12 +00008470 haiku*)
8471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472 link_all_deplibs=yes
8473 ;;
8474
Jon Dugane34c20c2010-07-08 23:26:52 +00008475 interix[3-9]*)
8476 hardcode_direct=no
8477 hardcode_shlibpath_var=no
8478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8479 export_dynamic_flag_spec='${wl}-E'
8480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8481 # Instead, shared libraries are loaded at an image base (0x10000000 by
8482 # default) and relocated if they conflict, which is a slow very memory
8483 # consuming and fragmenting process. To avoid this, we pick a random,
8484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8487 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'
8488 ;;
8489
Jon Dugan92864152010-09-20 21:50:12 +00008490 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00008491 tmp_diet=no
8492 if test "$host_os" = linux-dietlibc; then
8493 case $cc_basename in
8494 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8495 esac
8496 fi
8497 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8498 && test "$tmp_diet" = no
8499 then
jef2ab386b2012-08-10 12:43:50 -07008500 tmp_addflag=' $pic_flag'
Jon Dugane34c20c2010-07-08 23:26:52 +00008501 tmp_sharedflag='-shared'
8502 case $cc_basename,$host_cpu in
8503 pgcc*) # Portland Group C compiler
Jon Dugan92864152010-09-20 21:50:12 +00008504 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008505 tmp_addflag=' $pic_flag'
8506 ;;
Jon Dugan92864152010-09-20 21:50:12 +00008507 pgf77* | pgf90* | pgf95* | pgfortran*)
8508 # Portland Group f77 and f90 compilers
8509 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008510 tmp_addflag=' $pic_flag -Mnomain' ;;
8511 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8512 tmp_addflag=' -i_dynamic' ;;
8513 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8514 tmp_addflag=' -i_dynamic -nofor_main' ;;
8515 ifc* | ifort*) # Intel Fortran compiler
8516 tmp_addflag=' -nofor_main' ;;
Jon Dugan92864152010-09-20 21:50:12 +00008517 lf95*) # Lahey Fortran 8.1
8518 whole_archive_flag_spec=
8519 tmp_sharedflag='--shared' ;;
8520 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jon Dugane34c20c2010-07-08 23:26:52 +00008521 tmp_sharedflag='-qmkshrobj'
8522 tmp_addflag= ;;
Jon Dugan92864152010-09-20 21:50:12 +00008523 nvcc*) # Cuda Compiler Driver 2.2
8524 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8525 compiler_needs_object=yes
8526 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008527 esac
8528 case `$CC -V 2>&1 | sed 5q` in
8529 *Sun\ C*) # Sun C 5.9
Jon Dugan92864152010-09-20 21:50:12 +00008530 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008531 compiler_needs_object=yes
8532 tmp_sharedflag='-G' ;;
8533 *Sun\ F*) # Sun Fortran 8.3
8534 tmp_sharedflag='-G' ;;
8535 esac
8536 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8537
8538 if test "x$supports_anon_versioning" = xyes; then
8539 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8541 echo "local: *; };" >> $output_objdir/$libname.ver~
8542 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8543 fi
8544
8545 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00008546 xlf* | bgf* | bgxlf* | mpixlf*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008547 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8548 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8549 hardcode_libdir_flag_spec=
8550 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Jon Dugan92864152010-09-20 21:50:12 +00008551 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008552 if test "x$supports_anon_versioning" = xyes; then
8553 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8554 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8555 echo "local: *; };" >> $output_objdir/$libname.ver~
Jon Dugan92864152010-09-20 21:50:12 +00008556 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008557 fi
8558 ;;
8559 esac
8560 else
8561 ld_shlibs=no
8562 fi
8563 ;;
8564
8565 netbsd*)
8566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8567 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8568 wlarc=
8569 else
jef2ab386b2012-08-10 12:43:50 -07008570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008572 fi
8573 ;;
8574
8575 solaris*)
8576 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8577 ld_shlibs=no
8578 cat <<_LT_EOF 1>&2
8579
8580*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8581*** create shared libraries on Solaris systems. Therefore, libtool
8582*** is disabling shared libraries support. We urge you to upgrade GNU
8583*** binutils to release 2.9.1 or newer. Another option is to modify
8584*** your PATH or compiler configuration so that the native linker is
8585*** used, and then restart.
8586
8587_LT_EOF
8588 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
jef2ab386b2012-08-10 12:43:50 -07008589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008591 else
8592 ld_shlibs=no
8593 fi
8594 ;;
8595
8596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8597 case `$LD -v 2>&1` in
8598 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8599 ld_shlibs=no
8600 cat <<_LT_EOF 1>&2
8601
8602*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8603*** reliably create shared libraries on SCO systems. Therefore, libtool
8604*** is disabling shared libraries support. We urge you to upgrade GNU
8605*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8606*** your PATH or compiler configuration so that the native linker is
8607*** used, and then restart.
8608
8609_LT_EOF
8610 ;;
8611 *)
8612 # For security reasons, it is highly recommended that you always
8613 # use absolute paths for naming shared libraries, and exclude the
8614 # DT_RUNPATH tag from executables and libraries. But doing so
8615 # requires that you compile everything twice, which is a pain.
8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 else
8621 ld_shlibs=no
8622 fi
8623 ;;
8624 esac
8625 ;;
8626
8627 sunos4*)
8628 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8629 wlarc=
8630 hardcode_direct=yes
8631 hardcode_shlibpath_var=no
8632 ;;
8633
8634 *)
8635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
jef2ab386b2012-08-10 12:43:50 -07008636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8637 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008638 else
8639 ld_shlibs=no
8640 fi
8641 ;;
8642 esac
8643
8644 if test "$ld_shlibs" = no; then
8645 runpath_var=
8646 hardcode_libdir_flag_spec=
8647 export_dynamic_flag_spec=
8648 whole_archive_flag_spec=
8649 fi
8650 else
8651 # PORTME fill in a description of your system's linker (not GNU ld)
8652 case $host_os in
8653 aix3*)
8654 allow_undefined_flag=unsupported
8655 always_export_symbols=yes
8656 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'
8657 # Note: this linker hardcodes the directories in LIBPATH if there
8658 # are no directories specified by -L.
8659 hardcode_minus_L=yes
8660 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8661 # Neither direct hardcoding nor static linking is supported with a
8662 # broken collect2.
8663 hardcode_direct=unsupported
8664 fi
8665 ;;
8666
8667 aix[4-9]*)
8668 if test "$host_cpu" = ia64; then
8669 # On IA64, the linker does run time linking by default, so we don't
8670 # have to do anything special.
8671 aix_use_runtimelinking=no
8672 exp_sym_flag='-Bexport'
8673 no_entry_flag=""
8674 else
8675 # If we're using GNU nm, then we don't want the "-C" option.
8676 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Jon Dugan92864152010-09-20 21:50:12 +00008677 # Also, AIX nm treats weak defined symbols like other global
8678 # defined symbols, whereas GNU nm marks them as "W".
Jon Dugane34c20c2010-07-08 23:26:52 +00008679 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +00008680 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008681 else
8682 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'
8683 fi
8684 aix_use_runtimelinking=no
8685
8686 # Test if we are trying to use run time linking or normal
8687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8688 # need to do runtime linking.
8689 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8690 for ld_flag in $LDFLAGS; do
8691 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8692 aix_use_runtimelinking=yes
8693 break
8694 fi
8695 done
8696 ;;
8697 esac
8698
8699 exp_sym_flag='-bexport'
8700 no_entry_flag='-bnoentry'
8701 fi
8702
8703 # When large executables or shared objects are built, AIX ld can
8704 # have problems creating the table of contents. If linking a library
8705 # or program results in "error TOC overflow" add -mminimal-toc to
8706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8708
8709 archive_cmds=''
8710 hardcode_direct=yes
8711 hardcode_direct_absolute=yes
8712 hardcode_libdir_separator=':'
8713 link_all_deplibs=yes
8714 file_list_spec='${wl}-f,'
8715
8716 if test "$GCC" = yes; then
8717 case $host_os in aix4.[012]|aix4.[012].*)
8718 # We only want to do this on AIX 4.2 and lower, the check
8719 # below for broken collect2 doesn't work under 4.3+
8720 collect2name=`${CC} -print-prog-name=collect2`
8721 if test -f "$collect2name" &&
8722 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8723 then
8724 # We have reworked collect2
8725 :
8726 else
8727 # We have old collect2
8728 hardcode_direct=unsupported
8729 # It fails to find uninstalled libraries when the uninstalled
8730 # path is not listed in the libpath. Setting hardcode_minus_L
8731 # to unsupported forces relinking
8732 hardcode_minus_L=yes
8733 hardcode_libdir_flag_spec='-L$libdir'
8734 hardcode_libdir_separator=
8735 fi
8736 ;;
8737 esac
8738 shared_flag='-shared'
8739 if test "$aix_use_runtimelinking" = yes; then
8740 shared_flag="$shared_flag "'${wl}-G'
8741 fi
8742 else
8743 # not using gcc
8744 if test "$host_cpu" = ia64; then
8745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8746 # chokes on -Wl,-G. The following line is correct:
8747 shared_flag='-G'
8748 else
8749 if test "$aix_use_runtimelinking" = yes; then
8750 shared_flag='${wl}-G'
8751 else
8752 shared_flag='${wl}-bM:SRE'
8753 fi
8754 fi
8755 fi
8756
Jon Dugan92864152010-09-20 21:50:12 +00008757 export_dynamic_flag_spec='${wl}-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00008758 # It seems that -bexpall does not export symbols beginning with
8759 # underscore (_), so it is better to generate a list of symbols to export.
8760 always_export_symbols=yes
8761 if test "$aix_use_runtimelinking" = yes; then
8762 # Warning - without using the other runtime loading flags (-brtl),
8763 # -berok will link without error, but may produce a broken library.
8764 allow_undefined_flag='-berok'
8765 # Determine the default libpath from the value encoded in an
8766 # empty executable.
jef2ab386b2012-08-10 12:43:50 -07008767 if test "${lt_cv_aix_libpath+set}" = set; then
8768 aix_libpath=$lt_cv_aix_libpath
8769else
8770 if ${lt_cv_aix_libpath_+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772else
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008774/* end confdefs.h. */
8775
8776int
8777main ()
8778{
8779
8780 ;
8781 return 0;
8782}
8783_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00008784if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00008785
jef2ab386b2012-08-10 12:43:50 -07008786 lt_aix_libpath_sed='
8787 /Import File Strings/,/^$/ {
8788 /^0/ {
8789 s/^0 *\([^ ]*\) *$/\1/
8790 p
8791 }
8792 }'
8793 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8794 # Check for a 64-bit object if we didn't find anything.
8795 if test -z "$lt_cv_aix_libpath_"; then
8796 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8797 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008798fi
Jon Dugan92864152010-09-20 21:50:12 +00008799rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
jef2ab386b2012-08-10 12:43:50 -07008801 if test -z "$lt_cv_aix_libpath_"; then
8802 lt_cv_aix_libpath_="/usr/lib:/lib"
8803 fi
8804
8805fi
8806
8807 aix_libpath=$lt_cv_aix_libpath_
8808fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008809
8810 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Jon Dugan92864152010-09-20 21:50:12 +00008811 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Jon Dugane34c20c2010-07-08 23:26:52 +00008812 else
8813 if test "$host_cpu" = ia64; then
8814 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8815 allow_undefined_flag="-z nodefs"
8816 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"
8817 else
8818 # Determine the default libpath from the value encoded in an
8819 # empty executable.
jef2ab386b2012-08-10 12:43:50 -07008820 if test "${lt_cv_aix_libpath+set}" = set; then
8821 aix_libpath=$lt_cv_aix_libpath
8822else
8823 if ${lt_cv_aix_libpath_+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008827/* end confdefs.h. */
8828
8829int
8830main ()
8831{
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00008837if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00008838
jef2ab386b2012-08-10 12:43:50 -07008839 lt_aix_libpath_sed='
8840 /Import File Strings/,/^$/ {
8841 /^0/ {
8842 s/^0 *\([^ ]*\) *$/\1/
8843 p
8844 }
8845 }'
8846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847 # Check for a 64-bit object if we didn't find anything.
8848 if test -z "$lt_cv_aix_libpath_"; then
8849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008851fi
Jon Dugan92864152010-09-20 21:50:12 +00008852rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
jef2ab386b2012-08-10 12:43:50 -07008854 if test -z "$lt_cv_aix_libpath_"; then
8855 lt_cv_aix_libpath_="/usr/lib:/lib"
8856 fi
8857
8858fi
8859
8860 aix_libpath=$lt_cv_aix_libpath_
8861fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008862
8863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8864 # Warning - without using the other run time loading flags,
8865 # -berok will link without error, but may produce a broken library.
8866 no_undefined_flag=' ${wl}-bernotok'
8867 allow_undefined_flag=' ${wl}-berok'
Jon Dugan92864152010-09-20 21:50:12 +00008868 if test "$with_gnu_ld" = yes; then
8869 # We only use this code for GNU lds that support --whole-archive.
8870 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8871 else
8872 # Exported symbols can be pulled into shared objects from archives
8873 whole_archive_flag_spec='$convenience'
8874 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008875 archive_cmds_need_lc=yes
8876 # This is similar to how AIX traditionally builds its shared libraries.
8877 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'
8878 fi
8879 fi
8880 ;;
8881
8882 amigaos*)
8883 case $host_cpu in
8884 powerpc)
8885 # see comment about AmigaOS4 .so support
8886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 archive_expsym_cmds=''
8888 ;;
8889 m68k)
8890 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)'
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_minus_L=yes
8893 ;;
8894 esac
8895 ;;
8896
8897 bsdi[45]*)
8898 export_dynamic_flag_spec=-rdynamic
8899 ;;
8900
Jon Dugan92864152010-09-20 21:50:12 +00008901 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008902 # When not using gcc, we currently assume that we are using
8903 # Microsoft Visual C++.
8904 # hardcode_libdir_flag_spec is actually meaningless, as there is
8905 # no search path for DLLs.
jef2ab386b2012-08-10 12:43:50 -07008906 case $cc_basename in
8907 cl*)
8908 # Native MSVC
8909 hardcode_libdir_flag_spec=' '
8910 allow_undefined_flag=unsupported
8911 always_export_symbols=yes
8912 file_list_spec='@'
8913 # Tell ltmain to make .lib files, not .a files.
8914 libext=lib
8915 # Tell ltmain to make .dll files, not .so files.
8916 shrext_cmds=".dll"
8917 # FIXME: Setting linknames here is a bad hack.
8918 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8919 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8920 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8921 else
8922 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8923 fi~
8924 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8925 linknames='
8926 # The linker will not automatically build a static lib if we build a DLL.
8927 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8928 enable_shared_with_static_runtimes=yes
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8930 # Don't use ranlib
8931 old_postinstall_cmds='chmod 644 $oldlib'
8932 postlink_cmds='lt_outputfile="@OUTPUT@"~
8933 lt_tool_outputfile="@TOOL_OUTPUT@"~
8934 case $lt_outputfile in
8935 *.exe|*.EXE) ;;
8936 *)
8937 lt_outputfile="$lt_outputfile.exe"
8938 lt_tool_outputfile="$lt_tool_outputfile.exe"
8939 ;;
8940 esac~
8941 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8942 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8943 $RM "$lt_outputfile.manifest";
8944 fi'
8945 ;;
8946 *)
8947 # Assume MSVC wrapper
8948 hardcode_libdir_flag_spec=' '
8949 allow_undefined_flag=unsupported
8950 # Tell ltmain to make .lib files, not .a files.
8951 libext=lib
8952 # Tell ltmain to make .dll files, not .so files.
8953 shrext_cmds=".dll"
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8956 # The linker will automatically build a .lib file if we build a DLL.
8957 old_archive_from_new_cmds='true'
8958 # FIXME: Should let the user specify the lib program.
8959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8960 enable_shared_with_static_runtimes=yes
8961 ;;
8962 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008963 ;;
8964
8965 darwin* | rhapsody*)
8966
8967
8968 archive_cmds_need_lc=no
8969 hardcode_direct=no
8970 hardcode_automatic=yes
8971 hardcode_shlibpath_var=unsupported
Jon Dugan92864152010-09-20 21:50:12 +00008972 if test "$lt_cv_ld_force_load" = "yes"; then
8973 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8974 else
8975 whole_archive_flag_spec=''
8976 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008977 link_all_deplibs=yes
8978 allow_undefined_flag="$_lt_dar_allow_undefined"
Jon Dugan92864152010-09-20 21:50:12 +00008979 case $cc_basename in
8980 ifort*) _lt_dar_can_shared=yes ;;
8981 *) _lt_dar_can_shared=$GCC ;;
8982 esac
8983 if test "$_lt_dar_can_shared" = "yes"; then
8984 output_verbose_link_cmd=func_echo_all
Jon Dugane34c20c2010-07-08 23:26:52 +00008985 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8986 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8987 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8988 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8989
8990 else
8991 ld_shlibs=no
8992 fi
8993
8994 ;;
8995
8996 dgux*)
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_libdir_flag_spec='-L$libdir'
8999 hardcode_shlibpath_var=no
9000 ;;
9001
9002 freebsd1*)
9003 ld_shlibs=no
9004 ;;
9005
9006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9007 # support. Future versions do this automatically, but an explicit c++rt0.o
9008 # does not break anything, and helps significantly (at the cost of a little
9009 # extra space).
9010 freebsd2.2*)
9011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9012 hardcode_libdir_flag_spec='-R$libdir'
9013 hardcode_direct=yes
9014 hardcode_shlibpath_var=no
9015 ;;
9016
9017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9018 freebsd2*)
9019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9020 hardcode_direct=yes
9021 hardcode_minus_L=yes
9022 hardcode_shlibpath_var=no
9023 ;;
9024
9025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9026 freebsd* | dragonfly*)
jef2ab386b2012-08-10 12:43:50 -07009027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009028 hardcode_libdir_flag_spec='-R$libdir'
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 hpux9*)
9034 if test "$GCC" = yes; then
jef2ab386b2012-08-10 12:43:50 -07009035 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${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 +00009036 else
9037 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'
9038 fi
9039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9040 hardcode_libdir_separator=:
9041 hardcode_direct=yes
9042
9043 # hardcode_minus_L: Not really in the search PATH,
9044 # but as the default location of the library.
9045 hardcode_minus_L=yes
9046 export_dynamic_flag_spec='${wl}-E'
9047 ;;
9048
9049 hpux10*)
Jon Dugan92864152010-09-20 21:50:12 +00009050 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
jef2ab386b2012-08-10 12:43:50 -07009051 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009052 else
9053 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9054 fi
9055 if test "$with_gnu_ld" = no; then
9056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9057 hardcode_libdir_flag_spec_ld='+b $libdir'
9058 hardcode_libdir_separator=:
9059 hardcode_direct=yes
9060 hardcode_direct_absolute=yes
9061 export_dynamic_flag_spec='${wl}-E'
9062 # hardcode_minus_L: Not really in the search PATH,
9063 # but as the default location of the library.
9064 hardcode_minus_L=yes
9065 fi
9066 ;;
9067
9068 hpux11*)
Jon Dugan92864152010-09-20 21:50:12 +00009069 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009070 case $host_cpu in
9071 hppa*64*)
9072 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 ;;
9074 ia64*)
jef2ab386b2012-08-10 12:43:50 -07009075 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009076 ;;
9077 *)
jef2ab386b2012-08-10 12:43:50 -07009078 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009079 ;;
9080 esac
9081 else
9082 case $host_cpu in
9083 hppa*64*)
9084 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 ;;
9086 ia64*)
9087 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9088 ;;
9089 *)
Jon Dugan92864152010-09-20 21:50:12 +00009090
9091 # Older versions of the 11.00 compiler do not understand -b yet
9092 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9094$as_echo_n "checking if $CC understands -b... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07009095if ${lt_cv_prog_compiler__b+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00009096 $as_echo_n "(cached) " >&6
9097else
9098 lt_cv_prog_compiler__b=no
9099 save_LDFLAGS="$LDFLAGS"
9100 LDFLAGS="$LDFLAGS -b"
9101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9103 # The linker can only warn and ignore the option if not recognized
9104 # So say no if there are warnings
9105 if test -s conftest.err; then
9106 # Append any errors to the config.log.
9107 cat conftest.err 1>&5
9108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9110 if diff conftest.exp conftest.er2 >/dev/null; then
9111 lt_cv_prog_compiler__b=yes
9112 fi
9113 else
9114 lt_cv_prog_compiler__b=yes
9115 fi
9116 fi
9117 $RM -r conftest*
9118 LDFLAGS="$save_LDFLAGS"
9119
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9122$as_echo "$lt_cv_prog_compiler__b" >&6; }
9123
9124if test x"$lt_cv_prog_compiler__b" = xyes; then
9125 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9126else
9127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9128fi
9129
Jon Dugane34c20c2010-07-08 23:26:52 +00009130 ;;
9131 esac
9132 fi
9133 if test "$with_gnu_ld" = no; then
9134 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9135 hardcode_libdir_separator=:
9136
9137 case $host_cpu in
9138 hppa*64*|ia64*)
9139 hardcode_direct=no
9140 hardcode_shlibpath_var=no
9141 ;;
9142 *)
9143 hardcode_direct=yes
9144 hardcode_direct_absolute=yes
9145 export_dynamic_flag_spec='${wl}-E'
9146
9147 # hardcode_minus_L: Not really in the search PATH,
9148 # but as the default location of the library.
9149 hardcode_minus_L=yes
9150 ;;
9151 esac
9152 fi
9153 ;;
9154
9155 irix5* | irix6* | nonstopux*)
9156 if test "$GCC" = yes; then
jef2ab386b2012-08-10 12:43:50 -07009157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009158 # Try to use the -exported_symbol ld option, if it does not
9159 # work, assume that -exports_file does not work either and
9160 # implicitly export all symbols.
jef2ab386b2012-08-10 12:43:50 -07009161 # This should be the same for all languages, so no per-tag cache variable.
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9163$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9164if ${lt_cv_irix_exported_symbol+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166else
9167 save_LDFLAGS="$LDFLAGS"
9168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00009170/* end confdefs.h. */
jef2ab386b2012-08-10 12:43:50 -07009171int foo (void) { return 0; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009172_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00009173if ac_fn_c_try_link "$LINENO"; then :
jef2ab386b2012-08-10 12:43:50 -07009174 lt_cv_irix_exported_symbol=yes
9175else
9176 lt_cv_irix_exported_symbol=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009177fi
Jon Dugan92864152010-09-20 21:50:12 +00009178rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
jef2ab386b2012-08-10 12:43:50 -07009180 LDFLAGS="$save_LDFLAGS"
9181fi
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9183$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9184 if test "$lt_cv_irix_exported_symbol" = yes; then
9185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9186 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009187 else
Jon Dugan92864152010-09-20 21:50:12 +00009188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009190 fi
9191 archive_cmds_need_lc='no'
9192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9193 hardcode_libdir_separator=:
9194 inherit_rpath=yes
9195 link_all_deplibs=yes
9196 ;;
9197
9198 netbsd*)
9199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9201 else
9202 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9203 fi
9204 hardcode_libdir_flag_spec='-R$libdir'
9205 hardcode_direct=yes
9206 hardcode_shlibpath_var=no
9207 ;;
9208
9209 newsos6)
9210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_direct=yes
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 hardcode_libdir_separator=:
9214 hardcode_shlibpath_var=no
9215 ;;
9216
9217 *nto* | *qnx*)
9218 ;;
9219
9220 openbsd*)
9221 if test -f /usr/libexec/ld.so; then
9222 hardcode_direct=yes
9223 hardcode_shlibpath_var=no
9224 hardcode_direct_absolute=yes
9225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9227 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9229 export_dynamic_flag_spec='${wl}-E'
9230 else
9231 case $host_os in
9232 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_libdir_flag_spec='-R$libdir'
9235 ;;
9236 *)
9237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9239 ;;
9240 esac
9241 fi
9242 else
9243 ld_shlibs=no
9244 fi
9245 ;;
9246
9247 os2*)
9248 hardcode_libdir_flag_spec='-L$libdir'
9249 hardcode_minus_L=yes
9250 allow_undefined_flag=unsupported
Jon Dugan92864152010-09-20 21:50:12 +00009251 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009252 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9253 ;;
9254
9255 osf3*)
9256 if test "$GCC" = yes; then
9257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Jon Dugan92864152010-09-20 21:50:12 +00009258 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009259 else
9260 allow_undefined_flag=' -expect_unresolved \*'
Jon Dugan92864152010-09-20 21:50:12 +00009261 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009262 fi
9263 archive_cmds_need_lc='no'
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 hardcode_libdir_separator=:
9266 ;;
9267
9268 osf4* | osf5*) # as osf3* with the addition of -msym flag
9269 if test "$GCC" = yes; then
9270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jef2ab386b2012-08-10 12:43:50 -07009271 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273 else
9274 allow_undefined_flag=' -expect_unresolved \*'
Jon Dugan92864152010-09-20 21:50:12 +00009275 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009276 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Jon Dugan92864152010-09-20 21:50:12 +00009277 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +00009278
9279 # Both c and cxx compiler support -rpath directly
9280 hardcode_libdir_flag_spec='-rpath $libdir'
9281 fi
9282 archive_cmds_need_lc='no'
9283 hardcode_libdir_separator=:
9284 ;;
9285
9286 solaris*)
9287 no_undefined_flag=' -z defs'
9288 if test "$GCC" = yes; then
9289 wlarc='${wl}'
jef2ab386b2012-08-10 12:43:50 -07009290 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
jef2ab386b2012-08-10 12:43:50 -07009292 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +00009293 else
9294 case `$CC -V 2>&1` in
9295 *"Compilers 5.0"*)
9296 wlarc=''
9297 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9300 ;;
9301 *)
9302 wlarc='${wl}'
9303 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9305 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9306 ;;
9307 esac
9308 fi
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_shlibpath_var=no
9311 case $host_os in
9312 solaris2.[0-5] | solaris2.[0-5].*) ;;
9313 *)
9314 # The compiler driver will combine and reorder linker options,
9315 # but understands `-z linker_flag'. GCC discards it without `$wl',
9316 # but is careful enough not to reorder.
9317 # Supported since Solaris 2.6 (maybe 2.5.1?)
9318 if test "$GCC" = yes; then
9319 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9320 else
9321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9322 fi
9323 ;;
9324 esac
9325 link_all_deplibs=yes
9326 ;;
9327
9328 sunos4*)
9329 if test "x$host_vendor" = xsequent; then
9330 # Use $CC to link under sequent, because it throws in some extra .o
9331 # files that make .init and .fini sections work.
9332 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9333 else
9334 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9335 fi
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_direct=yes
9338 hardcode_minus_L=yes
9339 hardcode_shlibpath_var=no
9340 ;;
9341
9342 sysv4)
9343 case $host_vendor in
9344 sni)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_direct=yes # is this really true???
9347 ;;
9348 siemens)
9349 ## LD is ld it makes a PLAMLIB
9350 ## CC just makes a GrossModule.
9351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9352 reload_cmds='$CC -r -o $output$reload_objs'
9353 hardcode_direct=no
9354 ;;
9355 motorola)
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9358 ;;
9359 esac
9360 runpath_var='LD_RUN_PATH'
9361 hardcode_shlibpath_var=no
9362 ;;
9363
9364 sysv4.3*)
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_shlibpath_var=no
9367 export_dynamic_flag_spec='-Bexport'
9368 ;;
9369
9370 sysv4*MP*)
9371 if test -d /usr/nec; then
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_shlibpath_var=no
9374 runpath_var=LD_RUN_PATH
9375 hardcode_runpath_var=yes
9376 ld_shlibs=yes
9377 fi
9378 ;;
9379
9380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9381 no_undefined_flag='${wl}-z,text'
9382 archive_cmds_need_lc=no
9383 hardcode_shlibpath_var=no
9384 runpath_var='LD_RUN_PATH'
9385
9386 if test "$GCC" = yes; then
9387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 else
9390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 fi
9393 ;;
9394
9395 sysv5* | sco3.2v5* | sco5v6*)
9396 # Note: We can NOT use -z defs as we might desire, because we do not
9397 # link with -lc, and that would cause any symbols used from libc to
9398 # always be unresolved, which means just about no library would
9399 # ever link correctly. If we're not using GNU ld we use -z text
9400 # though, which does catch some bad symbols but isn't as heavy-handed
9401 # as -z defs.
9402 no_undefined_flag='${wl}-z,text'
9403 allow_undefined_flag='${wl}-z,nodefs'
9404 archive_cmds_need_lc=no
9405 hardcode_shlibpath_var=no
9406 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9407 hardcode_libdir_separator=':'
9408 link_all_deplibs=yes
9409 export_dynamic_flag_spec='${wl}-Bexport'
9410 runpath_var='LD_RUN_PATH'
9411
9412 if test "$GCC" = yes; then
9413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 else
9416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 fi
9419 ;;
9420
9421 uts4*)
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_shlibpath_var=no
9425 ;;
9426
9427 *)
9428 ld_shlibs=no
9429 ;;
9430 esac
9431
9432 if test x$host_vendor = xsni; then
9433 case $host in
9434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9435 export_dynamic_flag_spec='${wl}-Blargedynsym'
9436 ;;
9437 esac
9438 fi
9439 fi
9440
Jon Dugan92864152010-09-20 21:50:12 +00009441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9442$as_echo "$ld_shlibs" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009443test "$ld_shlibs" = no && can_build_shared=no
9444
9445with_gnu_ld=$with_gnu_ld
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461#
9462# Do we need to explicitly link libc?
9463#
9464case "x$archive_cmds_need_lc" in
9465x|xyes)
9466 # Assume -lc should be added
9467 archive_cmds_need_lc=yes
9468
9469 if test "$enable_shared" = yes && test "$GCC" = yes; then
9470 case $archive_cmds in
9471 *'~'*)
9472 # FIXME: we may have to deal with multi-command sequences.
9473 ;;
9474 '$CC '*)
9475 # Test whether the compiler implicitly links with -lc since on some
9476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9477 # to ld, don't add -lc before -lgcc.
Jon Dugan92864152010-09-20 21:50:12 +00009478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9479$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
jef2ab386b2012-08-10 12:43:50 -07009480if ${lt_cv_archive_cmds_need_lc+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +00009481 $as_echo_n "(cached) " >&6
9482else
9483 $RM conftest*
9484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009485
Jon Dugan92864152010-09-20 21:50:12 +00009486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009487 (eval $ac_compile) 2>&5
9488 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00009489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; } 2>conftest.err; then
9491 soname=conftest
9492 lib=conftest
9493 libobjs=conftest.$ac_objext
9494 deplibs=
9495 wl=$lt_prog_compiler_wl
9496 pic_flag=$lt_prog_compiler_pic
9497 compiler_flags=-v
9498 linker_flags=-v
9499 verstring=
9500 output_objdir=.
9501 libname=conftest
9502 lt_save_allow_undefined_flag=$allow_undefined_flag
9503 allow_undefined_flag=
9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009505 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9506 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00009507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9508 test $ac_status = 0; }
9509 then
9510 lt_cv_archive_cmds_need_lc=no
9511 else
9512 lt_cv_archive_cmds_need_lc=yes
9513 fi
9514 allow_undefined_flag=$lt_save_allow_undefined_flag
9515 else
9516 cat conftest.err 1>&5
9517 fi
9518 $RM conftest*
9519
9520fi
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9522$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9523 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +00009524 ;;
9525 esac
9526 fi
9527 ;;
9528esac
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
Jon Dugan92864152010-09-20 21:50:12 +00009686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9687$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009688
9689if test "$GCC" = yes; then
9690 case $host_os in
9691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9692 *) lt_awk_arg="/^libraries:/" ;;
9693 esac
Jon Dugan92864152010-09-20 21:50:12 +00009694 case $host_os in
9695 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9696 *) lt_sed_strip_eq="s,=/,/,g" ;;
9697 esac
9698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9699 case $lt_search_path_spec in
9700 *\;*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009701 # if the path contains ";" then we assume it to be the separator
9702 # otherwise default to the standard path separator (i.e. ":") - it is
9703 # assumed that no part of a normal pathname contains ";" but that should
9704 # okay in the real world where ";" in dirpaths is itself problematic.
Jon Dugan92864152010-09-20 21:50:12 +00009705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9706 ;;
9707 *)
9708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9709 ;;
9710 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009711 # Ok, now we have the path, separated by spaces, we can step through it
9712 # and add multilib dir if necessary.
9713 lt_tmp_lt_search_path_spec=
9714 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9715 for lt_sys_path in $lt_search_path_spec; do
9716 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9718 else
9719 test -d "$lt_sys_path" && \
9720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9721 fi
9722 done
Jon Dugan92864152010-09-20 21:50:12 +00009723 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Jon Dugane34c20c2010-07-08 23:26:52 +00009724BEGIN {RS=" "; FS="/|\n";} {
9725 lt_foo="";
9726 lt_count=0;
9727 for (lt_i = NF; lt_i > 0; lt_i--) {
9728 if ($lt_i != "" && $lt_i != ".") {
9729 if ($lt_i == "..") {
9730 lt_count++;
9731 } else {
9732 if (lt_count == 0) {
9733 lt_foo="/" $lt_i lt_foo;
9734 } else {
9735 lt_count--;
9736 }
9737 }
9738 }
9739 }
9740 if (lt_foo != "") { lt_freq[lt_foo]++; }
9741 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9742}'`
Jon Dugan92864152010-09-20 21:50:12 +00009743 # AWK program above erroneously prepends '/' to C:/dos/paths
9744 # for these hosts.
9745 case $host_os in
9746 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9747 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9748 esac
9749 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jon Dugane34c20c2010-07-08 23:26:52 +00009750else
9751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9752fi
9753library_names_spec=
9754libname_spec='lib$name'
9755soname_spec=
9756shrext_cmds=".so"
9757postinstall_cmds=
9758postuninstall_cmds=
9759finish_cmds=
9760finish_eval=
9761shlibpath_var=
9762shlibpath_overrides_runpath=unknown
9763version_type=none
9764dynamic_linker="$host_os ld.so"
9765sys_lib_dlsearch_path_spec="/lib /usr/lib"
9766need_lib_prefix=unknown
9767hardcode_into_libs=no
9768
9769# when you set need_version to no, make sure it does not cause -set_version
9770# flags to be left without arguments
9771need_version=unknown
9772
9773case $host_os in
9774aix3*)
9775 version_type=linux
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9777 shlibpath_var=LIBPATH
9778
9779 # AIX 3 has no versioning support, so we append a major version to the name.
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 ;;
9782
9783aix[4-9]*)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 hardcode_into_libs=yes
9788 if test "$host_cpu" = ia64; then
9789 # AIX 5 supports IA64
9790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 else
9793 # With GCC up to 2.95.x, collect2 would create an import file
9794 # for dependence libraries. The import file would start with
9795 # the line `#! .'. This would cause the generated library to
9796 # depend on `.', always an invalid library. This was fixed in
9797 # development snapshots of GCC prior to 3.0.
9798 case $host_os in
9799 aix4 | aix4.[01] | aix4.[01].*)
9800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9801 echo ' yes '
9802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9803 :
9804 else
9805 can_build_shared=no
9806 fi
9807 ;;
9808 esac
9809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9810 # soname into executable. Probably we can add versioning support to
9811 # collect2, so additional links can be useful in future.
9812 if test "$aix_use_runtimelinking" = yes; then
9813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9814 # instead of lib<name>.a to let people know that these are not
9815 # typical AIX shared libraries.
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 else
9818 # We preserve .a as extension for shared libraries through AIX4.2
9819 # and later when we are not doing run time linking.
9820 library_names_spec='${libname}${release}.a $libname.a'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 fi
9823 shlibpath_var=LIBPATH
9824 fi
9825 ;;
9826
9827amigaos*)
9828 case $host_cpu in
9829 powerpc)
9830 # Since July 2007 AmigaOS4 officially supports .so libraries.
9831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 ;;
9834 m68k)
9835 library_names_spec='$libname.ixlibrary $libname.a'
9836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Jon Dugan92864152010-09-20 21:50:12 +00009837 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Jon Dugane34c20c2010-07-08 23:26:52 +00009838 ;;
9839 esac
9840 ;;
9841
9842beos*)
9843 library_names_spec='${libname}${shared_ext}'
9844 dynamic_linker="$host_os ld.so"
9845 shlibpath_var=LIBRARY_PATH
9846 ;;
9847
9848bsdi[45]*)
9849 version_type=linux
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857 # the default ld.so.conf also contains /usr/contrib/lib and
9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859 # libtool to hard-code these into programs
9860 ;;
9861
Jon Dugan92864152010-09-20 21:50:12 +00009862cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009863 version_type=windows
9864 shrext_cmds=".dll"
9865 need_version=no
9866 need_lib_prefix=no
9867
jef2ab386b2012-08-10 12:43:50 -07009868 case $GCC,$cc_basename in
9869 yes,*)
9870 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +00009871 library_names_spec='$libname.dll.a'
9872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9873 postinstall_cmds='base_file=`basename \${file}`~
9874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9875 dldir=$destdir/`dirname \$dlpath`~
9876 test -d \$dldir || mkdir -p \$dldir~
9877 $install_prog $dir/$dlname \$dldir/$dlname~
9878 chmod a+x \$dldir/$dlname~
9879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9881 fi'
9882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9883 dlpath=$dir/\$dldll~
9884 $RM \$dlpath'
9885 shlibpath_overrides_runpath=yes
9886
9887 case $host_os in
9888 cygwin*)
9889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Jon Dugan92864152010-09-20 21:50:12 +00009891
9892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +00009893 ;;
Jon Dugan92864152010-09-20 21:50:12 +00009894 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009895 # MinGW DLLs use traditional 'lib' prefix
9896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9897 ;;
9898 pw32*)
9899 # pw32 DLLs use 'pw' prefix rather than 'lib'
9900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901 ;;
9902 esac
jef2ab386b2012-08-10 12:43:50 -07009903 dynamic_linker='Win32 ld.exe'
9904 ;;
9905
9906 *,cl*)
9907 # Native MSVC
9908 libname_spec='$name'
9909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910 library_names_spec='${libname}.dll.lib'
9911
9912 case $build_os in
9913 mingw*)
9914 sys_lib_search_path_spec=
9915 lt_save_ifs=$IFS
9916 IFS=';'
9917 for lt_path in $LIB
9918 do
9919 IFS=$lt_save_ifs
9920 # Let DOS variable expansion print the short 8.3 style file name.
9921 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9922 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9923 done
9924 IFS=$lt_save_ifs
9925 # Convert to MSYS style.
9926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9927 ;;
9928 cygwin*)
9929 # Convert to unix form, then to dos form, then back to unix form
9930 # but this time dos style (no spaces!) so that the unix form looks
9931 # like /cygdrive/c/PROGRA~1:/cygdr...
9932 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9933 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9934 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9935 ;;
9936 *)
9937 sys_lib_search_path_spec="$LIB"
9938 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9939 # It is most probably a Windows format PATH.
9940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9941 else
9942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9943 fi
9944 # FIXME: find the short name or the path components, as spaces are
9945 # common. (e.g. "Program Files" -> "PROGRA~1")
9946 ;;
9947 esac
9948
9949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9950 postinstall_cmds='base_file=`basename \${file}`~
9951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9952 dldir=$destdir/`dirname \$dlpath`~
9953 test -d \$dldir || mkdir -p \$dldir~
9954 $install_prog $dir/$dlname \$dldir/$dlname'
9955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956 dlpath=$dir/\$dldll~
9957 $RM \$dlpath'
9958 shlibpath_overrides_runpath=yes
9959 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +00009960 ;;
9961
9962 *)
jef2ab386b2012-08-10 12:43:50 -07009963 # Assume MSVC wrapper
Jon Dugane34c20c2010-07-08 23:26:52 +00009964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
jef2ab386b2012-08-10 12:43:50 -07009965 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +00009966 ;;
9967 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009968 # FIXME: first we should search . and the directory the executable is in
9969 shlibpath_var=PATH
9970 ;;
9971
9972darwin* | rhapsody*)
9973 dynamic_linker="$host_os dyld"
9974 version_type=darwin
9975 need_lib_prefix=no
9976 need_version=no
Jon Dugan92864152010-09-20 21:50:12 +00009977 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +00009978 soname_spec='${libname}${release}${major}$shared_ext'
9979 shlibpath_overrides_runpath=yes
9980 shlibpath_var=DYLD_LIBRARY_PATH
9981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9982
9983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9985 ;;
9986
9987dgux*)
9988 version_type=linux
9989 need_lib_prefix=no
9990 need_version=no
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 ;;
9995
9996freebsd1*)
9997 dynamic_linker=no
9998 ;;
9999
10000freebsd* | dragonfly*)
10001 # DragonFly does not have aout. When/if they implement a new
10002 # versioning mechanism, adjust this.
10003 if test -x /usr/bin/objformat; then
10004 objformat=`/usr/bin/objformat`
10005 else
10006 case $host_os in
10007 freebsd[123]*) objformat=aout ;;
10008 *) objformat=elf ;;
10009 esac
10010 fi
10011 version_type=freebsd-$objformat
10012 case $version_type in
10013 freebsd-elf*)
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10015 need_version=no
10016 need_lib_prefix=no
10017 ;;
10018 freebsd-*)
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10020 need_version=yes
10021 ;;
10022 esac
10023 shlibpath_var=LD_LIBRARY_PATH
10024 case $host_os in
10025 freebsd2*)
10026 shlibpath_overrides_runpath=yes
10027 ;;
10028 freebsd3.[01]* | freebsdelf3.[01]*)
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10031 ;;
10032 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10033 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10034 shlibpath_overrides_runpath=no
10035 hardcode_into_libs=yes
10036 ;;
10037 *) # from 4.6 on, and DragonFly
10038 shlibpath_overrides_runpath=yes
10039 hardcode_into_libs=yes
10040 ;;
10041 esac
10042 ;;
10043
10044gnu*)
10045 version_type=linux
10046 need_lib_prefix=no
10047 need_version=no
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 hardcode_into_libs=yes
10052 ;;
10053
Jon Dugan92864152010-09-20 21:50:12 +000010054haiku*)
10055 version_type=linux
10056 need_lib_prefix=no
10057 need_version=no
10058 dynamic_linker="$host_os runtime_loader"
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 shlibpath_var=LIBRARY_PATH
10062 shlibpath_overrides_runpath=yes
10063 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10064 hardcode_into_libs=yes
10065 ;;
10066
Jon Dugane34c20c2010-07-08 23:26:52 +000010067hpux9* | hpux10* | hpux11*)
10068 # Give a soname corresponding to the major version so that dld.sl refuses to
10069 # link against other versions.
10070 version_type=sunos
10071 need_lib_prefix=no
10072 need_version=no
10073 case $host_cpu in
10074 ia64*)
10075 shrext_cmds='.so'
10076 hardcode_into_libs=yes
10077 dynamic_linker="$host_os dld.so"
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 if test "X$HPUX_IA64_MODE" = X32; then
10083 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10084 else
10085 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10086 fi
10087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088 ;;
10089 hppa*64*)
10090 shrext_cmds='.sl'
10091 hardcode_into_libs=yes
10092 dynamic_linker="$host_os dld.sl"
10093 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099 ;;
10100 *)
10101 shrext_cmds='.sl'
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=SHLIB_PATH
10104 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 ;;
10108 esac
Jon Dugan92864152010-09-20 21:50:12 +000010109 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010110 postinstall_cmds='chmod 555 $lib'
Jon Dugan92864152010-09-20 21:50:12 +000010111 # or fails outright, so override atomically:
10112 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010113 ;;
10114
10115interix[3-9]*)
10116 version_type=linux
10117 need_lib_prefix=no
10118 need_version=no
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath=no
10124 hardcode_into_libs=yes
10125 ;;
10126
10127irix5* | irix6* | nonstopux*)
10128 case $host_os in
10129 nonstopux*) version_type=nonstopux ;;
10130 *)
10131 if test "$lt_cv_prog_gnu_ld" = yes; then
10132 version_type=linux
10133 else
10134 version_type=irix
10135 fi ;;
10136 esac
10137 need_lib_prefix=no
10138 need_version=no
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10141 case $host_os in
10142 irix5* | nonstopux*)
10143 libsuff= shlibsuff=
10144 ;;
10145 *)
10146 case $LD in # libtool.m4 will add one of these switches to LD
10147 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10148 libsuff= shlibsuff= libmagic=32-bit;;
10149 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10150 libsuff=32 shlibsuff=N32 libmagic=N32;;
10151 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10152 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10153 *) libsuff= shlibsuff= libmagic=never-match;;
10154 esac
10155 ;;
10156 esac
10157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10158 shlibpath_overrides_runpath=no
10159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10161 hardcode_into_libs=yes
10162 ;;
10163
10164# No shared lib support for Linux oldld, aout, or coff.
10165linux*oldld* | linux*aout* | linux*coff*)
10166 dynamic_linker=no
10167 ;;
10168
10169# This must be Linux ELF.
Jon Dugan92864152010-09-20 21:50:12 +000010170linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +000010171 version_type=linux
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=no
Jon Dugan92864152010-09-20 21:50:12 +000010179
Jon Dugane34c20c2010-07-08 23:26:52 +000010180 # Some binutils ld are patched to set DT_RUNPATH
jef2ab386b2012-08-10 12:43:50 -070010181 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010182 $as_echo_n "(cached) " >&6
10183else
10184 lt_cv_shlibpath_overrides_runpath=no
10185 save_LDFLAGS=$LDFLAGS
10186 save_libdir=$libdir
10187 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10188 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010190/* end confdefs.h. */
10191
10192int
10193main ()
10194{
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010200if ac_fn_c_try_link "$LINENO"; then :
10201 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10202 lt_cv_shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010203fi
Jon Dugan92864152010-09-20 21:50:12 +000010204fi
10205rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207 LDFLAGS=$save_LDFLAGS
10208 libdir=$save_libdir
Jon Dugane34c20c2010-07-08 23:26:52 +000010209
10210fi
10211
Jon Dugan92864152010-09-20 21:50:12 +000010212 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jon Dugane34c20c2010-07-08 23:26:52 +000010213
10214 # This implies no fast_install, which is unacceptable.
10215 # Some rework will be needed to allow for fast_install
10216 # before this can be enabled.
10217 hardcode_into_libs=yes
10218
jef2ab386b2012-08-10 12:43:50 -070010219 # Add ABI-specific directories to the system library path.
10220 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10221
Jon Dugane34c20c2010-07-08 23:26:52 +000010222 # Append ld.so.conf contents to the search path
10223 if test -f /etc/ld.so.conf; then
Jon Dugan92864152010-09-20 21:50:12 +000010224 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
jef2ab386b2012-08-10 12:43:50 -070010225 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10226
Jon Dugane34c20c2010-07-08 23:26:52 +000010227 fi
10228
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10236 ;;
10237
10238netbsd*)
10239 version_type=sunos
10240 need_lib_prefix=no
10241 need_version=no
10242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 dynamic_linker='NetBSD (a.out) ld.so'
10246 else
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 dynamic_linker='NetBSD ld.elf_so'
10250 fi
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=yes
10253 hardcode_into_libs=yes
10254 ;;
10255
10256newsos6)
10257 version_type=linux
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 ;;
10262
10263*nto* | *qnx*)
10264 version_type=qnx
10265 need_lib_prefix=no
10266 need_version=no
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10271 hardcode_into_libs=yes
10272 dynamic_linker='ldqnx.so'
10273 ;;
10274
10275openbsd*)
10276 version_type=sunos
10277 sys_lib_dlsearch_path_spec="/usr/lib"
10278 need_lib_prefix=no
10279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10280 case $host_os in
10281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10282 *) need_version=no ;;
10283 esac
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10288 case $host_os in
10289 openbsd2.[89] | openbsd2.[89].*)
10290 shlibpath_overrides_runpath=no
10291 ;;
10292 *)
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295 esac
10296 else
10297 shlibpath_overrides_runpath=yes
10298 fi
10299 ;;
10300
10301os2*)
10302 libname_spec='$name'
10303 shrext_cmds=".dll"
10304 need_lib_prefix=no
10305 library_names_spec='$libname${shared_ext} $libname.a'
10306 dynamic_linker='OS/2 ld.exe'
10307 shlibpath_var=LIBPATH
10308 ;;
10309
10310osf3* | osf4* | osf5*)
10311 version_type=osf
10312 need_lib_prefix=no
10313 need_version=no
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10319 ;;
10320
10321rdos*)
10322 dynamic_linker=no
10323 ;;
10324
10325solaris*)
10326 version_type=linux
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 hardcode_into_libs=yes
10334 # ldd complains unless libraries are executable
10335 postinstall_cmds='chmod +x $lib'
10336 ;;
10337
10338sunos4*)
10339 version_type=sunos
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 if test "$with_gnu_ld" = yes; then
10345 need_lib_prefix=no
10346 fi
10347 need_version=yes
10348 ;;
10349
10350sysv4 | sysv4.3*)
10351 version_type=linux
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 case $host_vendor in
10356 sni)
10357 shlibpath_overrides_runpath=no
10358 need_lib_prefix=no
10359 runpath_var=LD_RUN_PATH
10360 ;;
10361 siemens)
10362 need_lib_prefix=no
10363 ;;
10364 motorola)
10365 need_lib_prefix=no
10366 need_version=no
10367 shlibpath_overrides_runpath=no
10368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10369 ;;
10370 esac
10371 ;;
10372
10373sysv4*MP*)
10374 if test -d /usr/nec ;then
10375 version_type=linux
10376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10377 soname_spec='$libname${shared_ext}.$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 fi
10380 ;;
10381
10382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10383 version_type=freebsd-elf
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10390 hardcode_into_libs=yes
10391 if test "$with_gnu_ld" = yes; then
10392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10393 else
10394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10395 case $host_os in
10396 sco3.2v5*)
10397 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10398 ;;
10399 esac
10400 fi
10401 sys_lib_dlsearch_path_spec='/usr/lib'
10402 ;;
10403
10404tpf*)
10405 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
Jon Dugan92864152010-09-20 21:50:12 +000010409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Jon Dugane34c20c2010-07-08 23:26:52 +000010410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10413 ;;
10414
10415uts4*)
10416 version_type=linux
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 ;;
10421
10422*)
10423 dynamic_linker=no
10424 ;;
10425esac
Jon Dugan92864152010-09-20 21:50:12 +000010426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10427$as_echo "$dynamic_linker" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010428test "$dynamic_linker" = no && can_build_shared=no
10429
10430variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10431if test "$GCC" = yes; then
10432 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10433fi
10434
10435if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10436 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10437fi
10438if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10440fi
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
Jon Dugan92864152010-09-20 21:50:12 +000010528
10529
10530
10531
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10534$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010535hardcode_action=
10536if test -n "$hardcode_libdir_flag_spec" ||
10537 test -n "$runpath_var" ||
10538 test "X$hardcode_automatic" = "Xyes" ; then
10539
10540 # We can hardcode non-existent directories.
10541 if test "$hardcode_direct" != no &&
10542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10543 # have to relink, otherwise we might link with an installed library
10544 # when we should be linking with a yet-to-be-installed one
10545 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10546 test "$hardcode_minus_L" != no; then
10547 # Linking always hardcodes the temporary library directory.
10548 hardcode_action=relink
10549 else
10550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10551 hardcode_action=immediate
10552 fi
10553else
10554 # We cannot hardcode anything, or else we can only hardcode existing
10555 # directories.
10556 hardcode_action=unsupported
10557fi
Jon Dugan92864152010-09-20 21:50:12 +000010558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10559$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010560
10561if test "$hardcode_action" = relink ||
10562 test "$inherit_rpath" = yes; then
10563 # Fast installation is not supported
10564 enable_fast_install=no
10565elif test "$shlibpath_overrides_runpath" = yes ||
10566 test "$enable_shared" = no; then
10567 # Fast installation is not necessary
10568 enable_fast_install=needless
10569fi
10570
10571
10572
10573
10574
10575
10576 if test "x$enable_dlopen" != xyes; then
10577 enable_dlopen=unknown
10578 enable_dlopen_self=unknown
10579 enable_dlopen_self_static=unknown
10580else
10581 lt_cv_dlopen=no
10582 lt_cv_dlopen_libs=
10583
10584 case $host_os in
10585 beos*)
10586 lt_cv_dlopen="load_add_on"
10587 lt_cv_dlopen_libs=
10588 lt_cv_dlopen_self=yes
10589 ;;
10590
Jon Dugan92864152010-09-20 21:50:12 +000010591 mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010592 lt_cv_dlopen="LoadLibrary"
10593 lt_cv_dlopen_libs=
10594 ;;
10595
10596 cygwin*)
10597 lt_cv_dlopen="dlopen"
10598 lt_cv_dlopen_libs=
10599 ;;
10600
10601 darwin*)
10602 # if libdl is installed we need to link against it
Jon Dugan92864152010-09-20 21:50:12 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10604$as_echo_n "checking for dlopen in -ldl... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010605if ${ac_cv_lib_dl_dlopen+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010606 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010607else
10608 ac_check_lib_save_LIBS=$LIBS
10609LIBS="-ldl $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010611/* end confdefs.h. */
10612
10613/* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616#ifdef __cplusplus
10617extern "C"
10618#endif
10619char dlopen ();
10620int
10621main ()
10622{
10623return dlopen ();
10624 ;
10625 return 0;
10626}
10627_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010628if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010629 ac_cv_lib_dl_dlopen=yes
10630else
Jon Dugan92864152010-09-20 21:50:12 +000010631 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010632fi
Jon Dugan92864152010-09-20 21:50:12 +000010633rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010635LIBS=$ac_check_lib_save_LIBS
10636fi
Jon Dugan92864152010-09-20 21:50:12 +000010637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
jef2ab386b2012-08-10 12:43:50 -070010639if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10641else
10642
10643 lt_cv_dlopen="dyld"
10644 lt_cv_dlopen_libs=
10645 lt_cv_dlopen_self=yes
10646
10647fi
10648
10649 ;;
10650
10651 *)
Jon Dugan92864152010-09-20 21:50:12 +000010652 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
jef2ab386b2012-08-10 12:43:50 -070010653if test "x$ac_cv_func_shl_load" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010654 lt_cv_dlopen="shl_load"
10655else
Jon Dugan92864152010-09-20 21:50:12 +000010656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10657$as_echo_n "checking for shl_load in -ldld... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010658if ${ac_cv_lib_dld_shl_load+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010659 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010660else
10661 ac_check_lib_save_LIBS=$LIBS
10662LIBS="-ldld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010664/* end confdefs.h. */
10665
10666/* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669#ifdef __cplusplus
10670extern "C"
10671#endif
10672char shl_load ();
10673int
10674main ()
10675{
10676return shl_load ();
10677 ;
10678 return 0;
10679}
10680_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010681if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010682 ac_cv_lib_dld_shl_load=yes
10683else
Jon Dugan92864152010-09-20 21:50:12 +000010684 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010685fi
Jon Dugan92864152010-09-20 21:50:12 +000010686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010688LIBS=$ac_check_lib_save_LIBS
10689fi
Jon Dugan92864152010-09-20 21:50:12 +000010690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10691$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
jef2ab386b2012-08-10 12:43:50 -070010692if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010693 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10694else
Jon Dugan92864152010-09-20 21:50:12 +000010695 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
jef2ab386b2012-08-10 12:43:50 -070010696if test "x$ac_cv_func_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010697 lt_cv_dlopen="dlopen"
10698else
Jon Dugan92864152010-09-20 21:50:12 +000010699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10700$as_echo_n "checking for dlopen in -ldl... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010701if ${ac_cv_lib_dl_dlopen+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010702 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010703else
10704 ac_check_lib_save_LIBS=$LIBS
10705LIBS="-ldl $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010707/* end confdefs.h. */
10708
10709/* Override any GCC internal prototype to avoid an error.
10710 Use char because int might match the return type of a GCC
10711 builtin and then its argument prototype would still apply. */
10712#ifdef __cplusplus
10713extern "C"
10714#endif
10715char dlopen ();
10716int
10717main ()
10718{
10719return dlopen ();
10720 ;
10721 return 0;
10722}
10723_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010724if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010725 ac_cv_lib_dl_dlopen=yes
10726else
Jon Dugan92864152010-09-20 21:50:12 +000010727 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010728fi
Jon Dugan92864152010-09-20 21:50:12 +000010729rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010731LIBS=$ac_check_lib_save_LIBS
10732fi
Jon Dugan92864152010-09-20 21:50:12 +000010733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10734$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
jef2ab386b2012-08-10 12:43:50 -070010735if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10737else
Jon Dugan92864152010-09-20 21:50:12 +000010738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10739$as_echo_n "checking for dlopen in -lsvld... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010740if ${ac_cv_lib_svld_dlopen+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010741 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010742else
10743 ac_check_lib_save_LIBS=$LIBS
10744LIBS="-lsvld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010746/* end confdefs.h. */
10747
10748/* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751#ifdef __cplusplus
10752extern "C"
10753#endif
10754char dlopen ();
10755int
10756main ()
10757{
10758return dlopen ();
10759 ;
10760 return 0;
10761}
10762_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010763if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010764 ac_cv_lib_svld_dlopen=yes
10765else
Jon Dugan92864152010-09-20 21:50:12 +000010766 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010767fi
Jon Dugan92864152010-09-20 21:50:12 +000010768rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010770LIBS=$ac_check_lib_save_LIBS
10771fi
Jon Dugan92864152010-09-20 21:50:12 +000010772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10773$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
jef2ab386b2012-08-10 12:43:50 -070010774if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10776else
Jon Dugan92864152010-09-20 21:50:12 +000010777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10778$as_echo_n "checking for dld_link in -ldld... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010779if ${ac_cv_lib_dld_dld_link+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010780 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010781else
10782 ac_check_lib_save_LIBS=$LIBS
10783LIBS="-ldld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010785/* end confdefs.h. */
10786
10787/* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10790#ifdef __cplusplus
10791extern "C"
10792#endif
10793char dld_link ();
10794int
10795main ()
10796{
10797return dld_link ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010802if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010803 ac_cv_lib_dld_dld_link=yes
10804else
Jon Dugan92864152010-09-20 21:50:12 +000010805 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010806fi
Jon Dugan92864152010-09-20 21:50:12 +000010807rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010809LIBS=$ac_check_lib_save_LIBS
10810fi
Jon Dugan92864152010-09-20 21:50:12 +000010811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10812$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
jef2ab386b2012-08-10 12:43:50 -070010813if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010814 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10815fi
10816
10817
10818fi
10819
10820
10821fi
10822
10823
10824fi
10825
10826
10827fi
10828
10829
10830fi
10831
10832 ;;
10833 esac
10834
10835 if test "x$lt_cv_dlopen" != xno; then
10836 enable_dlopen=yes
10837 else
10838 enable_dlopen=no
10839 fi
10840
10841 case $lt_cv_dlopen in
10842 dlopen)
10843 save_CPPFLAGS="$CPPFLAGS"
10844 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10845
10846 save_LDFLAGS="$LDFLAGS"
10847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10848
10849 save_LIBS="$LIBS"
10850 LIBS="$lt_cv_dlopen_libs $LIBS"
10851
Jon Dugan92864152010-09-20 21:50:12 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10853$as_echo_n "checking whether a program can dlopen itself... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010854if ${lt_cv_dlopen_self+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010855 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010856else
10857 if test "$cross_compiling" = yes; then :
10858 lt_cv_dlopen_self=cross
10859else
10860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10861 lt_status=$lt_dlunknown
10862 cat > conftest.$ac_ext <<_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010863#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010864#include "confdefs.h"
10865
10866#if HAVE_DLFCN_H
10867#include <dlfcn.h>
10868#endif
10869
10870#include <stdio.h>
10871
10872#ifdef RTLD_GLOBAL
10873# define LT_DLGLOBAL RTLD_GLOBAL
10874#else
10875# ifdef DL_GLOBAL
10876# define LT_DLGLOBAL DL_GLOBAL
10877# else
10878# define LT_DLGLOBAL 0
10879# endif
10880#endif
10881
10882/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10883 find out it does not work in some platform. */
10884#ifndef LT_DLLAZY_OR_NOW
10885# ifdef RTLD_LAZY
10886# define LT_DLLAZY_OR_NOW RTLD_LAZY
10887# else
10888# ifdef DL_LAZY
10889# define LT_DLLAZY_OR_NOW DL_LAZY
10890# else
10891# ifdef RTLD_NOW
10892# define LT_DLLAZY_OR_NOW RTLD_NOW
10893# else
10894# ifdef DL_NOW
10895# define LT_DLLAZY_OR_NOW DL_NOW
10896# else
10897# define LT_DLLAZY_OR_NOW 0
10898# endif
10899# endif
10900# endif
10901# endif
10902#endif
10903
Jon Dugan92864152010-09-20 21:50:12 +000010904/* When -fvisbility=hidden is used, assume the code has been annotated
10905 correspondingly for the symbols needed. */
10906#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
jef2ab386b2012-08-10 12:43:50 -070010907int fnord () __attribute__((visibility("default")));
Jon Dugane34c20c2010-07-08 23:26:52 +000010908#endif
10909
jef2ab386b2012-08-10 12:43:50 -070010910int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010911int main ()
10912{
10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914 int status = $lt_dlunknown;
10915
10916 if (self)
10917 {
10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jon Dugan92864152010-09-20 21:50:12 +000010919 else
10920 {
10921 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10922 else puts (dlerror ());
10923 }
Jon Dugane34c20c2010-07-08 23:26:52 +000010924 /* dlclose (self); */
10925 }
10926 else
10927 puts (dlerror ());
10928
Jon Dugan92864152010-09-20 21:50:12 +000010929 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000010930}
10931_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010933 (eval $ac_link) 2>&5
10934 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +000010935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10936 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010937 (./conftest; exit; ) >&5 2>/dev/null
10938 lt_status=$?
10939 case x$lt_status in
10940 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10941 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10942 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10943 esac
10944 else :
10945 # compilation failed
10946 lt_cv_dlopen_self=no
10947 fi
10948fi
10949rm -fr conftest*
10950
10951
10952fi
Jon Dugan92864152010-09-20 21:50:12 +000010953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10954$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010955
10956 if test "x$lt_cv_dlopen_self" = xyes; then
10957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Jon Dugan92864152010-09-20 21:50:12 +000010958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10959$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070010960if ${lt_cv_dlopen_self_static+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000010961 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010962else
10963 if test "$cross_compiling" = yes; then :
10964 lt_cv_dlopen_self_static=cross
10965else
10966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10967 lt_status=$lt_dlunknown
10968 cat > conftest.$ac_ext <<_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010969#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010970#include "confdefs.h"
10971
10972#if HAVE_DLFCN_H
10973#include <dlfcn.h>
10974#endif
10975
10976#include <stdio.h>
10977
10978#ifdef RTLD_GLOBAL
10979# define LT_DLGLOBAL RTLD_GLOBAL
10980#else
10981# ifdef DL_GLOBAL
10982# define LT_DLGLOBAL DL_GLOBAL
10983# else
10984# define LT_DLGLOBAL 0
10985# endif
10986#endif
10987
10988/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10989 find out it does not work in some platform. */
10990#ifndef LT_DLLAZY_OR_NOW
10991# ifdef RTLD_LAZY
10992# define LT_DLLAZY_OR_NOW RTLD_LAZY
10993# else
10994# ifdef DL_LAZY
10995# define LT_DLLAZY_OR_NOW DL_LAZY
10996# else
10997# ifdef RTLD_NOW
10998# define LT_DLLAZY_OR_NOW RTLD_NOW
10999# else
11000# ifdef DL_NOW
11001# define LT_DLLAZY_OR_NOW DL_NOW
11002# else
11003# define LT_DLLAZY_OR_NOW 0
11004# endif
11005# endif
11006# endif
11007# endif
11008#endif
11009
Jon Dugan92864152010-09-20 21:50:12 +000011010/* When -fvisbility=hidden is used, assume the code has been annotated
11011 correspondingly for the symbols needed. */
11012#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
jef2ab386b2012-08-10 12:43:50 -070011013int fnord () __attribute__((visibility("default")));
Jon Dugane34c20c2010-07-08 23:26:52 +000011014#endif
11015
jef2ab386b2012-08-10 12:43:50 -070011016int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011017int main ()
11018{
11019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11020 int status = $lt_dlunknown;
11021
11022 if (self)
11023 {
11024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jon Dugan92864152010-09-20 21:50:12 +000011025 else
11026 {
11027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11028 else puts (dlerror ());
11029 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011030 /* dlclose (self); */
11031 }
11032 else
11033 puts (dlerror ());
11034
Jon Dugan92864152010-09-20 21:50:12 +000011035 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011036}
11037_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000011038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011039 (eval $ac_link) 2>&5
11040 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +000011041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011043 (./conftest; exit; ) >&5 2>/dev/null
11044 lt_status=$?
11045 case x$lt_status in
11046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11049 esac
11050 else :
11051 # compilation failed
11052 lt_cv_dlopen_self_static=no
11053 fi
11054fi
11055rm -fr conftest*
11056
11057
11058fi
Jon Dugan92864152010-09-20 21:50:12 +000011059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11060$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011061 fi
11062
11063 CPPFLAGS="$save_CPPFLAGS"
11064 LDFLAGS="$save_LDFLAGS"
11065 LIBS="$save_LIBS"
11066 ;;
11067 esac
11068
11069 case $lt_cv_dlopen_self in
11070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11071 *) enable_dlopen_self=unknown ;;
11072 esac
11073
11074 case $lt_cv_dlopen_self_static in
11075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11076 *) enable_dlopen_self_static=unknown ;;
11077 esac
11078fi
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096striplib=
11097old_striplib=
Jon Dugan92864152010-09-20 21:50:12 +000011098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11099$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011100if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Jon Dugan92864152010-09-20 21:50:12 +000011103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11104$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011105else
11106# FIXME - insert some real tests, host_os isn't really good enough
11107 case $host_os in
11108 darwin*)
11109 if test -n "$STRIP" ; then
11110 striplib="$STRIP -x"
11111 old_striplib="$STRIP -S"
Jon Dugan92864152010-09-20 21:50:12 +000011112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011114 else
Jon Dugan92864152010-09-20 21:50:12 +000011115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011117 fi
11118 ;;
11119 *)
Jon Dugan92864152010-09-20 21:50:12 +000011120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011122 ;;
11123 esac
11124fi
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137 # Report which library types will actually be built
Jon Dugan92864152010-09-20 21:50:12 +000011138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11139$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11141$as_echo "$can_build_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011142
Jon Dugan92864152010-09-20 21:50:12 +000011143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11144$as_echo_n "checking whether to build shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011145 test "$can_build_shared" = "no" && enable_shared=no
11146
11147 # On AIX, shared libraries and static libraries use the same namespace, and
11148 # are all built from PIC.
11149 case $host_os in
11150 aix3*)
11151 test "$enable_shared" = yes && enable_static=no
11152 if test -n "$RANLIB"; then
11153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11154 postinstall_cmds='$RANLIB $lib'
11155 fi
11156 ;;
11157
11158 aix[4-9]*)
11159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11160 test "$enable_shared" = yes && enable_static=no
11161 fi
11162 ;;
11163 esac
Jon Dugan92864152010-09-20 21:50:12 +000011164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11165$as_echo "$enable_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011166
Jon Dugan92864152010-09-20 21:50:12 +000011167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11168$as_echo_n "checking whether to build static libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011169 # Make sure either enable_shared or enable_static is yes.
11170 test "$enable_shared" = yes || enable_static=yes
Jon Dugan92864152010-09-20 21:50:12 +000011171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11172$as_echo "$enable_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011173
11174
11175
11176
11177fi
11178ac_ext=c
11179ac_cpp='$CPP $CPPFLAGS'
11180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11182ac_compiler_gnu=$ac_cv_c_compiler_gnu
11183
11184CC="$lt_save_CC"
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198 ac_config_commands="$ac_config_commands libtool"
11199
11200
11201
11202
11203# Only expand once:
11204
11205
11206
11207
11208# Sets a conditional makefile variable so that certain Makefile tasks will be
11209# performed only on linux (currently, add -luuid to LD_FLAGS)
sethdelliott01ca9722010-07-19 20:38:40 +000011210 if case $host_os in linux*) true;; *) false;; esac; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011211 LINUX_TRUE=
11212 LINUX_FALSE='#'
11213else
11214 LINUX_TRUE='#'
11215 LINUX_FALSE=
11216fi
11217
11218
11219# Checks for header files.
Jon Dugan92864152010-09-20 21:50:12 +000011220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11221$as_echo_n "checking for ANSI C header files... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070011222if ${ac_cv_header_stdc+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011223 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011224else
Jon Dugan92864152010-09-20 21:50:12 +000011225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011226/* end confdefs.h. */
11227#include <stdlib.h>
11228#include <stdarg.h>
11229#include <string.h>
11230#include <float.h>
11231
11232int
11233main ()
11234{
11235
11236 ;
11237 return 0;
11238}
11239_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011240if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011241 ac_cv_header_stdc=yes
11242else
Jon Dugan92864152010-09-20 21:50:12 +000011243 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011244fi
11245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246
11247if test $ac_cv_header_stdc = yes; then
11248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +000011249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011250/* end confdefs.h. */
11251#include <string.h>
11252
11253_ACEOF
11254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +000011255 $EGREP "memchr" >/dev/null 2>&1; then :
11256
Jon Dugane34c20c2010-07-08 23:26:52 +000011257else
11258 ac_cv_header_stdc=no
11259fi
Jon Dugan92864152010-09-20 21:50:12 +000011260rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011261
11262fi
11263
11264if test $ac_cv_header_stdc = yes; then
11265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +000011266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011267/* end confdefs.h. */
11268#include <stdlib.h>
11269
11270_ACEOF
11271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +000011272 $EGREP "free" >/dev/null 2>&1; then :
11273
Jon Dugane34c20c2010-07-08 23:26:52 +000011274else
11275 ac_cv_header_stdc=no
11276fi
Jon Dugan92864152010-09-20 21:50:12 +000011277rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011278
11279fi
11280
11281if test $ac_cv_header_stdc = yes; then
11282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jon Dugan92864152010-09-20 21:50:12 +000011283 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011284 :
11285else
Jon Dugan92864152010-09-20 21:50:12 +000011286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011287/* end confdefs.h. */
11288#include <ctype.h>
11289#include <stdlib.h>
11290#if ((' ' & 0x0FF) == 0x020)
11291# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11292# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11293#else
11294# define ISLOWER(c) \
11295 (('a' <= (c) && (c) <= 'i') \
11296 || ('j' <= (c) && (c) <= 'r') \
11297 || ('s' <= (c) && (c) <= 'z'))
11298# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11299#endif
11300
11301#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11302int
11303main ()
11304{
11305 int i;
11306 for (i = 0; i < 256; i++)
11307 if (XOR (islower (i), ISLOWER (i))
11308 || toupper (i) != TOUPPER (i))
11309 return 2;
11310 return 0;
11311}
11312_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011313if ac_fn_c_try_run "$LINENO"; then :
11314
Jon Dugane34c20c2010-07-08 23:26:52 +000011315else
Jon Dugan92864152010-09-20 21:50:12 +000011316 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011317fi
Jon Dugan92864152010-09-20 21:50:12 +000011318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11319 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011320fi
11321
11322fi
11323fi
Jon Dugan92864152010-09-20 21:50:12 +000011324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11325$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011326if test $ac_cv_header_stdc = yes; then
11327
Jon Dugan92864152010-09-20 21:50:12 +000011328$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11329
11330fi
11331
11332
11333# Check for systems which need -lsocket and -lnsl
jef2ab386b2012-08-10 12:43:50 -070011334AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000011335
11336# Solaris puts nanosleep in -lrt
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
11338$as_echo_n "checking for library containing nanosleep... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070011339if ${ac_cv_search_nanosleep+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011340 $as_echo_n "(cached) " >&6
11341else
11342 ac_func_search_save_LIBS=$LIBS
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char nanosleep ();
11353int
11354main ()
11355{
11356return nanosleep ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361for ac_lib in '' rt; do
11362 if test -z "$ac_lib"; then
11363 ac_res="none required"
11364 else
11365 ac_res=-l$ac_lib
11366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11367 fi
11368 if ac_fn_c_try_link "$LINENO"; then :
11369 ac_cv_search_nanosleep=$ac_res
11370fi
11371rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext
jef2ab386b2012-08-10 12:43:50 -070011373 if ${ac_cv_search_nanosleep+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011374 break
11375fi
11376done
jef2ab386b2012-08-10 12:43:50 -070011377if ${ac_cv_search_nanosleep+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011378
11379else
11380 ac_cv_search_nanosleep=no
11381fi
11382rm conftest.$ac_ext
11383LIBS=$ac_func_search_save_LIBS
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
11386$as_echo "$ac_cv_search_nanosleep" >&6; }
11387ac_res=$ac_cv_search_nanosleep
11388if test "$ac_res" != no; then :
11389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11390
11391else
11392
11393echo "nanosleep() required for timing operations."
11394exit 1
11395
11396fi
11397
11398
11399# Solaris puts hstrerror in -lresolv
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
11401$as_echo_n "checking for library containing hstrerror... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070011402if ${ac_cv_search_hstrerror+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011403 $as_echo_n "(cached) " >&6
11404else
11405 ac_func_search_save_LIBS=$LIBS
11406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h. */
11408
11409/* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11412#ifdef __cplusplus
11413extern "C"
11414#endif
11415char hstrerror ();
11416int
11417main ()
11418{
11419return hstrerror ();
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424for ac_lib in '' resolv; do
11425 if test -z "$ac_lib"; then
11426 ac_res="none required"
11427 else
11428 ac_res=-l$ac_lib
11429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11430 fi
11431 if ac_fn_c_try_link "$LINENO"; then :
11432 ac_cv_search_hstrerror=$ac_res
11433fi
11434rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext
jef2ab386b2012-08-10 12:43:50 -070011436 if ${ac_cv_search_hstrerror+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011437 break
11438fi
11439done
jef2ab386b2012-08-10 12:43:50 -070011440if ${ac_cv_search_hstrerror+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011441
11442else
11443 ac_cv_search_hstrerror=no
11444fi
11445rm conftest.$ac_ext
11446LIBS=$ac_func_search_save_LIBS
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
11449$as_echo "$ac_cv_search_hstrerror" >&6; }
11450ac_res=$ac_cv_search_hstrerror
11451if test "$ac_res" != no; then :
11452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11453
11454else
11455
11456echo "nanosleep() required for timing operations."
11457exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011458
11459fi
11460
11461
Jon Dugane34c20c2010-07-08 23:26:52 +000011462# Checks for typedefs, structures, and compiler characteristics.
Jon Dugan92864152010-09-20 21:50:12 +000011463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11464$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
jef2ab386b2012-08-10 12:43:50 -070011465if ${ac_cv_c_const+:} false; then :
Jon Dugan92864152010-09-20 21:50:12 +000011466 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011467else
Jon Dugan92864152010-09-20 21:50:12 +000011468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011469/* end confdefs.h. */
11470
11471int
11472main ()
11473{
11474/* FIXME: Include the comments suggested by Paul. */
11475#ifndef __cplusplus
11476 /* Ultrix mips cc rejects this. */
11477 typedef int charset[2];
11478 const charset cs;
11479 /* SunOS 4.1.1 cc rejects this. */
11480 char const *const *pcpcc;
11481 char **ppc;
11482 /* NEC SVR4.0.2 mips cc rejects this. */
11483 struct point {int x, y;};
11484 static struct point const zero = {0,0};
11485 /* AIX XL C 1.02.0.0 rejects this.
11486 It does not let you subtract one const X* pointer from another in
11487 an arm of an if-expression whose if-part is not a constant
11488 expression */
11489 const char *g = "string";
11490 pcpcc = &g + (g ? g-g : 0);
11491 /* HPUX 7.0 cc rejects these. */
11492 ++pcpcc;
11493 ppc = (char**) pcpcc;
11494 pcpcc = (char const *const *) ppc;
11495 { /* SCO 3.2v4 cc rejects this. */
11496 char *t;
11497 char const *s = 0 ? (char *) 0 : (char const *) 0;
11498
11499 *t++ = 0;
11500 if (s) return 0;
11501 }
11502 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11503 int x[] = {25, 17};
11504 const int *foo = &x[0];
11505 ++foo;
11506 }
11507 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11508 typedef const int *iptr;
11509 iptr p = 0;
11510 ++p;
11511 }
11512 { /* AIX XL C 1.02.0.0 rejects this saying
11513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11514 struct s { int j; const int *ap[3]; };
11515 struct s *b; b->j = 5;
11516 }
11517 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11518 const int foo = 10;
11519 if (!foo) return 0;
11520 }
11521 return !cs[0] && !zero.x;
11522#endif
11523
11524 ;
11525 return 0;
11526}
11527_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011528if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011529 ac_cv_c_const=yes
11530else
Jon Dugan92864152010-09-20 21:50:12 +000011531 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011532fi
11533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534fi
Jon Dugan92864152010-09-20 21:50:12 +000011535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11536$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011537if test $ac_cv_c_const = no; then
11538
Jon Dugan92864152010-09-20 21:50:12 +000011539$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011540
11541fi
11542
11543
11544ac_config_files="$ac_config_files Makefile src/Makefile"
11545
11546cat >confcache <<\_ACEOF
11547# This file is a shell script that caches the results of configure
11548# tests run on this system so they can be shared between configure
11549# scripts and configure runs, see configure's option --config-cache.
11550# It is not useful on other systems. If it contains results you don't
11551# want to keep, you may remove or edit it.
11552#
11553# config.status only pays attention to the cache file if you give it
11554# the --recheck option to rerun configure.
11555#
11556# `ac_cv_env_foo' variables (set or unset) will be overridden when
11557# loading this file, other *unset* `ac_cv_foo' will be assigned the
11558# following values.
11559
11560_ACEOF
11561
11562# The following way of writing the cache mishandles newlines in values,
11563# but we know of no workaround that is simple, portable, and efficient.
11564# So, we kill variables containing newlines.
11565# Ultrix sh set writes to stderr and can't be redirected directly,
11566# and sets the high bit in the cache file unless we assign to the vars.
11567(
11568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11569 eval ac_val=\$$ac_var
11570 case $ac_val in #(
11571 *${as_nl}*)
11572 case $ac_var in #(
Jon Dugan92864152010-09-20 21:50:12 +000011573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11574$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011575 esac
11576 case $ac_var in #(
11577 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +000011578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11579 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011580 esac ;;
11581 esac
11582 done
11583
11584 (set) 2>&1 |
11585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11586 *${as_nl}ac_space=\ *)
Jon Dugan92864152010-09-20 21:50:12 +000011587 # `set' does not quote correctly, so add quotes: double-quote
11588 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000011589 sed -n \
11590 "s/'/'\\\\''/g;
11591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11592 ;; #(
11593 *)
11594 # `set' quotes correctly as required by POSIX, so do not add quotes.
11595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11596 ;;
11597 esac |
11598 sort
11599) |
11600 sed '
11601 /^ac_cv_env_/b end
11602 t clear
11603 :clear
11604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11605 t end
11606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11607 :end' >>confcache
11608if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11609 if test -w "$cache_file"; then
jef2ab386b2012-08-10 12:43:50 -070011610 if test "x$cache_file" != "x/dev/null"; then
Jon Dugan92864152010-09-20 21:50:12 +000011611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11612$as_echo "$as_me: updating cache $cache_file" >&6;}
jef2ab386b2012-08-10 12:43:50 -070011613 if test ! -f "$cache_file" || test -h "$cache_file"; then
11614 cat confcache >"$cache_file"
11615 else
11616 case $cache_file in #(
11617 */* | ?:*)
11618 mv -f confcache "$cache_file"$$ &&
11619 mv -f "$cache_file"$$ "$cache_file" ;; #(
11620 *)
11621 mv -f confcache "$cache_file" ;;
11622 esac
11623 fi
11624 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011625 else
Jon Dugan92864152010-09-20 21:50:12 +000011626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11627$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000011628 fi
11629fi
11630rm -f confcache
11631
11632test "x$prefix" = xNONE && prefix=$ac_default_prefix
11633# Let make expand exec_prefix.
11634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11635
11636DEFS=-DHAVE_CONFIG_H
11637
11638ac_libobjs=
11639ac_ltlibobjs=
jef2ab386b2012-08-10 12:43:50 -070011640U=
Jon Dugane34c20c2010-07-08 23:26:52 +000011641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11642 # 1. Remove the extension, and $U if already installed.
11643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jon Dugan92864152010-09-20 21:50:12 +000011644 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000011645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11646 # will be set to the directory where LIBOBJS objects are built.
Jon Dugan92864152010-09-20 21:50:12 +000011647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000011649done
11650LIBOBJS=$ac_libobjs
11651
11652LTLIBOBJS=$ac_ltlibobjs
11653
11654
Jon Dugan92864152010-09-20 21:50:12 +000011655 if test -n "$EXEEXT"; then
11656 am__EXEEXT_TRUE=
11657 am__EXEEXT_FALSE='#'
11658else
11659 am__EXEEXT_TRUE='#'
11660 am__EXEEXT_FALSE=
11661fi
11662
Jon Dugane34c20c2010-07-08 23:26:52 +000011663if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jef2ab386b2012-08-10 12:43:50 -070011664 as_fn_error $? "conditional \"AMDEP\" was never defined.
Jon Dugan92864152010-09-20 21:50:12 +000011665Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011666fi
11667if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jef2ab386b2012-08-10 12:43:50 -070011668 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Jon Dugan92864152010-09-20 21:50:12 +000011669Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011670fi
11671if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
jef2ab386b2012-08-10 12:43:50 -070011672 as_fn_error $? "conditional \"LINUX\" was never defined.
Jon Dugan92864152010-09-20 21:50:12 +000011673Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011674fi
11675
jef2ab386b2012-08-10 12:43:50 -070011676: "${CONFIG_STATUS=./config.status}"
Jon Dugan92864152010-09-20 21:50:12 +000011677ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000011678ac_clean_files_save=$ac_clean_files
11679ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jon Dugan92864152010-09-20 21:50:12 +000011680{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11681$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11682as_write_fail=0
11683cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011684#! $SHELL
11685# Generated by $as_me.
11686# Run this file to recreate the current configuration.
11687# Compiler output produced by configure, useful for debugging
11688# configure, is in config.log if it exists.
11689
11690debug=false
11691ac_cs_recheck=false
11692ac_cs_silent=false
sethdelliott01ca9722010-07-19 20:38:40 +000011693
Jon Dugan92864152010-09-20 21:50:12 +000011694SHELL=\${CONFIG_SHELL-$SHELL}
11695export SHELL
11696_ASEOF
11697cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11698## -------------------- ##
11699## M4sh Initialization. ##
11700## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000011701
11702# Be more Bourne compatible
11703DUALCASE=1; export DUALCASE # for MKS sh
Jon Dugan92864152010-09-20 21:50:12 +000011704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011705 emulate sh
11706 NULLCMD=:
Jon Dugan92864152010-09-20 21:50:12 +000011707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000011708 # is contrary to our usage. Disable this feature.
11709 alias -g '${1+"$@"}'='"$@"'
11710 setopt NO_GLOB_SUBST
11711else
Jon Dugan92864152010-09-20 21:50:12 +000011712 case `(set -o) 2>/dev/null` in #(
11713 *posix*) :
11714 set -o posix ;; #(
11715 *) :
11716 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011717esac
11718fi
11719
11720
Jon Dugan92864152010-09-20 21:50:12 +000011721as_nl='
11722'
11723export as_nl
11724# Printing a long string crashes Solaris 7 /usr/bin/printf.
11725as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11726as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11728# Prefer a ksh shell builtin over an external printf program on Solaris,
11729# but without wasting forks for bash or zsh.
11730if test -z "$BASH_VERSION$ZSH_VERSION" \
11731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11732 as_echo='print -r --'
11733 as_echo_n='print -rn --'
11734elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11735 as_echo='printf %s\n'
11736 as_echo_n='printf %s'
11737else
11738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11740 as_echo_n='/usr/ucb/echo -n'
11741 else
11742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11743 as_echo_n_body='eval
11744 arg=$1;
11745 case $arg in #(
11746 *"$as_nl"*)
11747 expr "X$arg" : "X\\(.*\\)$as_nl";
11748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11749 esac;
11750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11751 '
11752 export as_echo_n_body
11753 as_echo_n='sh -c $as_echo_n_body as_echo'
11754 fi
11755 export as_echo_body
11756 as_echo='sh -c $as_echo_body as_echo'
11757fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011758
11759# The user is always right.
11760if test "${PATH_SEPARATOR+set}" != set; then
Jon Dugan92864152010-09-20 21:50:12 +000011761 PATH_SEPARATOR=:
11762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11764 PATH_SEPARATOR=';'
11765 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011766fi
11767
11768
11769# IFS
11770# We need space, tab and new line, in precisely that order. Quoting is
11771# there to prevent editors from complaining about space-tab.
11772# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11773# splitting by setting IFS to empty value.)
11774IFS=" "" $as_nl"
11775
11776# Find who we are. Look in the path if we contain no directory separator.
jef2ab386b2012-08-10 12:43:50 -070011777as_myself=
Jon Dugan92864152010-09-20 21:50:12 +000011778case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000011779 *[\\/]* ) as_myself=$0 ;;
11780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781for as_dir in $PATH
11782do
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +000011785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11786 done
Jon Dugane34c20c2010-07-08 23:26:52 +000011787IFS=$as_save_IFS
11788
11789 ;;
11790esac
11791# We did not find ourselves, most probably we were run as `sh COMMAND'
11792# in which case we are not to be found in the path.
11793if test "x$as_myself" = x; then
11794 as_myself=$0
11795fi
11796if test ! -f "$as_myself"; then
Jon Dugan92864152010-09-20 21:50:12 +000011797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11798 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011799fi
11800
Jon Dugan92864152010-09-20 21:50:12 +000011801# Unset variables that we do not need and which cause bugs (e.g. in
11802# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11803# suppresses any "Segmentation fault" message there. '((' could
11804# trigger a bug in pdksh 5.2.14.
11805for as_var in BASH_ENV ENV MAIL MAILPATH
11806do eval test x\${$as_var+set} = xset \
11807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000011808done
11809PS1='$ '
11810PS2='> '
11811PS4='+ '
11812
11813# NLS nuisances.
Jon Dugan92864152010-09-20 21:50:12 +000011814LC_ALL=C
11815export LC_ALL
11816LANGUAGE=C
11817export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000011818
Jon Dugan92864152010-09-20 21:50:12 +000011819# CDPATH.
11820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11821
11822
jef2ab386b2012-08-10 12:43:50 -070011823# as_fn_error STATUS ERROR [LINENO LOG_FD]
11824# ----------------------------------------
Jon Dugan92864152010-09-20 21:50:12 +000011825# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11826# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
jef2ab386b2012-08-10 12:43:50 -070011827# script with STATUS, using 1 if that was 0.
Jon Dugan92864152010-09-20 21:50:12 +000011828as_fn_error ()
11829{
jef2ab386b2012-08-10 12:43:50 -070011830 as_status=$1; test $as_status -eq 0 && as_status=1
11831 if test "$4"; then
11832 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Jon Dugan92864152010-09-20 21:50:12 +000011834 fi
jef2ab386b2012-08-10 12:43:50 -070011835 $as_echo "$as_me: error: $2" >&2
Jon Dugan92864152010-09-20 21:50:12 +000011836 as_fn_exit $as_status
11837} # as_fn_error
11838
11839
11840# as_fn_set_status STATUS
11841# -----------------------
11842# Set $? to STATUS, without forking.
11843as_fn_set_status ()
11844{
11845 return $1
11846} # as_fn_set_status
11847
11848# as_fn_exit STATUS
11849# -----------------
11850# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11851as_fn_exit ()
11852{
11853 set +e
11854 as_fn_set_status $1
11855 exit $1
11856} # as_fn_exit
11857
11858# as_fn_unset VAR
11859# ---------------
11860# Portably unset VAR.
11861as_fn_unset ()
11862{
11863 { eval $1=; unset $1;}
11864}
11865as_unset=as_fn_unset
11866# as_fn_append VAR VALUE
11867# ----------------------
11868# Append the text in VALUE to the end of the definition contained in VAR. Take
11869# advantage of any shell optimizations that allow amortized linear growth over
11870# repeated appends, instead of the typical quadratic growth present in naive
11871# implementations.
11872if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11873 eval 'as_fn_append ()
11874 {
11875 eval $1+=\$2
11876 }'
11877else
11878 as_fn_append ()
11879 {
11880 eval $1=\$$1\$2
11881 }
11882fi # as_fn_append
11883
11884# as_fn_arith ARG...
11885# ------------------
11886# Perform arithmetic evaluation on the ARGs, and store the result in the
11887# global $as_val. Take advantage of shells that can avoid forks. The arguments
11888# must be portable across $(()) and expr.
11889if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11890 eval 'as_fn_arith ()
11891 {
11892 as_val=$(( $* ))
11893 }'
11894else
11895 as_fn_arith ()
11896 {
11897 as_val=`expr "$@" || test $? -eq 1`
11898 }
11899fi # as_fn_arith
11900
11901
Jon Dugane34c20c2010-07-08 23:26:52 +000011902if expr a : '\(a\)' >/dev/null 2>&1 &&
11903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11904 as_expr=expr
11905else
11906 as_expr=false
11907fi
11908
11909if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11910 as_basename=basename
11911else
11912 as_basename=false
11913fi
11914
Jon Dugan92864152010-09-20 21:50:12 +000011915if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11916 as_dirname=dirname
11917else
11918 as_dirname=false
11919fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011920
11921as_me=`$as_basename -- "$0" ||
11922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11923 X"$0" : 'X\(//\)$' \| \
11924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000011925$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000011926 sed '/^.*\/\([^/][^/]*\)\/*$/{
11927 s//\1/
11928 q
11929 }
11930 /^X\/\(\/\/\)$/{
11931 s//\1/
11932 q
11933 }
11934 /^X\/\(\/\).*/{
11935 s//\1/
11936 q
11937 }
11938 s/.*/./; q'`
11939
Jon Dugan92864152010-09-20 21:50:12 +000011940# Avoid depending upon Character Ranges.
11941as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11943as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11944as_cr_digits='0123456789'
11945as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000011946
11947ECHO_C= ECHO_N= ECHO_T=
Jon Dugan92864152010-09-20 21:50:12 +000011948case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000011949-n*)
Jon Dugan92864152010-09-20 21:50:12 +000011950 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000011951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jon Dugan92864152010-09-20 21:50:12 +000011952 xy) ECHO_C='\c';;
11953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11954 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000011955 esac;;
11956*)
11957 ECHO_N='-n';;
11958esac
11959
11960rm -f conf$$ conf$$.exe conf$$.file
11961if test -d conf$$.dir; then
11962 rm -f conf$$.dir/conf$$.file
11963else
11964 rm -f conf$$.dir
Jon Dugan92864152010-09-20 21:50:12 +000011965 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000011966fi
Jon Dugan92864152010-09-20 21:50:12 +000011967if (echo >conf$$.file) 2>/dev/null; then
11968 if ln -s conf$$.file conf$$ 2>/dev/null; then
11969 as_ln_s='ln -s'
11970 # ... but there are two gotchas:
11971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11973 # In both cases, we have to default to `cp -p'.
11974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11975 as_ln_s='cp -p'
11976 elif ln conf$$.file conf$$ 2>/dev/null; then
11977 as_ln_s=ln
11978 else
Jon Dugane34c20c2010-07-08 23:26:52 +000011979 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +000011980 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011981else
11982 as_ln_s='cp -p'
11983fi
11984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11985rmdir conf$$.dir 2>/dev/null
11986
Jon Dugan92864152010-09-20 21:50:12 +000011987
11988# as_fn_mkdir_p
11989# -------------
11990# Create "$as_dir" as a directory, including parents if necessary.
11991as_fn_mkdir_p ()
11992{
11993
11994 case $as_dir in #(
11995 -*) as_dir=./$as_dir;;
11996 esac
11997 test -d "$as_dir" || eval $as_mkdir_p || {
11998 as_dirs=
11999 while :; do
12000 case $as_dir in #(
12001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12002 *) as_qdir=$as_dir;;
12003 esac
12004 as_dirs="'$as_qdir' $as_dirs"
12005 as_dir=`$as_dirname -- "$as_dir" ||
12006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007 X"$as_dir" : 'X\(//\)[^/]' \| \
12008 X"$as_dir" : 'X\(//\)$' \| \
12009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12010$as_echo X"$as_dir" |
12011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\/\)[^/].*/{
12016 s//\1/
12017 q
12018 }
12019 /^X\(\/\/\)$/{
12020 s//\1/
12021 q
12022 }
12023 /^X\(\/\).*/{
12024 s//\1/
12025 q
12026 }
12027 s/.*/./; q'`
12028 test -d "$as_dir" && break
12029 done
12030 test -z "$as_dirs" || eval "mkdir $as_dirs"
jef2ab386b2012-08-10 12:43:50 -070012031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Jon Dugan92864152010-09-20 21:50:12 +000012032
12033
12034} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000012035if mkdir -p . 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +000012036 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000012037else
12038 test -d ./-p && rmdir ./-p
12039 as_mkdir_p=false
12040fi
12041
12042if test -x / >/dev/null 2>&1; then
12043 as_test_x='test -x'
12044else
12045 if ls -dL / >/dev/null 2>&1; then
12046 as_ls_L_option=L
12047 else
12048 as_ls_L_option=
12049 fi
12050 as_test_x='
12051 eval sh -c '\''
12052 if test -d "$1"; then
Jon Dugan92864152010-09-20 21:50:12 +000012053 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +000012054 else
Jon Dugan92864152010-09-20 21:50:12 +000012055 case $1 in #(
12056 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +000012057 esac;
Jon Dugan92864152010-09-20 21:50:12 +000012058 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000012059 ???[sx]*):;;*)false;;esac;fi
12060 '\'' sh
12061 '
12062fi
12063as_executable_p=$as_test_x
12064
12065# Sed expression to map a string onto a valid CPP name.
12066as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12067
12068# Sed expression to map a string onto a valid variable name.
12069as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12070
12071
12072exec 6>&1
Jon Dugan92864152010-09-20 21:50:12 +000012073## ----------------------------------- ##
12074## Main body of $CONFIG_STATUS script. ##
12075## ----------------------------------- ##
12076_ASEOF
12077test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012078
Jon Dugan92864152010-09-20 21:50:12 +000012079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12080# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000012081# report actual input values of CONFIG_FILES etc. instead of their
12082# values after options handling.
12083ac_log="
12084This file was extended by iperf $as_me 3.0a4, which was
jef2ab386b2012-08-10 12:43:50 -070012085generated by GNU Autoconf 2.68. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000012086
12087 CONFIG_FILES = $CONFIG_FILES
12088 CONFIG_HEADERS = $CONFIG_HEADERS
12089 CONFIG_LINKS = $CONFIG_LINKS
12090 CONFIG_COMMANDS = $CONFIG_COMMANDS
12091 $ $0 $@
12092
12093on `(hostname || uname -n) 2>/dev/null | sed 1q`
12094"
12095
12096_ACEOF
12097
Jon Dugan92864152010-09-20 21:50:12 +000012098case $ac_config_files in *"
12099"*) set x $ac_config_files; shift; ac_config_files=$*;;
12100esac
12101
12102case $ac_config_headers in *"
12103"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12104esac
12105
12106
12107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012108# Files that config.status was made for.
12109config_files="$ac_config_files"
12110config_headers="$ac_config_headers"
12111config_commands="$ac_config_commands"
12112
12113_ACEOF
12114
Jon Dugan92864152010-09-20 21:50:12 +000012115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012116ac_cs_usage="\
Jon Dugan92864152010-09-20 21:50:12 +000012117\`$as_me' instantiates files and other configuration actions
12118from templates according to the current configuration. Unless the files
12119and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000012120
Jon Dugan92864152010-09-20 21:50:12 +000012121Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000012122
12123 -h, --help print this help, then exit
12124 -V, --version print version number and configuration settings, then exit
Jon Dugan92864152010-09-20 21:50:12 +000012125 --config print configuration, then exit
12126 -q, --quiet, --silent
12127 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000012128 -d, --debug don't remove temporary files
12129 --recheck update $as_me by reconfiguring in the same conditions
Jon Dugan92864152010-09-20 21:50:12 +000012130 --file=FILE[:TEMPLATE]
12131 instantiate the configuration file FILE
12132 --header=FILE[:TEMPLATE]
12133 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000012134
12135Configuration files:
12136$config_files
12137
12138Configuration headers:
12139$config_headers
12140
12141Configuration commands:
12142$config_commands
12143
Jon Dugan92864152010-09-20 21:50:12 +000012144Report bugs to <iperf-users@lists.sourceforge.net>."
Jon Dugane34c20c2010-07-08 23:26:52 +000012145
12146_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12148ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000012149ac_cs_version="\\
12150iperf config.status 3.0a4
jef2ab386b2012-08-10 12:43:50 -070012151configured by $0, generated by GNU Autoconf 2.68,
Jon Dugan92864152010-09-20 21:50:12 +000012152 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000012153
jef2ab386b2012-08-10 12:43:50 -070012154Copyright (C) 2010 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000012155This config.status script is free software; the Free Software Foundation
12156gives unlimited permission to copy, distribute and modify it."
12157
12158ac_pwd='$ac_pwd'
12159srcdir='$srcdir'
12160INSTALL='$INSTALL'
sethdelliott01ca9722010-07-19 20:38:40 +000012161MKDIR_P='$MKDIR_P'
Jon Dugan92864152010-09-20 21:50:12 +000012162AWK='$AWK'
12163test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000012164_ACEOF
12165
Jon Dugan92864152010-09-20 21:50:12 +000012166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12167# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000012168ac_need_defaults=:
12169while test $# != 0
12170do
12171 case $1 in
jef2ab386b2012-08-10 12:43:50 -070012172 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000012173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12175 ac_shift=:
12176 ;;
jef2ab386b2012-08-10 12:43:50 -070012177 --*=)
12178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12179 ac_optarg=
12180 ac_shift=:
12181 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012182 *)
12183 ac_option=$1
12184 ac_optarg=$2
12185 ac_shift=shift
12186 ;;
12187 esac
12188
12189 case $ac_option in
12190 # Handling of the options.
12191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12192 ac_cs_recheck=: ;;
12193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jon Dugan92864152010-09-20 21:50:12 +000012194 $as_echo "$ac_cs_version"; exit ;;
12195 --config | --confi | --conf | --con | --co | --c )
12196 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012197 --debug | --debu | --deb | --de | --d | -d )
12198 debug=: ;;
12199 --file | --fil | --fi | --f )
12200 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000012201 case $ac_optarg in
12202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
jef2ab386b2012-08-10 12:43:50 -070012203 '') as_fn_error $? "missing file argument" ;;
Jon Dugan92864152010-09-20 21:50:12 +000012204 esac
12205 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012206 ac_need_defaults=false;;
12207 --header | --heade | --head | --hea )
12208 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000012209 case $ac_optarg in
12210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12211 esac
12212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012213 ac_need_defaults=false;;
12214 --he | --h)
12215 # Conflict between --help and --header
jef2ab386b2012-08-10 12:43:50 -070012216 as_fn_error $? "ambiguous option: \`$1'
Jon Dugan92864152010-09-20 21:50:12 +000012217Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000012218 --help | --hel | -h )
Jon Dugan92864152010-09-20 21:50:12 +000012219 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12222 ac_cs_silent=: ;;
12223
12224 # This is an error.
jef2ab386b2012-08-10 12:43:50 -070012225 -*) as_fn_error $? "unrecognized option: \`$1'
Jon Dugan92864152010-09-20 21:50:12 +000012226Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012227
Jon Dugan92864152010-09-20 21:50:12 +000012228 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000012229 ac_need_defaults=false ;;
12230
12231 esac
12232 shift
12233done
12234
12235ac_configure_extra_args=
12236
12237if $ac_cs_silent; then
12238 exec 6>/dev/null
12239 ac_configure_extra_args="$ac_configure_extra_args --silent"
12240fi
12241
12242_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012244if \$ac_cs_recheck; then
Jon Dugan92864152010-09-20 21:50:12 +000012245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12246 shift
12247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12248 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000012249 export CONFIG_SHELL
Jon Dugan92864152010-09-20 21:50:12 +000012250 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000012251fi
12252
12253_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012255exec 5>>config.log
12256{
12257 echo
12258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12259## Running $as_me. ##
12260_ASBOX
Jon Dugan92864152010-09-20 21:50:12 +000012261 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000012262} >&5
12263
12264_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012266#
12267# INIT-COMMANDS
12268#
12269AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12270
12271
12272# The HP-UX ksh and POSIX shell print the target directory to stdout
12273# if CDPATH is set.
12274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12275
12276sed_quote_subst='$sed_quote_subst'
12277double_quote_subst='$double_quote_subst'
12278delay_variable_subst='$delay_variable_subst'
Jon Dugan92864152010-09-20 21:50:12 +000012279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12281enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12282enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12283pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12284enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12285SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12286ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12287host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12288host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12289host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12290build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12291build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12292build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12293SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12294Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12295GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12296EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12297FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12298LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12299NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12300LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12301max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12302ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12303exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12304lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12305lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12306lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012307lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12308lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012309reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12310reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12311OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12312deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12313file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012314file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12315want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12316DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12317sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012318AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12319AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012320archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012321STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12322RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12323old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12324old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12325old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12326lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12327CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12328CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12329compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12330GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12331lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12333lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012335nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12336lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012337objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12338MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12339lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012340lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012341lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012342lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12343lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12344need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012345MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012346DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12347NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12348LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12349OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12350OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12351libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12352shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12353extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12354archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12355enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12356export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12357whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12358compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12359old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12360old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12361archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12362archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12363module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12364module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12365with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12366allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12367no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12368hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12369hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12370hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12371hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12372hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12373hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12374hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12375hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12376inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12377link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012378always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12379export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12380exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12381include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12382prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
jef2ab386b2012-08-10 12:43:50 -070012383postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
Jon Dugan92864152010-09-20 21:50:12 +000012384file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12385variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12386need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12387need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12388version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12389runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12390shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12391shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12392libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12393library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12394soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12395install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12396postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12397postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12398finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12399finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12400hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12401sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12402sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12403hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12404enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12405enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12406enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12407old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12408striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jon Dugane34c20c2010-07-08 23:26:52 +000012409
12410LTCC='$LTCC'
12411LTCFLAGS='$LTCFLAGS'
12412compiler='$compiler_DEFAULT'
12413
Jon Dugan92864152010-09-20 21:50:12 +000012414# A function that is used when there is no print builtin or printf.
12415func_fallback_echo ()
12416{
12417 eval 'cat <<_LTECHO_EOF
12418\$1
12419_LTECHO_EOF'
12420}
12421
Jon Dugane34c20c2010-07-08 23:26:52 +000012422# Quote evaled strings.
Jon Dugan92864152010-09-20 21:50:12 +000012423for var in SHELL \
12424ECHO \
12425SED \
Jon Dugane34c20c2010-07-08 23:26:52 +000012426GREP \
12427EGREP \
12428FGREP \
12429LD \
12430NM \
12431LN_S \
12432lt_SP2NL \
12433lt_NL2SP \
12434reload_flag \
Jon Dugan92864152010-09-20 21:50:12 +000012435OBJDUMP \
Jon Dugane34c20c2010-07-08 23:26:52 +000012436deplibs_check_method \
12437file_magic_cmd \
jef2ab386b2012-08-10 12:43:50 -070012438file_magic_glob \
12439want_nocaseglob \
12440DLLTOOL \
12441sharedlib_from_linklib_cmd \
Jon Dugane34c20c2010-07-08 23:26:52 +000012442AR \
12443AR_FLAGS \
jef2ab386b2012-08-10 12:43:50 -070012444archiver_list_spec \
Jon Dugane34c20c2010-07-08 23:26:52 +000012445STRIP \
12446RANLIB \
12447CC \
12448CFLAGS \
12449compiler \
12450lt_cv_sys_global_symbol_pipe \
12451lt_cv_sys_global_symbol_to_cdecl \
12452lt_cv_sys_global_symbol_to_c_name_address \
12453lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
jef2ab386b2012-08-10 12:43:50 -070012454nm_file_list_spec \
Jon Dugane34c20c2010-07-08 23:26:52 +000012455lt_prog_compiler_no_builtin_flag \
Jon Dugane34c20c2010-07-08 23:26:52 +000012456lt_prog_compiler_pic \
jef2ab386b2012-08-10 12:43:50 -070012457lt_prog_compiler_wl \
Jon Dugane34c20c2010-07-08 23:26:52 +000012458lt_prog_compiler_static \
12459lt_cv_prog_compiler_c_o \
12460need_locks \
jef2ab386b2012-08-10 12:43:50 -070012461MANIFEST_TOOL \
Jon Dugane34c20c2010-07-08 23:26:52 +000012462DSYMUTIL \
12463NMEDIT \
12464LIPO \
12465OTOOL \
12466OTOOL64 \
12467shrext_cmds \
12468export_dynamic_flag_spec \
12469whole_archive_flag_spec \
12470compiler_needs_object \
12471with_gnu_ld \
12472allow_undefined_flag \
12473no_undefined_flag \
12474hardcode_libdir_flag_spec \
12475hardcode_libdir_flag_spec_ld \
12476hardcode_libdir_separator \
Jon Dugane34c20c2010-07-08 23:26:52 +000012477exclude_expsyms \
12478include_expsyms \
12479file_list_spec \
12480variables_saved_for_relink \
12481libname_spec \
12482library_names_spec \
12483soname_spec \
Jon Dugan92864152010-09-20 21:50:12 +000012484install_override_mode \
Jon Dugane34c20c2010-07-08 23:26:52 +000012485finish_eval \
12486old_striplib \
12487striplib; do
Jon Dugan92864152010-09-20 21:50:12 +000012488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012489 *[\\\\\\\`\\"\\\$]*)
Jon Dugan92864152010-09-20 21:50:12 +000012490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Jon Dugane34c20c2010-07-08 23:26:52 +000012491 ;;
12492 *)
12493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12494 ;;
12495 esac
12496done
12497
12498# Double-quote double-evaled strings.
12499for var in reload_cmds \
12500old_postinstall_cmds \
12501old_postuninstall_cmds \
12502old_archive_cmds \
12503extract_expsyms_cmds \
12504old_archive_from_new_cmds \
12505old_archive_from_expsyms_cmds \
12506archive_cmds \
12507archive_expsym_cmds \
12508module_cmds \
12509module_expsym_cmds \
12510export_symbols_cmds \
12511prelink_cmds \
jef2ab386b2012-08-10 12:43:50 -070012512postlink_cmds \
Jon Dugane34c20c2010-07-08 23:26:52 +000012513postinstall_cmds \
12514postuninstall_cmds \
12515finish_cmds \
12516sys_lib_search_path_spec \
12517sys_lib_dlsearch_path_spec; do
Jon Dugan92864152010-09-20 21:50:12 +000012518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012519 *[\\\\\\\`\\"\\\$]*)
Jon Dugan92864152010-09-20 21:50:12 +000012520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Jon Dugane34c20c2010-07-08 23:26:52 +000012521 ;;
12522 *)
12523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12524 ;;
12525 esac
12526done
12527
12528ac_aux_dir='$ac_aux_dir'
12529xsi_shell='$xsi_shell'
12530lt_shell_append='$lt_shell_append'
12531
12532# See if we are running on zsh, and set the options which allow our
12533# commands through without removal of \ escapes INIT.
12534if test -n "\${ZSH_VERSION+set}" ; then
12535 setopt NO_GLOB_SUBST
12536fi
12537
12538
12539 PACKAGE='$PACKAGE'
12540 VERSION='$VERSION'
12541 TIMESTAMP='$TIMESTAMP'
12542 RM='$RM'
12543 ofile='$ofile'
12544
12545
12546
12547
12548_ACEOF
12549
Jon Dugan92864152010-09-20 21:50:12 +000012550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012551
12552# Handling of arguments.
12553for ac_config_target in $ac_config_targets
12554do
12555 case $ac_config_target in
12556 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12560 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12561
jef2ab386b2012-08-10 12:43:50 -070012562 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012563 esac
12564done
12565
12566
12567# If the user did not use the arguments to specify the items to instantiate,
12568# then the envvar interface is used. Set only those that are not.
12569# We use the long form for the default assignment because of an extremely
12570# bizarre bug on SunOS 4.1.3.
12571if $ac_need_defaults; then
12572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12575fi
12576
12577# Have a temporary directory for convenience. Make it in the build tree
12578# simply because there is no reason against having it here, and in addition,
12579# creating and moving files from /tmp can sometimes cause problems.
12580# Hook for its removal unless debugging.
12581# Note that there is a small window in which the directory will not be cleaned:
12582# after its creation but before its name has been assigned to `$tmp'.
12583$debug ||
12584{
jef2ab386b2012-08-10 12:43:50 -070012585 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000012586 trap 'exit_status=$?
jef2ab386b2012-08-10 12:43:50 -070012587 : "${ac_tmp:=$tmp}"
12588 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000012589' 0
Jon Dugan92864152010-09-20 21:50:12 +000012590 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000012591}
12592# Create a (secure) tmp directory for tmp files.
12593
12594{
12595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
jef2ab386b2012-08-10 12:43:50 -070012596 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000012597} ||
12598{
12599 tmp=./conf$$-$RANDOM
12600 (umask 077 && mkdir "$tmp")
jef2ab386b2012-08-10 12:43:50 -070012601} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12602ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000012603
Jon Dugan92864152010-09-20 21:50:12 +000012604# Set up the scripts for CONFIG_FILES section.
12605# No need to generate them if there are no CONFIG_FILES.
12606# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000012607if test -n "$CONFIG_FILES"; then
12608
Jon Dugan92864152010-09-20 21:50:12 +000012609
12610ac_cr=`echo X | tr X '\015'`
12611# On cygwin, bash can eat \r inside `` if the user requested igncr.
12612# But we know of no other shell where ac_cr would be empty at this
12613# point, so we can use a bashism as a fallback.
12614if test "x$ac_cr" = x; then
12615 eval ac_cr=\$\'\\r\'
12616fi
12617ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12618if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
jef2ab386b2012-08-10 12:43:50 -070012619 ac_cs_awk_cr='\\r'
Jon Dugan92864152010-09-20 21:50:12 +000012620else
12621 ac_cs_awk_cr=$ac_cr
12622fi
12623
jef2ab386b2012-08-10 12:43:50 -070012624echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012625_ACEOF
12626
12627
Jon Dugan92864152010-09-20 21:50:12 +000012628{
12629 echo "cat >conf$$subs.awk <<_ACEOF" &&
12630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12631 echo "_ACEOF"
12632} >conf$$subs.sh ||
jef2ab386b2012-08-10 12:43:50 -070012633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12634ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012635ac_delim='%!_!# '
12636for ac_last_try in false false false false false :; do
Jon Dugan92864152010-09-20 21:50:12 +000012637 . ./conf$$subs.sh ||
jef2ab386b2012-08-10 12:43:50 -070012638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012639
Jon Dugan92864152010-09-20 21:50:12 +000012640 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12641 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000012642 break
12643 elif $ac_last_try; then
jef2ab386b2012-08-10 12:43:50 -070012644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012645 else
12646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12647 fi
12648done
Jon Dugan92864152010-09-20 21:50:12 +000012649rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000012650
Jon Dugan92864152010-09-20 21:50:12 +000012651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jef2ab386b2012-08-10 12:43:50 -070012652cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012653_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012654sed -n '
12655h
12656s/^/S["/; s/!.*/"]=/
12657p
12658g
12659s/^[^!]*!//
12660:repl
12661t repl
12662s/'"$ac_delim"'$//
12663t delim
12664:nl
12665h
12666s/\(.\{148\}\)..*/\1/
12667t more1
12668s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12669p
12670n
12671b repl
12672:more1
12673s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12674p
12675g
12676s/.\{148\}//
12677t nl
12678:delim
12679h
12680s/\(.\{148\}\)..*/\1/
12681t more2
12682s/["\\]/\\&/g; s/^/"/; s/$/"/
12683p
12684b
12685:more2
12686s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12687p
12688g
12689s/.\{148\}//
12690t delim
12691' <conf$$subs.awk | sed '
12692/^[^""]/{
12693 N
12694 s/\n//
12695}
12696' >>$CONFIG_STATUS || ac_write_fail=1
12697rm -f conf$$subs.awk
12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699_ACAWK
jef2ab386b2012-08-10 12:43:50 -070012700cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Jon Dugan92864152010-09-20 21:50:12 +000012701 for (key in S) S_is_set[key] = 1
12702 FS = ""
12703
12704}
12705{
12706 line = $ 0
12707 nfields = split(line, field, "@")
12708 substed = 0
12709 len = length(field[1])
12710 for (i = 2; i < nfields; i++) {
12711 key = field[i]
12712 keylen = length(key)
12713 if (S_is_set[key]) {
12714 value = S[key]
12715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12716 len += length(value) + length(field[++i])
12717 substed = 1
12718 } else
12719 len += 1 + keylen
12720 }
12721
12722 print line
12723}
12724
12725_ACAWK
Jon Dugane34c20c2010-07-08 23:26:52 +000012726_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12728if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12730else
12731 cat
jef2ab386b2012-08-10 12:43:50 -070012732fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12733 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012734_ACEOF
12735
jef2ab386b2012-08-10 12:43:50 -070012736# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12737# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000012738# trailing colons and then remove the whole line if VPATH becomes empty
12739# (actually we leave an empty line to preserve line numbers).
12740if test "x$srcdir" = x.; then
jef2ab386b2012-08-10 12:43:50 -070012741 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12742h
12743s///
12744s/^/:/
12745s/[ ]*$/:/
12746s/:\$(srcdir):/:/g
12747s/:\${srcdir}:/:/g
12748s/:@srcdir@:/:/g
12749s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000012750s/:*$//
jef2ab386b2012-08-10 12:43:50 -070012751x
12752s/\(=[ ]*\).*/\1/
12753G
12754s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000012755s/^[^=]*=[ ]*$//
12756}'
12757fi
12758
Jon Dugan92864152010-09-20 21:50:12 +000012759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012760fi # test -n "$CONFIG_FILES"
12761
Jon Dugan92864152010-09-20 21:50:12 +000012762# Set up the scripts for CONFIG_HEADERS section.
12763# No need to generate them if there are no CONFIG_HEADERS.
12764# This happens for instance with `./config.status Makefile'.
12765if test -n "$CONFIG_HEADERS"; then
jef2ab386b2012-08-10 12:43:50 -070012766cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Jon Dugan92864152010-09-20 21:50:12 +000012767BEGIN {
12768_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000012769
Jon Dugan92864152010-09-20 21:50:12 +000012770# Transform confdefs.h into an awk script `defines.awk', embedded as
12771# here-document in config.status, that substitutes the proper values into
12772# config.h.in to produce config.h.
12773
12774# Create a delimiter string that does not exist in confdefs.h, to ease
12775# handling of long lines.
12776ac_delim='%!_!# '
12777for ac_last_try in false false :; do
jef2ab386b2012-08-10 12:43:50 -070012778 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12779 if test -z "$ac_tt"; then
Jon Dugan92864152010-09-20 21:50:12 +000012780 break
12781 elif $ac_last_try; then
jef2ab386b2012-08-10 12:43:50 -070012782 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +000012783 else
12784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12785 fi
12786done
12787
12788# For the awk script, D is an array of macro values keyed by name,
12789# likewise P contains macro parameters if any. Preserve backslash
12790# newline sequences.
12791
12792ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12793sed -n '
12794s/.\{148\}/&'"$ac_delim"'/g
12795t rset
12796:rset
12797s/^[ ]*#[ ]*define[ ][ ]*/ /
12798t def
12799d
12800:def
12801s/\\$//
12802t bsnl
12803s/["\\]/\\&/g
12804s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12805D["\1"]=" \3"/p
12806s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12807d
12808:bsnl
12809s/["\\]/\\&/g
12810s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12811D["\1"]=" \3\\\\\\n"\\/p
12812t cont
12813s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12814t cont
12815d
12816:cont
12817n
12818s/.\{148\}/&'"$ac_delim"'/g
12819t clear
12820:clear
12821s/\\$//
12822t bsnlc
12823s/["\\]/\\&/g; s/^/"/; s/$/"/p
12824d
12825:bsnlc
12826s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12827b cont
12828' <confdefs.h | sed '
12829s/'"$ac_delim"'/"\\\
12830"/g' >>$CONFIG_STATUS || ac_write_fail=1
12831
12832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12833 for (key in D) D_is_set[key] = 1
12834 FS = ""
12835}
12836/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12837 line = \$ 0
12838 split(line, arg, " ")
12839 if (arg[1] == "#") {
12840 defundef = arg[2]
12841 mac1 = arg[3]
12842 } else {
12843 defundef = substr(arg[1], 2)
12844 mac1 = arg[2]
12845 }
12846 split(mac1, mac2, "(") #)
12847 macro = mac2[1]
12848 prefix = substr(line, 1, index(line, defundef) - 1)
12849 if (D_is_set[macro]) {
12850 # Preserve the white space surrounding the "#".
12851 print prefix "define", macro P[macro] D[macro]
12852 next
12853 } else {
12854 # Replace #undef with comments. This is necessary, for example,
12855 # in the case of _POSIX_SOURCE, which is predefined and required
12856 # on some systems where configure will not decide to define it.
12857 if (defundef == "undef") {
12858 print "/*", prefix defundef, macro, "*/"
12859 next
12860 }
12861 }
12862}
12863{ print }
12864_ACAWK
12865_ACEOF
12866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
jef2ab386b2012-08-10 12:43:50 -070012867 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +000012868fi # test -n "$CONFIG_HEADERS"
12869
12870
12871eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12872shift
12873for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000012874do
12875 case $ac_tag in
12876 :[FHLC]) ac_mode=$ac_tag; continue;;
12877 esac
12878 case $ac_mode$ac_tag in
12879 :[FHL]*:*);;
jef2ab386b2012-08-10 12:43:50 -070012880 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012881 :[FH]-) ac_tag=-:-;;
12882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12883 esac
12884 ac_save_IFS=$IFS
12885 IFS=:
12886 set x $ac_tag
12887 IFS=$ac_save_IFS
12888 shift
12889 ac_file=$1
12890 shift
12891
12892 case $ac_mode in
12893 :L) ac_source=$1;;
12894 :[FH])
12895 ac_file_inputs=
12896 for ac_f
12897 do
12898 case $ac_f in
jef2ab386b2012-08-10 12:43:50 -070012899 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000012900 *) # Look for the file first in the build tree, then in the source tree
12901 # (if the path is not absolute). The absolute path cannot be DOS-style,
12902 # because $ac_f cannot contain `:'.
12903 test -f "$ac_f" ||
12904 case $ac_f in
12905 [\\/$]*) false;;
12906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12907 esac ||
jef2ab386b2012-08-10 12:43:50 -070012908 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012909 esac
Jon Dugan92864152010-09-20 21:50:12 +000012910 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12911 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012912 done
12913
12914 # Let's still pretend it is `configure' which instantiates (i.e., don't
12915 # use $as_me), people would be surprised to read:
12916 # /* config.h. Generated by config.status. */
Jon Dugan92864152010-09-20 21:50:12 +000012917 configure_input='Generated from '`
12918 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12919 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000012920 if test x"$ac_file" != x-; then
12921 configure_input="$ac_file. $configure_input"
Jon Dugan92864152010-09-20 21:50:12 +000012922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12923$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012924 fi
Jon Dugan92864152010-09-20 21:50:12 +000012925 # Neutralize special characters interpreted by sed in replacement strings.
12926 case $configure_input in #(
12927 *\&* | *\|* | *\\* )
12928 ac_sed_conf_input=`$as_echo "$configure_input" |
12929 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12930 *) ac_sed_conf_input=$configure_input;;
12931 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000012932
12933 case $ac_tag in
jef2ab386b2012-08-10 12:43:50 -070012934 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012936 esac
12937 ;;
12938 esac
12939
12940 ac_dir=`$as_dirname -- "$ac_file" ||
12941$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12942 X"$ac_file" : 'X\(//\)[^/]' \| \
12943 X"$ac_file" : 'X\(//\)$' \| \
12944 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000012945$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12947 s//\1/
12948 q
12949 }
12950 /^X\(\/\/\)[^/].*/{
12951 s//\1/
12952 q
12953 }
12954 /^X\(\/\/\)$/{
12955 s//\1/
12956 q
12957 }
12958 /^X\(\/\).*/{
12959 s//\1/
12960 q
12961 }
12962 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000012963 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000012964 ac_builddir=.
12965
12966case "$ac_dir" in
12967.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12968*)
Jon Dugan92864152010-09-20 21:50:12 +000012969 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012970 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +000012971 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012972 case $ac_top_builddir_sub in
12973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12975 esac ;;
12976esac
12977ac_abs_top_builddir=$ac_pwd
12978ac_abs_builddir=$ac_pwd$ac_dir_suffix
12979# for backward compatibility:
12980ac_top_builddir=$ac_top_build_prefix
12981
12982case $srcdir in
12983 .) # We are building in place.
12984 ac_srcdir=.
12985 ac_top_srcdir=$ac_top_builddir_sub
12986 ac_abs_top_srcdir=$ac_pwd ;;
12987 [\\/]* | ?:[\\/]* ) # Absolute name.
12988 ac_srcdir=$srcdir$ac_dir_suffix;
12989 ac_top_srcdir=$srcdir
12990 ac_abs_top_srcdir=$srcdir ;;
12991 *) # Relative name.
12992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12993 ac_top_srcdir=$ac_top_build_prefix$srcdir
12994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12995esac
12996ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12997
12998
12999 case $ac_mode in
13000 :F)
13001 #
13002 # CONFIG_FILE
13003 #
13004
13005 case $INSTALL in
13006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13008 esac
sethdelliott01ca9722010-07-19 20:38:40 +000013009 ac_MKDIR_P=$MKDIR_P
13010 case $MKDIR_P in
13011 [\\/$]* | ?:[\\/]* ) ;;
13012 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13013 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000013014_ACEOF
13015
Jon Dugan92864152010-09-20 21:50:12 +000013016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013017# If the template does not know about datarootdir, expand it.
13018# FIXME: This hack should be removed a few years after 2.60.
13019ac_datarootdir_hack=; ac_datarootdir_seen=
Jon Dugan92864152010-09-20 21:50:12 +000013020ac_sed_dataroot='
13021/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000013022 p
13023 q
13024}
13025/@datadir@/p
13026/@docdir@/p
13027/@infodir@/p
13028/@localedir@/p
Jon Dugan92864152010-09-20 21:50:12 +000013029/@mandir@/p'
13030case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013031*datarootdir*) ac_datarootdir_seen=yes;;
13032*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jon Dugan92864152010-09-20 21:50:12 +000013033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13034$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013035_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000013036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013037 ac_datarootdir_hack='
13038 s&@datadir@&$datadir&g
13039 s&@docdir@&$docdir&g
13040 s&@infodir@&$infodir&g
13041 s&@localedir@&$localedir&g
13042 s&@mandir@&$mandir&g
Jon Dugan92864152010-09-20 21:50:12 +000013043 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013044esac
13045_ACEOF
13046
13047# Neutralize VPATH when `$srcdir' = `.'.
13048# Shell code in configure.ac might set extrasub.
13049# FIXME: do we really want to maintain this feature?
Jon Dugan92864152010-09-20 21:50:12 +000013050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13051ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000013052$extrasub
13053_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000013054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013055:t
13056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jon Dugan92864152010-09-20 21:50:12 +000013057s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013058s&@top_builddir@&$ac_top_builddir_sub&;t t
Jon Dugan92864152010-09-20 21:50:12 +000013059s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013060s&@srcdir@&$ac_srcdir&;t t
13061s&@abs_srcdir@&$ac_abs_srcdir&;t t
13062s&@top_srcdir@&$ac_top_srcdir&;t t
13063s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13064s&@builddir@&$ac_builddir&;t t
13065s&@abs_builddir@&$ac_abs_builddir&;t t
13066s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13067s&@INSTALL@&$ac_INSTALL&;t t
sethdelliott01ca9722010-07-19 20:38:40 +000013068s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013069$ac_datarootdir_hack
Jon Dugan92864152010-09-20 21:50:12 +000013070"
jef2ab386b2012-08-10 12:43:50 -070013071eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13072 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013073
13074test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
jef2ab386b2012-08-10 12:43:50 -070013075 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13076 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13077 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Jon Dugan92864152010-09-20 21:50:12 +000013078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
jef2ab386b2012-08-10 12:43:50 -070013079which seems to be undefined. Please make sure it is defined" >&5
Jon Dugan92864152010-09-20 21:50:12 +000013080$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
jef2ab386b2012-08-10 12:43:50 -070013081which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013082
jef2ab386b2012-08-10 12:43:50 -070013083 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000013084 case $ac_file in
jef2ab386b2012-08-10 12:43:50 -070013085 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13086 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Jon Dugan92864152010-09-20 21:50:12 +000013087 esac \
jef2ab386b2012-08-10 12:43:50 -070013088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013089 ;;
13090 :H)
13091 #
13092 # CONFIG_HEADER
13093 #
13094 if test x"$ac_file" != x-; then
Jon Dugan92864152010-09-20 21:50:12 +000013095 {
13096 $as_echo "/* $configure_input */" \
jef2ab386b2012-08-10 12:43:50 -070013097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13098 } >"$ac_tmp/config.h" \
13099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13100 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Jon Dugan92864152010-09-20 21:50:12 +000013101 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13102$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013103 else
Jon Dugan92864152010-09-20 21:50:12 +000013104 rm -f "$ac_file"
jef2ab386b2012-08-10 12:43:50 -070013105 mv "$ac_tmp/config.h" "$ac_file" \
13106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013107 fi
13108 else
Jon Dugan92864152010-09-20 21:50:12 +000013109 $as_echo "/* $configure_input */" \
jef2ab386b2012-08-10 12:43:50 -070013110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13111 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000013112 fi
Jon Dugan92864152010-09-20 21:50:12 +000013113# Compute "$ac_file"'s index in $config_headers.
13114_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000013115_am_stamp_count=1
13116for _am_header in $config_headers :; do
13117 case $_am_header in
Jon Dugan92864152010-09-20 21:50:12 +000013118 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000013119 break ;;
13120 * )
13121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13122 esac
13123done
Jon Dugan92864152010-09-20 21:50:12 +000013124echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13125$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13126 X"$_am_arg" : 'X\(//\)[^/]' \| \
13127 X"$_am_arg" : 'X\(//\)$' \| \
13128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13129$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13131 s//\1/
13132 q
13133 }
13134 /^X\(\/\/\)[^/].*/{
13135 s//\1/
13136 q
13137 }
13138 /^X\(\/\/\)$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\(\/\).*/{
13143 s//\1/
13144 q
13145 }
13146 s/.*/./; q'`/stamp-h$_am_stamp_count
13147 ;;
13148
Jon Dugan92864152010-09-20 21:50:12 +000013149 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13150$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013151 ;;
13152 esac
13153
13154
13155 case $ac_file$ac_mode in
Jon Dugan92864152010-09-20 21:50:12 +000013156 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13157 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13158 # are listed without --file. Let's play safe and only enable the eval
13159 # if we detect the quoting.
13160 case $CONFIG_FILES in
13161 *\'*) eval set x "$CONFIG_FILES" ;;
13162 *) set x $CONFIG_FILES ;;
13163 esac
13164 shift
13165 for mf
13166 do
13167 # Strip MF so we end up with the name of the file.
13168 mf=`echo "$mf" | sed -e 's/:.*$//'`
13169 # Check whether this is an Automake generated Makefile or not.
13170 # We used to match only the files named `Makefile.in', but
13171 # some people rename them; so instead we look at the file content.
13172 # Grep'ing the first line is not enough: some people post-process
13173 # each Makefile.in and add a new line on top of each file to say so.
13174 # Grep'ing the whole file is not good either: AIX grep has a line
13175 # limit of 2048, but all sed's we know have understand at least 4000.
13176 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13177 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013178$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13179 X"$mf" : 'X\(//\)[^/]' \| \
13180 X"$mf" : 'X\(//\)$' \| \
13181 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000013182$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13184 s//\1/
13185 q
13186 }
13187 /^X\(\/\/\)[^/].*/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\/\)$/{
13192 s//\1/
13193 q
13194 }
13195 /^X\(\/\).*/{
13196 s//\1/
13197 q
13198 }
13199 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000013200 else
13201 continue
13202 fi
13203 # Extract the definition of DEPDIR, am__include, and am__quote
13204 # from the Makefile without running `make'.
13205 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13206 test -z "$DEPDIR" && continue
13207 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13208 test -z "am__include" && continue
13209 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13210 # When using ansi2knr, U may be empty or an underscore; expand it
13211 U=`sed -n 's/^U = //p' < "$mf"`
13212 # Find all dependency output files, they are included files with
13213 # $(DEPDIR) in their names. We invoke sed twice because it is the
13214 # simplest approach to changing $(DEPDIR) to its actual value in the
13215 # expansion.
13216 for file in `sed -n "
13217 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13219 # Make sure the directory exists.
13220 test -f "$dirpart/$file" && continue
13221 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013222$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13223 X"$file" : 'X\(//\)[^/]' \| \
13224 X"$file" : 'X\(//\)$' \| \
13225 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000013226$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13228 s//\1/
13229 q
13230 }
13231 /^X\(\/\/\)[^/].*/{
13232 s//\1/
13233 q
13234 }
13235 /^X\(\/\/\)$/{
13236 s//\1/
13237 q
13238 }
13239 /^X\(\/\).*/{
13240 s//\1/
13241 q
13242 }
13243 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000013244 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13245 # echo "creating $dirpart/$file"
13246 echo '# dummy' > "$dirpart/$file"
sethdelliott01ca9722010-07-19 20:38:40 +000013247 done
Jon Dugane34c20c2010-07-08 23:26:52 +000013248 done
Jon Dugan92864152010-09-20 21:50:12 +000013249}
Jon Dugane34c20c2010-07-08 23:26:52 +000013250 ;;
13251 "libtool":C)
13252
13253 # See if we are running on zsh, and set the options which allow our
13254 # commands through without removal of \ escapes.
13255 if test -n "${ZSH_VERSION+set}" ; then
13256 setopt NO_GLOB_SUBST
13257 fi
13258
13259 cfgfile="${ofile}T"
Jon Dugan92864152010-09-20 21:50:12 +000013260 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13261 $RM "$cfgfile"
Jon Dugane34c20c2010-07-08 23:26:52 +000013262
13263 cat <<_LT_EOF >> "$cfgfile"
13264#! $SHELL
13265
13266# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13267# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13269# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13270#
13271# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Jon Dugan92864152010-09-20 21:50:12 +000013272# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13273# Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000013274# Written by Gordon Matzigkeit, 1996
13275#
13276# This file is part of GNU Libtool.
13277#
13278# GNU Libtool is free software; you can redistribute it and/or
13279# modify it under the terms of the GNU General Public License as
13280# published by the Free Software Foundation; either version 2 of
13281# the License, or (at your option) any later version.
13282#
13283# As a special exception to the GNU General Public License,
13284# if you distribute this file as part of a program or library that
13285# is built using GNU Libtool, you may include this file under the
13286# same distribution terms that you use for the rest of that program.
13287#
13288# GNU Libtool is distributed in the hope that it will be useful,
13289# but WITHOUT ANY WARRANTY; without even the implied warranty of
13290# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13291# GNU General Public License for more details.
13292#
13293# You should have received a copy of the GNU General Public License
13294# along with GNU Libtool; see the file COPYING. If not, a copy
13295# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13296# obtained by writing to the Free Software Foundation, Inc.,
13297# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13298
13299
13300# The names of the tagged configurations supported by this script.
13301available_tags=""
13302
13303# ### BEGIN LIBTOOL CONFIG
13304
13305# Which release of libtool.m4 was used?
13306macro_version=$macro_version
13307macro_revision=$macro_revision
13308
13309# Whether or not to build shared libraries.
13310build_libtool_libs=$enable_shared
13311
13312# Whether or not to build static libraries.
13313build_old_libs=$enable_static
13314
13315# What type of objects to build.
13316pic_mode=$pic_mode
13317
13318# Whether or not to optimize for fast installation.
13319fast_install=$enable_fast_install
13320
Jon Dugan92864152010-09-20 21:50:12 +000013321# Shell to use when invoking shell scripts.
13322SHELL=$lt_SHELL
13323
13324# An echo program that protects backslashes.
13325ECHO=$lt_ECHO
13326
Jon Dugane34c20c2010-07-08 23:26:52 +000013327# The host system.
13328host_alias=$host_alias
13329host=$host
13330host_os=$host_os
13331
13332# The build system.
13333build_alias=$build_alias
13334build=$build
13335build_os=$build_os
13336
13337# A sed program that does not truncate output.
13338SED=$lt_SED
13339
13340# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13341Xsed="\$SED -e 1s/^X//"
13342
13343# A grep program that handles long lines.
13344GREP=$lt_GREP
13345
13346# An ERE matcher.
13347EGREP=$lt_EGREP
13348
13349# A literal string matcher.
13350FGREP=$lt_FGREP
13351
13352# A BSD- or MS-compatible name lister.
13353NM=$lt_NM
13354
13355# Whether we need soft or hard links.
13356LN_S=$lt_LN_S
13357
13358# What is the maximum length of a command?
13359max_cmd_len=$max_cmd_len
13360
13361# Object file suffix (normally "o").
13362objext=$ac_objext
13363
13364# Executable file suffix (normally "").
13365exeext=$exeext
13366
13367# whether the shell understands "unset".
13368lt_unset=$lt_unset
13369
13370# turn spaces into newlines.
13371SP2NL=$lt_lt_SP2NL
13372
13373# turn newlines into spaces.
13374NL2SP=$lt_lt_NL2SP
13375
jef2ab386b2012-08-10 12:43:50 -070013376# convert \$build file names to \$host format.
13377to_host_file_cmd=$lt_cv_to_host_file_cmd
13378
13379# convert \$build files to toolchain format.
13380to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13381
Jon Dugan92864152010-09-20 21:50:12 +000013382# An object symbol dumper.
13383OBJDUMP=$lt_OBJDUMP
Jon Dugane34c20c2010-07-08 23:26:52 +000013384
13385# Method to check whether dependent libraries are shared objects.
13386deplibs_check_method=$lt_deplibs_check_method
13387
jef2ab386b2012-08-10 12:43:50 -070013388# Command to use when deplibs_check_method = "file_magic".
Jon Dugane34c20c2010-07-08 23:26:52 +000013389file_magic_cmd=$lt_file_magic_cmd
13390
jef2ab386b2012-08-10 12:43:50 -070013391# How to find potential files when deplibs_check_method = "file_magic".
13392file_magic_glob=$lt_file_magic_glob
13393
13394# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13395want_nocaseglob=$lt_want_nocaseglob
13396
13397# DLL creation program.
13398DLLTOOL=$lt_DLLTOOL
13399
13400# Command to associate shared and link libraries.
13401sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13402
Jon Dugane34c20c2010-07-08 23:26:52 +000013403# The archiver.
13404AR=$lt_AR
jef2ab386b2012-08-10 12:43:50 -070013405
13406# Flags to create an archive.
Jon Dugane34c20c2010-07-08 23:26:52 +000013407AR_FLAGS=$lt_AR_FLAGS
13408
jef2ab386b2012-08-10 12:43:50 -070013409# How to feed a file listing to the archiver.
13410archiver_list_spec=$lt_archiver_list_spec
13411
Jon Dugane34c20c2010-07-08 23:26:52 +000013412# A symbol stripping program.
13413STRIP=$lt_STRIP
13414
13415# Commands used to install an old-style archive.
13416RANLIB=$lt_RANLIB
13417old_postinstall_cmds=$lt_old_postinstall_cmds
13418old_postuninstall_cmds=$lt_old_postuninstall_cmds
13419
Jon Dugan92864152010-09-20 21:50:12 +000013420# Whether to use a lock for old archive extraction.
13421lock_old_archive_extraction=$lock_old_archive_extraction
13422
Jon Dugane34c20c2010-07-08 23:26:52 +000013423# A C compiler.
13424LTCC=$lt_CC
13425
13426# LTCC compiler flags.
13427LTCFLAGS=$lt_CFLAGS
13428
13429# Take the output of nm and produce a listing of raw symbols and C names.
13430global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13431
13432# Transform the output of nm in a proper C declaration.
13433global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13434
13435# Transform the output of nm in a C name address pair.
13436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13437
13438# Transform the output of nm in a C name address pair when lib prefix is needed.
13439global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13440
jef2ab386b2012-08-10 12:43:50 -070013441# Specify filename containing input files for \$NM.
13442nm_file_list_spec=$lt_nm_file_list_spec
13443
13444# The root where to search for dependent libraries,and in which our libraries should be installed.
13445lt_sysroot=$lt_sysroot
13446
Jon Dugane34c20c2010-07-08 23:26:52 +000013447# The name of the directory that contains temporary libtool files.
13448objdir=$objdir
13449
13450# Used to examine libraries when file_magic_cmd begins with "file".
13451MAGIC_CMD=$MAGIC_CMD
13452
13453# Must we lock files when doing compilation?
13454need_locks=$lt_need_locks
13455
jef2ab386b2012-08-10 12:43:50 -070013456# Manifest tool.
13457MANIFEST_TOOL=$lt_MANIFEST_TOOL
13458
Jon Dugane34c20c2010-07-08 23:26:52 +000013459# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13460DSYMUTIL=$lt_DSYMUTIL
13461
13462# Tool to change global to local symbols on Mac OS X.
13463NMEDIT=$lt_NMEDIT
13464
13465# Tool to manipulate fat objects and archives on Mac OS X.
13466LIPO=$lt_LIPO
13467
13468# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13469OTOOL=$lt_OTOOL
13470
13471# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13472OTOOL64=$lt_OTOOL64
13473
13474# Old archive suffix (normally "a").
13475libext=$libext
13476
13477# Shared library suffix (normally ".so").
13478shrext_cmds=$lt_shrext_cmds
13479
13480# The commands to extract the exported symbol list from a shared archive.
13481extract_expsyms_cmds=$lt_extract_expsyms_cmds
13482
13483# Variables whose values should be saved in libtool wrapper scripts and
13484# restored at link time.
13485variables_saved_for_relink=$lt_variables_saved_for_relink
13486
13487# Do we need the "lib" prefix for modules?
13488need_lib_prefix=$need_lib_prefix
13489
13490# Do we need a version for libraries?
13491need_version=$need_version
13492
13493# Library versioning type.
13494version_type=$version_type
13495
13496# Shared library runtime path variable.
13497runpath_var=$runpath_var
13498
13499# Shared library path variable.
13500shlibpath_var=$shlibpath_var
13501
13502# Is shlibpath searched before the hard-coded library search path?
13503shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13504
13505# Format of library name prefix.
13506libname_spec=$lt_libname_spec
13507
13508# List of archive names. First name is the real one, the rest are links.
13509# The last name is the one that the linker finds with -lNAME
13510library_names_spec=$lt_library_names_spec
13511
13512# The coded name of the library, if different from the real name.
13513soname_spec=$lt_soname_spec
13514
Jon Dugan92864152010-09-20 21:50:12 +000013515# Permission mode override for installation of shared libraries.
13516install_override_mode=$lt_install_override_mode
13517
Jon Dugane34c20c2010-07-08 23:26:52 +000013518# Command to use after installation of a shared archive.
13519postinstall_cmds=$lt_postinstall_cmds
13520
13521# Command to use after uninstallation of a shared archive.
13522postuninstall_cmds=$lt_postuninstall_cmds
13523
13524# Commands used to finish a libtool library installation in a directory.
13525finish_cmds=$lt_finish_cmds
13526
13527# As "finish_cmds", except a single script fragment to be evaled but
13528# not shown.
13529finish_eval=$lt_finish_eval
13530
13531# Whether we should hardcode library paths into libraries.
13532hardcode_into_libs=$hardcode_into_libs
13533
13534# Compile-time system search path for libraries.
13535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13536
13537# Run-time system search path for libraries.
13538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13539
13540# Whether dlopen is supported.
13541dlopen_support=$enable_dlopen
13542
13543# Whether dlopen of programs is supported.
13544dlopen_self=$enable_dlopen_self
13545
13546# Whether dlopen of statically linked programs is supported.
13547dlopen_self_static=$enable_dlopen_self_static
13548
13549# Commands to strip libraries.
13550old_striplib=$lt_old_striplib
13551striplib=$lt_striplib
13552
13553
13554# The linker used to build libraries.
13555LD=$lt_LD
13556
Jon Dugan92864152010-09-20 21:50:12 +000013557# How to create reloadable object files.
13558reload_flag=$lt_reload_flag
13559reload_cmds=$lt_reload_cmds
13560
Jon Dugane34c20c2010-07-08 23:26:52 +000013561# Commands used to build an old-style archive.
13562old_archive_cmds=$lt_old_archive_cmds
13563
13564# A language specific compiler.
13565CC=$lt_compiler
13566
13567# Is the compiler the GNU compiler?
13568with_gcc=$GCC
13569
13570# Compiler flag to turn off builtin functions.
13571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13572
Jon Dugane34c20c2010-07-08 23:26:52 +000013573# Additional compiler flags for building library objects.
13574pic_flag=$lt_lt_prog_compiler_pic
13575
jef2ab386b2012-08-10 12:43:50 -070013576# How to pass a linker flag through the compiler.
13577wl=$lt_lt_prog_compiler_wl
13578
Jon Dugane34c20c2010-07-08 23:26:52 +000013579# Compiler flag to prevent dynamic linking.
13580link_static_flag=$lt_lt_prog_compiler_static
13581
13582# Does compiler simultaneously support -c and -o options?
13583compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13584
13585# Whether or not to add -lc for building shared libraries.
13586build_libtool_need_lc=$archive_cmds_need_lc
13587
13588# Whether or not to disallow shared libs when runtime libs are static.
13589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13590
13591# Compiler flag to allow reflexive dlopens.
13592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13593
13594# Compiler flag to generate shared objects directly from archives.
13595whole_archive_flag_spec=$lt_whole_archive_flag_spec
13596
13597# Whether the compiler copes with passing no objects directly.
13598compiler_needs_object=$lt_compiler_needs_object
13599
13600# Create an old-style archive from a shared archive.
13601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13602
13603# Create a temporary old-style archive to link instead of a shared archive.
13604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13605
13606# Commands used to build a shared archive.
13607archive_cmds=$lt_archive_cmds
13608archive_expsym_cmds=$lt_archive_expsym_cmds
13609
13610# Commands used to build a loadable module if different from building
13611# a shared archive.
13612module_cmds=$lt_module_cmds
13613module_expsym_cmds=$lt_module_expsym_cmds
13614
13615# Whether we are building with GNU ld or not.
13616with_gnu_ld=$lt_with_gnu_ld
13617
13618# Flag that allows shared libraries with undefined symbols to be built.
13619allow_undefined_flag=$lt_allow_undefined_flag
13620
13621# Flag that enforces no undefined symbols.
13622no_undefined_flag=$lt_no_undefined_flag
13623
13624# Flag to hardcode \$libdir into a binary during linking.
13625# This must work even if \$libdir does not exist
13626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13627
13628# If ld is used when linking, flag to hardcode \$libdir into a binary
13629# during linking. This must work even if \$libdir does not exist.
13630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13631
13632# Whether we need a single "-rpath" flag with a separated argument.
13633hardcode_libdir_separator=$lt_hardcode_libdir_separator
13634
13635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13636# DIR into the resulting binary.
13637hardcode_direct=$hardcode_direct
13638
13639# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13640# DIR into the resulting binary and the resulting library dependency is
13641# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13642# library is relocated.
13643hardcode_direct_absolute=$hardcode_direct_absolute
13644
13645# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13646# into the resulting binary.
13647hardcode_minus_L=$hardcode_minus_L
13648
13649# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13650# into the resulting binary.
13651hardcode_shlibpath_var=$hardcode_shlibpath_var
13652
13653# Set to "yes" if building a shared library automatically hardcodes DIR
13654# into the library and all subsequent libraries and executables linked
13655# against it.
13656hardcode_automatic=$hardcode_automatic
13657
13658# Set to yes if linker adds runtime paths of dependent libraries
13659# to runtime path list.
13660inherit_rpath=$inherit_rpath
13661
13662# Whether libtool must link a program against all its dependency libraries.
13663link_all_deplibs=$link_all_deplibs
13664
Jon Dugane34c20c2010-07-08 23:26:52 +000013665# Set to "yes" if exported symbols are required.
13666always_export_symbols=$always_export_symbols
13667
13668# The commands to list exported symbols.
13669export_symbols_cmds=$lt_export_symbols_cmds
13670
13671# Symbols that should not be listed in the preloaded symbols.
13672exclude_expsyms=$lt_exclude_expsyms
13673
13674# Symbols that must always be exported.
13675include_expsyms=$lt_include_expsyms
13676
13677# Commands necessary for linking programs (against libraries) with templates.
13678prelink_cmds=$lt_prelink_cmds
13679
jef2ab386b2012-08-10 12:43:50 -070013680# Commands necessary for finishing linking programs.
13681postlink_cmds=$lt_postlink_cmds
13682
Jon Dugane34c20c2010-07-08 23:26:52 +000013683# Specify filename containing input files.
13684file_list_spec=$lt_file_list_spec
13685
13686# How to hardcode a shared library path into an executable.
13687hardcode_action=$hardcode_action
13688
13689# ### END LIBTOOL CONFIG
13690
13691_LT_EOF
13692
13693 case $host_os in
13694 aix3*)
13695 cat <<\_LT_EOF >> "$cfgfile"
13696# AIX sometimes has problems with the GCC collect2 program. For some
13697# reason, if we set the COLLECT_NAMES environment variable, the problems
13698# vanish in a puff of smoke.
13699if test "X${COLLECT_NAMES+set}" != Xset; then
13700 COLLECT_NAMES=
13701 export COLLECT_NAMES
13702fi
13703_LT_EOF
13704 ;;
13705 esac
13706
13707
13708ltmain="$ac_aux_dir/ltmain.sh"
13709
13710
13711 # We use sed instead of cat because bash on DJGPP gets confused if
13712 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13713 # text mode, it properly converts lines to CR/LF. This bash problem
13714 # is reportedly fixed, but why not run on old versions too?
jef2ab386b2012-08-10 12:43:50 -070013715 sed '$q' "$ltmain" >> "$cfgfile" \
13716 || (rm -f "$cfgfile"; exit 1)
Jon Dugane34c20c2010-07-08 23:26:52 +000013717
jef2ab386b2012-08-10 12:43:50 -070013718 if test x"$xsi_shell" = xyes; then
13719 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13720func_dirname ()\
13721{\
13722\ case ${1} in\
13723\ */*) func_dirname_result="${1%/*}${2}" ;;\
13724\ * ) func_dirname_result="${3}" ;;\
13725\ esac\
13726} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13727 && mv -f "$cfgfile.tmp" "$cfgfile" \
13728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13729test 0 -eq $? || _lt_function_replace_fail=:
Jon Dugane34c20c2010-07-08 23:26:52 +000013730
13731
jef2ab386b2012-08-10 12:43:50 -070013732 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13733func_basename ()\
13734{\
13735\ func_basename_result="${1##*/}"\
13736} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13737 && mv -f "$cfgfile.tmp" "$cfgfile" \
13738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13739test 0 -eq $? || _lt_function_replace_fail=:
Jon Dugane34c20c2010-07-08 23:26:52 +000013740
13741
jef2ab386b2012-08-10 12:43:50 -070013742 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13743func_dirname_and_basename ()\
13744{\
13745\ case ${1} in\
13746\ */*) func_dirname_result="${1%/*}${2}" ;;\
13747\ * ) func_dirname_result="${3}" ;;\
13748\ esac\
13749\ func_basename_result="${1##*/}"\
13750} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13751 && mv -f "$cfgfile.tmp" "$cfgfile" \
13752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13753test 0 -eq $? || _lt_function_replace_fail=:
Jon Dugane34c20c2010-07-08 23:26:52 +000013754
jef2ab386b2012-08-10 12:43:50 -070013755
13756 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13757func_stripname ()\
13758{\
13759\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13760\ # positional parameters, so assign one to ordinary parameter first.\
13761\ func_stripname_result=${3}\
13762\ func_stripname_result=${func_stripname_result#"${1}"}\
13763\ func_stripname_result=${func_stripname_result%"${2}"}\
13764} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13765 && mv -f "$cfgfile.tmp" "$cfgfile" \
13766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13767test 0 -eq $? || _lt_function_replace_fail=:
13768
13769
13770 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13771func_split_long_opt ()\
13772{\
13773\ func_split_long_opt_name=${1%%=*}\
13774\ func_split_long_opt_arg=${1#*=}\
13775} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13776 && mv -f "$cfgfile.tmp" "$cfgfile" \
13777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13778test 0 -eq $? || _lt_function_replace_fail=:
13779
13780
13781 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13782func_split_short_opt ()\
13783{\
13784\ func_split_short_opt_arg=${1#??}\
13785\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13786} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13787 && mv -f "$cfgfile.tmp" "$cfgfile" \
13788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13789test 0 -eq $? || _lt_function_replace_fail=:
13790
13791
13792 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13793func_lo2o ()\
13794{\
13795\ case ${1} in\
13796\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13797\ *) func_lo2o_result=${1} ;;\
13798\ esac\
13799} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13800 && mv -f "$cfgfile.tmp" "$cfgfile" \
13801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13802test 0 -eq $? || _lt_function_replace_fail=:
13803
13804
13805 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13806func_xform ()\
13807{\
13808 func_xform_result=${1%.*}.lo\
13809} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13810 && mv -f "$cfgfile.tmp" "$cfgfile" \
13811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13812test 0 -eq $? || _lt_function_replace_fail=:
13813
13814
13815 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13816func_arith ()\
13817{\
13818 func_arith_result=$(( $* ))\
13819} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13820 && mv -f "$cfgfile.tmp" "$cfgfile" \
13821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13822test 0 -eq $? || _lt_function_replace_fail=:
13823
13824
13825 sed -e '/^func_len ()$/,/^} # func_len /c\
13826func_len ()\
13827{\
13828 func_len_result=${#1}\
13829} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13830 && mv -f "$cfgfile.tmp" "$cfgfile" \
13831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13832test 0 -eq $? || _lt_function_replace_fail=:
13833
13834fi
13835
13836if test x"$lt_shell_append" = xyes; then
13837 sed -e '/^func_append ()$/,/^} # func_append /c\
13838func_append ()\
13839{\
13840 eval "${1}+=\\${2}"\
13841} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13842 && mv -f "$cfgfile.tmp" "$cfgfile" \
13843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13844test 0 -eq $? || _lt_function_replace_fail=:
13845
13846
13847 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13848func_append_quoted ()\
13849{\
13850\ func_quote_for_eval "${2}"\
13851\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13852} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13853 && mv -f "$cfgfile.tmp" "$cfgfile" \
13854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13855test 0 -eq $? || _lt_function_replace_fail=:
13856
13857
13858 # Save a `func_append' function call where possible by direct use of '+='
13859 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13860 && mv -f "$cfgfile.tmp" "$cfgfile" \
13861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13862 test 0 -eq $? || _lt_function_replace_fail=:
13863else
13864 # Save a `func_append' function call even when '+=' is not available
13865 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13866 && mv -f "$cfgfile.tmp" "$cfgfile" \
13867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13868 test 0 -eq $? || _lt_function_replace_fail=:
13869fi
13870
13871if test x"$_lt_function_replace_fail" = x":"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13873$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13874fi
13875
13876
13877 mv -f "$cfgfile" "$ofile" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013878 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13879 chmod +x "$ofile"
13880
13881 ;;
13882
13883 esac
13884done # for ac_tag
13885
13886
Jon Dugan92864152010-09-20 21:50:12 +000013887as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000013888_ACEOF
13889ac_clean_files=$ac_clean_files_save
13890
Jon Dugan92864152010-09-20 21:50:12 +000013891test $ac_write_fail = 0 ||
jef2ab386b2012-08-10 12:43:50 -070013892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Jon Dugan92864152010-09-20 21:50:12 +000013893
Jon Dugane34c20c2010-07-08 23:26:52 +000013894
13895# configure is writing to config.log, and then calls config.status.
13896# config.status does its own redirection, appending to config.log.
13897# Unfortunately, on DOS this fails, as config.log is still kept open
13898# by configure, so config.status won't be able to write to it; its
13899# output is simply discarded. So we exec the FD to /dev/null,
13900# effectively closing config.log, so it can be properly (re)opened and
13901# appended to by config.status. When coming back to configure, we
13902# need to make the FD available again.
13903if test "$no_create" != yes; then
13904 ac_cs_success=:
13905 ac_config_status_args=
13906 test "$silent" = yes &&
13907 ac_config_status_args="$ac_config_status_args --quiet"
13908 exec 5>/dev/null
13909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13910 exec 5>>config.log
13911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13912 # would make configure fail if this is the last instruction.
jef2ab386b2012-08-10 12:43:50 -070013913 $ac_cs_success || as_fn_exit 1
Jon Dugan92864152010-09-20 21:50:12 +000013914fi
13915if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13917$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013918fi
13919