blob: 8c8ebcb9b0b75aedef4521b1888bd74200c685ce [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jon Dugan92864152010-09-20 21:50:12 +00003# Generated by GNU Autoconf 2.65 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,
Jon Dugan92864152010-09-20 21:50:12 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
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.
Jon Dugan92864152010-09-20 21:50:12 +000094case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Jon Dugane34c20c2010-07-08 23:26:52 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
Jon Dugan92864152010-09-20 21:50:12 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +0000115fi
116
Jon Dugan92864152010-09-20 21:50:12 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
Jon Dugan92864152010-09-20 21:50:12 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +0000134
Jon Dugan92864152010-09-20 21:50:12 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: iperf-users@lists.sourceforge.net about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
Jon Dugane34c20c2010-07-08 23:26:52 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
Jon Dugan92864152010-09-20 21:50:12 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +0000409$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +0000410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
Jon Dugan92864152010-09-20 21:50:12 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +0000430
431
Jon Dugan92864152010-09-20 21:50:12 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Jon Dugane34c20c2010-07-08 23:26:52 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
Jon Dugan92864152010-09-20 21:50:12 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
Jon Dugan92864152010-09-20 21:50:12 +0000464case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +0000465-n*)
Jon Dugan92864152010-09-20 21:50:12 +0000466 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jon Dugan92864152010-09-20 21:50:12 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
Jon Dugan92864152010-09-20 21:50:12 +0000481 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000482fi
Jon Dugan92864152010-09-20 21:50:12 +0000483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
Jon Dugane34c20c2010-07-08 23:26:52 +0000495 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +0000496 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
Jon Dugan92864152010-09-20 21:50:12 +0000521 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +0000522 else
Jon Dugan92864152010-09-20 21:50:12 +0000523 case $1 in #(
524 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +0000525 esac;
Jon Dugan92864152010-09-20 21:50:12 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Jon Dugane34c20c2010-07-08 23:26:52 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
Jon Dugan92864152010-09-20 21:50:12 +0000542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000544
545# Name of the host.
546# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='iperf'
564PACKAGE_TARNAME='iperf'
565PACKAGE_VERSION='3.0a4'
566PACKAGE_STRING='iperf 3.0a4'
567PACKAGE_BUGREPORT='iperf-users@lists.sourceforge.net'
Jon Dugan92864152010-09-20 21:50:12 +0000568PACKAGE_URL=''
Jon Dugane34c20c2010-07-08 23:26:52 +0000569
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
Jon Dugan92864152010-09-20 21:50:12 +0000606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
sethdelliott01ca9722010-07-19 20:38:40 +0000609LIBOBJS
Jon Dugan92864152010-09-20 21:50:12 +0000610USE_UUID_LIBRARY_FALSE
611USE_UUID_LIBRARY_TRUE
612LINUX_FALSE
613LINUX_TRUE
614CPP
615OTOOL64
616OTOOL
617LIPO
618NMEDIT
619DSYMUTIL
620AR
621OBJDUMP
622NM
623ac_ct_DUMPBIN
624DUMPBIN
625LD
626FGREP
627EGREP
628GREP
629SED
630LIBTOOL
631LN_S
632RANLIB
633am__fastdepCC_FALSE
634am__fastdepCC_TRUE
635CCDEPMODE
636AMDEPBACKSLASH
637AMDEP_FALSE
638AMDEP_TRUE
639am__quote
640am__include
641DEPDIR
642OBJEXT
643EXEEXT
644ac_ct_CC
645CPPFLAGS
646LDFLAGS
647CFLAGS
648CC
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657am__untar
658am__tar
659AMTAR
660am__leading_dot
661SET_MAKE
662AWK
663mkdir_p
664MKDIR_P
665INSTALL_STRIP_PROGRAM
666STRIP
667install_sh
668MAKEINFO
669AUTOHEADER
670AUTOMAKE
671AUTOCONF
672ACLOCAL
673VERSION
674PACKAGE
675CYGPATH_W
676am__isrc
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680target_alias
681host_alias
682build_alias
683LIBS
684ECHO_T
685ECHO_N
686ECHO_C
687DEFS
688mandir
689localedir
690libdir
691psdir
692pdfdir
693dvidir
694htmldir
695infodir
696docdir
697oldincludedir
698includedir
699localstatedir
700sharedstatedir
701sysconfdir
702datadir
703datarootdir
704libexecdir
705sbindir
706bindir
707program_transform_name
708prefix
709exec_prefix
710PACKAGE_URL
711PACKAGE_BUGREPORT
712PACKAGE_STRING
713PACKAGE_VERSION
714PACKAGE_TARNAME
715PACKAGE_NAME
716PATH_SEPARATOR
717SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000718ac_subst_files=''
Jon Dugan92864152010-09-20 21:50:12 +0000719ac_user_opts='
720enable_option_checking
721enable_dependency_tracking
722enable_shared
723enable_static
724with_pic
725enable_fast_install
726with_gnu_ld
727enable_libtool_lock
728'
Jon Dugane34c20c2010-07-08 23:26:52 +0000729 ac_precious_vars='build_alias
730host_alias
731target_alias
732CC
733CFLAGS
734LDFLAGS
735LIBS
736CPPFLAGS
737CPP'
738
739
740# Initialize some variables set by options.
741ac_init_help=
742ac_init_version=false
Jon Dugan92864152010-09-20 21:50:12 +0000743ac_unrecognized_opts=
744ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000745# The variables have the same names as the options, with
746# dashes changed to underlines.
747cache_file=/dev/null
748exec_prefix=NONE
749no_create=
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
758verbose=
759x_includes=NONE
760x_libraries=NONE
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
767# (The list follows the same order as the GNU Coding Standards.)
768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
776includedir='${prefix}/include'
777oldincludedir='/usr/include'
778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
787
788ac_prev=
789ac_dashdash=
790for ac_option
791do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
834
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
842 -disable-* | --disable-*)
Jon Dugan92864152010-09-20 21:50:12 +0000843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000844 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +0000845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
867
868 -enable-* | --enable-*)
Jon Dugan92864152010-09-20 21:50:12 +0000869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000870 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +0000871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
903
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
908
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
938
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1012
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
Jon Dugan92864152010-09-20 21:50:12 +00001073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001074 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001087
1088 -without-* | --without-*)
Jon Dugan92864152010-09-20 21:50:12 +00001089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001090 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
Jon Dugan92864152010-09-20 21:50:12 +00001122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information."
Jon Dugane34c20c2010-07-08 23:26:52 +00001124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
Jon Dugan92864152010-09-20 21:50:12 +00001129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1132 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
Jon Dugan92864152010-09-20 21:50:12 +00001138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jon Dugan92864152010-09-20 21:50:12 +00001140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jon Dugan92864152010-09-20 21:50:12 +00001149 as_fn_error "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001150fi
1151
Jon Dugan92864152010-09-20 21:50:12 +00001152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
1158fi
1159
1160# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1165do
1166 eval ac_val=\$$ac_var
Jon Dugan92864152010-09-20 21:50:12 +00001167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
Jon Dugan92864152010-09-20 21:50:12 +00001178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001179done
1180
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
Jon Dugan92864152010-09-20 21:50:12 +00001192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Jon Dugane34c20c2010-07-08 23:26:52 +00001193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jon Dugan92864152010-09-20 21:50:12 +00001208 as_fn_error "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jon Dugan92864152010-09-20 21:50:12 +00001210 as_fn_error "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
Jon Dugan92864152010-09-20 21:50:12 +00001217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jon Dugan92864152010-09-20 21:50:12 +00001249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001250fi
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
Jon Dugan92864152010-09-20 21:50:12 +00001253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001254 pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279\`configure' configures iperf 3.0a4 to adapt to many kinds of systems.
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
1299Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001301 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jon Dugan92864152010-09-20 21:50:12 +00001303 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
Jon Dugan92864152010-09-20 21:50:12 +00001313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001332_ACEOF
1333
1334 cat <<\_ACEOF
1335
1336Program names:
1337 --program-prefix=PREFIX prepend PREFIX to installed program names
1338 --program-suffix=SUFFIX append SUFFIX to installed program names
1339 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1340
1341System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344_ACEOF
1345fi
1346
1347if test -n "$ac_init_help"; then
1348 case $ac_init_help in
1349 short | recursive ) echo "Configuration of iperf 3.0a4:";;
1350 esac
1351 cat <<\_ACEOF
1352
1353Optional Features:
Jon Dugan92864152010-09-20 21:50:12 +00001354 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
sethdelliott01ca9722010-07-19 20:38:40 +00001357 --disable-dependency-tracking speeds up one-time build
1358 --enable-dependency-tracking do not reject slow dependency extractors
Jon Dugane34c20c2010-07-08 23:26:52 +00001359 --enable-shared[=PKGS] build shared libraries [default=yes]
1360 --enable-static[=PKGS] build static libraries [default=yes]
1361 --enable-fast-install[=PKGS]
1362 optimize for fast installation [default=yes]
1363 --disable-libtool-lock avoid locking (might break parallel builds)
1364
1365Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-pic try to use only PIC/non-PIC objects [default=use
1369 both]
1370 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1371
1372Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
Jon Dugan92864152010-09-20 21:50:12 +00001378 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001379 you have headers in a nonstandard directory <include dir>
1380 CPP C preprocessor
1381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385Report bugs to <iperf-users@lists.sourceforge.net>.
1386_ACEOF
1387ac_status=$?
1388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jon Dugan92864152010-09-20 21:50:12 +00001393 test -d "$ac_dir" ||
1394 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001396 ac_builddir=.
1397
1398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
Jon Dugan92864152010-09-20 21:50:12 +00001401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001402 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +00001403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
1413
1414case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427esac
1428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
Jon Dugan92864152010-09-20 21:50:12 +00001439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1443fi
1444
1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then
1447 cat <<\_ACEOF
1448iperf configure 3.0a4
Jon Dugan92864152010-09-20 21:50:12 +00001449generated by GNU Autoconf 2.65
Jon Dugane34c20c2010-07-08 23:26:52 +00001450
Jon Dugan92864152010-09-20 21:50:12 +00001451Copyright (C) 2009 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
1455 exit
1456fi
Jon Dugan92864152010-09-20 21:50:12 +00001457
1458## ------------------------ ##
1459## Autoconf initialization. ##
1460## ------------------------ ##
1461
1462# ac_fn_c_try_compile LINENO
1463# --------------------------
1464# Try to compile conftest.$ac_ext, and return whether this succeeded.
1465ac_fn_c_try_compile ()
1466{
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 rm -f conftest.$ac_objext
1469 if { { ac_try="$ac_compile"
1470case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473esac
1474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475$as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_compile") 2>conftest.err
1477 ac_status=$?
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1482 fi
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && {
1485 test -z "$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 } && test -s conftest.$ac_objext; then :
1488 ac_retval=0
1489else
1490 $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493 ac_retval=1
1494fi
1495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1496 as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_compile
1499
1500# ac_fn_c_try_link LINENO
1501# -----------------------
1502# Try to link conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_link ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext conftest$ac_exeext
1507 if { { ac_try="$ac_link"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_link") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest$ac_exeext && {
1526 test "$cross_compiling" = yes ||
1527 $as_test_x conftest$ac_exeext
1528 }; then :
1529 ac_retval=0
1530else
1531 $as_echo "$as_me: failed program was:" >&5
1532sed 's/^/| /' conftest.$ac_ext >&5
1533
1534 ac_retval=1
1535fi
1536 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1537 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1538 # interfere with the next link command; also delete a directory that is
1539 # left behind by Apple's compiler. We do this before executing the actions.
1540 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542 as_fn_set_status $ac_retval
1543
1544} # ac_fn_c_try_link
1545
1546# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1547# -------------------------------------------------------
1548# Tests whether HEADER exists and can be compiled using the include files in
1549# INCLUDES, setting the cache variable VAR accordingly.
1550ac_fn_c_check_header_compile ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1554$as_echo_n "checking for $2... " >&6; }
1555if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1556 $as_echo_n "(cached) " >&6
1557else
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h. */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564 eval "$3=yes"
1565else
1566 eval "$3=no"
1567fi
1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569fi
1570eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572$as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574
1575} # ac_fn_c_check_header_compile
1576
1577# ac_fn_c_try_cpp LINENO
1578# ----------------------
1579# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_cpp ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_cpp
1613
1614# ac_fn_c_try_run LINENO
1615# ----------------------
1616# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1617# that executables *can* be run.
1618ac_fn_c_try_run ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_link"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>&5
1629 ac_status=$?
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1632 { { case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_try") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; }; }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: program exited with status $ac_status" >&5
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=$ac_status
1649fi
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_run
1655
1656# ac_fn_c_check_func LINENO FUNC VAR
1657# ----------------------------------
1658# Tests whether FUNC exists, setting the cache variable VAR accordingly
1659ac_fn_c_check_func ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h. */
1669/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1671#define $2 innocuous_$2
1672
1673/* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char $2 (); below.
1675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1676 <limits.h> exists even on freestanding compilers. */
1677
1678#ifdef __STDC__
1679# include <limits.h>
1680#else
1681# include <assert.h>
1682#endif
1683
1684#undef $2
1685
1686/* Override any GCC internal prototype to avoid an error.
1687 Use char because int might match the return type of a GCC
1688 builtin and then its argument prototype would still apply. */
1689#ifdef __cplusplus
1690extern "C"
1691#endif
1692char $2 ();
1693/* The GNU C library defines this for functions which it implements
1694 to always fail with ENOSYS. Some functions are actually named
1695 something starting with __ and the normal name is an alias. */
1696#if defined __stub_$2 || defined __stub___$2
1697choke me
1698#endif
1699
1700int
1701main ()
1702{
1703return $2 ();
1704 ;
1705 return 0;
1706}
1707_ACEOF
1708if ac_fn_c_try_link "$LINENO"; then :
1709 eval "$3=yes"
1710else
1711 eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext \
1714 conftest$ac_exeext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720
1721} # ac_fn_c_check_func
1722
1723# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726# the include files in INCLUDES and setting the cache variable VAR
1727# accordingly.
1728ac_fn_c_check_header_mongrel ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735 $as_echo_n "(cached) " >&6
1736fi
1737eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740else
1741 # Is the header compilable?
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743$as_echo_n "checking $2 usability... " >&6; }
1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h. */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750 ac_header_compiler=yes
1751else
1752 ac_header_compiler=no
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756$as_echo "$ac_header_compiler" >&6; }
1757
1758# Is the header present?
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760$as_echo_n "checking $2 presence... " >&6; }
1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h. */
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_cpp "$LINENO"; then :
1766 ac_header_preproc=yes
1767else
1768 ac_header_preproc=no
1769fi
1770rm -f conftest.err conftest.$ac_ext
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772$as_echo "$ac_header_preproc" >&6; }
1773
1774# So? What about this header?
1775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776 yes:no: )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782 no:yes:* )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1786$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1790$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793( cat <<\_ASBOX
1794## ------------------------------------------------ ##
1795## Report this to iperf-users@lists.sourceforge.net ##
1796## ------------------------------------------------ ##
1797_ASBOX
1798 ) | sed "s/^/$as_me: WARNING: /" >&2
1799 ;;
1800esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 eval "$3=\$ac_header_compiler"
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811fi
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001815cat >config.log <<_ACEOF
1816This file contains any messages produced by compilers while
1817running configure, to aid debugging if configure makes a mistake.
1818
1819It was created by iperf $as_me 3.0a4, which was
Jon Dugan92864152010-09-20 21:50:12 +00001820generated by GNU Autoconf 2.65. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001821
1822 $ $0 $@
1823
1824_ACEOF
1825exec 5>>config.log
1826{
1827cat <<_ASUNAME
1828## --------- ##
1829## Platform. ##
1830## --------- ##
1831
1832hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1840
1841/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1848
1849_ASUNAME
1850
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00001856 $as_echo "PATH: $as_dir"
1857 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001858IFS=$as_save_IFS
1859
1860} >&5
1861
1862cat >&5 <<_ACEOF
1863
1864
1865## ----------- ##
1866## Core tests. ##
1867## ----------- ##
1868
1869_ACEOF
1870
1871
1872# Keep a trace of the command line.
1873# Strip out --no-create and --no-recursion so they do not pile up.
1874# Strip out --silent because we don't want to record it for future runs.
1875# Also quote any args containing shell meta-characters.
1876# Make two passes to allow for proper duplicate-argument suppression.
1877ac_configure_args=
1878ac_configure_args0=
1879ac_configure_args1=
1880ac_must_keep_next=false
1881for ac_pass in 1 2
1882do
1883 for ac_arg
1884 do
1885 case $ac_arg in
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1889 continue ;;
1890 *\'*)
Jon Dugan92864152010-09-20 21:50:12 +00001891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001892 esac
1893 case $ac_pass in
Jon Dugan92864152010-09-20 21:50:12 +00001894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001895 2)
Jon Dugan92864152010-09-20 21:50:12 +00001896 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1899 else
1900 case $ac_arg in
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907 esac
1908 ;;
1909 -* ) ac_must_keep_next=true ;;
1910 esac
1911 fi
Jon Dugan92864152010-09-20 21:50:12 +00001912 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001913 ;;
1914 esac
1915 done
1916done
Jon Dugan92864152010-09-20 21:50:12 +00001917{ ac_configure_args0=; unset ac_configure_args0;}
1918{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001919
1920# When interrupted or exit'd, cleanup temporary files, and complete
1921# config.log. We remove comments because anyway the quotes in there
1922# would cause problems or look ugly.
1923# WARNING: Use '\'' to represent an apostrophe within the trap.
1924# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1927 {
1928 echo
1929
1930 cat <<\_ASBOX
1931## ---------------- ##
1932## Cache variables. ##
1933## ---------------- ##
1934_ASBOX
1935 echo
1936 # The following way of writing the cache mishandles newlines in values,
1937(
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1940 case $ac_val in #(
1941 *${as_nl}*)
1942 case $ac_var in #(
Jon Dugan92864152010-09-20 21:50:12 +00001943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001945 esac
1946 case $ac_var in #(
1947 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +00001948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001950 esac ;;
1951 esac
1952 done
1953 (set) 2>&1 |
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1956 sed -n \
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959 ;; #(
1960 *)
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 ;;
1963 esac |
1964 sort
1965)
1966 echo
1967
1968 cat <<\_ASBOX
1969## ----------------- ##
1970## Output variables. ##
1971## ----------------- ##
1972_ASBOX
1973 echo
1974 for ac_var in $ac_subst_vars
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001979 esac
Jon Dugan92864152010-09-20 21:50:12 +00001980 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001981 done | sort
1982 echo
1983
1984 if test -n "$ac_subst_files"; then
1985 cat <<\_ASBOX
1986## ------------------- ##
1987## File substitutions. ##
1988## ------------------- ##
1989_ASBOX
1990 echo
1991 for ac_var in $ac_subst_files
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
Jon Dugan92864152010-09-20 21:50:12 +00001995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001996 esac
Jon Dugan92864152010-09-20 21:50:12 +00001997 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001998 done | sort
1999 echo
2000 fi
2001
2002 if test -s confdefs.h; then
2003 cat <<\_ASBOX
2004## ----------- ##
2005## confdefs.h. ##
2006## ----------- ##
2007_ASBOX
2008 echo
2009 cat confdefs.h
2010 echo
2011 fi
2012 test "$ac_signal" != 0 &&
Jon Dugan92864152010-09-20 21:50:12 +00002013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002015 } >&5
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018 exit $exit_status
2019' 0
2020for ac_signal in 1 2 13 15; do
Jon Dugan92864152010-09-20 21:50:12 +00002021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002022done
2023ac_signal=0
2024
2025# confdefs.h avoids OS command line length limits that DEFS can exceed.
2026rm -f -r conftest* confdefs.h
2027
Jon Dugan92864152010-09-20 21:50:12 +00002028$as_echo "/* confdefs.h */" > confdefs.h
2029
Jon Dugane34c20c2010-07-08 23:26:52 +00002030# Predefined preprocessor variables.
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_NAME "$PACKAGE_NAME"
2034_ACEOF
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2038_ACEOF
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_VERSION "$PACKAGE_VERSION"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_STRING "$PACKAGE_STRING"
2046_ACEOF
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050_ACEOF
2051
Jon Dugan92864152010-09-20 21:50:12 +00002052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_URL "$PACKAGE_URL"
2054_ACEOF
2055
Jon Dugane34c20c2010-07-08 23:26:52 +00002056
2057# Let the site file select an alternate cache file if it wants to.
Jon Dugan92864152010-09-20 21:50:12 +00002058# Prefer an explicitly selected file to automatically selected ones.
2059ac_site_file1=NONE
2060ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002061if test -n "$CONFIG_SITE"; then
Jon Dugan92864152010-09-20 21:50:12 +00002062 ac_site_file1=$CONFIG_SITE
Jon Dugane34c20c2010-07-08 23:26:52 +00002063elif test "x$prefix" != xNONE; then
Jon Dugan92864152010-09-20 21:50:12 +00002064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002066else
Jon Dugan92864152010-09-20 21:50:12 +00002067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002069fi
Jon Dugan92864152010-09-20 21:50:12 +00002070for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002071do
Jon Dugan92864152010-09-20 21:50:12 +00002072 test "x$ac_site_file" = xNONE && continue
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002076 sed 's/^/| /' "$ac_site_file" >&5
2077 . "$ac_site_file"
2078 fi
2079done
2080
2081if test -r "$cache_file"; then
Jon Dugan92864152010-09-20 21:50:12 +00002082 # Some versions of bash will fail to source /dev/null (special files
2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002087 case $cache_file in
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2090 esac
2091 fi
2092else
Jon Dugan92864152010-09-20 21:50:12 +00002093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002095 >$cache_file
2096fi
2097
2098# Check that the precious variables saved in the cache have kept the same
2099# value.
2100ac_cache_corrupted=false
2101for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2107 set,)
Jon Dugan92864152010-09-20 21:50:12 +00002108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109$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 +00002110 ac_cache_corrupted=: ;;
2111 ,set)
Jon Dugan92864152010-09-20 21:50:12 +00002112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002114 ac_cache_corrupted=: ;;
2115 ,);;
2116 *)
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
Jon Dugan92864152010-09-20 21:50:12 +00002118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2125 else
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2129 fi
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002134 fi;;
2135 esac
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2138 case $ac_new_val in
Jon Dugan92864152010-09-20 21:50:12 +00002139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002140 *) ac_arg=$ac_var=$ac_new_val ;;
2141 esac
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jon Dugan92864152010-09-20 21:50:12 +00002144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002145 esac
2146 fi
2147done
2148if $ac_cache_corrupted; then
Jon Dugan92864152010-09-20 21:50:12 +00002149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002154fi
Jon Dugan92864152010-09-20 21:50:12 +00002155## -------------------- ##
2156## Main body of script. ##
2157## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002158
2159ac_ext=c
2160ac_cpp='$CPP $CPPFLAGS'
2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166
2167# Specify where the auxiliary files created by configure should go. The config
2168# directory is picked so that they don't clutter up more useful directories.
2169ac_aux_dir=
2170for ac_dir in config "$srcdir"/config; do
Jon Dugan92864152010-09-20 21:50:12 +00002171 for ac_t in install-sh install.sh shtool; do
2172 if test -f "$ac_dir/$ac_t"; then
2173 ac_aux_dir=$ac_dir
2174 ac_install_sh="$ac_aux_dir/$ac_t -c"
2175 break 2
2176 fi
2177 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002178done
2179if test -z "$ac_aux_dir"; then
Jon Dugan92864152010-09-20 21:50:12 +00002180 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002181fi
2182
2183# These three variables are undocumented and unsupported,
2184# and are intended to be withdrawn in a future Autoconf release.
2185# They can cause serious problems if a builder's source tree is in a directory
2186# whose full name contains unusual characters.
2187ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2188ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2189ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2190
2191
2192
2193
2194# Initialize the automake system
Jon Dugan92864152010-09-20 21:50:12 +00002195am__api_version='1.11'
sethdelliott01ca9722010-07-19 20:38:40 +00002196
Jon Dugane34c20c2010-07-08 23:26:52 +00002197# Find a good install program. We prefer a C program (faster),
2198# so one script is as good as another. But avoid the broken or
2199# incompatible versions:
2200# SysV /etc/install, /usr/sbin/install
2201# SunOS /usr/etc/install
2202# IRIX /sbin/install
2203# AIX /bin/install
2204# AmigaOS /C/install, which installs bootblocks on floppy discs
2205# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2206# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2207# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2208# OS/2's system install, which has a completely different semantic
2209# ./install, which can be erroneously created by make from ./install.sh.
Jon Dugan92864152010-09-20 21:50:12 +00002210# Reject install programs that cannot install multiple files.
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2212$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002213if test -z "$INSTALL"; then
Jon Dugan92864152010-09-20 21:50:12 +00002214if test "${ac_cv_path_install+set}" = set; then :
2215 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002216else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218for as_dir in $PATH
2219do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002222 # Account for people who put trailing slashes in PATH elements.
2223case $as_dir/ in #((
2224 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jon Dugan92864152010-09-20 21:50:12 +00002226 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002227 /usr/ucb/* ) ;;
2228 *)
2229 # OSF1 and SCO ODT 3.0 have their own names for install.
2230 # Don't use installbsd from OSF since it installs stuff as root
2231 # by default.
2232 for ac_prog in ginstall scoinst install; do
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2235 if test $ac_prog = install &&
2236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2237 # AIX install. It has an incompatible calling convention.
2238 :
2239 elif test $ac_prog = install &&
2240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241 # program-specific install script used by HP pwplus--don't use.
2242 :
2243 else
Jon Dugan92864152010-09-20 21:50:12 +00002244 rm -rf conftest.one conftest.two conftest.dir
2245 echo one > conftest.one
2246 echo two > conftest.two
2247 mkdir conftest.dir
2248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2249 test -s conftest.one && test -s conftest.two &&
2250 test -s conftest.dir/conftest.one &&
2251 test -s conftest.dir/conftest.two
2252 then
2253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2254 break 3
2255 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002256 fi
2257 fi
2258 done
2259 done
2260 ;;
2261esac
Jon Dugan92864152010-09-20 21:50:12 +00002262
2263 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002264IFS=$as_save_IFS
2265
Jon Dugan92864152010-09-20 21:50:12 +00002266rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002267
2268fi
2269 if test "${ac_cv_path_install+set}" = set; then
2270 INSTALL=$ac_cv_path_install
2271 else
2272 # As a last resort, use the slow shell script. Don't cache a
2273 # value for INSTALL within a source directory, because that will
2274 # break other packages using the cache if that directory is
2275 # removed, or if the value is a relative name.
2276 INSTALL=$ac_install_sh
2277 fi
2278fi
Jon Dugan92864152010-09-20 21:50:12 +00002279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2280$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002281
2282# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2283# It thinks the first close brace ends the variable substitution.
2284test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2285
2286test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2287
2288test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2289
Jon Dugan92864152010-09-20 21:50:12 +00002290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2291$as_echo_n "checking whether build environment is sane... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002292# Just in case
2293sleep 1
2294echo timestamp > conftest.file
Jon Dugan92864152010-09-20 21:50:12 +00002295# Reject unsafe characters in $srcdir or the absolute working directory
2296# name. Accept space and tab only in the latter.
2297am_lf='
2298'
2299case `pwd` in
2300 *[\\\"\#\$\&\'\`$am_lf]*)
2301 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2302esac
2303case $srcdir in
2304 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2305 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2306esac
2307
Jon Dugane34c20c2010-07-08 23:26:52 +00002308# Do `set' in a subshell so we don't clobber the current shell's
2309# arguments. Must try -L first in case configure is actually a
2310# symlink; some systems play weird games with the mod time of symlinks
2311# (eg FreeBSD returns the mod time of the symlink's containing
2312# directory).
2313if (
Jon Dugan92864152010-09-20 21:50:12 +00002314 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Jon Dugane34c20c2010-07-08 23:26:52 +00002315 if test "$*" = "X"; then
2316 # -L didn't work.
Jon Dugan92864152010-09-20 21:50:12 +00002317 set X `ls -t "$srcdir/configure" conftest.file`
Jon Dugane34c20c2010-07-08 23:26:52 +00002318 fi
2319 rm -f conftest.file
2320 if test "$*" != "X $srcdir/configure conftest.file" \
2321 && test "$*" != "X conftest.file $srcdir/configure"; then
2322
2323 # If neither matched, then we have a broken ls. This can happen
2324 # if, for instance, CONFIG_SHELL is bash and it inherits a
2325 # broken ls alias from the environment. This has actually
2326 # happened. Such a system could not be considered "sane".
Jon Dugan92864152010-09-20 21:50:12 +00002327 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2328alias in your environment" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002329 fi
2330
2331 test "$2" = conftest.file
2332 )
2333then
2334 # Ok.
2335 :
2336else
Jon Dugan92864152010-09-20 21:50:12 +00002337 as_fn_error "newly created file is older than distributed files!
2338Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002339fi
Jon Dugan92864152010-09-20 21:50:12 +00002340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2341$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002342test "$program_prefix" != NONE &&
2343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2344# Use a double $ so make ignores it.
2345test "$program_suffix" != NONE &&
2346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Jon Dugan92864152010-09-20 21:50:12 +00002347# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002348# By default was `s,x,x', remove it if useless.
Jon Dugan92864152010-09-20 21:50:12 +00002349ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002351
2352# expand $ac_aux_dir to an absolute path
2353am_aux_dir=`cd $ac_aux_dir && pwd`
2354
Jon Dugan92864152010-09-20 21:50:12 +00002355if test x"${MISSING+set}" != xset; then
2356 case $am_aux_dir in
2357 *\ * | *\ *)
2358 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2359 *)
2360 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2361 esac
2362fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002363# Use eval to expand $SHELL
2364if eval "$MISSING --run true"; then
2365 am_missing_run="$MISSING --run "
2366else
2367 am_missing_run=
Jon Dugan92864152010-09-20 21:50:12 +00002368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2369$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002370fi
2371
Jon Dugan92864152010-09-20 21:50:12 +00002372if test x"${install_sh}" != xset; then
2373 case $am_aux_dir in
2374 *\ * | *\ *)
2375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2376 *)
2377 install_sh="\${SHELL} $am_aux_dir/install-sh"
2378 esac
2379fi
2380
2381# Installed binaries are usually stripped using `strip' when the user
2382# run `make install-strip'. However `strip' might not be the right
2383# tool to use in cross-compilation environments, therefore Automake
2384# will honor the `STRIP' environment variable to overrule this program.
2385if test "$cross_compiling" != no; then
2386 if test -n "$ac_tool_prefix"; then
2387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2388set dummy ${ac_tool_prefix}strip; ac_word=$2
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390$as_echo_n "checking for $ac_word... " >&6; }
2391if test "${ac_cv_prog_STRIP+set}" = set; then :
2392 $as_echo_n "(cached) " >&6
2393else
2394 if test -n "$STRIP"; then
2395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408done
2409 done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414STRIP=$ac_cv_prog_STRIP
2415if test -n "$STRIP"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2417$as_echo "$STRIP" >&6; }
2418else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420$as_echo "no" >&6; }
2421fi
2422
2423
2424fi
2425if test -z "$ac_cv_prog_STRIP"; then
2426 ac_ct_STRIP=$STRIP
2427 # Extract the first word of "strip", so it can be a program name with args.
2428set dummy strip; ac_word=$2
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430$as_echo_n "checking for $ac_word... " >&6; }
2431if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2432 $as_echo_n "(cached) " >&6
2433else
2434 if test -n "$ac_ct_STRIP"; then
2435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_ac_ct_STRIP="strip"
2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448done
2449 done
2450IFS=$as_save_IFS
2451
2452fi
2453fi
2454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2455if test -n "$ac_ct_STRIP"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2457$as_echo "$ac_ct_STRIP" >&6; }
2458else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460$as_echo "no" >&6; }
2461fi
2462
2463 if test "x$ac_ct_STRIP" = x; then
2464 STRIP=":"
2465 else
2466 case $cross_compiling:$ac_tool_warned in
2467yes:)
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2470ac_tool_warned=yes ;;
2471esac
2472 STRIP=$ac_ct_STRIP
2473 fi
2474else
2475 STRIP="$ac_cv_prog_STRIP"
2476fi
2477
2478fi
2479INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2480
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2482$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
sethdelliott01ca9722010-07-19 20:38:40 +00002483if test -z "$MKDIR_P"; then
Jon Dugan92864152010-09-20 21:50:12 +00002484 if test "${ac_cv_path_mkdir+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
sethdelliott01ca9722010-07-19 20:38:40 +00002486else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002492 for ac_prog in mkdir gmkdir; do
sethdelliott01ca9722010-07-19 20:38:40 +00002493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2495 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2496 'mkdir (GNU coreutils) '* | \
2497 'mkdir (coreutils) '* | \
2498 'mkdir (fileutils) '4.1*)
2499 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2500 break 3;;
2501 esac
2502 done
2503 done
Jon Dugan92864152010-09-20 21:50:12 +00002504 done
sethdelliott01ca9722010-07-19 20:38:40 +00002505IFS=$as_save_IFS
2506
2507fi
2508
Jon Dugan92864152010-09-20 21:50:12 +00002509 test -d ./--version && rmdir ./--version
sethdelliott01ca9722010-07-19 20:38:40 +00002510 if test "${ac_cv_path_mkdir+set}" = set; then
2511 MKDIR_P="$ac_cv_path_mkdir -p"
2512 else
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for MKDIR_P within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the value is a relative name.
sethdelliott01ca9722010-07-19 20:38:40 +00002517 MKDIR_P="$ac_install_sh -d"
2518 fi
2519fi
Jon Dugan92864152010-09-20 21:50:12 +00002520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2521$as_echo "$MKDIR_P" >&6; }
sethdelliott01ca9722010-07-19 20:38:40 +00002522
2523mkdir_p="$MKDIR_P"
2524case $mkdir_p in
2525 [\\/$]* | ?:[\\/]*) ;;
2526 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2527esac
2528
Jon Dugane34c20c2010-07-08 23:26:52 +00002529for ac_prog in gawk mawk nawk awk
2530do
2531 # Extract the first word of "$ac_prog", so it can be a program name with args.
2532set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if test "${ac_cv_prog_AWK+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002537else
2538 if test -n "$AWK"; then
2539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002546 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_AWK="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00002549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002550 break 2
2551 fi
2552done
Jon Dugan92864152010-09-20 21:50:12 +00002553 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002554IFS=$as_save_IFS
2555
2556fi
2557fi
2558AWK=$ac_cv_prog_AWK
2559if test -n "$AWK"; then
Jon Dugan92864152010-09-20 21:50:12 +00002560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2561$as_echo "$AWK" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002562else
Jon Dugan92864152010-09-20 21:50:12 +00002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002565fi
2566
2567
2568 test -n "$AWK" && break
2569done
2570
Jon Dugan92864152010-09-20 21:50:12 +00002571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2572$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2573set x ${MAKE-make}
2574ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2575if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002577else
2578 cat >conftest.make <<\_ACEOF
2579SHELL = /bin/sh
2580all:
2581 @echo '@@@%%%=$(MAKE)=@@@%%%'
2582_ACEOF
2583# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2584case `${MAKE-make} -f conftest.make 2>/dev/null` in
2585 *@@@%%%=?*=@@@%%%*)
2586 eval ac_cv_prog_make_${ac_make}_set=yes;;
2587 *)
2588 eval ac_cv_prog_make_${ac_make}_set=no;;
2589esac
2590rm -f conftest.make
2591fi
2592if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00002593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2594$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002595 SET_MAKE=
2596else
Jon Dugan92864152010-09-20 21:50:12 +00002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002599 SET_MAKE="MAKE=${MAKE-make}"
2600fi
2601
2602rm -rf .tst 2>/dev/null
2603mkdir .tst 2>/dev/null
2604if test -d .tst; then
2605 am__leading_dot=.
2606else
2607 am__leading_dot=_
2608fi
2609rmdir .tst 2>/dev/null
2610
sethdelliott01ca9722010-07-19 20:38:40 +00002611if test "`cd $srcdir && pwd`" != "`pwd`"; then
2612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2613 # is not polluted with repeated "-I."
2614 am__isrc=' -I$(srcdir)'
2615 # test to see if srcdir already configured
2616 if test -f $srcdir/config.status; then
Jon Dugan92864152010-09-20 21:50:12 +00002617 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
sethdelliott01ca9722010-07-19 20:38:40 +00002618 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002619fi
2620
2621# test whether we have cygpath
2622if test -z "$CYGPATH_W"; then
2623 if (cygpath --version) >/dev/null 2>/dev/null; then
2624 CYGPATH_W='cygpath -w'
2625 else
2626 CYGPATH_W=echo
2627 fi
2628fi
2629
2630
2631# Define the identity of the package.
2632 PACKAGE='iperf'
2633 VERSION='3.0a4'
2634
2635
2636cat >>confdefs.h <<_ACEOF
2637#define PACKAGE "$PACKAGE"
2638_ACEOF
2639
2640
2641cat >>confdefs.h <<_ACEOF
2642#define VERSION "$VERSION"
2643_ACEOF
2644
2645# Some tools Automake needs.
2646
2647ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2648
2649
2650AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2651
2652
2653AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2654
2655
2656AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2657
2658
2659MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2660
Jon Dugane34c20c2010-07-08 23:26:52 +00002661# We need awk for the "check" target. The system "awk" is bad on
2662# some platforms.
sethdelliott01ca9722010-07-19 20:38:40 +00002663# Always define AMTAR for backward compatibility.
2664
2665AMTAR=${AMTAR-"${am_missing_run}tar"}
2666
2667am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2668
2669
Jon Dugane34c20c2010-07-08 23:26:52 +00002670
2671
2672
2673
2674ac_config_headers="$ac_config_headers src/config.h"
2675
2676
2677# Make sure we can run config.sub.
2678$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jon Dugan92864152010-09-20 21:50:12 +00002679 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002680
Jon Dugan92864152010-09-20 21:50:12 +00002681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2682$as_echo_n "checking build system type... " >&6; }
2683if test "${ac_cv_build+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002685else
2686 ac_build_alias=$build_alias
2687test "x$ac_build_alias" = x &&
2688 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2689test "x$ac_build_alias" = x &&
Jon Dugan92864152010-09-20 21:50:12 +00002690 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jon Dugan92864152010-09-20 21:50:12 +00002692 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002693
2694fi
Jon Dugan92864152010-09-20 21:50:12 +00002695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2696$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002697case $ac_cv_build in
2698*-*-*) ;;
Jon Dugan92864152010-09-20 21:50:12 +00002699*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002700esac
2701build=$ac_cv_build
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_build
2704shift
2705build_cpu=$1
2706build_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710build_os=$*
2711IFS=$ac_save_IFS
2712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2713
2714
Jon Dugan92864152010-09-20 21:50:12 +00002715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2716$as_echo_n "checking host system type... " >&6; }
2717if test "${ac_cv_host+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002719else
2720 if test "x$host_alias" = x; then
2721 ac_cv_host=$ac_cv_build
2722else
2723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jon Dugan92864152010-09-20 21:50:12 +00002724 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002725fi
2726
2727fi
Jon Dugan92864152010-09-20 21:50:12 +00002728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2729$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002730case $ac_cv_host in
2731*-*-*) ;;
Jon Dugan92864152010-09-20 21:50:12 +00002732*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002733esac
2734host=$ac_cv_host
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_host
2737shift
2738host_cpu=$1
2739host_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743host_os=$*
2744IFS=$ac_save_IFS
2745case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2746
2747
2748
2749# Checks for tools: c compiler, ranlib (used for creating static libraries),
2750# symlinks and libtool
2751ac_ext=c
2752ac_cpp='$CPP $CPPFLAGS'
2753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2758set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if test "${ac_cv_prog_CC+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002772 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jon Dugan92864152010-09-20 21:50:12 +00002775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002776 break 2
2777 fi
2778done
Jon Dugan92864152010-09-20 21:50:12 +00002779 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002780IFS=$as_save_IFS
2781
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002788else
Jon Dugan92864152010-09-20 21:50:12 +00002789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002791fi
2792
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796 ac_ct_CC=$CC
2797 # Extract the first word of "gcc", so it can be a program name with args.
2798set dummy gcc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002803else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002812 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="gcc"
Jon Dugan92864152010-09-20 21:50:12 +00002815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002816 break 2
2817 fi
2818done
Jon Dugan92864152010-09-20 21:50:12 +00002819 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002820IFS=$as_save_IFS
2821
2822fi
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002828else
Jon Dugan92864152010-09-20 21:50:12 +00002829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002831fi
2832
2833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837yes:)
Jon Dugan92864152010-09-20 21:50:12 +00002838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002840ac_tool_warned=yes ;;
2841esac
2842 CC=$ac_ct_CC
2843 fi
2844else
2845 CC="$ac_cv_prog_CC"
2846fi
2847
2848if test -z "$CC"; then
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2851set dummy ${ac_tool_prefix}cc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if test "${ac_cv_prog_CC+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002856else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002865 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jon Dugan92864152010-09-20 21:50:12 +00002868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002869 break 2
2870 fi
2871done
Jon Dugan92864152010-09-20 21:50:12 +00002872 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002873IFS=$as_save_IFS
2874
2875fi
2876fi
2877CC=$ac_cv_prog_CC
2878if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002881else
Jon Dugan92864152010-09-20 21:50:12 +00002882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002884fi
2885
2886
2887 fi
2888fi
2889if test -z "$CC"; then
2890 # Extract the first word of "cc", so it can be a program name with args.
2891set dummy cc; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893$as_echo_n "checking for $ac_word... " >&6; }
2894if test "${ac_cv_prog_CC+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002896else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899else
2900 ac_prog_rejected=no
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002906 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2909 ac_prog_rejected=yes
2910 continue
2911 fi
2912 ac_cv_prog_CC="cc"
Jon Dugan92864152010-09-20 21:50:12 +00002913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002914 break 2
2915 fi
2916done
Jon Dugan92864152010-09-20 21:50:12 +00002917 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002918IFS=$as_save_IFS
2919
2920if test $ac_prog_rejected = yes; then
2921 # We found a bogon in the path, so make sure we never use it.
2922 set dummy $ac_cv_prog_CC
2923 shift
2924 if test $# != 0; then
2925 # We chose a different compiler from the bogus one.
2926 # However, it has the same basename, so the bogon will be chosen
2927 # first if we set CC to just the basename; use the full file name.
2928 shift
2929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2930 fi
2931fi
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002938else
Jon Dugan92864152010-09-20 21:50:12 +00002939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002941fi
2942
2943
2944fi
2945if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
2947 for ac_prog in cl.exe
2948 do
2949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002955else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00002964 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00002965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00002967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002968 break 2
2969 fi
2970done
Jon Dugan92864152010-09-20 21:50:12 +00002971 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002972IFS=$as_save_IFS
2973
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00002978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002980else
Jon Dugan92864152010-09-20 21:50:12 +00002981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002983fi
2984
2985
2986 test -n "$CC" && break
2987 done
2988fi
2989if test -z "$CC"; then
2990 ac_ct_CC=$CC
2991 for ac_prog in cl.exe
2992do
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002999else
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003008 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00003011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003012 break 2
3013 fi
3014done
Jon Dugan92864152010-09-20 21:50:12 +00003015 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003016IFS=$as_save_IFS
3017
3018fi
3019fi
3020ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021if test -n "$ac_ct_CC"; then
Jon Dugan92864152010-09-20 21:50:12 +00003022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003024else
Jon Dugan92864152010-09-20 21:50:12 +00003025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003027fi
3028
3029
3030 test -n "$ac_ct_CC" && break
3031done
3032
3033 if test "x$ac_ct_CC" = x; then
3034 CC=""
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037yes:)
Jon Dugan92864152010-09-20 21:50:12 +00003038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003040ac_tool_warned=yes ;;
3041esac
3042 CC=$ac_ct_CC
3043 fi
3044fi
3045
3046fi
3047
3048
Jon Dugan92864152010-09-20 21:50:12 +00003049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051as_fn_error "no acceptable C compiler found in \$PATH
3052See \`config.log' for more details." "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003053
3054# Provide some information about the compiler.
Jon Dugan92864152010-09-20 21:50:12 +00003055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3056set X $ac_compile
3057ac_compiler=$2
3058for ac_option in --version -v -V -qversion; do
3059 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003060case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
Jon Dugan92864152010-09-20 21:50:12 +00003064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065$as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003067 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003068 if test -s conftest.err; then
3069 sed '10a\
3070... rest of stderr output deleted ...
3071 10q' conftest.err >conftest.er1
3072 cat conftest.er1 >&5
3073 fi
3074 rm -f conftest.er1 conftest.err
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3077done
Jon Dugane34c20c2010-07-08 23:26:52 +00003078
Jon Dugan92864152010-09-20 21:50:12 +00003079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090ac_clean_files_save=$ac_clean_files
Jon Dugan92864152010-09-20 21:50:12 +00003091ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003092# Try to create an executable without -o first, disregard a.out.
3093# It will help us diagnose broken compilers, and finding out an intuition
3094# of exeext.
Jon Dugan92864152010-09-20 21:50:12 +00003095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3096$as_echo_n "checking whether the C compiler works... " >&6; }
3097ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098
3099# The possible output files:
3100ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3101
Jon Dugane34c20c2010-07-08 23:26:52 +00003102ac_rmfiles=
3103for ac_file in $ac_files
3104do
3105 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108 esac
3109done
3110rm -f $ac_rmfiles
3111
Jon Dugan92864152010-09-20 21:50:12 +00003112if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
Jon Dugan92864152010-09-20 21:50:12 +00003117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003119 (eval "$ac_link_default") 2>&5
3120 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125# in a Makefile. We should not override ac_cv_exeext if it was cached,
3126# so that the user can short-circuit this test for compilers unknown to
3127# Autoconf.
3128for ac_file in $ac_files ''
3129do
3130 test -f "$ac_file" || continue
3131 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003133 ;;
3134 [ab].out )
3135 # We found the default executable, but exeext='' is most
3136 # certainly right.
3137 break;;
3138 *.* )
Jon Dugan92864152010-09-20 21:50:12 +00003139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003140 then :; else
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 fi
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3147 # actually working.
3148 break;;
3149 * )
3150 break;;
3151 esac
3152done
3153test "$ac_cv_exeext" = no && ac_cv_exeext=
3154
3155else
3156 ac_file=''
3157fi
Jon Dugan92864152010-09-20 21:50:12 +00003158if test -z "$ac_file"; then :
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003162sed 's/^/| /' conftest.$ac_ext >&5
3163
Jon Dugan92864152010-09-20 21:50:12 +00003164{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166{ as_fn_set_status 77
3167as_fn_error "C compiler cannot create executables
3168See \`config.log' for more details." "$LINENO" 5; }; }
3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003172fi
Jon Dugan92864152010-09-20 21:50:12 +00003173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174$as_echo_n "checking for C compiler default output file name... " >&6; }
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176$as_echo "$ac_file" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003177ac_exeext=$ac_cv_exeext
3178
Jon Dugan92864152010-09-20 21:50:12 +00003179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003180ac_clean_files=$ac_clean_files_save
Jon Dugan92864152010-09-20 21:50:12 +00003181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182$as_echo_n "checking for suffix of executables... " >&6; }
3183if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
Jon Dugan92864152010-09-20 21:50:12 +00003188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003190 (eval "$ac_link") 2>&5
3191 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196# work properly (i.e., refer to `conftest.exe'), while it won't with
3197# `rm'.
3198for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206done
3207else
Jon Dugan92864152010-09-20 21:50:12 +00003208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error "cannot compute suffix of executables: cannot compile and link
3211See \`config.log' for more details." "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003212fi
Jon Dugan92864152010-09-20 21:50:12 +00003213rm -f conftest conftest$ac_cv_exeext
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003216
3217rm -f conftest.$ac_ext
3218EXEEXT=$ac_cv_exeext
3219ac_exeext=$EXEEXT
Jon Dugan92864152010-09-20 21:50:12 +00003220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h. */
3222#include <stdio.h>
3223int
3224main ()
3225{
3226FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3228
3229 ;
3230 return 0;
3231}
sethdelliott01ca9722010-07-19 20:38:40 +00003232_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003233ac_clean_files="$ac_clean_files conftest.out"
3234# Check that the compiler produces executables we can run. If not, either
3235# the compiler is broken, or we cross compile.
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237$as_echo_n "checking whether we are cross compiling... " >&6; }
3238if test "$cross_compiling" != yes; then
3239 { { ac_try="$ac_link"
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256$as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268as_fn_error "cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details." "$LINENO" 5; }
3271 fi
3272 fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275$as_echo "$cross_compiling" >&6; }
3276
3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278ac_clean_files=$ac_clean_files_save
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280$as_echo_n "checking for suffix of object files... " >&6; }
3281if test "${ac_cv_objext+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290
3291 ;
3292 return 0;
3293}
3294_ACEOF
3295rm -f conftest.o conftest.obj
Jon Dugan92864152010-09-20 21:50:12 +00003296if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
Jon Dugan92864152010-09-20 21:50:12 +00003301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003303 (eval "$ac_compile") 2>&5
3304 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00003305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003307 for ac_file in conftest.o conftest.obj conftest.*; do
3308 test -f "$ac_file" || continue;
3309 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +00003310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 break;;
3313 esac
3314done
3315else
Jon Dugan92864152010-09-20 21:50:12 +00003316 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003317sed 's/^/| /' conftest.$ac_ext >&5
3318
Jon Dugan92864152010-09-20 21:50:12 +00003319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error "cannot compute suffix of object files: cannot compile
3322See \`config.log' for more details." "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003323fi
3324rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325fi
Jon Dugan92864152010-09-20 21:50:12 +00003326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003328OBJEXT=$ac_cv_objext
3329ac_objext=$OBJEXT
Jon Dugan92864152010-09-20 21:50:12 +00003330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003334else
Jon Dugan92864152010-09-20 21:50:12 +00003335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341#ifndef __GNUC__
3342 choke me
3343#endif
3344
3345 ;
3346 return 0;
3347}
3348_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003349if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003350 ac_compiler_gnu=yes
3351else
Jon Dugan92864152010-09-20 21:50:12 +00003352 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003353fi
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356
3357fi
Jon Dugan92864152010-09-20 21:50:12 +00003358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360if test $ac_compiler_gnu = yes; then
3361 GCC=yes
3362else
3363 GCC=
3364fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003365ac_test_CFLAGS=${CFLAGS+set}
3366ac_save_CFLAGS=$CFLAGS
Jon Dugan92864152010-09-20 21:50:12 +00003367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368$as_echo_n "checking whether $CC accepts -g... " >&6; }
3369if test "${ac_cv_prog_cc_g+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003371else
3372 ac_save_c_werror_flag=$ac_c_werror_flag
3373 ac_c_werror_flag=yes
3374 ac_cv_prog_cc_g=no
3375 CFLAGS="-g"
Jon Dugan92864152010-09-20 21:50:12 +00003376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003377/* end confdefs.h. */
3378
3379int
3380main ()
3381{
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003387if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003388 ac_cv_prog_cc_g=yes
3389else
Jon Dugan92864152010-09-20 21:50:12 +00003390 CFLAGS=""
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003392/* end confdefs.h. */
3393
3394int
3395main ()
3396{
3397
3398 ;
3399 return 0;
3400}
3401_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003402if ac_fn_c_try_compile "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00003403
Jon Dugan92864152010-09-20 21:50:12 +00003404else
3405 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003406 CFLAGS="-g"
Jon Dugan92864152010-09-20 21:50:12 +00003407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003408/* end confdefs.h. */
3409
3410int
3411main ()
3412{
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00003418if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003419 ac_cv_prog_cc_g=yes
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427fi
Jon Dugan92864152010-09-20 21:50:12 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003430if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3437 fi
3438else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3443 fi
3444fi
Jon Dugan92864152010-09-20 21:50:12 +00003445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447if test "${ac_cv_prog_cc_c89+set}" = set; then :
3448 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003449else
3450 ac_cv_prog_cc_c89=no
3451ac_save_CC=$CC
Jon Dugan92864152010-09-20 21:50:12 +00003452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003453/* end confdefs.h. */
3454#include <stdarg.h>
3455#include <stdio.h>
3456#include <sys/types.h>
3457#include <sys/stat.h>
3458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459struct buf { int x; };
3460FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461static char *e (p, i)
3462 char **p;
3463 int i;
3464{
3465 return p[i];
3466}
3467static char *f (char * (*g) (char **, int), char **p, ...)
3468{
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3475}
3476
3477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
3486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488#define FOO(x) 'x'
3489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
3491int test (int i, double x);
3492struct s1 {int (*f) (int a);};
3493struct s2 {int (*f) (double a);};
3494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495int argc;
3496char **argv;
3497int
3498main ()
3499{
3500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507do
3508 CC="$ac_save_CC $ac_arg"
Jon Dugan92864152010-09-20 21:50:12 +00003509 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003510 ac_cv_prog_cc_c89=$ac_arg
3511fi
3512rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514done
3515rm -f conftest.$ac_ext
3516CC=$ac_save_CC
3517
3518fi
3519# AC_CACHE_VAL
3520case "x$ac_cv_prog_cc_c89" in
3521 x)
Jon Dugan92864152010-09-20 21:50:12 +00003522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003524 xno)
Jon Dugan92864152010-09-20 21:50:12 +00003525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003527 *)
3528 CC="$CC $ac_cv_prog_cc_c89"
Jon Dugan92864152010-09-20 21:50:12 +00003529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003531esac
Jon Dugan92864152010-09-20 21:50:12 +00003532if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003533
Jon Dugan92864152010-09-20 21:50:12 +00003534fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003535
3536ac_ext=c
3537ac_cpp='$CPP $CPPFLAGS'
3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541DEPDIR="${am__leading_dot}deps"
3542
3543ac_config_commands="$ac_config_commands depfiles"
3544
3545
3546am_make=${MAKE-make}
3547cat > confinc << 'END'
3548am__doit:
Jon Dugan92864152010-09-20 21:50:12 +00003549 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003550.PHONY: am__doit
3551END
3552# If we don't find an include directive, just comment out the code.
Jon Dugan92864152010-09-20 21:50:12 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3554$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003555am__include="#"
3556am__quote=
3557_am_result=none
3558# First try GNU make style include.
3559echo "include confinc" > confmf
Jon Dugan92864152010-09-20 21:50:12 +00003560# Ignore all kinds of additional output from `make'.
3561case `$am_make -s -f confmf 2> /dev/null` in #(
3562*the\ am__doit\ target*)
3563 am__include=include
3564 am__quote=
3565 _am_result=GNU
3566 ;;
3567esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003568# Now try BSD make style include.
3569if test "$am__include" = "#"; then
3570 echo '.include "confinc"' > confmf
Jon Dugan92864152010-09-20 21:50:12 +00003571 case `$am_make -s -f confmf 2> /dev/null` in #(
3572 *the\ am__doit\ target*)
3573 am__include=.include
3574 am__quote="\""
3575 _am_result=BSD
3576 ;;
3577 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003578fi
3579
3580
Jon Dugan92864152010-09-20 21:50:12 +00003581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3582$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003583rm -f confinc confmf
3584
3585# Check whether --enable-dependency-tracking was given.
Jon Dugan92864152010-09-20 21:50:12 +00003586if test "${enable_dependency_tracking+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003587 enableval=$enable_dependency_tracking;
3588fi
3589
3590if test "x$enable_dependency_tracking" != xno; then
3591 am_depcomp="$ac_aux_dir/depcomp"
3592 AMDEPBACKSLASH='\'
3593fi
sethdelliott01ca9722010-07-19 20:38:40 +00003594 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003595 AMDEP_TRUE=
3596 AMDEP_FALSE='#'
3597else
3598 AMDEP_TRUE='#'
3599 AMDEP_FALSE=
3600fi
3601
3602
3603
Jon Dugane34c20c2010-07-08 23:26:52 +00003604depcc="$CC" am_compiler_list=
3605
Jon Dugan92864152010-09-20 21:50:12 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3607$as_echo_n "checking dependency style of $depcc... " >&6; }
3608if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003610else
3611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3612 # We make a subdir and do the tests there. Otherwise we can end up
3613 # making bogus files that we don't know about and never remove. For
3614 # instance it was reported that on HP-UX the gcc test will end up
3615 # making a dummy file named `D' -- because `-MD' means `put the output
3616 # in D'.
3617 mkdir conftest.dir
3618 # Copy depcomp to subdir because otherwise we won't find it if we're
3619 # using a relative directory.
3620 cp "$am_depcomp" conftest.dir
3621 cd conftest.dir
3622 # We will build objects and dependencies in a subdirectory because
3623 # it helps to detect inapplicable dependency modes. For instance
3624 # both Tru64's cc and ICC support -MD to output dependencies as a
3625 # side effect of compilation, but ICC will put the dependencies in
3626 # the current directory while Tru64 will put them in the object
3627 # directory.
3628 mkdir sub
3629
3630 am_cv_CC_dependencies_compiler_type=none
3631 if test "$am_compiler_list" = ""; then
3632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3633 fi
Jon Dugan92864152010-09-20 21:50:12 +00003634 am__universal=false
3635 case " $depcc " in #(
3636 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3637 esac
3638
Jon Dugane34c20c2010-07-08 23:26:52 +00003639 for depmode in $am_compiler_list; do
3640 # Setup a source with many dependencies, because some compilers
3641 # like to wrap large dependency lists on column 80 (with \), and
3642 # we should not choose a depcomp mode which is confused by this.
3643 #
3644 # We need to recreate these files for each test, as the compiler may
3645 # overwrite some of them when testing with obscure command lines.
3646 # This happens at least with the AIX C compiler.
3647 : > sub/conftest.c
3648 for i in 1 2 3 4 5 6; do
3649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
sethdelliott01ca9722010-07-19 20:38:40 +00003650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3651 # Solaris 8's {/usr,}/bin/sh.
3652 touch sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003653 done
3654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3655
Jon Dugan92864152010-09-20 21:50:12 +00003656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3657 # mode. It turns out that the SunPro C++ compiler does not properly
3658 # handle `-M -o', and we need to detect this. Also, some Intel
3659 # versions had trouble with output in subdirs
3660 am__obj=sub/conftest.${OBJEXT-o}
3661 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003662 case $depmode in
Jon Dugan92864152010-09-20 21:50:12 +00003663 gcc)
3664 # This depmode causes a compiler race in universal mode.
3665 test "$am__universal" = false || continue
3666 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003667 nosideeffect)
3668 # after this tag, mechanisms are not by side-effect, so they'll
3669 # only be used when explicitly requested
3670 if test "x$enable_dependency_tracking" = xyes; then
3671 continue
3672 else
3673 break
3674 fi
3675 ;;
Jon Dugan92864152010-09-20 21:50:12 +00003676 msvisualcpp | msvcmsys)
3677 # This compiler won't grok `-c -o', but also, the minuso test has
3678 # not run yet. These depmodes are late enough in the game, and
3679 # so weak that their functioning should not be impacted.
3680 am__obj=conftest.${OBJEXT-o}
3681 am__minus_obj=
3682 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003683 none) break ;;
3684 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003685 if depmode=$depmode \
Jon Dugan92864152010-09-20 21:50:12 +00003686 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Jon Dugan92864152010-09-20 21:50:12 +00003688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003689 >/dev/null 2>conftest.err &&
sethdelliott01ca9722010-07-19 20:38:40 +00003690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugan92864152010-09-20 21:50:12 +00003692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3694 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003695 # or remarks (even with -Werror). So we grep stderr for any message
3696 # that says an option was ignored or not supported.
3697 # When given -MP, icc 7.0 and 7.1 complain thusly:
3698 # icc: Command line warning: ignoring option '-M'; no argument required
3699 # The diagnosis changed in icc 8.0:
3700 # icc: Command line remark: option '-MP' not supported
3701 if (grep 'ignoring option' conftest.err ||
3702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003703 am_cv_CC_dependencies_compiler_type=$depmode
3704 break
3705 fi
3706 fi
3707 done
3708
3709 cd ..
3710 rm -rf conftest.dir
3711else
3712 am_cv_CC_dependencies_compiler_type=none
3713fi
3714
3715fi
Jon Dugan92864152010-09-20 21:50:12 +00003716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3717$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003718CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3719
sethdelliott01ca9722010-07-19 20:38:40 +00003720 if
Jon Dugane34c20c2010-07-08 23:26:52 +00003721 test "x$enable_dependency_tracking" != xno \
3722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3723 am__fastdepCC_TRUE=
3724 am__fastdepCC_FALSE='#'
3725else
3726 am__fastdepCC_TRUE='#'
3727 am__fastdepCC_FALSE=
3728fi
3729
3730
3731if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00003734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if test "${ac_cv_prog_RANLIB+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003738else
3739 if test -n "$RANLIB"; then
3740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003747 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00003750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003751 break 2
3752 fi
3753done
Jon Dugan92864152010-09-20 21:50:12 +00003754 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003755IFS=$as_save_IFS
3756
3757fi
3758fi
3759RANLIB=$ac_cv_prog_RANLIB
3760if test -n "$RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00003761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3762$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003763else
Jon Dugan92864152010-09-20 21:50:12 +00003764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003766fi
3767
3768
3769fi
3770if test -z "$ac_cv_prog_RANLIB"; then
3771 ac_ct_RANLIB=$RANLIB
3772 # Extract the first word of "ranlib", so it can be a program name with args.
3773set dummy ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00003774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775$as_echo_n "checking for $ac_word... " >&6; }
3776if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003778else
3779 if test -n "$ac_ct_RANLIB"; then
3780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003787 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00003788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00003790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003791 break 2
3792 fi
3793done
Jon Dugan92864152010-09-20 21:50:12 +00003794 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003795IFS=$as_save_IFS
3796
3797fi
3798fi
3799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3800if test -n "$ac_ct_RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00003801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3802$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003803else
Jon Dugan92864152010-09-20 21:50:12 +00003804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003806fi
3807
3808 if test "x$ac_ct_RANLIB" = x; then
3809 RANLIB=":"
3810 else
3811 case $cross_compiling:$ac_tool_warned in
3812yes:)
Jon Dugan92864152010-09-20 21:50:12 +00003813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003815ac_tool_warned=yes ;;
3816esac
3817 RANLIB=$ac_ct_RANLIB
3818 fi
3819else
3820 RANLIB="$ac_cv_prog_RANLIB"
3821fi
3822
Jon Dugan92864152010-09-20 21:50:12 +00003823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3824$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003825LN_S=$as_ln_s
3826if test "$LN_S" = "ln -s"; then
Jon Dugan92864152010-09-20 21:50:12 +00003827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003829else
Jon Dugan92864152010-09-20 21:50:12 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3831$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003832fi
3833
3834case `pwd` in
3835 *\ * | *\ *)
Jon Dugan92864152010-09-20 21:50:12 +00003836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3837$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003838esac
3839
3840
3841
Jon Dugan92864152010-09-20 21:50:12 +00003842macro_version='2.2.10'
3843macro_revision='1.3175'
Jon Dugane34c20c2010-07-08 23:26:52 +00003844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857ltmain="$ac_aux_dir/ltmain.sh"
3858
Jon Dugan92864152010-09-20 21:50:12 +00003859# Backslashify metacharacters that are still active within
3860# double-quoted strings.
3861sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3862
3863# Same as above, but do not quote variable references.
3864double_quote_subst='s/\(["`\\]\)/\\\1/g'
3865
3866# Sed substitution to delay expansion of an escaped shell variable in a
3867# double_quote_subst'ed string.
3868delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3869
3870# Sed substitution to delay expansion of an escaped single quote.
3871delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3872
3873# Sed substitution to avoid accidental globbing in evaled expressions
3874no_glob_subst='s/\*/\\\*/g'
3875
3876ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3877ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3878ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3879
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3881$as_echo_n "checking how to print strings... " >&6; }
3882# Test print first, because it will be a builtin if present.
3883if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3884 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3885 ECHO='print -r --'
3886elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3887 ECHO='printf %s\n'
3888else
3889 # Use this function as a fallback that always works.
3890 func_fallback_echo ()
3891 {
3892 eval 'cat <<_LTECHO_EOF
3893$1
3894_LTECHO_EOF'
3895 }
3896 ECHO='func_fallback_echo'
3897fi
3898
3899# func_echo_all arg...
3900# Invoke $ECHO with all args, space-separated.
3901func_echo_all ()
3902{
3903 $ECHO ""
3904}
3905
3906case "$ECHO" in
3907 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3908$as_echo "printf" >&6; } ;;
3909 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3910$as_echo "print -r" >&6; } ;;
3911 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3912$as_echo "cat" >&6; } ;;
3913esac
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3929$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3930if test "${ac_cv_path_SED+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003932else
3933 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3934 for ac_i in 1 2 3 4 5 6 7; do
3935 ac_script="$ac_script$as_nl$ac_script"
3936 done
Jon Dugan92864152010-09-20 21:50:12 +00003937 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3938 { ac_script=; unset ac_script;}
3939 if test -z "$SED"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003940 ac_path_SED_found=false
Jon Dugan92864152010-09-20 21:50:12 +00003941 # Loop through the user's path and test for each of PROGNAME-LIST
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00003947 for ac_prog in sed gsed; do
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3950 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3951# Check for GNU ac_path_SED and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00003952 # Check for GNU $ac_path_SED
3953case `"$ac_path_SED" --version 2>&1` in
3954*GNU*)
3955 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3956*)
3957 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00003958 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00003959 while :
3960 do
3961 cat "conftest.in" "conftest.in" >"conftest.tmp"
3962 mv "conftest.tmp" "conftest.in"
3963 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00003964 $as_echo '' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00003965 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00003967 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00003968 if test $ac_count -gt ${ac_path_SED_max-0}; then
3969 # Best one so far, save it but keep looking for a better one
3970 ac_cv_path_SED="$ac_path_SED"
3971 ac_path_SED_max=$ac_count
3972 fi
3973 # 10*(2^10) chars as input seems more than enough
3974 test $ac_count -gt 10 && break
3975 done
3976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977esac
3978
Jon Dugan92864152010-09-20 21:50:12 +00003979 $ac_path_SED_found && break 3
3980 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003981 done
Jon Dugan92864152010-09-20 21:50:12 +00003982 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003983IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00003984 if test -z "$ac_cv_path_SED"; then
3985 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3986 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003987else
3988 ac_cv_path_SED=$SED
3989fi
3990
3991fi
Jon Dugan92864152010-09-20 21:50:12 +00003992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3993$as_echo "$ac_cv_path_SED" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003994 SED="$ac_cv_path_SED"
3995 rm -f conftest.sed
3996
3997test -z "$SED" && SED=sed
3998Xsed="$SED -e 1s/^X//"
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
Jon Dugan92864152010-09-20 21:50:12 +00004010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4011$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4012if test "${ac_cv_path_GREP+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004014else
Jon Dugan92864152010-09-20 21:50:12 +00004015 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004016 ac_path_GREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004023 for ac_prog in grep ggrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004028 # Check for GNU $ac_path_GREP
4029case `"$ac_path_GREP" --version 2>&1` in
4030*GNU*)
4031 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032*)
4033 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004034 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004035 while :
4036 do
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004040 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004041 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00004043 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004044 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_GREP="$ac_path_GREP"
4047 ac_path_GREP_max=$ac_count
4048 fi
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4051 done
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053esac
4054
Jon Dugan92864152010-09-20 21:50:12 +00004055 $ac_path_GREP_found && break 3
4056 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004057 done
Jon Dugan92864152010-09-20 21:50:12 +00004058 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004059IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004060 if test -z "$ac_cv_path_GREP"; then
4061 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4062 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004063else
4064 ac_cv_path_GREP=$GREP
4065fi
4066
4067fi
Jon Dugan92864152010-09-20 21:50:12 +00004068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4069$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004070 GREP="$ac_cv_path_GREP"
4071
4072
Jon Dugan92864152010-09-20 21:50:12 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4074$as_echo_n "checking for egrep... " >&6; }
4075if test "${ac_cv_path_EGREP+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004077else
4078 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079 then ac_cv_path_EGREP="$GREP -E"
4080 else
Jon Dugan92864152010-09-20 21:50:12 +00004081 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004082 ac_path_EGREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004089 for ac_prog in egrep; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004094 # Check for GNU $ac_path_EGREP
4095case `"$ac_path_EGREP" --version 2>&1` in
4096*GNU*)
4097 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4098*)
4099 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004100 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004101 while :
4102 do
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004106 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00004109 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_EGREP="$ac_path_EGREP"
4113 ac_path_EGREP_max=$ac_count
4114 fi
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119esac
4120
Jon Dugan92864152010-09-20 21:50:12 +00004121 $ac_path_EGREP_found && break 3
4122 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004123 done
Jon Dugan92864152010-09-20 21:50:12 +00004124 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004125IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004126 if test -z "$ac_cv_path_EGREP"; then
4127 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4128 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004129else
4130 ac_cv_path_EGREP=$EGREP
4131fi
4132
4133 fi
4134fi
Jon Dugan92864152010-09-20 21:50:12 +00004135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4136$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004137 EGREP="$ac_cv_path_EGREP"
4138
4139
Jon Dugan92864152010-09-20 21:50:12 +00004140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4141$as_echo_n "checking for fgrep... " >&6; }
4142if test "${ac_cv_path_FGREP+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004144else
4145 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4146 then ac_cv_path_FGREP="$GREP -F"
4147 else
Jon Dugan92864152010-09-20 21:50:12 +00004148 if test -z "$FGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004149 ac_path_FGREP_found=false
Jon Dugan92864152010-09-20 21:50:12 +00004150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004156 for ac_prog in fgrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4159 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4160# Check for GNU ac_path_FGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004161 # Check for GNU $ac_path_FGREP
4162case `"$ac_path_FGREP" --version 2>&1` in
4163*GNU*)
4164 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4165*)
4166 ac_count=0
Jon Dugan92864152010-09-20 21:50:12 +00004167 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004168 while :
4169 do
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
Jon Dugan92864152010-09-20 21:50:12 +00004173 $as_echo 'FGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jon Dugan92864152010-09-20 21:50:12 +00004176 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_FGREP="$ac_path_FGREP"
4180 ac_path_FGREP_max=$ac_count
4181 fi
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186esac
4187
Jon Dugan92864152010-09-20 21:50:12 +00004188 $ac_path_FGREP_found && break 3
4189 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004190 done
Jon Dugan92864152010-09-20 21:50:12 +00004191 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004192IFS=$as_save_IFS
Jon Dugan92864152010-09-20 21:50:12 +00004193 if test -z "$ac_cv_path_FGREP"; then
4194 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004196else
4197 ac_cv_path_FGREP=$FGREP
4198fi
4199
4200 fi
4201fi
Jon Dugan92864152010-09-20 21:50:12 +00004202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4203$as_echo "$ac_cv_path_FGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004204 FGREP="$ac_cv_path_FGREP"
4205
4206
4207test -z "$GREP" && GREP=grep
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227# Check whether --with-gnu-ld was given.
Jon Dugan92864152010-09-20 21:50:12 +00004228if test "${with_gnu_ld+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00004229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4230else
4231 with_gnu_ld=no
4232fi
4233
4234ac_prog=ld
4235if test "$GCC" = yes; then
4236 # Check if gcc -print-prog-name=ld gives a path.
Jon Dugan92864152010-09-20 21:50:12 +00004237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4238$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004239 case $host in
4240 *-*-mingw*)
4241 # gcc leaves a trailing carriage return which upsets mingw
4242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4243 *)
4244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4245 esac
4246 case $ac_prog in
4247 # Accept absolute paths.
4248 [\\/]* | ?:[\\/]*)
4249 re_direlt='/[^/][^/]*/\.\./'
4250 # Canonicalize the pathname of ld
4251 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4252 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4253 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4254 done
4255 test -z "$LD" && LD="$ac_prog"
4256 ;;
4257 "")
4258 # If it fails, then pretend we aren't using GCC.
4259 ac_prog=ld
4260 ;;
4261 *)
4262 # If it is relative, then search for the first ld in PATH.
4263 with_gnu_ld=unknown
4264 ;;
4265 esac
4266elif test "$with_gnu_ld" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00004267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4268$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004269else
Jon Dugan92864152010-09-20 21:50:12 +00004270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4271$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004272fi
Jon Dugan92864152010-09-20 21:50:12 +00004273if test "${lt_cv_path_LD+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004275else
4276 if test -z "$LD"; then
4277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4278 for ac_dir in $PATH; do
4279 IFS="$lt_save_ifs"
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4282 lt_cv_path_LD="$ac_dir/$ac_prog"
4283 # Check to see if the program is GNU ld. I'd rather use --version,
4284 # but apparently some variants of GNU ld only accept -v.
4285 # Break only if it was the GNU/non-GNU ld that we prefer.
4286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4287 *GNU* | *'with BFD'*)
4288 test "$with_gnu_ld" != no && break
4289 ;;
4290 *)
4291 test "$with_gnu_ld" != yes && break
4292 ;;
4293 esac
4294 fi
4295 done
4296 IFS="$lt_save_ifs"
4297else
4298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4299fi
4300fi
4301
4302LD="$lt_cv_path_LD"
4303if test -n "$LD"; then
Jon Dugan92864152010-09-20 21:50:12 +00004304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4305$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004306else
Jon Dugan92864152010-09-20 21:50:12 +00004307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004309fi
Jon Dugan92864152010-09-20 21:50:12 +00004310test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4312$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4313if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004315else
4316 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4317case `$LD -v 2>&1 </dev/null` in
4318*GNU* | *'with BFD'*)
4319 lt_cv_prog_gnu_ld=yes
4320 ;;
4321*)
4322 lt_cv_prog_gnu_ld=no
4323 ;;
4324esac
4325fi
Jon Dugan92864152010-09-20 21:50:12 +00004326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4327$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004328with_gnu_ld=$lt_cv_prog_gnu_ld
4329
4330
4331
4332
4333
4334
4335
4336
4337
Jon Dugan92864152010-09-20 21:50:12 +00004338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4339$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4340if test "${lt_cv_path_NM+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004342else
4343 if test -n "$NM"; then
4344 # Let the user override the test.
4345 lt_cv_path_NM="$NM"
4346else
4347 lt_nm_to_check="${ac_tool_prefix}nm"
4348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4349 lt_nm_to_check="$lt_nm_to_check nm"
4350 fi
4351 for lt_tmp_nm in $lt_nm_to_check; do
4352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4354 IFS="$lt_save_ifs"
4355 test -z "$ac_dir" && ac_dir=.
4356 tmp_nm="$ac_dir/$lt_tmp_nm"
4357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4358 # Check to see if the nm accepts a BSD-compat flag.
4359 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4360 # nm: unknown option "B" ignored
4361 # Tru64's nm complains that /dev/null is an invalid object file
4362 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4363 */dev/null* | *'Invalid file or object type'*)
4364 lt_cv_path_NM="$tmp_nm -B"
4365 break
4366 ;;
4367 *)
4368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4369 */dev/null*)
4370 lt_cv_path_NM="$tmp_nm -p"
4371 break
4372 ;;
4373 *)
4374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4375 continue # so that we can try to find one that supports BSD flags
4376 ;;
4377 esac
4378 ;;
4379 esac
4380 fi
4381 done
4382 IFS="$lt_save_ifs"
4383 done
4384 : ${lt_cv_path_NM=no}
4385fi
4386fi
Jon Dugan92864152010-09-20 21:50:12 +00004387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4388$as_echo "$lt_cv_path_NM" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004389if test "$lt_cv_path_NM" != "no"; then
4390 NM="$lt_cv_path_NM"
4391else
4392 # Didn't find any BSD compatible name lister, look for dumpbin.
Jon Dugan92864152010-09-20 21:50:12 +00004393 if test -n "$DUMPBIN"; then :
4394 # Let the user override the test.
4395 else
4396 if test -n "$ac_tool_prefix"; then
4397 for ac_prog in dumpbin "link -dump"
Jon Dugane34c20c2010-07-08 23:26:52 +00004398 do
4399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00004401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402$as_echo_n "checking for $ac_word... " >&6; }
4403if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004405else
4406 if test -n "$DUMPBIN"; then
4407 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004414 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00004415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00004417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004418 break 2
4419 fi
4420done
Jon Dugan92864152010-09-20 21:50:12 +00004421 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004422IFS=$as_save_IFS
4423
4424fi
4425fi
4426DUMPBIN=$ac_cv_prog_DUMPBIN
4427if test -n "$DUMPBIN"; then
Jon Dugan92864152010-09-20 21:50:12 +00004428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429$as_echo "$DUMPBIN" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004430else
Jon Dugan92864152010-09-20 21:50:12 +00004431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004433fi
4434
4435
4436 test -n "$DUMPBIN" && break
4437 done
4438fi
4439if test -z "$DUMPBIN"; then
4440 ac_ct_DUMPBIN=$DUMPBIN
Jon Dugan92864152010-09-20 21:50:12 +00004441 for ac_prog in dumpbin "link -dump"
Jon Dugane34c20c2010-07-08 23:26:52 +00004442do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00004445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446$as_echo_n "checking for $ac_word... " >&6; }
4447if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004449else
4450 if test -n "$ac_ct_DUMPBIN"; then
4451 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00004458 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00004459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Jon Dugan92864152010-09-20 21:50:12 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00004462 break 2
4463 fi
4464done
Jon Dugan92864152010-09-20 21:50:12 +00004465 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004466IFS=$as_save_IFS
4467
4468fi
4469fi
4470ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471if test -n "$ac_ct_DUMPBIN"; then
Jon Dugan92864152010-09-20 21:50:12 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473$as_echo "$ac_ct_DUMPBIN" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004474else
Jon Dugan92864152010-09-20 21:50:12 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004477fi
4478
4479
4480 test -n "$ac_ct_DUMPBIN" && break
4481done
4482
4483 if test "x$ac_ct_DUMPBIN" = x; then
4484 DUMPBIN=":"
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487yes:)
Jon Dugan92864152010-09-20 21:50:12 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00004490ac_tool_warned=yes ;;
4491esac
4492 DUMPBIN=$ac_ct_DUMPBIN
4493 fi
4494fi
4495
Jon Dugan92864152010-09-20 21:50:12 +00004496 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4497 *COFF*)
4498 DUMPBIN="$DUMPBIN -symbols"
4499 ;;
4500 *)
4501 DUMPBIN=:
4502 ;;
4503 esac
4504 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004505
4506 if test "$DUMPBIN" != ":"; then
4507 NM="$DUMPBIN"
4508 fi
4509fi
4510test -z "$NM" && NM=nm
4511
4512
4513
4514
4515
4516
Jon Dugan92864152010-09-20 21:50:12 +00004517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4518$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4519if test "${lt_cv_nm_interface+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004521else
4522 lt_cv_nm_interface="BSD nm"
4523 echo "int some_variable = 0;" > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00004524 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004525 (eval "$ac_compile" 2>conftest.err)
4526 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00004527 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4529 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00004530 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00004531 cat conftest.out >&5
4532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4533 lt_cv_nm_interface="MS dumpbin"
4534 fi
Jon Dugan92864152010-09-20 21:50:12 +00004535 rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00004536fi
Jon Dugan92864152010-09-20 21:50:12 +00004537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4538$as_echo "$lt_cv_nm_interface" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004539
4540# find the maximum length of command line arguments
Jon Dugan92864152010-09-20 21:50:12 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4542$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4543if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4544 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004545else
4546 i=0
4547 teststring="ABCD"
4548
4549 case $build_os in
4550 msdosdjgpp*)
4551 # On DJGPP, this test can blow up pretty badly due to problems in libc
4552 # (any single argument exceeding 2000 bytes causes a buffer overrun
4553 # during glob expansion). Even if it were fixed, the result of this
4554 # check would be larger than it should be.
4555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4556 ;;
4557
4558 gnu*)
4559 # Under GNU Hurd, this test is not required because there is
4560 # no limit to the length of command line arguments.
4561 # Libtool will interpret -1 as no limit whatsoever
4562 lt_cv_sys_max_cmd_len=-1;
4563 ;;
4564
Jon Dugan92864152010-09-20 21:50:12 +00004565 cygwin* | mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004566 # On Win9x/ME, this test blows up -- it succeeds, but takes
4567 # about 5 minutes as the teststring grows exponentially.
4568 # Worse, since 9x/ME are not pre-emptively multitasking,
4569 # you end up with a "frozen" computer, even though with patience
4570 # the test eventually succeeds (with a max line length of 256k).
4571 # Instead, let's just punt: use the minimum linelength reported by
4572 # all of the supported platforms: 8192 (on NT/2K/XP).
4573 lt_cv_sys_max_cmd_len=8192;
4574 ;;
4575
Jon Dugan92864152010-09-20 21:50:12 +00004576 mint*)
4577 # On MiNT this can take a long time and run out of memory.
4578 lt_cv_sys_max_cmd_len=8192;
4579 ;;
4580
Jon Dugane34c20c2010-07-08 23:26:52 +00004581 amigaos*)
4582 # On AmigaOS with pdksh, this test takes hours, literally.
4583 # So we just punt and use a minimum line length of 8192.
4584 lt_cv_sys_max_cmd_len=8192;
4585 ;;
4586
4587 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4588 # This has been around since 386BSD, at least. Likely further.
4589 if test -x /sbin/sysctl; then
4590 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4591 elif test -x /usr/sbin/sysctl; then
4592 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4593 else
4594 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4595 fi
4596 # And add a safety zone
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4599 ;;
4600
4601 interix*)
4602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4603 lt_cv_sys_max_cmd_len=196608
4604 ;;
4605
4606 osf*)
4607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4609 # nice to cause kernel panics so lets avoid the loop below.
4610 # First set a reasonable default.
4611 lt_cv_sys_max_cmd_len=16384
4612 #
4613 if test -x /sbin/sysconfig; then
4614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4616 esac
4617 fi
4618 ;;
4619 sco3.2v5*)
4620 lt_cv_sys_max_cmd_len=102400
4621 ;;
4622 sysv5* | sco5v6* | sysv4.2uw2*)
4623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4624 if test -n "$kargmax"; then
4625 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4626 else
4627 lt_cv_sys_max_cmd_len=32768
4628 fi
4629 ;;
4630 *)
4631 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4632 if test -n "$lt_cv_sys_max_cmd_len"; then
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635 else
4636 # Make teststring a little bigger before we do anything with it.
4637 # a 1K string should be a reasonable start.
4638 for i in 1 2 3 4 5 6 7 8 ; do
4639 teststring=$teststring$teststring
4640 done
4641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4642 # If test is not a shell built-in, we'll probably end up computing a
4643 # maximum length that is only half of the actual maximum length, but
4644 # we can't tell.
Jon Dugan92864152010-09-20 21:50:12 +00004645 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4646 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004647 test $i != 17 # 1/2 MB should be enough
4648 do
4649 i=`expr $i + 1`
4650 teststring=$teststring$teststring
4651 done
4652 # Only check the string length outside the loop.
4653 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4654 teststring=
4655 # Add a significant safety factor because C++ compilers can tack on
4656 # massive amounts of additional arguments before passing them to the
4657 # linker. It appears as though 1/2 is a usable value.
4658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4659 fi
4660 ;;
4661 esac
4662
4663fi
4664
4665if test -n $lt_cv_sys_max_cmd_len ; then
Jon Dugan92864152010-09-20 21:50:12 +00004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4667$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004668else
Jon Dugan92864152010-09-20 21:50:12 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4670$as_echo "none" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004671fi
4672max_cmd_len=$lt_cv_sys_max_cmd_len
4673
4674
4675
4676
4677
4678
4679: ${CP="cp -f"}
4680: ${MV="mv -f"}
4681: ${RM="rm -f"}
4682
Jon Dugan92864152010-09-20 21:50:12 +00004683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4684$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004685# Try some XSI features
4686xsi_shell=no
4687( _lt_dummy="a/b/c"
4688 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4689 = c,a/b,, \
4690 && eval 'test $(( 1 + 1 )) -eq 2 \
4691 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4692 && xsi_shell=yes
Jon Dugan92864152010-09-20 21:50:12 +00004693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4694$as_echo "$xsi_shell" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004695
4696
Jon Dugan92864152010-09-20 21:50:12 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4698$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004699lt_shell_append=no
4700( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4701 >/dev/null 2>&1 \
4702 && lt_shell_append=yes
Jon Dugan92864152010-09-20 21:50:12 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4704$as_echo "$lt_shell_append" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004705
4706
4707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4708 lt_unset=unset
4709else
4710 lt_unset=false
4711fi
4712
4713
4714
4715
4716
4717# test EBCDIC or ASCII
4718case `echo X|tr X '\101'` in
4719 A) # ASCII based system
4720 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4721 lt_SP2NL='tr \040 \012'
4722 lt_NL2SP='tr \015\012 \040\040'
4723 ;;
4724 *) # EBCDIC based system
4725 lt_SP2NL='tr \100 \n'
4726 lt_NL2SP='tr \r\n \100\100'
4727 ;;
4728esac
4729
4730
4731
4732
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; }
4740if test "${lt_cv_ld_reload_flag+set}" = set; then :
4741 $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
4754 darwin*)
4755 if test "$GCC" = yes; then
4756 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4757 else
4758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759 fi
4760 ;;
4761esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
Jon Dugan92864152010-09-20 21:50:12 +00004771if test -n "$ac_tool_prefix"; then
4772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}objdump; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 if test -n "$OBJDUMP"; then
4780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794 done
4795IFS=$as_save_IFS
Jon Dugane34c20c2010-07-08 23:26:52 +00004796
Jon Dugan92864152010-09-20 21:50:12 +00004797fi
4798fi
4799OBJDUMP=$ac_cv_prog_OBJDUMP
4800if test -n "$OBJDUMP"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4802$as_echo "$OBJDUMP" >&6; }
4803else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807
4808
4809fi
4810if test -z "$ac_cv_prog_OBJDUMP"; then
4811 ac_ct_OBJDUMP=$OBJDUMP
4812 # Extract the first word of "objdump", so it can be a program name with args.
4813set dummy objdump; ac_word=$2
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 if test -n "$ac_ct_OBJDUMP"; then
4820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833done
4834 done
4835IFS=$as_save_IFS
4836
4837fi
4838fi
4839ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4840if test -n "$ac_ct_OBJDUMP"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4842$as_echo "$ac_ct_OBJDUMP" >&6; }
4843else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
4846fi
4847
4848 if test "x$ac_ct_OBJDUMP" = x; then
4849 OBJDUMP="false"
4850 else
4851 case $cross_compiling:$ac_tool_warned in
4852yes:)
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855ac_tool_warned=yes ;;
4856esac
4857 OBJDUMP=$ac_ct_OBJDUMP
4858 fi
4859else
4860 OBJDUMP="$ac_cv_prog_OBJDUMP"
4861fi
4862
4863test -z "$OBJDUMP" && OBJDUMP=objdump
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4874$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4875if test "${lt_cv_deplibs_check_method+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004877else
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879lt_cv_file_magic_test_file=
4880lt_cv_deplibs_check_method='unknown'
4881# Need to set the preceding variable on all platforms that support
4882# interlibrary dependencies.
4883# 'none' -- dependencies not supported.
4884# `unknown' -- same as none, but documents that we really don't know.
4885# 'pass_all' -- all dependencies passed with no checks.
4886# 'test_compile' -- check by making test program.
4887# 'file_magic [[regex]]' -- check by looking for files in library path
4888# which responds to the $file_magic_cmd with a given extended regex.
4889# If you have `file' or equivalent on your system and you're not sure
4890# whether `pass_all' will *always* work, you probably want this one.
4891
4892case $host_os in
4893aix[4-9]*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896
4897beos*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901bsdi[45]*)
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4905 ;;
4906
4907cygwin*)
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
4911 ;;
4912
4913mingw* | pw32*)
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
4915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
Jon Dugan92864152010-09-20 21:50:12 +00004917 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4918 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4920 lt_cv_file_magic_cmd='func_win32_libid'
4921 else
Jon Dugan92864152010-09-20 21:50:12 +00004922 # Keep this pattern in sync with the one in func_win32_libid.
4923 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 +00004924 lt_cv_file_magic_cmd='$OBJDUMP -f'
4925 fi
4926 ;;
4927
Jon Dugan92864152010-09-20 21:50:12 +00004928cegcc*)
4929 # use the weaker test based on 'objdump'. See mingw*.
4930 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4931 lt_cv_file_magic_cmd='$OBJDUMP -f'
4932 ;;
4933
Jon Dugane34c20c2010-07-08 23:26:52 +00004934darwin* | rhapsody*)
4935 lt_cv_deplibs_check_method=pass_all
4936 ;;
4937
4938freebsd* | dragonfly*)
4939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4940 case $host_cpu in
4941 i*86 )
4942 # Not sure whether the presence of OpenBSD here was a mistake.
4943 # Let's accept both of them until this is cleared up.
4944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4945 lt_cv_file_magic_cmd=/usr/bin/file
4946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4947 ;;
4948 esac
4949 else
4950 lt_cv_deplibs_check_method=pass_all
4951 fi
4952 ;;
4953
4954gnu*)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957
Jon Dugan92864152010-09-20 21:50:12 +00004958haiku*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961
Jon Dugane34c20c2010-07-08 23:26:52 +00004962hpux10.20* | hpux11*)
4963 lt_cv_file_magic_cmd=/usr/bin/file
4964 case $host_cpu in
4965 ia64*)
4966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4967 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4968 ;;
4969 hppa*64*)
Jon Dugan92864152010-09-20 21:50:12 +00004970 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 +00004971 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4972 ;;
4973 *)
Jon Dugan92864152010-09-20 21:50:12 +00004974 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 +00004975 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4976 ;;
4977 esac
4978 ;;
4979
4980interix[3-9]*)
4981 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4983 ;;
4984
4985irix5* | irix6* | nonstopux*)
4986 case $LD in
4987 *-32|*"-32 ") libmagic=32-bit;;
4988 *-n32|*"-n32 ") libmagic=N32;;
4989 *-64|*"-64 ") libmagic=64-bit;;
4990 *) libmagic=never-match;;
4991 esac
4992 lt_cv_deplibs_check_method=pass_all
4993 ;;
4994
4995# This must be Linux ELF.
Jon Dugan92864152010-09-20 21:50:12 +00004996linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00004997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000netbsd*)
5001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5003 else
5004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5005 fi
5006 ;;
5007
5008newos6*)
5009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5010 lt_cv_file_magic_cmd=/usr/bin/file
5011 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5012 ;;
5013
5014*nto* | *qnx*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018openbsd*)
5019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5021 else
5022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5023 fi
5024 ;;
5025
5026osf3* | osf4* | osf5*)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029
5030rdos*)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033
5034solaris*)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037
5038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042sysv4 | sysv4.3*)
5043 case $host_vendor in
5044 motorola)
5045 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]'
5046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5047 ;;
5048 ncr)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051 sequent)
5052 lt_cv_file_magic_cmd='/bin/file'
5053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5054 ;;
5055 sni)
5056 lt_cv_file_magic_cmd='/bin/file'
5057 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5058 lt_cv_file_magic_test_file=/lib/libc.so
5059 ;;
5060 siemens)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063 pc)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066 esac
5067 ;;
5068
5069tpf*)
5070 lt_cv_deplibs_check_method=pass_all
5071 ;;
5072esac
5073
5074fi
Jon Dugan92864152010-09-20 21:50:12 +00005075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5076$as_echo "$lt_cv_deplibs_check_method" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005077file_magic_cmd=$lt_cv_file_magic_cmd
5078deplibs_check_method=$lt_cv_deplibs_check_method
5079test -z "$deplibs_check_method" && deplibs_check_method=unknown
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}ar; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if test "${ac_cv_prog_AR+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005099else
5100 if test -n "$AR"; then
5101 ac_cv_prog_AR="$AR" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005108 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jon Dugan92864152010-09-20 21:50:12 +00005111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005112 break 2
5113 fi
5114done
Jon Dugan92864152010-09-20 21:50:12 +00005115 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005116IFS=$as_save_IFS
5117
5118fi
5119fi
5120AR=$ac_cv_prog_AR
5121if test -n "$AR"; then
Jon Dugan92864152010-09-20 21:50:12 +00005122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5123$as_echo "$AR" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005124else
Jon Dugan92864152010-09-20 21:50:12 +00005125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005127fi
5128
5129
5130fi
5131if test -z "$ac_cv_prog_AR"; then
5132 ac_ct_AR=$AR
5133 # Extract the first word of "ar", so it can be a program name with args.
5134set dummy ar; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005139else
5140 if test -n "$ac_ct_AR"; then
5141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005148 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_AR="ar"
Jon Dugan92864152010-09-20 21:50:12 +00005151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005152 break 2
5153 fi
5154done
Jon Dugan92864152010-09-20 21:50:12 +00005155 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005156IFS=$as_save_IFS
5157
5158fi
5159fi
5160ac_ct_AR=$ac_cv_prog_ac_ct_AR
5161if test -n "$ac_ct_AR"; then
Jon Dugan92864152010-09-20 21:50:12 +00005162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5163$as_echo "$ac_ct_AR" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005164else
Jon Dugan92864152010-09-20 21:50:12 +00005165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005167fi
5168
5169 if test "x$ac_ct_AR" = x; then
5170 AR="false"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005176ac_tool_warned=yes ;;
5177esac
5178 AR=$ac_ct_AR
5179 fi
5180else
5181 AR="$ac_cv_prog_AR"
5182fi
5183
5184test -z "$AR" && AR=ar
5185test -z "$AR_FLAGS" && AR_FLAGS=cru
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5199set dummy ${ac_tool_prefix}strip; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if test "${ac_cv_prog_STRIP+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005204else
5205 if test -n "$STRIP"; then
5206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005213 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Jon Dugan92864152010-09-20 21:50:12 +00005216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005217 break 2
5218 fi
5219done
Jon Dugan92864152010-09-20 21:50:12 +00005220 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005221IFS=$as_save_IFS
5222
5223fi
5224fi
5225STRIP=$ac_cv_prog_STRIP
5226if test -n "$STRIP"; then
Jon Dugan92864152010-09-20 21:50:12 +00005227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5228$as_echo "$STRIP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005229else
Jon Dugan92864152010-09-20 21:50:12 +00005230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005232fi
5233
5234
5235fi
5236if test -z "$ac_cv_prog_STRIP"; then
5237 ac_ct_STRIP=$STRIP
5238 # Extract the first word of "strip", so it can be a program name with args.
5239set dummy strip; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005244else
5245 if test -n "$ac_ct_STRIP"; then
5246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005253 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_STRIP="strip"
Jon Dugan92864152010-09-20 21:50:12 +00005256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005257 break 2
5258 fi
5259done
Jon Dugan92864152010-09-20 21:50:12 +00005260 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005261IFS=$as_save_IFS
5262
5263fi
5264fi
5265ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5266if test -n "$ac_ct_STRIP"; then
Jon Dugan92864152010-09-20 21:50:12 +00005267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5268$as_echo "$ac_ct_STRIP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005269else
Jon Dugan92864152010-09-20 21:50:12 +00005270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005272fi
5273
5274 if test "x$ac_ct_STRIP" = x; then
5275 STRIP=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005281ac_tool_warned=yes ;;
5282esac
5283 STRIP=$ac_ct_STRIP
5284 fi
5285else
5286 STRIP="$ac_cv_prog_STRIP"
5287fi
5288
5289test -z "$STRIP" && STRIP=:
5290
5291
5292
5293
5294
5295
5296if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300$as_echo_n "checking for $ac_word... " >&6; }
5301if test "${ac_cv_prog_RANLIB+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005303else
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005312 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00005315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005316 break 2
5317 fi
5318done
Jon Dugan92864152010-09-20 21:50:12 +00005319 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005320IFS=$as_save_IFS
5321
5322fi
5323fi
5324RANLIB=$ac_cv_prog_RANLIB
5325if test -n "$RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00005326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5327$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005328else
Jon Dugan92864152010-09-20 21:50:12 +00005329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005331fi
5332
5333
5334fi
5335if test -z "$ac_cv_prog_RANLIB"; then
5336 ac_ct_RANLIB=$RANLIB
5337 # Extract the first word of "ranlib", so it can be a program name with args.
5338set dummy ranlib; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005343else
5344 if test -n "$ac_ct_RANLIB"; then
5345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005352 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jon Dugan92864152010-09-20 21:50:12 +00005355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005356 break 2
5357 fi
5358done
Jon Dugan92864152010-09-20 21:50:12 +00005359 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005360IFS=$as_save_IFS
5361
5362fi
5363fi
5364ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5365if test -n "$ac_ct_RANLIB"; then
Jon Dugan92864152010-09-20 21:50:12 +00005366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5367$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005368else
Jon Dugan92864152010-09-20 21:50:12 +00005369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005371fi
5372
5373 if test "x$ac_ct_RANLIB" = x; then
5374 RANLIB=":"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005380ac_tool_warned=yes ;;
5381esac
5382 RANLIB=$ac_ct_RANLIB
5383 fi
5384else
5385 RANLIB="$ac_cv_prog_RANLIB"
5386fi
5387
5388test -z "$RANLIB" && RANLIB=:
5389
5390
5391
5392
5393
5394
5395# Determine commands to create old-style static archives.
5396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5397old_postinstall_cmds='chmod 644 $oldlib'
5398old_postuninstall_cmds=
5399
5400if test -n "$RANLIB"; then
5401 case $host_os in
5402 openbsd*)
5403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5404 ;;
5405 *)
5406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5407 ;;
5408 esac
5409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5410fi
5411
Jon Dugan92864152010-09-20 21:50:12 +00005412case $host_os in
5413 darwin*)
5414 lock_old_archive_extraction=yes ;;
5415 *)
5416 lock_old_archive_extraction=no ;;
5417esac
5418
5419
5420
5421
5422
5423
Jon Dugane34c20c2010-07-08 23:26:52 +00005424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457# If no C compiler was specified, use CC.
5458LTCC=${LTCC-"$CC"}
5459
5460# If no C compiler flags were specified, use CFLAGS.
5461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5462
5463# Allow CC to be a program name with arguments.
5464compiler=$CC
5465
5466
5467# Check for command to grab the raw symbol name followed by C symbol from nm.
Jon Dugan92864152010-09-20 21:50:12 +00005468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5469$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5470if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005472else
5473
5474# These are sane defaults that work on at least a few old systems.
5475# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5476
5477# Character class describing NM global symbol codes.
5478symcode='[BCDEGRST]'
5479
5480# Regexp to match symbols that can be accessed directly from C.
5481sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5482
5483# Define system-specific variables.
5484case $host_os in
5485aix*)
5486 symcode='[BCDT]'
5487 ;;
Jon Dugan92864152010-09-20 21:50:12 +00005488cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00005489 symcode='[ABCDGISTW]'
5490 ;;
5491hpux*)
5492 if test "$host_cpu" = ia64; then
5493 symcode='[ABCDEGRST]'
5494 fi
5495 ;;
5496irix* | nonstopux*)
5497 symcode='[BCDEGRST]'
5498 ;;
5499osf*)
5500 symcode='[BCDEGQRST]'
5501 ;;
5502solaris*)
5503 symcode='[BDRT]'
5504 ;;
5505sco3.2v5*)
5506 symcode='[DT]'
5507 ;;
5508sysv4.2uw2*)
5509 symcode='[DT]'
5510 ;;
5511sysv5* | sco5v6* | unixware* | OpenUNIX*)
5512 symcode='[ABDT]'
5513 ;;
5514sysv4)
5515 symcode='[DFNSTU]'
5516 ;;
5517esac
5518
5519# If we're using GNU nm, then use its standard symbol codes.
5520case `$NM -V 2>&1` in
5521*GNU* | *'with BFD'*)
5522 symcode='[ABCDGIRSTW]' ;;
5523esac
5524
5525# Transform an extracted symbol line into a proper C declaration.
5526# Some systems (esp. on ia64) link data and code symbols differently,
5527# so use this general approach.
5528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529
5530# Transform an extracted symbol line into symbol name and symbol address
5531lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5532lt_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'"
5533
5534# Handle CRLF in mingw tool chain
5535opt_cr=
5536case $build_os in
5537mingw*)
5538 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539 ;;
5540esac
5541
5542# Try without a prefix underscore, then with it.
5543for ac_symprfx in "" "_"; do
5544
5545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5546 symxfrm="\\1 $ac_symprfx\\2 \\2"
5547
5548 # Write the raw and C identifiers.
5549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5550 # Fake it for dumpbin and say T for any non-static function
5551 # and D for any global variable.
5552 # Also find C++ and __fastcall symbols from MSVC++,
5553 # which start with @ or ?.
5554 lt_cv_sys_global_symbol_pipe="$AWK '"\
5555" {last_section=section; section=\$ 3};"\
5556" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5557" \$ 0!~/External *\|/{next};"\
5558" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5559" {if(hide[section]) next};"\
5560" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5561" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5562" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5563" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5564" ' prfx=^$ac_symprfx"
5565 else
5566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5567 fi
5568
5569 # Check to see that the pipe works correctly.
5570 pipe_works=no
5571
Jon Dugan92864152010-09-20 21:50:12 +00005572 rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00005573 cat > conftest.$ac_ext <<_LT_EOF
5574#ifdef __cplusplus
5575extern "C" {
5576#endif
5577char nm_test_var;
5578void nm_test_func(void);
5579void nm_test_func(void){}
5580#ifdef __cplusplus
5581}
5582#endif
5583int main(){nm_test_var='a';nm_test_func();return(0);}
5584_LT_EOF
5585
Jon Dugan92864152010-09-20 21:50:12 +00005586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005587 (eval $ac_compile) 2>&5
5588 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005591 # Now try to grab the symbols.
5592 nlist=conftest.nm
Jon Dugan92864152010-09-20 21:50:12 +00005593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005595 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597 test $ac_status = 0; } && test -s "$nlist"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005598 # Try sorting and uniquifying the output.
5599 if sort "$nlist" | uniq > "$nlist"T; then
5600 mv -f "$nlist"T "$nlist"
5601 else
5602 rm -f "$nlist"T
5603 fi
5604
5605 # Make sure that we snagged all the symbols we need.
5606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5608 cat <<_LT_EOF > conftest.$ac_ext
5609#ifdef __cplusplus
5610extern "C" {
5611#endif
5612
5613_LT_EOF
5614 # Now generate the symbol file.
5615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5616
5617 cat <<_LT_EOF >> conftest.$ac_ext
5618
5619/* The mapping between symbol names and symbols. */
5620const struct {
5621 const char *name;
5622 void *address;
5623}
5624lt__PROGRAM__LTX_preloaded_symbols[] =
5625{
5626 { "@PROGRAM@", (void *) 0 },
5627_LT_EOF
5628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5629 cat <<\_LT_EOF >> conftest.$ac_ext
5630 {0, (void *) 0}
5631};
5632
5633/* This works around a problem in FreeBSD linker */
5634#ifdef FREEBSD_WORKAROUND
5635static const void *lt_preloaded_setup() {
5636 return lt__PROGRAM__LTX_preloaded_symbols;
5637}
5638#endif
5639
5640#ifdef __cplusplus
5641}
5642#endif
5643_LT_EOF
5644 # Now try linking the two files.
5645 mv conftest.$ac_objext conftstm.$ac_objext
5646 lt_save_LIBS="$LIBS"
5647 lt_save_CFLAGS="$CFLAGS"
5648 LIBS="conftstm.$ac_objext"
5649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jon Dugan92864152010-09-20 21:50:12 +00005650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005651 (eval $ac_link) 2>&5
5652 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005655 pipe_works=yes
5656 fi
5657 LIBS="$lt_save_LIBS"
5658 CFLAGS="$lt_save_CFLAGS"
5659 else
5660 echo "cannot find nm_test_func in $nlist" >&5
5661 fi
5662 else
5663 echo "cannot find nm_test_var in $nlist" >&5
5664 fi
5665 else
5666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667 fi
5668 else
5669 echo "$progname: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 fi
5672 rm -rf conftest* conftst*
5673
5674 # Do not use the global_symbol_pipe unless it works.
5675 if test "$pipe_works" = yes; then
5676 break
5677 else
5678 lt_cv_sys_global_symbol_pipe=
5679 fi
5680done
5681
5682fi
5683
5684if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685 lt_cv_sys_global_symbol_to_cdecl=
5686fi
5687if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jon Dugan92864152010-09-20 21:50:12 +00005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5689$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005690else
Jon Dugan92864152010-09-20 21:50:12 +00005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5692$as_echo "ok" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005693fi
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717# Check whether --enable-libtool-lock was given.
Jon Dugan92864152010-09-20 21:50:12 +00005718if test "${enable_libtool_lock+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00005719 enableval=$enable_libtool_lock;
5720fi
5721
5722test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5723
5724# Some flags need to be propagated to the compiler or linker for good
5725# libtool support.
5726case $host in
5727ia64-*-hpux*)
5728 # Find out which ABI we are using.
5729 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00005730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005731 (eval $ac_compile) 2>&5
5732 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005735 case `/usr/bin/file conftest.$ac_objext` in
5736 *ELF-32*)
5737 HPUX_IA64_MODE="32"
5738 ;;
5739 *ELF-64*)
5740 HPUX_IA64_MODE="64"
5741 ;;
5742 esac
5743 fi
5744 rm -rf conftest*
5745 ;;
5746*-*-irix6*)
5747 # Find out which ABI we are using.
Jon Dugan92864152010-09-20 21:50:12 +00005748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005750 (eval $ac_compile) 2>&5
5751 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005754 if test "$lt_cv_prog_gnu_ld" = yes; then
5755 case `/usr/bin/file conftest.$ac_objext` in
5756 *32-bit*)
5757 LD="${LD-ld} -melf32bsmip"
5758 ;;
5759 *N32*)
5760 LD="${LD-ld} -melf32bmipn32"
5761 ;;
5762 *64-bit*)
5763 LD="${LD-ld} -melf64bmip"
5764 ;;
5765 esac
5766 else
5767 case `/usr/bin/file conftest.$ac_objext` in
5768 *32-bit*)
5769 LD="${LD-ld} -32"
5770 ;;
5771 *N32*)
5772 LD="${LD-ld} -n32"
5773 ;;
5774 *64-bit*)
5775 LD="${LD-ld} -64"
5776 ;;
5777 esac
5778 fi
5779 fi
5780 rm -rf conftest*
5781 ;;
5782
5783x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5784s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5785 # Find out which ABI we are using.
5786 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00005787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005788 (eval $ac_compile) 2>&5
5789 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005792 case `/usr/bin/file conftest.o` in
5793 *32-bit*)
5794 case $host in
5795 x86_64-*kfreebsd*-gnu)
5796 LD="${LD-ld} -m elf_i386_fbsd"
5797 ;;
5798 x86_64-*linux*)
5799 LD="${LD-ld} -m elf_i386"
5800 ;;
5801 ppc64-*linux*|powerpc64-*linux*)
5802 LD="${LD-ld} -m elf32ppclinux"
5803 ;;
5804 s390x-*linux*)
5805 LD="${LD-ld} -m elf_s390"
5806 ;;
5807 sparc64-*linux*)
5808 LD="${LD-ld} -m elf32_sparc"
5809 ;;
5810 esac
5811 ;;
5812 *64-bit*)
5813 case $host in
5814 x86_64-*kfreebsd*-gnu)
5815 LD="${LD-ld} -m elf_x86_64_fbsd"
5816 ;;
5817 x86_64-*linux*)
5818 LD="${LD-ld} -m elf_x86_64"
5819 ;;
5820 ppc*-*linux*|powerpc*-*linux*)
5821 LD="${LD-ld} -m elf64ppc"
5822 ;;
5823 s390*-*linux*|s390*-*tpf*)
5824 LD="${LD-ld} -m elf64_s390"
5825 ;;
5826 sparc*-*linux*)
5827 LD="${LD-ld} -m elf64_sparc"
5828 ;;
5829 esac
5830 ;;
5831 esac
5832 fi
5833 rm -rf conftest*
5834 ;;
5835
5836*-*-sco3.2v5*)
5837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5838 SAVE_CFLAGS="$CFLAGS"
5839 CFLAGS="$CFLAGS -belf"
Jon Dugan92864152010-09-20 21:50:12 +00005840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5841$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5842if test "${lt_cv_cc_needs_belf+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005844else
5845 ac_ext=c
5846ac_cpp='$CPP $CPPFLAGS'
5847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850
Jon Dugan92864152010-09-20 21:50:12 +00005851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00005852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00005862if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00005863 lt_cv_cc_needs_belf=yes
5864else
Jon Dugan92864152010-09-20 21:50:12 +00005865 lt_cv_cc_needs_belf=no
Jon Dugane34c20c2010-07-08 23:26:52 +00005866fi
Jon Dugan92864152010-09-20 21:50:12 +00005867rm -f core conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00005869 ac_ext=c
5870ac_cpp='$CPP $CPPFLAGS'
5871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875fi
Jon Dugan92864152010-09-20 21:50:12 +00005876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5877$as_echo "$lt_cv_cc_needs_belf" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5880 CFLAGS="$SAVE_CFLAGS"
5881 fi
5882 ;;
5883sparc*-*solaris*)
5884 # Find out which ABI we are using.
5885 echo 'int i;' > conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00005886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005887 (eval $ac_compile) 2>&5
5888 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00005889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00005891 case `/usr/bin/file conftest.o` in
5892 *64-bit*)
5893 case $lt_cv_prog_gnu_ld in
5894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5895 *)
5896 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5897 LD="${LD-ld} -64"
5898 fi
5899 ;;
5900 esac
5901 ;;
5902 esac
5903 fi
5904 rm -rf conftest*
5905 ;;
5906esac
5907
5908need_locks="$enable_libtool_lock"
5909
5910
5911 case $host_os in
5912 rhapsody* | darwin*)
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
5918if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005920else
5921 if test -n "$DSYMUTIL"; then
5922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005929 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Jon Dugan92864152010-09-20 21:50:12 +00005932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005933 break 2
5934 fi
5935done
Jon Dugan92864152010-09-20 21:50:12 +00005936 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005937IFS=$as_save_IFS
5938
5939fi
5940fi
5941DSYMUTIL=$ac_cv_prog_DSYMUTIL
5942if test -n "$DSYMUTIL"; then
Jon Dugan92864152010-09-20 21:50:12 +00005943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5944$as_echo "$DSYMUTIL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005945else
Jon Dugan92864152010-09-20 21:50:12 +00005946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005948fi
5949
5950
5951fi
5952if test -z "$ac_cv_prog_DSYMUTIL"; then
5953 ac_ct_DSYMUTIL=$DSYMUTIL
5954 # Extract the first word of "dsymutil", so it can be a program name with args.
5955set dummy dsymutil; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00005956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
5958if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00005960else
5961 if test -n "$ac_ct_DSYMUTIL"; then
5962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00005969 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00005970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Jon Dugan92864152010-09-20 21:50:12 +00005972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005973 break 2
5974 fi
5975done
Jon Dugan92864152010-09-20 21:50:12 +00005976 done
Jon Dugane34c20c2010-07-08 23:26:52 +00005977IFS=$as_save_IFS
5978
5979fi
5980fi
5981ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5982if test -n "$ac_ct_DSYMUTIL"; then
Jon Dugan92864152010-09-20 21:50:12 +00005983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5984$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005985else
Jon Dugan92864152010-09-20 21:50:12 +00005986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005988fi
5989
5990 if test "x$ac_ct_DSYMUTIL" = x; then
5991 DSYMUTIL=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994yes:)
Jon Dugan92864152010-09-20 21:50:12 +00005995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00005997ac_tool_warned=yes ;;
5998esac
5999 DSYMUTIL=$ac_ct_DSYMUTIL
6000 fi
6001else
6002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6003fi
6004
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006012else
6013 if test -n "$NMEDIT"; then
6014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006021 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Jon Dugan92864152010-09-20 21:50:12 +00006024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006025 break 2
6026 fi
6027done
Jon Dugan92864152010-09-20 21:50:12 +00006028 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006029IFS=$as_save_IFS
6030
6031fi
6032fi
6033NMEDIT=$ac_cv_prog_NMEDIT
6034if test -n "$NMEDIT"; then
Jon Dugan92864152010-09-20 21:50:12 +00006035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6036$as_echo "$NMEDIT" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006037else
Jon Dugan92864152010-09-20 21:50:12 +00006038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006040fi
6041
6042
6043fi
6044if test -z "$ac_cv_prog_NMEDIT"; then
6045 ac_ct_NMEDIT=$NMEDIT
6046 # Extract the first word of "nmedit", so it can be a program name with args.
6047set dummy nmedit; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006052else
6053 if test -n "$ac_ct_NMEDIT"; then
6054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006061 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Jon Dugan92864152010-09-20 21:50:12 +00006064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006065 break 2
6066 fi
6067done
Jon Dugan92864152010-09-20 21:50:12 +00006068 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006069IFS=$as_save_IFS
6070
6071fi
6072fi
6073ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6074if test -n "$ac_ct_NMEDIT"; then
Jon Dugan92864152010-09-20 21:50:12 +00006075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6076$as_echo "$ac_ct_NMEDIT" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006077else
Jon Dugan92864152010-09-20 21:50:12 +00006078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006080fi
6081
6082 if test "x$ac_ct_NMEDIT" = x; then
6083 NMEDIT=":"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006089ac_tool_warned=yes ;;
6090esac
6091 NMEDIT=$ac_ct_NMEDIT
6092 fi
6093else
6094 NMEDIT="$ac_cv_prog_NMEDIT"
6095fi
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}lipo; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
6102if test "${ac_cv_prog_LIPO+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006104else
6105 if test -n "$LIPO"; then
6106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006113 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Jon Dugan92864152010-09-20 21:50:12 +00006116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006117 break 2
6118 fi
6119done
Jon Dugan92864152010-09-20 21:50:12 +00006120 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006121IFS=$as_save_IFS
6122
6123fi
6124fi
6125LIPO=$ac_cv_prog_LIPO
6126if test -n "$LIPO"; then
Jon Dugan92864152010-09-20 21:50:12 +00006127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6128$as_echo "$LIPO" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006129else
Jon Dugan92864152010-09-20 21:50:12 +00006130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006132fi
6133
6134
6135fi
6136if test -z "$ac_cv_prog_LIPO"; then
6137 ac_ct_LIPO=$LIPO
6138 # Extract the first word of "lipo", so it can be a program name with args.
6139set dummy lipo; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
6142if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006144else
6145 if test -n "$ac_ct_LIPO"; then
6146 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006153 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_LIPO="lipo"
Jon Dugan92864152010-09-20 21:50:12 +00006156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006157 break 2
6158 fi
6159done
Jon Dugan92864152010-09-20 21:50:12 +00006160 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006161IFS=$as_save_IFS
6162
6163fi
6164fi
6165ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6166if test -n "$ac_ct_LIPO"; then
Jon Dugan92864152010-09-20 21:50:12 +00006167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6168$as_echo "$ac_ct_LIPO" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006169else
Jon Dugan92864152010-09-20 21:50:12 +00006170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006172fi
6173
6174 if test "x$ac_ct_LIPO" = x; then
6175 LIPO=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006181ac_tool_warned=yes ;;
6182esac
6183 LIPO=$ac_ct_LIPO
6184 fi
6185else
6186 LIPO="$ac_cv_prog_LIPO"
6187fi
6188
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6191set dummy ${ac_tool_prefix}otool; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if test "${ac_cv_prog_OTOOL+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006196else
6197 if test -n "$OTOOL"; then
6198 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006205 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Jon Dugan92864152010-09-20 21:50:12 +00006208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006209 break 2
6210 fi
6211done
Jon Dugan92864152010-09-20 21:50:12 +00006212 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006213IFS=$as_save_IFS
6214
6215fi
6216fi
6217OTOOL=$ac_cv_prog_OTOOL
6218if test -n "$OTOOL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6220$as_echo "$OTOOL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006221else
Jon Dugan92864152010-09-20 21:50:12 +00006222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006224fi
6225
6226
6227fi
6228if test -z "$ac_cv_prog_OTOOL"; then
6229 ac_ct_OTOOL=$OTOOL
6230 # Extract the first word of "otool", so it can be a program name with args.
6231set dummy otool; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
6234if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006236else
6237 if test -n "$ac_ct_OTOOL"; then
6238 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006245 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_OTOOL="otool"
Jon Dugan92864152010-09-20 21:50:12 +00006248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006249 break 2
6250 fi
6251done
Jon Dugan92864152010-09-20 21:50:12 +00006252 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006253IFS=$as_save_IFS
6254
6255fi
6256fi
6257ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6258if test -n "$ac_ct_OTOOL"; then
Jon Dugan92864152010-09-20 21:50:12 +00006259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6260$as_echo "$ac_ct_OTOOL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006261else
Jon Dugan92864152010-09-20 21:50:12 +00006262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006264fi
6265
6266 if test "x$ac_ct_OTOOL" = x; then
6267 OTOOL=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006273ac_tool_warned=yes ;;
6274esac
6275 OTOOL=$ac_ct_OTOOL
6276 fi
6277else
6278 OTOOL="$ac_cv_prog_OTOOL"
6279fi
6280
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}otool64; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006288else
6289 if test -n "$OTOOL64"; then
6290 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006297 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Jon Dugan92864152010-09-20 21:50:12 +00006300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006301 break 2
6302 fi
6303done
Jon Dugan92864152010-09-20 21:50:12 +00006304 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006305IFS=$as_save_IFS
6306
6307fi
6308fi
6309OTOOL64=$ac_cv_prog_OTOOL64
6310if test -n "$OTOOL64"; then
Jon Dugan92864152010-09-20 21:50:12 +00006311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6312$as_echo "$OTOOL64" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006313else
Jon Dugan92864152010-09-20 21:50:12 +00006314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006316fi
6317
6318
6319fi
6320if test -z "$ac_cv_prog_OTOOL64"; then
6321 ac_ct_OTOOL64=$OTOOL64
6322 # Extract the first word of "otool64", so it can be a program name with args.
6323set dummy otool64; ac_word=$2
Jon Dugan92864152010-09-20 21:50:12 +00006324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006328else
6329 if test -n "$ac_ct_OTOOL64"; then
6330 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +00006337 for ac_exec_ext in '' $ac_executable_extensions; do
Jon Dugane34c20c2010-07-08 23:26:52 +00006338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_OTOOL64="otool64"
Jon Dugan92864152010-09-20 21:50:12 +00006340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006341 break 2
6342 fi
6343done
Jon Dugan92864152010-09-20 21:50:12 +00006344 done
Jon Dugane34c20c2010-07-08 23:26:52 +00006345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6350if test -n "$ac_ct_OTOOL64"; then
Jon Dugan92864152010-09-20 21:50:12 +00006351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6352$as_echo "$ac_ct_OTOOL64" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006353else
Jon Dugan92864152010-09-20 21:50:12 +00006354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006356fi
6357
6358 if test "x$ac_ct_OTOOL64" = x; then
6359 OTOOL64=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
Jon Dugan92864152010-09-20 21:50:12 +00006363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00006365ac_tool_warned=yes ;;
6366esac
6367 OTOOL64=$ac_ct_OTOOL64
6368 fi
6369else
6370 OTOOL64="$ac_cv_prog_OTOOL64"
6371fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
Jon Dugan92864152010-09-20 21:50:12 +00006399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6400$as_echo_n "checking for -single_module linker flag... " >&6; }
6401if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006403else
6404 lt_cv_apple_cc_single_mod=no
6405 if test -z "${LT_MULTI_MODULE}"; then
6406 # By default we will add the -single_module flag. You can override
6407 # by either setting the environment variable LT_MULTI_MODULE
6408 # non-empty at configure time, or by adding -multi_module to the
6409 # link flags.
6410 rm -rf libconftest.dylib*
6411 echo "int foo(void){return 1;}" > conftest.c
6412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6413-dynamiclib -Wl,-single_module conftest.c" >&5
6414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6416 _lt_result=$?
6417 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6418 lt_cv_apple_cc_single_mod=yes
6419 else
6420 cat conftest.err >&5
6421 fi
6422 rm -rf libconftest.dylib*
6423 rm -f conftest.*
6424 fi
6425fi
Jon Dugan92864152010-09-20 21:50:12 +00006426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6427$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6429$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6430if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006432else
6433 lt_cv_ld_exported_symbols_list=no
6434 save_LDFLAGS=$LDFLAGS
6435 echo "_main" > conftest.sym
6436 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Jon Dugan92864152010-09-20 21:50:12 +00006437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006438/* end confdefs.h. */
6439
6440int
6441main ()
6442{
6443
6444 ;
6445 return 0;
6446}
6447_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006448if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006449 lt_cv_ld_exported_symbols_list=yes
6450else
Jon Dugan92864152010-09-20 21:50:12 +00006451 lt_cv_ld_exported_symbols_list=no
Jon Dugane34c20c2010-07-08 23:26:52 +00006452fi
Jon Dugan92864152010-09-20 21:50:12 +00006453rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006455 LDFLAGS="$save_LDFLAGS"
6456
6457fi
Jon Dugan92864152010-09-20 21:50:12 +00006458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6459$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6461$as_echo_n "checking for -force_load linker flag... " >&6; }
6462if test "${lt_cv_ld_force_load+set}" = set; then :
6463 $as_echo_n "(cached) " >&6
6464else
6465 lt_cv_ld_force_load=no
6466 cat > conftest.c << _LT_EOF
6467int forced_loaded() { return 2;}
6468_LT_EOF
6469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6471 echo "$AR cru libconftest.a conftest.o" >&5
6472 $AR cru libconftest.a conftest.o 2>&5
6473 echo "$RANLIB libconftest.a" >&5
6474 $RANLIB libconftest.a 2>&5
6475 cat > conftest.c << _LT_EOF
6476int main() { return 0;}
6477_LT_EOF
6478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6480 _lt_result=$?
6481 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6482 lt_cv_ld_force_load=yes
6483 else
6484 cat conftest.err >&5
6485 fi
6486 rm -f conftest.err libconftest.a conftest conftest.c
6487 rm -rf conftest.dSYM
6488
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6491$as_echo "$lt_cv_ld_force_load" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006492 case $host_os in
6493 rhapsody* | darwin1.[012])
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6495 darwin1.*)
6496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6497 darwin*) # darwin 5.x on
6498 # if running on 10.5 or later, the deployment target defaults
6499 # to the OS version, if on x86, and 10.4, the deployment
6500 # target defaults to 10.4. Don't you love it?
6501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6502 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6504 10.[012]*)
6505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6506 10.*)
6507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6508 esac
6509 ;;
6510 esac
6511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6512 _lt_dar_single_mod='$single_module'
6513 fi
6514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6516 else
6517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 fi
Jon Dugan92864152010-09-20 21:50:12 +00006519 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00006520 _lt_dsymutil='~$DSYMUTIL $lib || :'
6521 else
6522 _lt_dsymutil=
6523 fi
6524 ;;
6525 esac
6526
6527ac_ext=c
6528ac_cpp='$CPP $CPPFLAGS'
6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jon Dugan92864152010-09-20 21:50:12 +00006532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6533$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006534# On Suns, sometimes $CPP names a directory.
6535if test -n "$CPP" && test -d "$CPP"; then
6536 CPP=
6537fi
6538if test -z "$CPP"; then
Jon Dugan92864152010-09-20 21:50:12 +00006539 if test "${ac_cv_prog_CPP+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006541else
6542 # Double quotes because CPP needs to be expanded
6543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6544 do
6545 ac_preproc_ok=false
6546for ac_c_preproc_warn_flag in '' yes
6547do
6548 # Use a header file that comes with gcc, so configuring glibc
6549 # with a fresh cross-compiler works.
6550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6551 # <limits.h> exists even on freestanding compilers.
6552 # On the NeXT, cc -E runs the code through the compiler's parser,
6553 # not just through cpp. "Syntax error" is here to catch this case.
Jon Dugan92864152010-09-20 21:50:12 +00006554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006555/* end confdefs.h. */
6556#ifdef __STDC__
6557# include <limits.h>
6558#else
6559# include <assert.h>
6560#endif
6561 Syntax error
6562_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006563if ac_fn_c_try_cpp "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00006564
Jon Dugan92864152010-09-20 21:50:12 +00006565else
Jon Dugane34c20c2010-07-08 23:26:52 +00006566 # Broken: fails on valid input.
6567continue
6568fi
6569rm -f conftest.err conftest.$ac_ext
6570
6571 # OK, works on sane cases. Now check whether nonexistent headers
6572 # can be detected and how.
Jon Dugan92864152010-09-20 21:50:12 +00006573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006574/* end confdefs.h. */
6575#include <ac_nonexistent.h>
6576_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006577if ac_fn_c_try_cpp "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006578 # Broken: success on invalid input.
6579continue
6580else
6581 # Passes both tests.
6582ac_preproc_ok=:
6583break
6584fi
6585rm -f conftest.err conftest.$ac_ext
6586
6587done
6588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6589rm -f conftest.err conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00006590if $ac_preproc_ok; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006591 break
6592fi
6593
6594 done
6595 ac_cv_prog_CPP=$CPP
6596
6597fi
6598 CPP=$ac_cv_prog_CPP
6599else
6600 ac_cv_prog_CPP=$CPP
6601fi
Jon Dugan92864152010-09-20 21:50:12 +00006602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6603$as_echo "$CPP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006604ac_preproc_ok=false
6605for ac_c_preproc_warn_flag in '' yes
6606do
6607 # Use a header file that comes with gcc, so configuring glibc
6608 # with a fresh cross-compiler works.
6609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610 # <limits.h> exists even on freestanding compilers.
6611 # On the NeXT, cc -E runs the code through the compiler's parser,
6612 # not just through cpp. "Syntax error" is here to catch this case.
Jon Dugan92864152010-09-20 21:50:12 +00006613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006614/* end confdefs.h. */
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
6620 Syntax error
6621_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006622if ac_fn_c_try_cpp "$LINENO"; then :
sethdelliott01ca9722010-07-19 20:38:40 +00006623
Jon Dugan92864152010-09-20 21:50:12 +00006624else
Jon Dugane34c20c2010-07-08 23:26:52 +00006625 # Broken: fails on valid input.
6626continue
6627fi
6628rm -f conftest.err conftest.$ac_ext
6629
6630 # OK, works on sane cases. Now check whether nonexistent headers
6631 # can be detected and how.
Jon Dugan92864152010-09-20 21:50:12 +00006632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006633/* end confdefs.h. */
6634#include <ac_nonexistent.h>
6635_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006636if ac_fn_c_try_cpp "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006637 # Broken: success on invalid input.
6638continue
6639else
6640 # Passes both tests.
6641ac_preproc_ok=:
6642break
6643fi
6644rm -f conftest.err conftest.$ac_ext
6645
6646done
6647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6648rm -f conftest.err conftest.$ac_ext
Jon Dugan92864152010-09-20 21:50:12 +00006649if $ac_preproc_ok; then :
6650
Jon Dugane34c20c2010-07-08 23:26:52 +00006651else
Jon Dugan92864152010-09-20 21:50:12 +00006652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6654as_fn_error "C preprocessor \"$CPP\" fails sanity check
6655See \`config.log' for more details." "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006656fi
6657
6658ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664
Jon Dugan92864152010-09-20 21:50:12 +00006665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6666$as_echo_n "checking for ANSI C header files... " >&6; }
6667if test "${ac_cv_header_stdc+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006669else
Jon Dugan92864152010-09-20 21:50:12 +00006670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006671/* end confdefs.h. */
6672#include <stdlib.h>
6673#include <stdarg.h>
6674#include <string.h>
6675#include <float.h>
6676
6677int
6678main ()
6679{
6680
6681 ;
6682 return 0;
6683}
6684_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006685if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006686 ac_cv_header_stdc=yes
6687else
Jon Dugan92864152010-09-20 21:50:12 +00006688 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00006689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691
6692if test $ac_cv_header_stdc = yes; then
6693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +00006694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006695/* end confdefs.h. */
6696#include <string.h>
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +00006700 $EGREP "memchr" >/dev/null 2>&1; then :
6701
Jon Dugane34c20c2010-07-08 23:26:52 +00006702else
6703 ac_cv_header_stdc=no
6704fi
Jon Dugan92864152010-09-20 21:50:12 +00006705rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00006706
6707fi
6708
6709if test $ac_cv_header_stdc = yes; then
6710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +00006711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006712/* end confdefs.h. */
6713#include <stdlib.h>
6714
6715_ACEOF
6716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +00006717 $EGREP "free" >/dev/null 2>&1; then :
6718
Jon Dugane34c20c2010-07-08 23:26:52 +00006719else
6720 ac_cv_header_stdc=no
6721fi
Jon Dugan92864152010-09-20 21:50:12 +00006722rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00006723
6724fi
6725
6726if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jon Dugan92864152010-09-20 21:50:12 +00006728 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006729 :
6730else
Jon Dugan92864152010-09-20 21:50:12 +00006731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006732/* end confdefs.h. */
6733#include <ctype.h>
6734#include <stdlib.h>
6735#if ((' ' & 0x0FF) == 0x020)
6736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738#else
6739# define ISLOWER(c) \
6740 (('a' <= (c) && (c) <= 'i') \
6741 || ('j' <= (c) && (c) <= 'r') \
6742 || ('s' <= (c) && (c) <= 'z'))
6743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744#endif
6745
6746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6747int
6748main ()
6749{
6750 int i;
6751 for (i = 0; i < 256; i++)
6752 if (XOR (islower (i), ISLOWER (i))
6753 || toupper (i) != TOUPPER (i))
6754 return 2;
6755 return 0;
6756}
6757_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006758if ac_fn_c_try_run "$LINENO"; then :
6759
Jon Dugane34c20c2010-07-08 23:26:52 +00006760else
Jon Dugan92864152010-09-20 21:50:12 +00006761 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +00006762fi
Jon Dugan92864152010-09-20 21:50:12 +00006763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6764 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00006765fi
6766
6767fi
6768fi
Jon Dugan92864152010-09-20 21:50:12 +00006769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6770$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006771if test $ac_cv_header_stdc = yes; then
6772
Jon Dugan92864152010-09-20 21:50:12 +00006773$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +00006774
6775fi
6776
6777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6779 inttypes.h stdint.h unistd.h
Jon Dugan92864152010-09-20 21:50:12 +00006780do :
6781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6783"
6784eval as_val=\$$as_ac_Header
6785 if test "x$as_val" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006786 cat >>confdefs.h <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jon Dugane34c20c2010-07-08 23:26:52 +00006788_ACEOF
6789
6790fi
6791
6792done
6793
6794
6795for ac_header in dlfcn.h
Jon Dugan92864152010-09-20 21:50:12 +00006796do :
6797 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6798"
6799if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006800 cat >>confdefs.h <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00006801#define HAVE_DLFCN_H 1
Jon Dugane34c20c2010-07-08 23:26:52 +00006802_ACEOF
6803
6804fi
6805
6806done
6807
6808
6809
Jon Dugan92864152010-09-20 21:50:12 +00006810
6811
Jon Dugane34c20c2010-07-08 23:26:52 +00006812# Set options
6813
6814
6815
6816 enable_dlopen=no
6817
6818
6819 enable_win32_dll=no
6820
6821
6822 # Check whether --enable-shared was given.
Jon Dugan92864152010-09-20 21:50:12 +00006823if test "${enable_shared+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006824 enableval=$enable_shared; p=${PACKAGE-default}
6825 case $enableval in
6826 yes) enable_shared=yes ;;
6827 no) enable_shared=no ;;
6828 *)
6829 enable_shared=no
6830 # Look at the argument we got. We use all the common list separators.
6831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6832 for pkg in $enableval; do
6833 IFS="$lt_save_ifs"
6834 if test "X$pkg" = "X$p"; then
6835 enable_shared=yes
6836 fi
6837 done
6838 IFS="$lt_save_ifs"
6839 ;;
6840 esac
6841else
6842 enable_shared=yes
6843fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 # Check whether --enable-static was given.
Jon Dugan92864152010-09-20 21:50:12 +00006854if test "${enable_static+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006855 enableval=$enable_static; p=${PACKAGE-default}
6856 case $enableval in
6857 yes) enable_static=yes ;;
6858 no) enable_static=no ;;
6859 *)
6860 enable_static=no
6861 # Look at the argument we got. We use all the common list separators.
6862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6863 for pkg in $enableval; do
6864 IFS="$lt_save_ifs"
6865 if test "X$pkg" = "X$p"; then
6866 enable_static=yes
6867 fi
6868 done
6869 IFS="$lt_save_ifs"
6870 ;;
6871 esac
6872else
6873 enable_static=yes
6874fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885# Check whether --with-pic was given.
Jon Dugan92864152010-09-20 21:50:12 +00006886if test "${with_pic+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006887 withval=$with_pic; pic_mode="$withval"
6888else
6889 pic_mode=default
6890fi
6891
6892
6893test -z "$pic_mode" && pic_mode=default
6894
6895
6896
6897
6898
6899
6900
6901 # Check whether --enable-fast-install was given.
Jon Dugan92864152010-09-20 21:50:12 +00006902if test "${enable_fast_install+set}" = set; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00006903 enableval=$enable_fast_install; p=${PACKAGE-default}
6904 case $enableval in
6905 yes) enable_fast_install=yes ;;
6906 no) enable_fast_install=no ;;
6907 *)
6908 enable_fast_install=no
6909 # Look at the argument we got. We use all the common list separators.
6910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6911 for pkg in $enableval; do
6912 IFS="$lt_save_ifs"
6913 if test "X$pkg" = "X$p"; then
6914 enable_fast_install=yes
6915 fi
6916 done
6917 IFS="$lt_save_ifs"
6918 ;;
6919 esac
6920else
6921 enable_fast_install=yes
6922fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934# This can be used to rebuild libtool when needed
6935LIBTOOL_DEPS="$ltmain"
6936
6937# Always use our own libtool.
6938LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
Jon Dugan92864152010-09-20 21:50:12 +00006964
Jon Dugane34c20c2010-07-08 23:26:52 +00006965test -z "$LN_S" && LN_S="ln -s"
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980if test -n "${ZSH_VERSION+set}" ; then
6981 setopt NO_GLOB_SUBST
6982fi
6983
Jon Dugan92864152010-09-20 21:50:12 +00006984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6985$as_echo_n "checking for objdir... " >&6; }
6986if test "${lt_cv_objdir+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00006988else
6989 rm -f .libs 2>/dev/null
6990mkdir .libs 2>/dev/null
6991if test -d .libs; then
6992 lt_cv_objdir=.libs
6993else
6994 # MS-DOS does not allow filenames that begin with a dot.
6995 lt_cv_objdir=_libs
6996fi
6997rmdir .libs 2>/dev/null
6998fi
Jon Dugan92864152010-09-20 21:50:12 +00006999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7000$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007001objdir=$lt_cv_objdir
7002
7003
7004
7005
7006
7007cat >>confdefs.h <<_ACEOF
7008#define LT_OBJDIR "$lt_cv_objdir/"
7009_ACEOF
7010
7011
7012
7013
7014case $host_os in
7015aix3*)
7016 # AIX sometimes has problems with the GCC collect2 program. For some
7017 # reason, if we set the COLLECT_NAMES environment variable, the problems
7018 # vanish in a puff of smoke.
7019 if test "X${COLLECT_NAMES+set}" != Xset; then
7020 COLLECT_NAMES=
7021 export COLLECT_NAMES
7022 fi
7023 ;;
7024esac
7025
7026# Global variables:
7027ofile=libtool
7028can_build_shared=yes
7029
7030# All known linkers require a `.a' archive for static linking (except MSVC,
7031# which needs '.lib').
7032libext=a
7033
7034with_gnu_ld="$lt_cv_prog_gnu_ld"
7035
7036old_CC="$CC"
7037old_CFLAGS="$CFLAGS"
7038
7039# Set sane defaults for various variables
7040test -z "$CC" && CC=cc
7041test -z "$LTCC" && LTCC=$CC
7042test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7043test -z "$LD" && LD=ld
7044test -z "$ac_objext" && ac_objext=o
7045
7046for cc_temp in $compiler""; do
7047 case $cc_temp in
7048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7050 \-*) ;;
7051 *) break;;
7052 esac
7053done
Jon Dugan92864152010-09-20 21:50:12 +00007054cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007055
7056
7057# Only perform the check for file, if the check method requires it
7058test -z "$MAGIC_CMD" && MAGIC_CMD=file
7059case $deplibs_check_method in
7060file_magic*)
7061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Jon Dugan92864152010-09-20 21:50:12 +00007062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7063$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7064if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007066else
7067 case $MAGIC_CMD in
7068[\\/*] | ?:[\\/]*)
7069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7070 ;;
7071*)
7072 lt_save_MAGIC_CMD="$MAGIC_CMD"
7073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7075 for ac_dir in $ac_dummy; do
7076 IFS="$lt_save_ifs"
7077 test -z "$ac_dir" && ac_dir=.
7078 if test -f $ac_dir/${ac_tool_prefix}file; then
7079 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7080 if test -n "$file_magic_test_file"; then
7081 case $deplibs_check_method in
7082 "file_magic "*)
7083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7086 $EGREP "$file_magic_regex" > /dev/null; then
7087 :
7088 else
7089 cat <<_LT_EOF 1>&2
7090
7091*** Warning: the command libtool uses to detect shared libraries,
7092*** $file_magic_cmd, produces output that libtool cannot recognize.
7093*** The result is that libtool may fail to recognize shared libraries
7094*** as such. This will affect the creation of libtool libraries that
7095*** depend on shared libraries, but programs linked with such libtool
7096*** libraries will work regardless of this problem. Nevertheless, you
7097*** may want to report the problem to your system manager and/or to
7098*** bug-libtool@gnu.org
7099
7100_LT_EOF
7101 fi ;;
7102 esac
7103 fi
7104 break
7105 fi
7106 done
7107 IFS="$lt_save_ifs"
7108 MAGIC_CMD="$lt_save_MAGIC_CMD"
7109 ;;
7110esac
7111fi
7112
7113MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114if test -n "$MAGIC_CMD"; then
Jon Dugan92864152010-09-20 21:50:12 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7116$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007117else
Jon Dugan92864152010-09-20 21:50:12 +00007118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007120fi
7121
7122
7123
7124
7125
7126if test -z "$lt_cv_path_MAGIC_CMD"; then
7127 if test -n "$ac_tool_prefix"; then
Jon Dugan92864152010-09-20 21:50:12 +00007128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7129$as_echo_n "checking for file... " >&6; }
7130if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007132else
7133 case $MAGIC_CMD in
7134[\\/*] | ?:[\\/]*)
7135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136 ;;
7137*)
7138 lt_save_MAGIC_CMD="$MAGIC_CMD"
7139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir in $ac_dummy; do
7142 IFS="$lt_save_ifs"
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/file; then
7145 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7148 "file_magic "*)
7149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152 $EGREP "$file_magic_regex" > /dev/null; then
7153 :
7154 else
7155 cat <<_LT_EOF 1>&2
7156
7157*** Warning: the command libtool uses to detect shared libraries,
7158*** $file_magic_cmd, produces output that libtool cannot recognize.
7159*** The result is that libtool may fail to recognize shared libraries
7160*** as such. This will affect the creation of libtool libraries that
7161*** depend on shared libraries, but programs linked with such libtool
7162*** libraries will work regardless of this problem. Nevertheless, you
7163*** may want to report the problem to your system manager and/or to
7164*** bug-libtool@gnu.org
7165
7166_LT_EOF
7167 fi ;;
7168 esac
7169 fi
7170 break
7171 fi
7172 done
7173 IFS="$lt_save_ifs"
7174 MAGIC_CMD="$lt_save_MAGIC_CMD"
7175 ;;
7176esac
7177fi
7178
7179MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180if test -n "$MAGIC_CMD"; then
Jon Dugan92864152010-09-20 21:50:12 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7182$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007183else
Jon Dugan92864152010-09-20 21:50:12 +00007184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007186fi
7187
7188
7189 else
7190 MAGIC_CMD=:
7191 fi
7192fi
7193
7194 fi
7195 ;;
7196esac
7197
7198# Use C for the default configuration in the libtool script
7199
7200lt_save_CC="$CC"
7201ac_ext=c
7202ac_cpp='$CPP $CPPFLAGS'
7203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
7207
7208# Source file extension for C test sources.
7209ac_ext=c
7210
7211# Object file extension for compiled C test sources.
7212objext=o
7213objext=$objext
7214
7215# Code to be used in simple compile tests
7216lt_simple_compile_test_code="int some_variable = 0;"
7217
7218# Code to be used in simple link tests
7219lt_simple_link_test_code='int main(){return(0);}'
7220
7221
7222
7223
7224
7225
7226
7227# If no C compiler was specified, use CC.
7228LTCC=${LTCC-"$CC"}
7229
7230# If no C compiler flags were specified, use CFLAGS.
7231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7232
7233# Allow CC to be a program name with arguments.
7234compiler=$CC
7235
7236# Save the default compiler, since it gets overwritten when the other
7237# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7238compiler_DEFAULT=$CC
7239
7240# save warnings/boilerplate of simple test code
7241ac_outfile=conftest.$ac_objext
7242echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7243eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7244_lt_compiler_boilerplate=`cat conftest.err`
Jon Dugan92864152010-09-20 21:50:12 +00007245$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007246
7247ac_outfile=conftest.$ac_objext
7248echo "$lt_simple_link_test_code" >conftest.$ac_ext
7249eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7250_lt_linker_boilerplate=`cat conftest.err`
7251$RM -r conftest*
7252
7253
7254if test -n "$compiler"; then
7255
7256lt_prog_compiler_no_builtin_flag=
7257
7258if test "$GCC" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00007259 case $cc_basename in
7260 nvcc*)
7261 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7262 *)
7263 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7264 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007265
Jon Dugan92864152010-09-20 21:50:12 +00007266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7267$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7268if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007270else
7271 lt_cv_prog_compiler_rtti_exceptions=no
7272 ac_outfile=conftest.$ac_objext
7273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7274 lt_compiler_flag="-fno-rtti -fno-exceptions"
7275 # Insert the option either (1) after the last *FLAGS variable, or
7276 # (2) before a word containing "conftest.", or (3) at the end.
7277 # Note that $ac_compile itself does not contain backslashes and begins
7278 # with a dollar sign (not a hyphen), so the echo should work correctly.
7279 # The option is referenced via a variable to avoid confusing sed.
7280 lt_compile=`echo "$ac_compile" | $SED \
7281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7283 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00007284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007285 (eval "$lt_compile" 2>conftest.err)
7286 ac_status=$?
7287 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00007288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007289 if (exit $ac_status) && test -s "$ac_outfile"; then
7290 # The compiler can only warn and ignore the option if not recognized
7291 # So say no if there are warnings other than the usual output.
Jon Dugan92864152010-09-20 21:50:12 +00007292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7295 lt_cv_prog_compiler_rtti_exceptions=yes
7296 fi
7297 fi
Jon Dugan92864152010-09-20 21:50:12 +00007298 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007299
7300fi
Jon Dugan92864152010-09-20 21:50:12 +00007301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7302$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007303
7304if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7306else
7307 :
7308fi
7309
7310fi
7311
7312
7313
7314
7315
7316
7317 lt_prog_compiler_wl=
7318lt_prog_compiler_pic=
7319lt_prog_compiler_static=
7320
Jon Dugan92864152010-09-20 21:50:12 +00007321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7322$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007323
7324 if test "$GCC" = yes; then
7325 lt_prog_compiler_wl='-Wl,'
7326 lt_prog_compiler_static='-static'
7327
7328 case $host_os in
7329 aix*)
7330 # All AIX code is PIC.
7331 if test "$host_cpu" = ia64; then
7332 # AIX 5 now supports IA64 processor
7333 lt_prog_compiler_static='-Bstatic'
7334 fi
7335 ;;
7336
7337 amigaos*)
7338 case $host_cpu in
7339 powerpc)
7340 # see comment about AmigaOS4 .so support
7341 lt_prog_compiler_pic='-fPIC'
7342 ;;
7343 m68k)
7344 # FIXME: we need at least 68020 code to build shared libraries, but
7345 # adding the `-m68020' flag to GCC prevents building anything better,
7346 # like `-m68040'.
7347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7348 ;;
7349 esac
7350 ;;
7351
7352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7353 # PIC is the default for these OSes.
7354 ;;
7355
Jon Dugan92864152010-09-20 21:50:12 +00007356 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007357 # This hack is so that the source file can tell whether it is being
7358 # built for inclusion in a dll (and should export symbols for example).
7359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7360 # (--disable-auto-import) libraries
7361 lt_prog_compiler_pic='-DDLL_EXPORT'
7362 ;;
7363
7364 darwin* | rhapsody*)
7365 # PIC is the default on this platform
7366 # Common symbols not allowed in MH_DYLIB files
7367 lt_prog_compiler_pic='-fno-common'
7368 ;;
7369
Jon Dugan92864152010-09-20 21:50:12 +00007370 haiku*)
7371 # PIC is the default for Haiku.
7372 # The "-static" flag exists, but is broken.
7373 lt_prog_compiler_static=
7374 ;;
7375
Jon Dugane34c20c2010-07-08 23:26:52 +00007376 hpux*)
Jon Dugan92864152010-09-20 21:50:12 +00007377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7379 # sets the default TLS model and affects inlining.
Jon Dugane34c20c2010-07-08 23:26:52 +00007380 case $host_cpu in
Jon Dugan92864152010-09-20 21:50:12 +00007381 hppa*64*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007382 # +Z the default
7383 ;;
7384 *)
7385 lt_prog_compiler_pic='-fPIC'
7386 ;;
7387 esac
7388 ;;
7389
7390 interix[3-9]*)
7391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7392 # Instead, we relocate shared libraries at runtime.
7393 ;;
7394
7395 msdosdjgpp*)
7396 # Just because we use GCC doesn't mean we suddenly get shared libraries
7397 # on systems that don't support them.
7398 lt_prog_compiler_can_build_shared=no
7399 enable_shared=no
7400 ;;
7401
7402 *nto* | *qnx*)
7403 # QNX uses GNU C++, but need to define -shared option too, otherwise
7404 # it will coredump.
7405 lt_prog_compiler_pic='-fPIC -shared'
7406 ;;
7407
7408 sysv4*MP*)
7409 if test -d /usr/nec; then
7410 lt_prog_compiler_pic=-Kconform_pic
7411 fi
7412 ;;
7413
7414 *)
7415 lt_prog_compiler_pic='-fPIC'
7416 ;;
7417 esac
Jon Dugan92864152010-09-20 21:50:12 +00007418
7419 case $cc_basename in
7420 nvcc*) # Cuda Compiler Driver 2.2
7421 lt_prog_compiler_wl='-Xlinker '
7422 lt_prog_compiler_pic='-Xcompiler -fPIC'
7423 ;;
7424 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007425 else
7426 # PORTME Check for flag to pass linker flags through the system compiler.
7427 case $host_os in
7428 aix*)
7429 lt_prog_compiler_wl='-Wl,'
7430 if test "$host_cpu" = ia64; then
7431 # AIX 5 now supports IA64 processor
7432 lt_prog_compiler_static='-Bstatic'
7433 else
7434 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7435 fi
7436 ;;
7437
Jon Dugan92864152010-09-20 21:50:12 +00007438 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007439 # This hack is so that the source file can tell whether it is being
7440 # built for inclusion in a dll (and should export symbols for example).
7441 lt_prog_compiler_pic='-DDLL_EXPORT'
7442 ;;
7443
7444 hpux9* | hpux10* | hpux11*)
7445 lt_prog_compiler_wl='-Wl,'
7446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7447 # not for PA HP-UX.
7448 case $host_cpu in
7449 hppa*64*|ia64*)
7450 # +Z the default
7451 ;;
7452 *)
7453 lt_prog_compiler_pic='+Z'
7454 ;;
7455 esac
7456 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7457 lt_prog_compiler_static='${wl}-a ${wl}archive'
7458 ;;
7459
7460 irix5* | irix6* | nonstopux*)
7461 lt_prog_compiler_wl='-Wl,'
7462 # PIC (with -KPIC) is the default.
7463 lt_prog_compiler_static='-non_shared'
7464 ;;
7465
Jon Dugan92864152010-09-20 21:50:12 +00007466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00007467 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00007468 # old Intel for x86_64 which still supported -KPIC.
7469 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007470 lt_prog_compiler_wl='-Wl,'
7471 lt_prog_compiler_pic='-KPIC'
7472 lt_prog_compiler_static='-static'
7473 ;;
Jon Dugan92864152010-09-20 21:50:12 +00007474 # icc used to be incompatible with GCC.
7475 # ICC 10 doesn't accept -KPIC any more.
7476 icc* | ifort*)
7477 lt_prog_compiler_wl='-Wl,'
7478 lt_prog_compiler_pic='-fPIC'
7479 lt_prog_compiler_static='-static'
7480 ;;
7481 # Lahey Fortran 8.1.
7482 lf95*)
7483 lt_prog_compiler_wl='-Wl,'
7484 lt_prog_compiler_pic='--shared'
7485 lt_prog_compiler_static='--static'
7486 ;;
7487 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007488 # Portland Group compilers (*not* the Pentium gcc compiler,
7489 # which looks to be a dead project)
7490 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-fpic'
7492 lt_prog_compiler_static='-Bstatic'
7493 ;;
7494 ccc*)
7495 lt_prog_compiler_wl='-Wl,'
7496 # All Alpha code is PIC.
7497 lt_prog_compiler_static='-non_shared'
7498 ;;
Jon Dugan92864152010-09-20 21:50:12 +00007499 xl* | bgxl* | bgf* | mpixl*)
7500 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jon Dugane34c20c2010-07-08 23:26:52 +00007501 lt_prog_compiler_wl='-Wl,'
7502 lt_prog_compiler_pic='-qpic'
7503 lt_prog_compiler_static='-qstaticlink'
7504 ;;
7505 *)
7506 case `$CC -V 2>&1 | sed 5q` in
Jon Dugan92864152010-09-20 21:50:12 +00007507 *Sun\ F* | *Sun*Fortran*)
7508 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7509 lt_prog_compiler_pic='-KPIC'
7510 lt_prog_compiler_static='-Bstatic'
7511 lt_prog_compiler_wl=''
7512 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007513 *Sun\ C*)
7514 # Sun C 5.9
7515 lt_prog_compiler_pic='-KPIC'
7516 lt_prog_compiler_static='-Bstatic'
7517 lt_prog_compiler_wl='-Wl,'
7518 ;;
7519 esac
7520 ;;
7521 esac
7522 ;;
7523
7524 newsos6)
7525 lt_prog_compiler_pic='-KPIC'
7526 lt_prog_compiler_static='-Bstatic'
7527 ;;
7528
7529 *nto* | *qnx*)
7530 # QNX uses GNU C++, but need to define -shared option too, otherwise
7531 # it will coredump.
7532 lt_prog_compiler_pic='-fPIC -shared'
7533 ;;
7534
7535 osf3* | osf4* | osf5*)
7536 lt_prog_compiler_wl='-Wl,'
7537 # All OSF/1 code is PIC.
7538 lt_prog_compiler_static='-non_shared'
7539 ;;
7540
7541 rdos*)
7542 lt_prog_compiler_static='-non_shared'
7543 ;;
7544
7545 solaris*)
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7548 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00007549 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007550 lt_prog_compiler_wl='-Qoption ld ';;
7551 *)
7552 lt_prog_compiler_wl='-Wl,';;
7553 esac
7554 ;;
7555
7556 sunos4*)
7557 lt_prog_compiler_wl='-Qoption ld '
7558 lt_prog_compiler_pic='-PIC'
7559 lt_prog_compiler_static='-Bstatic'
7560 ;;
7561
7562 sysv4 | sysv4.2uw2* | sysv4.3*)
7563 lt_prog_compiler_wl='-Wl,'
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-Bstatic'
7566 ;;
7567
7568 sysv4*MP*)
7569 if test -d /usr/nec ;then
7570 lt_prog_compiler_pic='-Kconform_pic'
7571 lt_prog_compiler_static='-Bstatic'
7572 fi
7573 ;;
7574
7575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7576 lt_prog_compiler_wl='-Wl,'
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7579 ;;
7580
7581 unicos*)
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_can_build_shared=no
7584 ;;
7585
7586 uts4*)
7587 lt_prog_compiler_pic='-pic'
7588 lt_prog_compiler_static='-Bstatic'
7589 ;;
7590
7591 *)
7592 lt_prog_compiler_can_build_shared=no
7593 ;;
7594 esac
7595 fi
7596
7597case $host_os in
7598 # For platforms which do not support PIC, -DPIC is meaningless:
7599 *djgpp*)
7600 lt_prog_compiler_pic=
7601 ;;
7602 *)
7603 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7604 ;;
7605esac
Jon Dugan92864152010-09-20 21:50:12 +00007606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7607$as_echo "$lt_prog_compiler_pic" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007608
7609
7610
7611
7612
7613
7614#
7615# Check to make sure the PIC flag actually works.
7616#
7617if test -n "$lt_prog_compiler_pic"; then
Jon Dugan92864152010-09-20 21:50:12 +00007618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7619$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7620if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007622else
7623 lt_cv_prog_compiler_pic_works=no
7624 ac_outfile=conftest.$ac_objext
7625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7627 # Insert the option either (1) after the last *FLAGS variable, or
7628 # (2) before a word containing "conftest.", or (3) at the end.
7629 # Note that $ac_compile itself does not contain backslashes and begins
7630 # with a dollar sign (not a hyphen), so the echo should work correctly.
7631 # The option is referenced via a variable to avoid confusing sed.
7632 lt_compile=`echo "$ac_compile" | $SED \
7633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7635 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00007636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007637 (eval "$lt_compile" 2>conftest.err)
7638 ac_status=$?
7639 cat conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00007640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007641 if (exit $ac_status) && test -s "$ac_outfile"; then
7642 # The compiler can only warn and ignore the option if not recognized
7643 # So say no if there are warnings other than the usual output.
Jon Dugan92864152010-09-20 21:50:12 +00007644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7647 lt_cv_prog_compiler_pic_works=yes
7648 fi
7649 fi
Jon Dugan92864152010-09-20 21:50:12 +00007650 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007651
7652fi
Jon Dugan92864152010-09-20 21:50:12 +00007653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7654$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007655
7656if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7657 case $lt_prog_compiler_pic in
7658 "" | " "*) ;;
7659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7660 esac
7661else
7662 lt_prog_compiler_pic=
7663 lt_prog_compiler_can_build_shared=no
7664fi
7665
7666fi
7667
7668
7669
7670
7671
7672
7673#
7674# Check to make sure the static flag actually works.
7675#
7676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Jon Dugan92864152010-09-20 21:50:12 +00007677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7678$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7679if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007681else
7682 lt_cv_prog_compiler_static_works=no
7683 save_LDFLAGS="$LDFLAGS"
7684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7687 # The linker can only warn and ignore the option if not recognized
7688 # So say no if there are warnings
7689 if test -s conftest.err; then
7690 # Append any errors to the config.log.
7691 cat conftest.err 1>&5
Jon Dugan92864152010-09-20 21:50:12 +00007692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7694 if diff conftest.exp conftest.er2 >/dev/null; then
7695 lt_cv_prog_compiler_static_works=yes
7696 fi
7697 else
7698 lt_cv_prog_compiler_static_works=yes
7699 fi
7700 fi
7701 $RM -r conftest*
7702 LDFLAGS="$save_LDFLAGS"
7703
7704fi
Jon Dugan92864152010-09-20 21:50:12 +00007705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7706$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007707
7708if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7709 :
7710else
7711 lt_prog_compiler_static=
7712fi
7713
7714
7715
7716
7717
7718
7719
Jon Dugan92864152010-09-20 21:50:12 +00007720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7721$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7722if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007724else
7725 lt_cv_prog_compiler_c_o=no
7726 $RM -r conftest 2>/dev/null
7727 mkdir conftest
7728 cd conftest
7729 mkdir out
7730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7731
7732 lt_compiler_flag="-o out/conftest2.$ac_objext"
7733 # Insert the option either (1) after the last *FLAGS variable, or
7734 # (2) before a word containing "conftest.", or (3) at the end.
7735 # Note that $ac_compile itself does not contain backslashes and begins
7736 # with a dollar sign (not a hyphen), so the echo should work correctly.
7737 lt_compile=`echo "$ac_compile" | $SED \
7738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7740 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00007741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007742 (eval "$lt_compile" 2>out/conftest.err)
7743 ac_status=$?
7744 cat out/conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00007745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7747 then
7748 # The compiler can only warn and ignore the option if not recognized
7749 # So say no if there are warnings
Jon Dugan92864152010-09-20 21:50:12 +00007750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7753 lt_cv_prog_compiler_c_o=yes
7754 fi
7755 fi
7756 chmod u+w . 2>&5
Jon Dugan92864152010-09-20 21:50:12 +00007757 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007758 # SGI C++ compiler will create directory out/ii_files/ for
7759 # template instantiation
7760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7761 $RM out/* && rmdir out
7762 cd ..
7763 $RM -r conftest
Jon Dugan92864152010-09-20 21:50:12 +00007764 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007765
7766fi
Jon Dugan92864152010-09-20 21:50:12 +00007767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7768$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007769
7770
7771
7772
7773
7774
Jon Dugan92864152010-09-20 21:50:12 +00007775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7776$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7777if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007779else
7780 lt_cv_prog_compiler_c_o=no
7781 $RM -r conftest 2>/dev/null
7782 mkdir conftest
7783 cd conftest
7784 mkdir out
7785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7786
7787 lt_compiler_flag="-o out/conftest2.$ac_objext"
7788 # Insert the option either (1) after the last *FLAGS variable, or
7789 # (2) before a word containing "conftest.", or (3) at the end.
7790 # Note that $ac_compile itself does not contain backslashes and begins
7791 # with a dollar sign (not a hyphen), so the echo should work correctly.
7792 lt_compile=`echo "$ac_compile" | $SED \
7793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795 -e 's:$: $lt_compiler_flag:'`
Jon Dugan92864152010-09-20 21:50:12 +00007796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007797 (eval "$lt_compile" 2>out/conftest.err)
7798 ac_status=$?
7799 cat out/conftest.err >&5
Jon Dugan92864152010-09-20 21:50:12 +00007800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7802 then
7803 # The compiler can only warn and ignore the option if not recognized
7804 # So say no if there are warnings
Jon Dugan92864152010-09-20 21:50:12 +00007805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7808 lt_cv_prog_compiler_c_o=yes
7809 fi
7810 fi
7811 chmod u+w . 2>&5
Jon Dugan92864152010-09-20 21:50:12 +00007812 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007813 # SGI C++ compiler will create directory out/ii_files/ for
7814 # template instantiation
7815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7816 $RM out/* && rmdir out
7817 cd ..
7818 $RM -r conftest
Jon Dugan92864152010-09-20 21:50:12 +00007819 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007820
7821fi
Jon Dugan92864152010-09-20 21:50:12 +00007822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7823$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007824
7825
7826
7827
7828hard_links="nottested"
7829if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7830 # do not overwrite the value of need_locks provided by the user
Jon Dugan92864152010-09-20 21:50:12 +00007831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7832$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007833 hard_links=yes
Jon Dugan92864152010-09-20 21:50:12 +00007834 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7836 touch conftest.a
7837 ln conftest.a conftest.b 2>&5 || hard_links=no
7838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Jon Dugan92864152010-09-20 21:50:12 +00007839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7840$as_echo "$hard_links" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007841 if test "$hard_links" = no; then
Jon Dugan92864152010-09-20 21:50:12 +00007842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7843$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 +00007844 need_locks=warn
7845 fi
7846else
7847 need_locks=no
7848fi
7849
7850
7851
7852
7853
7854
Jon Dugan92864152010-09-20 21:50:12 +00007855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7856$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007857
7858 runpath_var=
7859 allow_undefined_flag=
7860 always_export_symbols=no
7861 archive_cmds=
7862 archive_expsym_cmds=
7863 compiler_needs_object=no
7864 enable_shared_with_static_runtimes=no
7865 export_dynamic_flag_spec=
7866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7867 hardcode_automatic=no
7868 hardcode_direct=no
7869 hardcode_direct_absolute=no
7870 hardcode_libdir_flag_spec=
7871 hardcode_libdir_flag_spec_ld=
7872 hardcode_libdir_separator=
7873 hardcode_minus_L=no
7874 hardcode_shlibpath_var=unsupported
7875 inherit_rpath=no
7876 link_all_deplibs=unknown
7877 module_cmds=
7878 module_expsym_cmds=
7879 old_archive_from_new_cmds=
7880 old_archive_from_expsyms_cmds=
7881 thread_safe_flag_spec=
7882 whole_archive_flag_spec=
7883 # include_expsyms should be a list of space-separated symbols to be *always*
7884 # included in the symbol list
7885 include_expsyms=
7886 # exclude_expsyms can be an extended regexp of symbols to exclude
7887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7889 # as well as any symbol that contains `d'.
7890 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7892 # platforms (ab)use it in PIC code, but their linkers get confused if
7893 # the symbol is explicitly referenced. Since portable code cannot
7894 # rely on this symbol name, it's probably fine to never include it in
7895 # preloaded symbol tables.
7896 # Exclude shared library initialization/finalization symbols.
7897 extract_expsyms_cmds=
7898
7899 case $host_os in
Jon Dugan92864152010-09-20 21:50:12 +00007900 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7902 # When not using gcc, we currently assume that we are using
7903 # Microsoft Visual C++.
7904 if test "$GCC" != yes; then
7905 with_gnu_ld=no
7906 fi
7907 ;;
7908 interix*)
7909 # we just hope/assume this is gcc and not c89 (= MSVC++)
7910 with_gnu_ld=yes
7911 ;;
7912 openbsd*)
7913 with_gnu_ld=no
7914 ;;
7915 esac
7916
7917 ld_shlibs=yes
Jon Dugan92864152010-09-20 21:50:12 +00007918
7919 # On some targets, GNU ld is compatible enough with the native linker
7920 # that we're better off using the native interface for both.
7921 lt_use_gnu_ld_interface=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007922 if test "$with_gnu_ld" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00007923 case $host_os in
7924 aix*)
7925 # The AIX port of GNU ld has always aspired to compatibility
7926 # with the native linker. However, as the warning in the GNU ld
7927 # block says, versions before 2.19.5* couldn't really create working
7928 # shared libraries, regardless of the interface used.
7929 case `$LD -v 2>&1` in
7930 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7931 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7932 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7933 *)
7934 lt_use_gnu_ld_interface=yes
7935 ;;
7936 esac
7937 ;;
7938 *)
7939 lt_use_gnu_ld_interface=yes
7940 ;;
7941 esac
7942 fi
7943
7944 if test "$lt_use_gnu_ld_interface" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007945 # If archive_cmds runs LD, not CC, wlarc should be empty
7946 wlarc='${wl}'
7947
7948 # Set some defaults for GNU ld with shared library support. These
7949 # are reset later if shared libraries are not supported. Putting them
7950 # here allows them to be overridden if necessary.
7951 runpath_var=LD_RUN_PATH
7952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953 export_dynamic_flag_spec='${wl}--export-dynamic'
7954 # ancient GNU ld didn't support --whole-archive et. al.
7955 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7956 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7957 else
7958 whole_archive_flag_spec=
7959 fi
7960 supports_anon_versioning=no
7961 case `$LD -v 2>&1` in
Jon Dugan92864152010-09-20 21:50:12 +00007962 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007963 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7964 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7965 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7966 *\ 2.11.*) ;; # other 2.11 versions
7967 *) supports_anon_versioning=yes ;;
7968 esac
7969
7970 # See if GNU ld supports shared libraries.
7971 case $host_os in
7972 aix[3-9]*)
7973 # On AIX/PPC, the GNU linker is very broken
7974 if test "$host_cpu" != ia64; then
7975 ld_shlibs=no
7976 cat <<_LT_EOF 1>&2
7977
Jon Dugan92864152010-09-20 21:50:12 +00007978*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00007979*** to be unable to reliably create shared libraries on AIX.
7980*** Therefore, libtool is disabling shared libraries support. If you
Jon Dugan92864152010-09-20 21:50:12 +00007981*** really care for shared libraries, you may want to install binutils
7982*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7983*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00007984
7985_LT_EOF
7986 fi
7987 ;;
7988
7989 amigaos*)
7990 case $host_cpu in
7991 powerpc)
7992 # see comment about AmigaOS4 .so support
7993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994 archive_expsym_cmds=''
7995 ;;
7996 m68k)
7997 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)'
7998 hardcode_libdir_flag_spec='-L$libdir'
7999 hardcode_minus_L=yes
8000 ;;
8001 esac
8002 ;;
8003
8004 beos*)
8005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8006 allow_undefined_flag=unsupported
8007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008 # support --undefined. This deserves some investigation. FIXME
8009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010 else
8011 ld_shlibs=no
8012 fi
8013 ;;
8014
Jon Dugan92864152010-09-20 21:50:12 +00008015 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008016 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017 # as there is no search path for DLLs.
8018 hardcode_libdir_flag_spec='-L$libdir'
Jon Dugan92864152010-09-20 21:50:12 +00008019 export_dynamic_flag_spec='${wl}--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008020 allow_undefined_flag=unsupported
8021 always_export_symbols=no
8022 enable_shared_with_static_runtimes=yes
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8024
8025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8027 # If the export-symbols file already is a .def file (1st line
8028 # is EXPORTS), use it as is; otherwise, prepend...
8029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8030 cp $export_symbols $output_objdir/$soname.def;
8031 else
8032 echo EXPORTS > $output_objdir/$soname.def;
8033 cat $export_symbols >> $output_objdir/$soname.def;
8034 fi~
8035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8036 else
8037 ld_shlibs=no
8038 fi
8039 ;;
8040
Jon Dugan92864152010-09-20 21:50:12 +00008041 haiku*)
8042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8043 link_all_deplibs=yes
8044 ;;
8045
Jon Dugane34c20c2010-07-08 23:26:52 +00008046 interix[3-9]*)
8047 hardcode_direct=no
8048 hardcode_shlibpath_var=no
8049 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8050 export_dynamic_flag_spec='${wl}-E'
8051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8052 # Instead, shared libraries are loaded at an image base (0x10000000 by
8053 # default) and relocated if they conflict, which is a slow very memory
8054 # consuming and fragmenting process. To avoid this, we pick a random,
8055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8058 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'
8059 ;;
8060
Jon Dugan92864152010-09-20 21:50:12 +00008061 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00008062 tmp_diet=no
8063 if test "$host_os" = linux-dietlibc; then
8064 case $cc_basename in
8065 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8066 esac
8067 fi
8068 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8069 && test "$tmp_diet" = no
8070 then
8071 tmp_addflag=
8072 tmp_sharedflag='-shared'
8073 case $cc_basename,$host_cpu in
8074 pgcc*) # Portland Group C compiler
Jon Dugan92864152010-09-20 21:50:12 +00008075 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 +00008076 tmp_addflag=' $pic_flag'
8077 ;;
Jon Dugan92864152010-09-20 21:50:12 +00008078 pgf77* | pgf90* | pgf95* | pgfortran*)
8079 # Portland Group f77 and f90 compilers
8080 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 +00008081 tmp_addflag=' $pic_flag -Mnomain' ;;
8082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8083 tmp_addflag=' -i_dynamic' ;;
8084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8085 tmp_addflag=' -i_dynamic -nofor_main' ;;
8086 ifc* | ifort*) # Intel Fortran compiler
8087 tmp_addflag=' -nofor_main' ;;
Jon Dugan92864152010-09-20 21:50:12 +00008088 lf95*) # Lahey Fortran 8.1
8089 whole_archive_flag_spec=
8090 tmp_sharedflag='--shared' ;;
8091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jon Dugane34c20c2010-07-08 23:26:52 +00008092 tmp_sharedflag='-qmkshrobj'
8093 tmp_addflag= ;;
Jon Dugan92864152010-09-20 21:50:12 +00008094 nvcc*) # Cuda Compiler Driver 2.2
8095 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'
8096 compiler_needs_object=yes
8097 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008098 esac
8099 case `$CC -V 2>&1 | sed 5q` in
8100 *Sun\ C*) # Sun C 5.9
Jon Dugan92864152010-09-20 21:50:12 +00008101 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 +00008102 compiler_needs_object=yes
8103 tmp_sharedflag='-G' ;;
8104 *Sun\ F*) # Sun Fortran 8.3
8105 tmp_sharedflag='-G' ;;
8106 esac
8107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108
8109 if test "x$supports_anon_versioning" = xyes; then
8110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8112 echo "local: *; };" >> $output_objdir/$libname.ver~
8113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8114 fi
8115
8116 case $cc_basename in
Jon Dugan92864152010-09-20 21:50:12 +00008117 xlf* | bgf* | bgxlf* | mpixlf*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008118 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8119 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8120 hardcode_libdir_flag_spec=
8121 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Jon Dugan92864152010-09-20 21:50:12 +00008122 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008123 if test "x$supports_anon_versioning" = xyes; then
8124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8126 echo "local: *; };" >> $output_objdir/$libname.ver~
Jon Dugan92864152010-09-20 21:50:12 +00008127 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008128 fi
8129 ;;
8130 esac
8131 else
8132 ld_shlibs=no
8133 fi
8134 ;;
8135
8136 netbsd*)
8137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8139 wlarc=
8140 else
8141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8143 fi
8144 ;;
8145
8146 solaris*)
8147 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8148 ld_shlibs=no
8149 cat <<_LT_EOF 1>&2
8150
8151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8152*** create shared libraries on Solaris systems. Therefore, libtool
8153*** is disabling shared libraries support. We urge you to upgrade GNU
8154*** binutils to release 2.9.1 or newer. Another option is to modify
8155*** your PATH or compiler configuration so that the native linker is
8156*** used, and then restart.
8157
8158_LT_EOF
8159 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8162 else
8163 ld_shlibs=no
8164 fi
8165 ;;
8166
8167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8168 case `$LD -v 2>&1` in
8169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8170 ld_shlibs=no
8171 cat <<_LT_EOF 1>&2
8172
8173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8174*** reliably create shared libraries on SCO systems. Therefore, libtool
8175*** is disabling shared libraries support. We urge you to upgrade GNU
8176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8177*** your PATH or compiler configuration so that the native linker is
8178*** used, and then restart.
8179
8180_LT_EOF
8181 ;;
8182 *)
8183 # For security reasons, it is highly recommended that you always
8184 # use absolute paths for naming shared libraries, and exclude the
8185 # DT_RUNPATH tag from executables and libraries. But doing so
8186 # requires that you compile everything twice, which is a pain.
8187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191 else
8192 ld_shlibs=no
8193 fi
8194 ;;
8195 esac
8196 ;;
8197
8198 sunos4*)
8199 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8200 wlarc=
8201 hardcode_direct=yes
8202 hardcode_shlibpath_var=no
8203 ;;
8204
8205 *)
8206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209 else
8210 ld_shlibs=no
8211 fi
8212 ;;
8213 esac
8214
8215 if test "$ld_shlibs" = no; then
8216 runpath_var=
8217 hardcode_libdir_flag_spec=
8218 export_dynamic_flag_spec=
8219 whole_archive_flag_spec=
8220 fi
8221 else
8222 # PORTME fill in a description of your system's linker (not GNU ld)
8223 case $host_os in
8224 aix3*)
8225 allow_undefined_flag=unsupported
8226 always_export_symbols=yes
8227 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'
8228 # Note: this linker hardcodes the directories in LIBPATH if there
8229 # are no directories specified by -L.
8230 hardcode_minus_L=yes
8231 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8232 # Neither direct hardcoding nor static linking is supported with a
8233 # broken collect2.
8234 hardcode_direct=unsupported
8235 fi
8236 ;;
8237
8238 aix[4-9]*)
8239 if test "$host_cpu" = ia64; then
8240 # On IA64, the linker does run time linking by default, so we don't
8241 # have to do anything special.
8242 aix_use_runtimelinking=no
8243 exp_sym_flag='-Bexport'
8244 no_entry_flag=""
8245 else
8246 # If we're using GNU nm, then we don't want the "-C" option.
8247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Jon Dugan92864152010-09-20 21:50:12 +00008248 # Also, AIX nm treats weak defined symbols like other global
8249 # defined symbols, whereas GNU nm marks them as "W".
Jon Dugane34c20c2010-07-08 23:26:52 +00008250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +00008251 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 +00008252 else
8253 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'
8254 fi
8255 aix_use_runtimelinking=no
8256
8257 # Test if we are trying to use run time linking or normal
8258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8259 # need to do runtime linking.
8260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8261 for ld_flag in $LDFLAGS; do
8262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8263 aix_use_runtimelinking=yes
8264 break
8265 fi
8266 done
8267 ;;
8268 esac
8269
8270 exp_sym_flag='-bexport'
8271 no_entry_flag='-bnoentry'
8272 fi
8273
8274 # When large executables or shared objects are built, AIX ld can
8275 # have problems creating the table of contents. If linking a library
8276 # or program results in "error TOC overflow" add -mminimal-toc to
8277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8279
8280 archive_cmds=''
8281 hardcode_direct=yes
8282 hardcode_direct_absolute=yes
8283 hardcode_libdir_separator=':'
8284 link_all_deplibs=yes
8285 file_list_spec='${wl}-f,'
8286
8287 if test "$GCC" = yes; then
8288 case $host_os in aix4.[012]|aix4.[012].*)
8289 # We only want to do this on AIX 4.2 and lower, the check
8290 # below for broken collect2 doesn't work under 4.3+
8291 collect2name=`${CC} -print-prog-name=collect2`
8292 if test -f "$collect2name" &&
8293 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8294 then
8295 # We have reworked collect2
8296 :
8297 else
8298 # We have old collect2
8299 hardcode_direct=unsupported
8300 # It fails to find uninstalled libraries when the uninstalled
8301 # path is not listed in the libpath. Setting hardcode_minus_L
8302 # to unsupported forces relinking
8303 hardcode_minus_L=yes
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_libdir_separator=
8306 fi
8307 ;;
8308 esac
8309 shared_flag='-shared'
8310 if test "$aix_use_runtimelinking" = yes; then
8311 shared_flag="$shared_flag "'${wl}-G'
8312 fi
8313 else
8314 # not using gcc
8315 if test "$host_cpu" = ia64; then
8316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8317 # chokes on -Wl,-G. The following line is correct:
8318 shared_flag='-G'
8319 else
8320 if test "$aix_use_runtimelinking" = yes; then
8321 shared_flag='${wl}-G'
8322 else
8323 shared_flag='${wl}-bM:SRE'
8324 fi
8325 fi
8326 fi
8327
Jon Dugan92864152010-09-20 21:50:12 +00008328 export_dynamic_flag_spec='${wl}-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00008329 # It seems that -bexpall does not export symbols beginning with
8330 # underscore (_), so it is better to generate a list of symbols to export.
8331 always_export_symbols=yes
8332 if test "$aix_use_runtimelinking" = yes; then
8333 # Warning - without using the other runtime loading flags (-brtl),
8334 # -berok will link without error, but may produce a broken library.
8335 allow_undefined_flag='-berok'
8336 # Determine the default libpath from the value encoded in an
8337 # empty executable.
Jon Dugan92864152010-09-20 21:50:12 +00008338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008339/* end confdefs.h. */
8340
8341int
8342main ()
8343{
8344
8345 ;
8346 return 0;
8347}
8348_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00008349if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00008350
8351lt_aix_libpath_sed='
8352 /Import File Strings/,/^$/ {
8353 /^0/ {
8354 s/^0 *\(.*\)$/\1/
8355 p
8356 }
8357 }'
8358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8359# Check for a 64-bit object if we didn't find anything.
8360if test -z "$aix_libpath"; then
8361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8362fi
8363fi
Jon Dugan92864152010-09-20 21:50:12 +00008364rm -f core conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8367
8368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Jon Dugan92864152010-09-20 21:50:12 +00008369 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 +00008370 else
8371 if test "$host_cpu" = ia64; then
8372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8373 allow_undefined_flag="-z nodefs"
8374 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"
8375 else
8376 # Determine the default libpath from the value encoded in an
8377 # empty executable.
Jon Dugan92864152010-09-20 21:50:12 +00008378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008379/* end confdefs.h. */
8380
8381int
8382main ()
8383{
8384
8385 ;
8386 return 0;
8387}
8388_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00008389if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00008390
8391lt_aix_libpath_sed='
8392 /Import File Strings/,/^$/ {
8393 /^0/ {
8394 s/^0 *\(.*\)$/\1/
8395 p
8396 }
8397 }'
8398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399# Check for a 64-bit object if we didn't find anything.
8400if test -z "$aix_libpath"; then
8401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402fi
8403fi
Jon Dugan92864152010-09-20 21:50:12 +00008404rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008406if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8407
8408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8409 # Warning - without using the other run time loading flags,
8410 # -berok will link without error, but may produce a broken library.
8411 no_undefined_flag=' ${wl}-bernotok'
8412 allow_undefined_flag=' ${wl}-berok'
Jon Dugan92864152010-09-20 21:50:12 +00008413 if test "$with_gnu_ld" = yes; then
8414 # We only use this code for GNU lds that support --whole-archive.
8415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8416 else
8417 # Exported symbols can be pulled into shared objects from archives
8418 whole_archive_flag_spec='$convenience'
8419 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008420 archive_cmds_need_lc=yes
8421 # This is similar to how AIX traditionally builds its shared libraries.
8422 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'
8423 fi
8424 fi
8425 ;;
8426
8427 amigaos*)
8428 case $host_cpu in
8429 powerpc)
8430 # see comment about AmigaOS4 .so support
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 archive_expsym_cmds=''
8433 ;;
8434 m68k)
8435 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)'
8436 hardcode_libdir_flag_spec='-L$libdir'
8437 hardcode_minus_L=yes
8438 ;;
8439 esac
8440 ;;
8441
8442 bsdi[45]*)
8443 export_dynamic_flag_spec=-rdynamic
8444 ;;
8445
Jon Dugan92864152010-09-20 21:50:12 +00008446 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008447 # When not using gcc, we currently assume that we are using
8448 # Microsoft Visual C++.
8449 # hardcode_libdir_flag_spec is actually meaningless, as there is
8450 # no search path for DLLs.
8451 hardcode_libdir_flag_spec=' '
8452 allow_undefined_flag=unsupported
8453 # Tell ltmain to make .lib files, not .a files.
8454 libext=lib
8455 # Tell ltmain to make .dll files, not .so files.
8456 shrext_cmds=".dll"
8457 # FIXME: Setting linknames here is a bad hack.
Jon Dugan92864152010-09-20 21:50:12 +00008458 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Jon Dugane34c20c2010-07-08 23:26:52 +00008459 # The linker will automatically build a .lib file if we build a DLL.
8460 old_archive_from_new_cmds='true'
8461 # FIXME: Should let the user specify the lib program.
8462 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8463 fix_srcfile_path='`cygpath -w "$srcfile"`'
8464 enable_shared_with_static_runtimes=yes
8465 ;;
8466
8467 darwin* | rhapsody*)
8468
8469
8470 archive_cmds_need_lc=no
8471 hardcode_direct=no
8472 hardcode_automatic=yes
8473 hardcode_shlibpath_var=unsupported
Jon Dugan92864152010-09-20 21:50:12 +00008474 if test "$lt_cv_ld_force_load" = "yes"; then
8475 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\"`'
8476 else
8477 whole_archive_flag_spec=''
8478 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008479 link_all_deplibs=yes
8480 allow_undefined_flag="$_lt_dar_allow_undefined"
Jon Dugan92864152010-09-20 21:50:12 +00008481 case $cc_basename in
8482 ifort*) _lt_dar_can_shared=yes ;;
8483 *) _lt_dar_can_shared=$GCC ;;
8484 esac
8485 if test "$_lt_dar_can_shared" = "yes"; then
8486 output_verbose_link_cmd=func_echo_all
Jon Dugane34c20c2010-07-08 23:26:52 +00008487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8489 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}"
8490 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}"
8491
8492 else
8493 ld_shlibs=no
8494 fi
8495
8496 ;;
8497
8498 dgux*)
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_shlibpath_var=no
8502 ;;
8503
8504 freebsd1*)
8505 ld_shlibs=no
8506 ;;
8507
8508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8509 # support. Future versions do this automatically, but an explicit c++rt0.o
8510 # does not break anything, and helps significantly (at the cost of a little
8511 # extra space).
8512 freebsd2.2*)
8513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8514 hardcode_libdir_flag_spec='-R$libdir'
8515 hardcode_direct=yes
8516 hardcode_shlibpath_var=no
8517 ;;
8518
8519 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8520 freebsd2*)
8521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_direct=yes
8523 hardcode_minus_L=yes
8524 hardcode_shlibpath_var=no
8525 ;;
8526
8527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8528 freebsd* | dragonfly*)
8529 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8530 hardcode_libdir_flag_spec='-R$libdir'
8531 hardcode_direct=yes
8532 hardcode_shlibpath_var=no
8533 ;;
8534
8535 hpux9*)
8536 if test "$GCC" = yes; then
8537 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8538 else
8539 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'
8540 fi
8541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8542 hardcode_libdir_separator=:
8543 hardcode_direct=yes
8544
8545 # hardcode_minus_L: Not really in the search PATH,
8546 # but as the default location of the library.
8547 hardcode_minus_L=yes
8548 export_dynamic_flag_spec='${wl}-E'
8549 ;;
8550
8551 hpux10*)
Jon Dugan92864152010-09-20 21:50:12 +00008552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8554 else
8555 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8556 fi
8557 if test "$with_gnu_ld" = no; then
8558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559 hardcode_libdir_flag_spec_ld='+b $libdir'
8560 hardcode_libdir_separator=:
8561 hardcode_direct=yes
8562 hardcode_direct_absolute=yes
8563 export_dynamic_flag_spec='${wl}-E'
8564 # hardcode_minus_L: Not really in the search PATH,
8565 # but as the default location of the library.
8566 hardcode_minus_L=yes
8567 fi
8568 ;;
8569
8570 hpux11*)
Jon Dugan92864152010-09-20 21:50:12 +00008571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008572 case $host_cpu in
8573 hppa*64*)
8574 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8575 ;;
8576 ia64*)
Jon Dugan92864152010-09-20 21:50:12 +00008577 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008578 ;;
8579 *)
8580 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8581 ;;
8582 esac
8583 else
8584 case $host_cpu in
8585 hppa*64*)
8586 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 ;;
8588 ia64*)
8589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590 ;;
8591 *)
Jon Dugan92864152010-09-20 21:50:12 +00008592
8593 # Older versions of the 11.00 compiler do not understand -b yet
8594 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8596$as_echo_n "checking if $CC understands -b... " >&6; }
8597if test "${lt_cv_prog_compiler__b+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600 lt_cv_prog_compiler__b=no
8601 save_LDFLAGS="$LDFLAGS"
8602 LDFLAGS="$LDFLAGS -b"
8603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8605 # The linker can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 if test -s conftest.err; then
8608 # Append any errors to the config.log.
8609 cat conftest.err 1>&5
8610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_cv_prog_compiler__b=yes
8614 fi
8615 else
8616 lt_cv_prog_compiler__b=yes
8617 fi
8618 fi
8619 $RM -r conftest*
8620 LDFLAGS="$save_LDFLAGS"
8621
8622fi
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8624$as_echo "$lt_cv_prog_compiler__b" >&6; }
8625
8626if test x"$lt_cv_prog_compiler__b" = xyes; then
8627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8628else
8629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8630fi
8631
Jon Dugane34c20c2010-07-08 23:26:52 +00008632 ;;
8633 esac
8634 fi
8635 if test "$with_gnu_ld" = no; then
8636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8637 hardcode_libdir_separator=:
8638
8639 case $host_cpu in
8640 hppa*64*|ia64*)
8641 hardcode_direct=no
8642 hardcode_shlibpath_var=no
8643 ;;
8644 *)
8645 hardcode_direct=yes
8646 hardcode_direct_absolute=yes
8647 export_dynamic_flag_spec='${wl}-E'
8648
8649 # hardcode_minus_L: Not really in the search PATH,
8650 # but as the default location of the library.
8651 hardcode_minus_L=yes
8652 ;;
8653 esac
8654 fi
8655 ;;
8656
8657 irix5* | irix6* | nonstopux*)
8658 if test "$GCC" = yes; then
Jon Dugan92864152010-09-20 21:50:12 +00008659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008660 # Try to use the -exported_symbol ld option, if it does not
8661 # work, assume that -exports_file does not work either and
8662 # implicitly export all symbols.
8663 save_LDFLAGS="$LDFLAGS"
8664 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Jon Dugan92864152010-09-20 21:50:12 +00008665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h. */
Jon Dugane34c20c2010-07-08 23:26:52 +00008667int foo(void) {}
8668_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00008669if ac_fn_c_try_link "$LINENO"; then :
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008671
8672fi
Jon Dugan92864152010-09-20 21:50:12 +00008673rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008675 LDFLAGS="$save_LDFLAGS"
8676 else
Jon Dugan92864152010-09-20 21:50:12 +00008677 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'
8678 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 +00008679 fi
8680 archive_cmds_need_lc='no'
8681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682 hardcode_libdir_separator=:
8683 inherit_rpath=yes
8684 link_all_deplibs=yes
8685 ;;
8686
8687 netbsd*)
8688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8690 else
8691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8692 fi
8693 hardcode_libdir_flag_spec='-R$libdir'
8694 hardcode_direct=yes
8695 hardcode_shlibpath_var=no
8696 ;;
8697
8698 newsos6)
8699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700 hardcode_direct=yes
8701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702 hardcode_libdir_separator=:
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 *nto* | *qnx*)
8707 ;;
8708
8709 openbsd*)
8710 if test -f /usr/libexec/ld.so; then
8711 hardcode_direct=yes
8712 hardcode_shlibpath_var=no
8713 hardcode_direct_absolute=yes
8714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718 export_dynamic_flag_spec='${wl}-E'
8719 else
8720 case $host_os in
8721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_libdir_flag_spec='-R$libdir'
8724 ;;
8725 *)
8726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728 ;;
8729 esac
8730 fi
8731 else
8732 ld_shlibs=no
8733 fi
8734 ;;
8735
8736 os2*)
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_minus_L=yes
8739 allow_undefined_flag=unsupported
Jon Dugan92864152010-09-20 21:50:12 +00008740 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 +00008741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8742 ;;
8743
8744 osf3*)
8745 if test "$GCC" = yes; then
8746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Jon Dugan92864152010-09-20 21:50:12 +00008747 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 +00008748 else
8749 allow_undefined_flag=' -expect_unresolved \*'
Jon Dugan92864152010-09-20 21:50:12 +00008750 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 +00008751 fi
8752 archive_cmds_need_lc='no'
8753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754 hardcode_libdir_separator=:
8755 ;;
8756
8757 osf4* | osf5*) # as osf3* with the addition of -msym flag
8758 if test "$GCC" = yes; then
8759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Jon Dugan92864152010-09-20 21:50:12 +00008760 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 else
8763 allow_undefined_flag=' -expect_unresolved \*'
Jon Dugan92864152010-09-20 21:50:12 +00008764 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 +00008765 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 +00008766 $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 +00008767
8768 # Both c and cxx compiler support -rpath directly
8769 hardcode_libdir_flag_spec='-rpath $libdir'
8770 fi
8771 archive_cmds_need_lc='no'
8772 hardcode_libdir_separator=:
8773 ;;
8774
8775 solaris*)
8776 no_undefined_flag=' -z defs'
8777 if test "$GCC" = yes; then
8778 wlarc='${wl}'
8779 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8782 else
8783 case `$CC -V 2>&1` in
8784 *"Compilers 5.0"*)
8785 wlarc=''
8786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8789 ;;
8790 *)
8791 wlarc='${wl}'
8792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8795 ;;
8796 esac
8797 fi
8798 hardcode_libdir_flag_spec='-R$libdir'
8799 hardcode_shlibpath_var=no
8800 case $host_os in
8801 solaris2.[0-5] | solaris2.[0-5].*) ;;
8802 *)
8803 # The compiler driver will combine and reorder linker options,
8804 # but understands `-z linker_flag'. GCC discards it without `$wl',
8805 # but is careful enough not to reorder.
8806 # Supported since Solaris 2.6 (maybe 2.5.1?)
8807 if test "$GCC" = yes; then
8808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8809 else
8810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8811 fi
8812 ;;
8813 esac
8814 link_all_deplibs=yes
8815 ;;
8816
8817 sunos4*)
8818 if test "x$host_vendor" = xsequent; then
8819 # Use $CC to link under sequent, because it throws in some extra .o
8820 # files that make .init and .fini sections work.
8821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8822 else
8823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8824 fi
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_direct=yes
8827 hardcode_minus_L=yes
8828 hardcode_shlibpath_var=no
8829 ;;
8830
8831 sysv4)
8832 case $host_vendor in
8833 sni)
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_direct=yes # is this really true???
8836 ;;
8837 siemens)
8838 ## LD is ld it makes a PLAMLIB
8839 ## CC just makes a GrossModule.
8840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8841 reload_cmds='$CC -r -o $output$reload_objs'
8842 hardcode_direct=no
8843 ;;
8844 motorola)
8845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8847 ;;
8848 esac
8849 runpath_var='LD_RUN_PATH'
8850 hardcode_shlibpath_var=no
8851 ;;
8852
8853 sysv4.3*)
8854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8856 export_dynamic_flag_spec='-Bexport'
8857 ;;
8858
8859 sysv4*MP*)
8860 if test -d /usr/nec; then
8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_shlibpath_var=no
8863 runpath_var=LD_RUN_PATH
8864 hardcode_runpath_var=yes
8865 ld_shlibs=yes
8866 fi
8867 ;;
8868
8869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8870 no_undefined_flag='${wl}-z,text'
8871 archive_cmds_need_lc=no
8872 hardcode_shlibpath_var=no
8873 runpath_var='LD_RUN_PATH'
8874
8875 if test "$GCC" = yes; then
8876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 else
8879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 fi
8882 ;;
8883
8884 sysv5* | sco3.2v5* | sco5v6*)
8885 # Note: We can NOT use -z defs as we might desire, because we do not
8886 # link with -lc, and that would cause any symbols used from libc to
8887 # always be unresolved, which means just about no library would
8888 # ever link correctly. If we're not using GNU ld we use -z text
8889 # though, which does catch some bad symbols but isn't as heavy-handed
8890 # as -z defs.
8891 no_undefined_flag='${wl}-z,text'
8892 allow_undefined_flag='${wl}-z,nodefs'
8893 archive_cmds_need_lc=no
8894 hardcode_shlibpath_var=no
8895 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8896 hardcode_libdir_separator=':'
8897 link_all_deplibs=yes
8898 export_dynamic_flag_spec='${wl}-Bexport'
8899 runpath_var='LD_RUN_PATH'
8900
8901 if test "$GCC" = yes; then
8902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904 else
8905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 fi
8908 ;;
8909
8910 uts4*)
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 *)
8917 ld_shlibs=no
8918 ;;
8919 esac
8920
8921 if test x$host_vendor = xsni; then
8922 case $host in
8923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8924 export_dynamic_flag_spec='${wl}-Blargedynsym'
8925 ;;
8926 esac
8927 fi
8928 fi
8929
Jon Dugan92864152010-09-20 21:50:12 +00008930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8931$as_echo "$ld_shlibs" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008932test "$ld_shlibs" = no && can_build_shared=no
8933
8934with_gnu_ld=$with_gnu_ld
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950#
8951# Do we need to explicitly link libc?
8952#
8953case "x$archive_cmds_need_lc" in
8954x|xyes)
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8957
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8960 *'~'*)
8961 # FIXME: we may have to deal with multi-command sequences.
8962 ;;
8963 '$CC '*)
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
Jon Dugan92864152010-09-20 21:50:12 +00008967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8968$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8969if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972 $RM conftest*
8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008974
Jon Dugan92864152010-09-20 21:50:12 +00008975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008976 (eval $ac_compile) 2>&5
8977 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00008978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979 test $ac_status = 0; } 2>conftest.err; then
8980 soname=conftest
8981 lib=conftest
8982 libobjs=conftest.$ac_objext
8983 deplibs=
8984 wl=$lt_prog_compiler_wl
8985 pic_flag=$lt_prog_compiler_pic
8986 compiler_flags=-v
8987 linker_flags=-v
8988 verstring=
8989 output_objdir=.
8990 libname=conftest
8991 lt_save_allow_undefined_flag=$allow_undefined_flag
8992 allow_undefined_flag=
8993 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 +00008994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8995 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +00008996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8997 test $ac_status = 0; }
8998 then
8999 lt_cv_archive_cmds_need_lc=no
9000 else
9001 lt_cv_archive_cmds_need_lc=yes
9002 fi
9003 allow_undefined_flag=$lt_save_allow_undefined_flag
9004 else
9005 cat conftest.err 1>&5
9006 fi
9007 $RM conftest*
9008
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9011$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9012 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +00009013 ;;
9014 esac
9015 fi
9016 ;;
9017esac
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
Jon Dugan92864152010-09-20 21:50:12 +00009175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9176$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009177
9178if test "$GCC" = yes; then
9179 case $host_os in
9180 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9181 *) lt_awk_arg="/^libraries:/" ;;
9182 esac
Jon Dugan92864152010-09-20 21:50:12 +00009183 case $host_os in
9184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9185 *) lt_sed_strip_eq="s,=/,/,g" ;;
9186 esac
9187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9188 case $lt_search_path_spec in
9189 *\;*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009190 # if the path contains ";" then we assume it to be the separator
9191 # otherwise default to the standard path separator (i.e. ":") - it is
9192 # assumed that no part of a normal pathname contains ";" but that should
9193 # okay in the real world where ";" in dirpaths is itself problematic.
Jon Dugan92864152010-09-20 21:50:12 +00009194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9195 ;;
9196 *)
9197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9198 ;;
9199 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009200 # Ok, now we have the path, separated by spaces, we can step through it
9201 # and add multilib dir if necessary.
9202 lt_tmp_lt_search_path_spec=
9203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9204 for lt_sys_path in $lt_search_path_spec; do
9205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9207 else
9208 test -d "$lt_sys_path" && \
9209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9210 fi
9211 done
Jon Dugan92864152010-09-20 21:50:12 +00009212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Jon Dugane34c20c2010-07-08 23:26:52 +00009213BEGIN {RS=" "; FS="/|\n";} {
9214 lt_foo="";
9215 lt_count=0;
9216 for (lt_i = NF; lt_i > 0; lt_i--) {
9217 if ($lt_i != "" && $lt_i != ".") {
9218 if ($lt_i == "..") {
9219 lt_count++;
9220 } else {
9221 if (lt_count == 0) {
9222 lt_foo="/" $lt_i lt_foo;
9223 } else {
9224 lt_count--;
9225 }
9226 }
9227 }
9228 }
9229 if (lt_foo != "") { lt_freq[lt_foo]++; }
9230 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9231}'`
Jon Dugan92864152010-09-20 21:50:12 +00009232 # AWK program above erroneously prepends '/' to C:/dos/paths
9233 # for these hosts.
9234 case $host_os in
9235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9236 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9237 esac
9238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jon Dugane34c20c2010-07-08 23:26:52 +00009239else
9240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9241fi
9242library_names_spec=
9243libname_spec='lib$name'
9244soname_spec=
9245shrext_cmds=".so"
9246postinstall_cmds=
9247postuninstall_cmds=
9248finish_cmds=
9249finish_eval=
9250shlibpath_var=
9251shlibpath_overrides_runpath=unknown
9252version_type=none
9253dynamic_linker="$host_os ld.so"
9254sys_lib_dlsearch_path_spec="/lib /usr/lib"
9255need_lib_prefix=unknown
9256hardcode_into_libs=no
9257
9258# when you set need_version to no, make sure it does not cause -set_version
9259# flags to be left without arguments
9260need_version=unknown
9261
9262case $host_os in
9263aix3*)
9264 version_type=linux
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9266 shlibpath_var=LIBPATH
9267
9268 # AIX 3 has no versioning support, so we append a major version to the name.
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 ;;
9271
9272aix[4-9]*)
9273 version_type=linux
9274 need_lib_prefix=no
9275 need_version=no
9276 hardcode_into_libs=yes
9277 if test "$host_cpu" = ia64; then
9278 # AIX 5 supports IA64
9279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 else
9282 # With GCC up to 2.95.x, collect2 would create an import file
9283 # for dependence libraries. The import file would start with
9284 # the line `#! .'. This would cause the generated library to
9285 # depend on `.', always an invalid library. This was fixed in
9286 # development snapshots of GCC prior to 3.0.
9287 case $host_os in
9288 aix4 | aix4.[01] | aix4.[01].*)
9289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9290 echo ' yes '
9291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9292 :
9293 else
9294 can_build_shared=no
9295 fi
9296 ;;
9297 esac
9298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9299 # soname into executable. Probably we can add versioning support to
9300 # collect2, so additional links can be useful in future.
9301 if test "$aix_use_runtimelinking" = yes; then
9302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9303 # instead of lib<name>.a to let people know that these are not
9304 # typical AIX shared libraries.
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 else
9307 # We preserve .a as extension for shared libraries through AIX4.2
9308 # and later when we are not doing run time linking.
9309 library_names_spec='${libname}${release}.a $libname.a'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 fi
9312 shlibpath_var=LIBPATH
9313 fi
9314 ;;
9315
9316amigaos*)
9317 case $host_cpu in
9318 powerpc)
9319 # Since July 2007 AmigaOS4 officially supports .so libraries.
9320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 ;;
9323 m68k)
9324 library_names_spec='$libname.ixlibrary $libname.a'
9325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Jon Dugan92864152010-09-20 21:50:12 +00009326 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 +00009327 ;;
9328 esac
9329 ;;
9330
9331beos*)
9332 library_names_spec='${libname}${shared_ext}'
9333 dynamic_linker="$host_os ld.so"
9334 shlibpath_var=LIBRARY_PATH
9335 ;;
9336
9337bsdi[45]*)
9338 version_type=linux
9339 need_version=no
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9346 # the default ld.so.conf also contains /usr/contrib/lib and
9347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9348 # libtool to hard-code these into programs
9349 ;;
9350
Jon Dugan92864152010-09-20 21:50:12 +00009351cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009352 version_type=windows
9353 shrext_cmds=".dll"
9354 need_version=no
9355 need_lib_prefix=no
9356
9357 case $GCC,$host_os in
Jon Dugan92864152010-09-20 21:50:12 +00009358 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009359 library_names_spec='$libname.dll.a'
9360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9361 postinstall_cmds='base_file=`basename \${file}`~
9362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9363 dldir=$destdir/`dirname \$dlpath`~
9364 test -d \$dldir || mkdir -p \$dldir~
9365 $install_prog $dir/$dlname \$dldir/$dlname~
9366 chmod a+x \$dldir/$dlname~
9367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9369 fi'
9370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9371 dlpath=$dir/\$dldll~
9372 $RM \$dlpath'
9373 shlibpath_overrides_runpath=yes
9374
9375 case $host_os in
9376 cygwin*)
9377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9378 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 +00009379
9380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +00009381 ;;
Jon Dugan92864152010-09-20 21:50:12 +00009382 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009383 # MinGW DLLs use traditional 'lib' prefix
9384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 ;;
9386 pw32*)
9387 # pw32 DLLs use 'pw' prefix rather than 'lib'
9388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 ;;
9390 esac
9391 ;;
9392
9393 *)
9394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9395 ;;
9396 esac
9397 dynamic_linker='Win32 ld.exe'
9398 # FIXME: first we should search . and the directory the executable is in
9399 shlibpath_var=PATH
9400 ;;
9401
9402darwin* | rhapsody*)
9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
Jon Dugan92864152010-09-20 21:50:12 +00009407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +00009408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415 ;;
9416
9417dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 ;;
9425
9426freebsd1*)
9427 dynamic_linker=no
9428 ;;
9429
9430freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9440 fi
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9447 ;;
9448 freebsd-*)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9450 need_version=yes
9451 ;;
9452 esac
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9461 ;;
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 ;;
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9470 ;;
9471 esac
9472 ;;
9473
9474gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9482 ;;
9483
Jon Dugan92864152010-09-20 21:50:12 +00009484haiku*)
9485 version_type=linux
9486 need_lib_prefix=no
9487 need_version=no
9488 dynamic_linker="$host_os runtime_loader"
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LIBRARY_PATH
9492 shlibpath_overrides_runpath=yes
9493 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9494 hardcode_into_libs=yes
9495 ;;
9496
Jon Dugane34c20c2010-07-08 23:26:52 +00009497hpux9* | hpux10* | hpux11*)
9498 # Give a soname corresponding to the major version so that dld.sl refuses to
9499 # link against other versions.
9500 version_type=sunos
9501 need_lib_prefix=no
9502 need_version=no
9503 case $host_cpu in
9504 ia64*)
9505 shrext_cmds='.so'
9506 hardcode_into_libs=yes
9507 dynamic_linker="$host_os dld.so"
9508 shlibpath_var=LD_LIBRARY_PATH
9509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 if test "X$HPUX_IA64_MODE" = X32; then
9513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9514 else
9515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9516 fi
9517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518 ;;
9519 hppa*64*)
9520 shrext_cmds='.sl'
9521 hardcode_into_libs=yes
9522 dynamic_linker="$host_os dld.sl"
9523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9529 ;;
9530 *)
9531 shrext_cmds='.sl'
9532 dynamic_linker="$host_os dld.sl"
9533 shlibpath_var=SHLIB_PATH
9534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 ;;
9538 esac
Jon Dugan92864152010-09-20 21:50:12 +00009539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +00009540 postinstall_cmds='chmod 555 $lib'
Jon Dugan92864152010-09-20 21:50:12 +00009541 # or fails outright, so override atomically:
9542 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +00009543 ;;
9544
9545interix[3-9]*)
9546 version_type=linux
9547 need_lib_prefix=no
9548 need_version=no
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=no
9554 hardcode_into_libs=yes
9555 ;;
9556
9557irix5* | irix6* | nonstopux*)
9558 case $host_os in
9559 nonstopux*) version_type=nonstopux ;;
9560 *)
9561 if test "$lt_cv_prog_gnu_ld" = yes; then
9562 version_type=linux
9563 else
9564 version_type=irix
9565 fi ;;
9566 esac
9567 need_lib_prefix=no
9568 need_version=no
9569 soname_spec='${libname}${release}${shared_ext}$major'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9571 case $host_os in
9572 irix5* | nonstopux*)
9573 libsuff= shlibsuff=
9574 ;;
9575 *)
9576 case $LD in # libtool.m4 will add one of these switches to LD
9577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9578 libsuff= shlibsuff= libmagic=32-bit;;
9579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9580 libsuff=32 shlibsuff=N32 libmagic=N32;;
9581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9583 *) libsuff= shlibsuff= libmagic=never-match;;
9584 esac
9585 ;;
9586 esac
9587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9588 shlibpath_overrides_runpath=no
9589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9591 hardcode_into_libs=yes
9592 ;;
9593
9594# No shared lib support for Linux oldld, aout, or coff.
9595linux*oldld* | linux*aout* | linux*coff*)
9596 dynamic_linker=no
9597 ;;
9598
9599# This must be Linux ELF.
Jon Dugan92864152010-09-20 21:50:12 +00009600linux* | k*bsd*-gnu | kopensolaris*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00009601 version_type=linux
9602 need_lib_prefix=no
9603 need_version=no
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=no
Jon Dugan92864152010-09-20 21:50:12 +00009609
Jon Dugane34c20c2010-07-08 23:26:52 +00009610 # Some binutils ld are patched to set DT_RUNPATH
Jon Dugan92864152010-09-20 21:50:12 +00009611 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9613else
9614 lt_cv_shlibpath_overrides_runpath=no
9615 save_LDFLAGS=$LDFLAGS
9616 save_libdir=$libdir
9617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009620/* end confdefs.h. */
9621
9622int
9623main ()
9624{
9625
9626 ;
9627 return 0;
9628}
9629_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +00009630if ac_fn_c_try_link "$LINENO"; then :
9631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9632 lt_cv_shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009633fi
Jon Dugan92864152010-09-20 21:50:12 +00009634fi
9635rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LDFLAGS=$save_LDFLAGS
9638 libdir=$save_libdir
Jon Dugane34c20c2010-07-08 23:26:52 +00009639
9640fi
9641
Jon Dugan92864152010-09-20 21:50:12 +00009642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jon Dugane34c20c2010-07-08 23:26:52 +00009643
9644 # This implies no fast_install, which is unacceptable.
9645 # Some rework will be needed to allow for fast_install
9646 # before this can be enabled.
9647 hardcode_into_libs=yes
9648
9649 # Append ld.so.conf contents to the search path
9650 if test -f /etc/ld.so.conf; then
Jon Dugan92864152010-09-20 21:50:12 +00009651 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' ' '`
Jon Dugane34c20c2010-07-08 23:26:52 +00009652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9653 fi
9654
9655 # We used to test for /lib/ld.so.1 and disable shared libraries on
9656 # powerpc, because MkLinux only supported shared libraries with the
9657 # GNU dynamic linker. Since this was broken with cross compilers,
9658 # most powerpc-linux boxes support dynamic linking these days and
9659 # people can always --disable-shared, the test was removed, and we
9660 # assume the GNU/Linux dynamic linker is in use.
9661 dynamic_linker='GNU/Linux ld.so'
9662 ;;
9663
9664netbsd*)
9665 version_type=sunos
9666 need_lib_prefix=no
9667 need_version=no
9668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9671 dynamic_linker='NetBSD (a.out) ld.so'
9672 else
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 dynamic_linker='NetBSD ld.elf_so'
9676 fi
9677 shlibpath_var=LD_LIBRARY_PATH
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9680 ;;
9681
9682newsos6)
9683 version_type=linux
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 ;;
9688
9689*nto* | *qnx*)
9690 version_type=qnx
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=no
9697 hardcode_into_libs=yes
9698 dynamic_linker='ldqnx.so'
9699 ;;
9700
9701openbsd*)
9702 version_type=sunos
9703 sys_lib_dlsearch_path_spec="/usr/lib"
9704 need_lib_prefix=no
9705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9706 case $host_os in
9707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9708 *) need_version=no ;;
9709 esac
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9714 case $host_os in
9715 openbsd2.[89] | openbsd2.[89].*)
9716 shlibpath_overrides_runpath=no
9717 ;;
9718 *)
9719 shlibpath_overrides_runpath=yes
9720 ;;
9721 esac
9722 else
9723 shlibpath_overrides_runpath=yes
9724 fi
9725 ;;
9726
9727os2*)
9728 libname_spec='$name'
9729 shrext_cmds=".dll"
9730 need_lib_prefix=no
9731 library_names_spec='$libname${shared_ext} $libname.a'
9732 dynamic_linker='OS/2 ld.exe'
9733 shlibpath_var=LIBPATH
9734 ;;
9735
9736osf3* | osf4* | osf5*)
9737 version_type=osf
9738 need_lib_prefix=no
9739 need_version=no
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9745 ;;
9746
9747rdos*)
9748 dynamic_linker=no
9749 ;;
9750
9751solaris*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9760 # ldd complains unless libraries are executable
9761 postinstall_cmds='chmod +x $lib'
9762 ;;
9763
9764sunos4*)
9765 version_type=sunos
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=yes
9770 if test "$with_gnu_ld" = yes; then
9771 need_lib_prefix=no
9772 fi
9773 need_version=yes
9774 ;;
9775
9776sysv4 | sysv4.3*)
9777 version_type=linux
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 case $host_vendor in
9782 sni)
9783 shlibpath_overrides_runpath=no
9784 need_lib_prefix=no
9785 runpath_var=LD_RUN_PATH
9786 ;;
9787 siemens)
9788 need_lib_prefix=no
9789 ;;
9790 motorola)
9791 need_lib_prefix=no
9792 need_version=no
9793 shlibpath_overrides_runpath=no
9794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9795 ;;
9796 esac
9797 ;;
9798
9799sysv4*MP*)
9800 if test -d /usr/nec ;then
9801 version_type=linux
9802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9803 soname_spec='$libname${shared_ext}.$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 fi
9806 ;;
9807
9808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9809 version_type=freebsd-elf
9810 need_lib_prefix=no
9811 need_version=no
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=yes
9816 hardcode_into_libs=yes
9817 if test "$with_gnu_ld" = yes; then
9818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9819 else
9820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9821 case $host_os in
9822 sco3.2v5*)
9823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9824 ;;
9825 esac
9826 fi
9827 sys_lib_dlsearch_path_spec='/usr/lib'
9828 ;;
9829
9830tpf*)
9831 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9832 version_type=linux
9833 need_lib_prefix=no
9834 need_version=no
Jon Dugan92864152010-09-20 21:50:12 +00009835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Jon Dugane34c20c2010-07-08 23:26:52 +00009836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 ;;
9840
9841uts4*)
9842 version_type=linux
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 ;;
9847
9848*)
9849 dynamic_linker=no
9850 ;;
9851esac
Jon Dugan92864152010-09-20 21:50:12 +00009852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9853$as_echo "$dynamic_linker" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009854test "$dynamic_linker" = no && can_build_shared=no
9855
9856variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9857if test "$GCC" = yes; then
9858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9859fi
9860
9861if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9862 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9863fi
9864if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9865 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9866fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
Jon Dugan92864152010-09-20 21:50:12 +00009954
9955
9956
9957
9958
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9960$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009961hardcode_action=
9962if test -n "$hardcode_libdir_flag_spec" ||
9963 test -n "$runpath_var" ||
9964 test "X$hardcode_automatic" = "Xyes" ; then
9965
9966 # We can hardcode non-existent directories.
9967 if test "$hardcode_direct" != no &&
9968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9969 # have to relink, otherwise we might link with an installed library
9970 # when we should be linking with a yet-to-be-installed one
9971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9972 test "$hardcode_minus_L" != no; then
9973 # Linking always hardcodes the temporary library directory.
9974 hardcode_action=relink
9975 else
9976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9977 hardcode_action=immediate
9978 fi
9979else
9980 # We cannot hardcode anything, or else we can only hardcode existing
9981 # directories.
9982 hardcode_action=unsupported
9983fi
Jon Dugan92864152010-09-20 21:50:12 +00009984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9985$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009986
9987if test "$hardcode_action" = relink ||
9988 test "$inherit_rpath" = yes; then
9989 # Fast installation is not supported
9990 enable_fast_install=no
9991elif test "$shlibpath_overrides_runpath" = yes ||
9992 test "$enable_shared" = no; then
9993 # Fast installation is not necessary
9994 enable_fast_install=needless
9995fi
9996
9997
9998
9999
10000
10001
10002 if test "x$enable_dlopen" != xyes; then
10003 enable_dlopen=unknown
10004 enable_dlopen_self=unknown
10005 enable_dlopen_self_static=unknown
10006else
10007 lt_cv_dlopen=no
10008 lt_cv_dlopen_libs=
10009
10010 case $host_os in
10011 beos*)
10012 lt_cv_dlopen="load_add_on"
10013 lt_cv_dlopen_libs=
10014 lt_cv_dlopen_self=yes
10015 ;;
10016
Jon Dugan92864152010-09-20 21:50:12 +000010017 mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010018 lt_cv_dlopen="LoadLibrary"
10019 lt_cv_dlopen_libs=
10020 ;;
10021
10022 cygwin*)
10023 lt_cv_dlopen="dlopen"
10024 lt_cv_dlopen_libs=
10025 ;;
10026
10027 darwin*)
10028 # if libdl is installed we need to link against it
Jon Dugan92864152010-09-20 21:50:12 +000010029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10030$as_echo_n "checking for dlopen in -ldl... " >&6; }
10031if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010033else
10034 ac_check_lib_save_LIBS=$LIBS
10035LIBS="-ldl $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010037/* end confdefs.h. */
10038
10039/* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042#ifdef __cplusplus
10043extern "C"
10044#endif
10045char dlopen ();
10046int
10047main ()
10048{
10049return dlopen ();
10050 ;
10051 return 0;
10052}
10053_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010054if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010055 ac_cv_lib_dl_dlopen=yes
10056else
Jon Dugan92864152010-09-20 21:50:12 +000010057 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010058fi
Jon Dugan92864152010-09-20 21:50:12 +000010059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010061LIBS=$ac_check_lib_save_LIBS
10062fi
Jon Dugan92864152010-09-20 21:50:12 +000010063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10064$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10065if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10067else
10068
10069 lt_cv_dlopen="dyld"
10070 lt_cv_dlopen_libs=
10071 lt_cv_dlopen_self=yes
10072
10073fi
10074
10075 ;;
10076
10077 *)
Jon Dugan92864152010-09-20 21:50:12 +000010078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10079if test "x$ac_cv_func_shl_load" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010080 lt_cv_dlopen="shl_load"
10081else
Jon Dugan92864152010-09-20 21:50:12 +000010082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10083$as_echo_n "checking for shl_load in -ldld... " >&6; }
10084if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010086else
10087 ac_check_lib_save_LIBS=$LIBS
10088LIBS="-ldld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010090/* end confdefs.h. */
10091
10092/* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10095#ifdef __cplusplus
10096extern "C"
10097#endif
10098char shl_load ();
10099int
10100main ()
10101{
10102return shl_load ();
10103 ;
10104 return 0;
10105}
10106_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010107if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010108 ac_cv_lib_dld_shl_load=yes
10109else
Jon Dugan92864152010-09-20 21:50:12 +000010110 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010111fi
Jon Dugan92864152010-09-20 21:50:12 +000010112rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010114LIBS=$ac_check_lib_save_LIBS
10115fi
Jon Dugan92864152010-09-20 21:50:12 +000010116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10117$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10118if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10120else
Jon Dugan92864152010-09-20 21:50:12 +000010121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10122if test "x$ac_cv_func_dlopen" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010123 lt_cv_dlopen="dlopen"
10124else
Jon Dugan92864152010-09-20 21:50:12 +000010125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10126$as_echo_n "checking for dlopen in -ldl... " >&6; }
10127if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010129else
10130 ac_check_lib_save_LIBS=$LIBS
10131LIBS="-ldl $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010133/* end confdefs.h. */
10134
10135/* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141char dlopen ();
10142int
10143main ()
10144{
10145return dlopen ();
10146 ;
10147 return 0;
10148}
10149_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010150if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010151 ac_cv_lib_dl_dlopen=yes
10152else
Jon Dugan92864152010-09-20 21:50:12 +000010153 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010154fi
Jon Dugan92864152010-09-20 21:50:12 +000010155rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010157LIBS=$ac_check_lib_save_LIBS
10158fi
Jon Dugan92864152010-09-20 21:50:12 +000010159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10161if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10163else
Jon Dugan92864152010-09-20 21:50:12 +000010164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10165$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10166if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010168else
10169 ac_check_lib_save_LIBS=$LIBS
10170LIBS="-lsvld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010172/* end confdefs.h. */
10173
10174/* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10177#ifdef __cplusplus
10178extern "C"
10179#endif
10180char dlopen ();
10181int
10182main ()
10183{
10184return dlopen ();
10185 ;
10186 return 0;
10187}
10188_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010189if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010190 ac_cv_lib_svld_dlopen=yes
10191else
Jon Dugan92864152010-09-20 21:50:12 +000010192 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010193fi
Jon Dugan92864152010-09-20 21:50:12 +000010194rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010196LIBS=$ac_check_lib_save_LIBS
10197fi
Jon Dugan92864152010-09-20 21:50:12 +000010198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10199$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10200if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10202else
Jon Dugan92864152010-09-20 21:50:12 +000010203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10204$as_echo_n "checking for dld_link in -ldld... " >&6; }
10205if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010207else
10208 ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldld $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000010210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010211/* end confdefs.h. */
10212
10213/* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219char dld_link ();
10220int
10221main ()
10222{
10223return dld_link ();
10224 ;
10225 return 0;
10226}
10227_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010228if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010229 ac_cv_lib_dld_dld_link=yes
10230else
Jon Dugan92864152010-09-20 21:50:12 +000010231 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010232fi
Jon Dugan92864152010-09-20 21:50:12 +000010233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010235LIBS=$ac_check_lib_save_LIBS
10236fi
Jon Dugan92864152010-09-20 21:50:12 +000010237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10238$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10239if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10241fi
10242
10243
10244fi
10245
10246
10247fi
10248
10249
10250fi
10251
10252
10253fi
10254
10255
10256fi
10257
10258 ;;
10259 esac
10260
10261 if test "x$lt_cv_dlopen" != xno; then
10262 enable_dlopen=yes
10263 else
10264 enable_dlopen=no
10265 fi
10266
10267 case $lt_cv_dlopen in
10268 dlopen)
10269 save_CPPFLAGS="$CPPFLAGS"
10270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10271
10272 save_LDFLAGS="$LDFLAGS"
10273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10274
10275 save_LIBS="$LIBS"
10276 LIBS="$lt_cv_dlopen_libs $LIBS"
10277
Jon Dugan92864152010-09-20 21:50:12 +000010278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10279$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10280if test "${lt_cv_dlopen_self+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010282else
10283 if test "$cross_compiling" = yes; then :
10284 lt_cv_dlopen_self=cross
10285else
10286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287 lt_status=$lt_dlunknown
10288 cat > conftest.$ac_ext <<_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010289#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010290#include "confdefs.h"
10291
10292#if HAVE_DLFCN_H
10293#include <dlfcn.h>
10294#endif
10295
10296#include <stdio.h>
10297
10298#ifdef RTLD_GLOBAL
10299# define LT_DLGLOBAL RTLD_GLOBAL
10300#else
10301# ifdef DL_GLOBAL
10302# define LT_DLGLOBAL DL_GLOBAL
10303# else
10304# define LT_DLGLOBAL 0
10305# endif
10306#endif
10307
10308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10309 find out it does not work in some platform. */
10310#ifndef LT_DLLAZY_OR_NOW
10311# ifdef RTLD_LAZY
10312# define LT_DLLAZY_OR_NOW RTLD_LAZY
10313# else
10314# ifdef DL_LAZY
10315# define LT_DLLAZY_OR_NOW DL_LAZY
10316# else
10317# ifdef RTLD_NOW
10318# define LT_DLLAZY_OR_NOW RTLD_NOW
10319# else
10320# ifdef DL_NOW
10321# define LT_DLLAZY_OR_NOW DL_NOW
10322# else
10323# define LT_DLLAZY_OR_NOW 0
10324# endif
10325# endif
10326# endif
10327# endif
10328#endif
10329
Jon Dugan92864152010-09-20 21:50:12 +000010330/* When -fvisbility=hidden is used, assume the code has been annotated
10331 correspondingly for the symbols needed. */
10332#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10333void fnord () __attribute__((visibility("default")));
Jon Dugane34c20c2010-07-08 23:26:52 +000010334#endif
10335
Jon Dugan92864152010-09-20 21:50:12 +000010336void fnord () { int i=42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010337int main ()
10338{
10339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10340 int status = $lt_dlunknown;
10341
10342 if (self)
10343 {
10344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jon Dugan92864152010-09-20 21:50:12 +000010345 else
10346 {
10347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348 else puts (dlerror ());
10349 }
Jon Dugane34c20c2010-07-08 23:26:52 +000010350 /* dlclose (self); */
10351 }
10352 else
10353 puts (dlerror ());
10354
Jon Dugan92864152010-09-20 21:50:12 +000010355 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000010356}
10357_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010359 (eval $ac_link) 2>&5
10360 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +000010361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010363 (./conftest; exit; ) >&5 2>/dev/null
10364 lt_status=$?
10365 case x$lt_status in
10366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10368 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10369 esac
10370 else :
10371 # compilation failed
10372 lt_cv_dlopen_self=no
10373 fi
10374fi
10375rm -fr conftest*
10376
10377
10378fi
Jon Dugan92864152010-09-20 21:50:12 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10380$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010381
10382 if test "x$lt_cv_dlopen_self" = xyes; then
10383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Jon Dugan92864152010-09-20 21:50:12 +000010384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10385$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10386if test "${lt_cv_dlopen_self_static+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010388else
10389 if test "$cross_compiling" = yes; then :
10390 lt_cv_dlopen_self_static=cross
10391else
10392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10393 lt_status=$lt_dlunknown
10394 cat > conftest.$ac_ext <<_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010395#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010396#include "confdefs.h"
10397
10398#if HAVE_DLFCN_H
10399#include <dlfcn.h>
10400#endif
10401
10402#include <stdio.h>
10403
10404#ifdef RTLD_GLOBAL
10405# define LT_DLGLOBAL RTLD_GLOBAL
10406#else
10407# ifdef DL_GLOBAL
10408# define LT_DLGLOBAL DL_GLOBAL
10409# else
10410# define LT_DLGLOBAL 0
10411# endif
10412#endif
10413
10414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10415 find out it does not work in some platform. */
10416#ifndef LT_DLLAZY_OR_NOW
10417# ifdef RTLD_LAZY
10418# define LT_DLLAZY_OR_NOW RTLD_LAZY
10419# else
10420# ifdef DL_LAZY
10421# define LT_DLLAZY_OR_NOW DL_LAZY
10422# else
10423# ifdef RTLD_NOW
10424# define LT_DLLAZY_OR_NOW RTLD_NOW
10425# else
10426# ifdef DL_NOW
10427# define LT_DLLAZY_OR_NOW DL_NOW
10428# else
10429# define LT_DLLAZY_OR_NOW 0
10430# endif
10431# endif
10432# endif
10433# endif
10434#endif
10435
Jon Dugan92864152010-09-20 21:50:12 +000010436/* When -fvisbility=hidden is used, assume the code has been annotated
10437 correspondingly for the symbols needed. */
10438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10439void fnord () __attribute__((visibility("default")));
Jon Dugane34c20c2010-07-08 23:26:52 +000010440#endif
10441
Jon Dugan92864152010-09-20 21:50:12 +000010442void fnord () { int i=42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010443int main ()
10444{
10445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10446 int status = $lt_dlunknown;
10447
10448 if (self)
10449 {
10450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jon Dugan92864152010-09-20 21:50:12 +000010451 else
10452 {
10453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454 else puts (dlerror ());
10455 }
Jon Dugane34c20c2010-07-08 23:26:52 +000010456 /* dlclose (self); */
10457 }
10458 else
10459 puts (dlerror ());
10460
Jon Dugan92864152010-09-20 21:50:12 +000010461 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000010462}
10463_LT_EOF
Jon Dugan92864152010-09-20 21:50:12 +000010464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010465 (eval $ac_link) 2>&5
10466 ac_status=$?
Jon Dugan92864152010-09-20 21:50:12 +000010467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010469 (./conftest; exit; ) >&5 2>/dev/null
10470 lt_status=$?
10471 case x$lt_status in
10472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10475 esac
10476 else :
10477 # compilation failed
10478 lt_cv_dlopen_self_static=no
10479 fi
10480fi
10481rm -fr conftest*
10482
10483
10484fi
Jon Dugan92864152010-09-20 21:50:12 +000010485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10486$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010487 fi
10488
10489 CPPFLAGS="$save_CPPFLAGS"
10490 LDFLAGS="$save_LDFLAGS"
10491 LIBS="$save_LIBS"
10492 ;;
10493 esac
10494
10495 case $lt_cv_dlopen_self in
10496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10497 *) enable_dlopen_self=unknown ;;
10498 esac
10499
10500 case $lt_cv_dlopen_self_static in
10501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10502 *) enable_dlopen_self_static=unknown ;;
10503 esac
10504fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522striplib=
10523old_striplib=
Jon Dugan92864152010-09-20 21:50:12 +000010524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10525$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010526if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10528 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Jon Dugan92864152010-09-20 21:50:12 +000010529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10530$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010531else
10532# FIXME - insert some real tests, host_os isn't really good enough
10533 case $host_os in
10534 darwin*)
10535 if test -n "$STRIP" ; then
10536 striplib="$STRIP -x"
10537 old_striplib="$STRIP -S"
Jon Dugan92864152010-09-20 21:50:12 +000010538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010540 else
Jon Dugan92864152010-09-20 21:50:12 +000010541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010543 fi
10544 ;;
10545 *)
Jon Dugan92864152010-09-20 21:50:12 +000010546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010548 ;;
10549 esac
10550fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563 # Report which library types will actually be built
Jon Dugan92864152010-09-20 21:50:12 +000010564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10565$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10567$as_echo "$can_build_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010568
Jon Dugan92864152010-09-20 21:50:12 +000010569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10570$as_echo_n "checking whether to build shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010571 test "$can_build_shared" = "no" && enable_shared=no
10572
10573 # On AIX, shared libraries and static libraries use the same namespace, and
10574 # are all built from PIC.
10575 case $host_os in
10576 aix3*)
10577 test "$enable_shared" = yes && enable_static=no
10578 if test -n "$RANLIB"; then
10579 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10580 postinstall_cmds='$RANLIB $lib'
10581 fi
10582 ;;
10583
10584 aix[4-9]*)
10585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10586 test "$enable_shared" = yes && enable_static=no
10587 fi
10588 ;;
10589 esac
Jon Dugan92864152010-09-20 21:50:12 +000010590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10591$as_echo "$enable_shared" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010592
Jon Dugan92864152010-09-20 21:50:12 +000010593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10594$as_echo_n "checking whether to build static libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010595 # Make sure either enable_shared or enable_static is yes.
10596 test "$enable_shared" = yes || enable_static=yes
Jon Dugan92864152010-09-20 21:50:12 +000010597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10598$as_echo "$enable_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010599
10600
10601
10602
10603fi
10604ac_ext=c
10605ac_cpp='$CPP $CPPFLAGS'
10606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608ac_compiler_gnu=$ac_cv_c_compiler_gnu
10609
10610CC="$lt_save_CC"
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624 ac_config_commands="$ac_config_commands libtool"
10625
10626
10627
10628
10629# Only expand once:
10630
10631
10632
10633
10634# Sets a conditional makefile variable so that certain Makefile tasks will be
10635# performed only on linux (currently, add -luuid to LD_FLAGS)
sethdelliott01ca9722010-07-19 20:38:40 +000010636 if case $host_os in linux*) true;; *) false;; esac; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010637 LINUX_TRUE=
10638 LINUX_FALSE='#'
10639else
10640 LINUX_TRUE='#'
10641 LINUX_FALSE=
10642fi
10643
10644
10645# Checks for header files.
Jon Dugan92864152010-09-20 21:50:12 +000010646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10647$as_echo_n "checking for ANSI C header files... " >&6; }
10648if test "${ac_cv_header_stdc+set}" = set; then :
10649 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010650else
Jon Dugan92864152010-09-20 21:50:12 +000010651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010652/* end confdefs.h. */
10653#include <stdlib.h>
10654#include <stdarg.h>
10655#include <string.h>
10656#include <float.h>
10657
10658int
10659main ()
10660{
10661
10662 ;
10663 return 0;
10664}
10665_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010666if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010667 ac_cv_header_stdc=yes
10668else
Jon Dugan92864152010-09-20 21:50:12 +000010669 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010670fi
10671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672
10673if test $ac_cv_header_stdc = yes; then
10674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +000010675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010676/* end confdefs.h. */
10677#include <string.h>
10678
10679_ACEOF
10680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +000010681 $EGREP "memchr" >/dev/null 2>&1; then :
10682
Jon Dugane34c20c2010-07-08 23:26:52 +000010683else
10684 ac_cv_header_stdc=no
10685fi
Jon Dugan92864152010-09-20 21:50:12 +000010686rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000010687
10688fi
10689
10690if test $ac_cv_header_stdc = yes; then
10691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jon Dugan92864152010-09-20 21:50:12 +000010692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010693/* end confdefs.h. */
10694#include <stdlib.h>
10695
10696_ACEOF
10697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jon Dugan92864152010-09-20 21:50:12 +000010698 $EGREP "free" >/dev/null 2>&1; then :
10699
Jon Dugane34c20c2010-07-08 23:26:52 +000010700else
10701 ac_cv_header_stdc=no
10702fi
Jon Dugan92864152010-09-20 21:50:12 +000010703rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000010704
10705fi
10706
10707if test $ac_cv_header_stdc = yes; then
10708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jon Dugan92864152010-09-20 21:50:12 +000010709 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000010710 :
10711else
Jon Dugan92864152010-09-20 21:50:12 +000010712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010713/* end confdefs.h. */
10714#include <ctype.h>
10715#include <stdlib.h>
10716#if ((' ' & 0x0FF) == 0x020)
10717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10719#else
10720# define ISLOWER(c) \
10721 (('a' <= (c) && (c) <= 'i') \
10722 || ('j' <= (c) && (c) <= 'r') \
10723 || ('s' <= (c) && (c) <= 'z'))
10724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10725#endif
10726
10727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10728int
10729main ()
10730{
10731 int i;
10732 for (i = 0; i < 256; i++)
10733 if (XOR (islower (i), ISLOWER (i))
10734 || toupper (i) != TOUPPER (i))
10735 return 2;
10736 return 0;
10737}
10738_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010739if ac_fn_c_try_run "$LINENO"; then :
10740
Jon Dugane34c20c2010-07-08 23:26:52 +000010741else
Jon Dugan92864152010-09-20 21:50:12 +000010742 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010743fi
Jon Dugan92864152010-09-20 21:50:12 +000010744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10745 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010746fi
10747
10748fi
10749fi
Jon Dugan92864152010-09-20 21:50:12 +000010750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10751$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010752if test $ac_cv_header_stdc = yes; then
10753
Jon Dugan92864152010-09-20 21:50:12 +000010754$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10755
10756fi
10757
10758
10759# Check for systems which need -lsocket and -lnsl
10760
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10762$as_echo_n "checking for library containing gethostbyname... " >&6; }
10763if test "${ac_cv_search_gethostbyname+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765else
10766 ac_func_search_save_LIBS=$LIBS
10767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h. */
10769
10770/* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773#ifdef __cplusplus
10774extern "C"
10775#endif
10776char gethostbyname ();
10777int
10778main ()
10779{
10780return gethostbyname ();
10781 ;
10782 return 0;
10783}
sethdelliott01ca9722010-07-19 20:38:40 +000010784_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000010785for ac_lib in '' nsl; do
10786 if test -z "$ac_lib"; then
10787 ac_res="none required"
10788 else
10789 ac_res=-l$ac_lib
10790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10791 fi
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_search_gethostbyname=$ac_res
10794fi
10795rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext
10797 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10798 break
10799fi
10800done
10801if test "${ac_cv_search_gethostbyname+set}" = set; then :
10802
10803else
10804 ac_cv_search_gethostbyname=no
10805fi
10806rm conftest.$ac_ext
10807LIBS=$ac_func_search_save_LIBS
10808fi
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10810$as_echo "$ac_cv_search_gethostbyname" >&6; }
10811ac_res=$ac_cv_search_gethostbyname
10812if test "$ac_res" != no; then :
10813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10814
10815fi
10816
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10818$as_echo_n "checking for library containing socket... " >&6; }
10819if test "${ac_cv_search_socket+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821else
10822 ac_func_search_save_LIBS=$LIBS
10823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824/* end confdefs.h. */
10825
10826/* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10829#ifdef __cplusplus
10830extern "C"
10831#endif
10832char socket ();
10833int
10834main ()
10835{
10836return socket ();
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841for ac_lib in '' socket; do
10842 if test -z "$ac_lib"; then
10843 ac_res="none required"
10844 else
10845 ac_res=-l$ac_lib
10846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10847 fi
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_search_socket=$ac_res
10850fi
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext
10853 if test "${ac_cv_search_socket+set}" = set; then :
10854 break
10855fi
10856done
10857if test "${ac_cv_search_socket+set}" = set; then :
10858
10859else
10860 ac_cv_search_socket=no
10861fi
10862rm conftest.$ac_ext
10863LIBS=$ac_func_search_save_LIBS
10864fi
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10866$as_echo "$ac_cv_search_socket" >&6; }
10867ac_res=$ac_cv_search_socket
10868if test "$ac_res" != no; then :
10869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10870
10871else
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10874$as_echo_n "checking for socket in -lsocket... " >&6; }
10875if test "${ac_cv_lib_socket_socket+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877else
10878 ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lsocket -lnsl $LIBS"
10880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h. */
10882
10883/* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889char socket ();
10890int
10891main ()
10892{
10893return socket ();
10894 ;
10895 return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"; then :
10899 ac_cv_lib_socket_socket=yes
10900else
10901 ac_cv_lib_socket_socket=no
10902fi
10903rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905LIBS=$ac_check_lib_save_LIBS
10906fi
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10908$as_echo "$ac_cv_lib_socket_socket" >&6; }
10909if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10910 LIBS="-lsocket -lnsl $LIBS"
10911fi
10912
10913fi
10914
10915
10916
10917# Solaris puts nanosleep in -lrt
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10919$as_echo_n "checking for library containing nanosleep... " >&6; }
10920if test "${ac_cv_search_nanosleep+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923 ac_func_search_save_LIBS=$LIBS
10924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h. */
10926
10927/* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
10930#ifdef __cplusplus
10931extern "C"
10932#endif
10933char nanosleep ();
10934int
10935main ()
10936{
10937return nanosleep ();
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942for ac_lib in '' rt; do
10943 if test -z "$ac_lib"; then
10944 ac_res="none required"
10945 else
10946 ac_res=-l$ac_lib
10947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10948 fi
10949 if ac_fn_c_try_link "$LINENO"; then :
10950 ac_cv_search_nanosleep=$ac_res
10951fi
10952rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext
10954 if test "${ac_cv_search_nanosleep+set}" = set; then :
10955 break
10956fi
10957done
10958if test "${ac_cv_search_nanosleep+set}" = set; then :
10959
10960else
10961 ac_cv_search_nanosleep=no
10962fi
10963rm conftest.$ac_ext
10964LIBS=$ac_func_search_save_LIBS
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10967$as_echo "$ac_cv_search_nanosleep" >&6; }
10968ac_res=$ac_cv_search_nanosleep
10969if test "$ac_res" != no; then :
10970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10971
10972else
10973
10974echo "nanosleep() required for timing operations."
10975exit 1
10976
10977fi
10978
10979
10980# Solaris puts hstrerror in -lresolv
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
10982$as_echo_n "checking for library containing hstrerror... " >&6; }
10983if test "${ac_cv_search_hstrerror+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985else
10986 ac_func_search_save_LIBS=$LIBS
10987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h. */
10989
10990/* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char hstrerror ();
10997int
10998main ()
10999{
11000return hstrerror ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005for ac_lib in '' resolv; do
11006 if test -z "$ac_lib"; then
11007 ac_res="none required"
11008 else
11009 ac_res=-l$ac_lib
11010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11011 fi
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_search_hstrerror=$ac_res
11014fi
11015rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext
11017 if test "${ac_cv_search_hstrerror+set}" = set; then :
11018 break
11019fi
11020done
11021if test "${ac_cv_search_hstrerror+set}" = set; then :
11022
11023else
11024 ac_cv_search_hstrerror=no
11025fi
11026rm conftest.$ac_ext
11027LIBS=$ac_func_search_save_LIBS
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
11030$as_echo "$ac_cv_search_hstrerror" >&6; }
11031ac_res=$ac_cv_search_hstrerror
11032if test "$ac_res" != no; then :
11033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11034
11035else
11036
11037echo "nanosleep() required for timing operations."
11038exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011039
11040fi
11041
11042
11043# Check for uuid.h and a valid libuuid
Jon Dugan92864152010-09-20 21:50:12 +000011044ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
11045if test "x$ac_cv_func_uuid_create" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011046
11047fi
11048
11049if test "${ac_cv_func_uuid_create}" = yes ; then
11050
Jon Dugan92864152010-09-20 21:50:12 +000011051$as_echo "#define HAVE_UUID_CREATE /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011052
11053 use_uuid_library="no"
11054else
Jon Dugan92864152010-09-20 21:50:12 +000011055 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
11056if test "x$ac_cv_func_uuid_generate" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011057
11058fi
11059
11060 if test "${ac_cv_func_uuid_generate}" = yes ; then
11061
Jon Dugan92864152010-09-20 21:50:12 +000011062$as_echo "#define HAVE_UUID_GENERATE /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011063
11064 use_uuid_library="no"
11065 else
Jon Dugan92864152010-09-20 21:50:12 +000011066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
11067$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
11068if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
11069 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011070else
11071 ac_check_lib_save_LIBS=$LIBS
11072LIBS="-luuid $LIBS"
Jon Dugan92864152010-09-20 21:50:12 +000011073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011074/* end confdefs.h. */
11075
11076/* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11079#ifdef __cplusplus
11080extern "C"
11081#endif
11082char uuid_generate ();
11083int
11084main ()
11085{
11086return uuid_generate ();
11087 ;
11088 return 0;
11089}
11090_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011091if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011092 ac_cv_lib_uuid_uuid_generate=yes
11093else
Jon Dugan92864152010-09-20 21:50:12 +000011094 ac_cv_lib_uuid_uuid_generate=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011095fi
Jon Dugan92864152010-09-20 21:50:12 +000011096rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011098LIBS=$ac_check_lib_save_LIBS
11099fi
Jon Dugan92864152010-09-20 21:50:12 +000011100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
11101$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
11102if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011103 cat >>confdefs.h <<_ACEOF
11104#define HAVE_LIBUUID 1
11105_ACEOF
11106
11107 LIBS="-luuid $LIBS"
11108
11109else
Jon Dugan92864152010-09-20 21:50:12 +000011110 as_fn_error "libuuid is not available" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011111fi
11112
11113
Jon Dugan92864152010-09-20 21:50:12 +000011114$as_echo "#define HAVE_UUID_GENERATE /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011115
11116 use_uuid_library="yes"
11117 fi
11118fi
11119
sethdelliott01ca9722010-07-19 20:38:40 +000011120 if test "${use_uuid_library}" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011121 USE_UUID_LIBRARY_TRUE=
11122 USE_UUID_LIBRARY_FALSE='#'
11123else
11124 USE_UUID_LIBRARY_TRUE='#'
11125 USE_UUID_LIBRARY_FALSE=
11126fi
11127
11128
Jon Dugan92864152010-09-20 21:50:12 +000011129ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11130if test "x$ac_cv_header_uuid_h" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011131
11132fi
11133
11134
11135if test "${ac_cv_header_uuid_h}" = yes ; then
11136
Jon Dugan92864152010-09-20 21:50:12 +000011137$as_echo "#define HAVE_UUID_H /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011138
11139else
Jon Dugan92864152010-09-20 21:50:12 +000011140 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
11141if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011142
11143fi
11144
11145
11146 if test "${ac_cv_header_uuid_uuid_h}" = yes ; then
11147
Jon Dugan92864152010-09-20 21:50:12 +000011148$as_echo "#define HAVE_UUID_UUID_H /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011149
11150 fi
11151fi
11152
11153# Checks for typedefs, structures, and compiler characteristics.
Jon Dugan92864152010-09-20 21:50:12 +000011154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11155$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11156if test "${ac_cv_c_const+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011158else
Jon Dugan92864152010-09-20 21:50:12 +000011159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011160/* end confdefs.h. */
11161
11162int
11163main ()
11164{
11165/* FIXME: Include the comments suggested by Paul. */
11166#ifndef __cplusplus
11167 /* Ultrix mips cc rejects this. */
11168 typedef int charset[2];
11169 const charset cs;
11170 /* SunOS 4.1.1 cc rejects this. */
11171 char const *const *pcpcc;
11172 char **ppc;
11173 /* NEC SVR4.0.2 mips cc rejects this. */
11174 struct point {int x, y;};
11175 static struct point const zero = {0,0};
11176 /* AIX XL C 1.02.0.0 rejects this.
11177 It does not let you subtract one const X* pointer from another in
11178 an arm of an if-expression whose if-part is not a constant
11179 expression */
11180 const char *g = "string";
11181 pcpcc = &g + (g ? g-g : 0);
11182 /* HPUX 7.0 cc rejects these. */
11183 ++pcpcc;
11184 ppc = (char**) pcpcc;
11185 pcpcc = (char const *const *) ppc;
11186 { /* SCO 3.2v4 cc rejects this. */
11187 char *t;
11188 char const *s = 0 ? (char *) 0 : (char const *) 0;
11189
11190 *t++ = 0;
11191 if (s) return 0;
11192 }
11193 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11194 int x[] = {25, 17};
11195 const int *foo = &x[0];
11196 ++foo;
11197 }
11198 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11199 typedef const int *iptr;
11200 iptr p = 0;
11201 ++p;
11202 }
11203 { /* AIX XL C 1.02.0.0 rejects this saying
11204 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11205 struct s { int j; const int *ap[3]; };
11206 struct s *b; b->j = 5;
11207 }
11208 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11209 const int foo = 10;
11210 if (!foo) return 0;
11211 }
11212 return !cs[0] && !zero.x;
11213#endif
11214
11215 ;
11216 return 0;
11217}
11218_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011219if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011220 ac_cv_c_const=yes
11221else
Jon Dugan92864152010-09-20 21:50:12 +000011222 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011223fi
11224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225fi
Jon Dugan92864152010-09-20 21:50:12 +000011226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11227$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011228if test $ac_cv_c_const = no; then
11229
Jon Dugan92864152010-09-20 21:50:12 +000011230$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000011231
11232fi
11233
11234
11235ac_config_files="$ac_config_files Makefile src/Makefile"
11236
11237cat >confcache <<\_ACEOF
11238# This file is a shell script that caches the results of configure
11239# tests run on this system so they can be shared between configure
11240# scripts and configure runs, see configure's option --config-cache.
11241# It is not useful on other systems. If it contains results you don't
11242# want to keep, you may remove or edit it.
11243#
11244# config.status only pays attention to the cache file if you give it
11245# the --recheck option to rerun configure.
11246#
11247# `ac_cv_env_foo' variables (set or unset) will be overridden when
11248# loading this file, other *unset* `ac_cv_foo' will be assigned the
11249# following values.
11250
11251_ACEOF
11252
11253# The following way of writing the cache mishandles newlines in values,
11254# but we know of no workaround that is simple, portable, and efficient.
11255# So, we kill variables containing newlines.
11256# Ultrix sh set writes to stderr and can't be redirected directly,
11257# and sets the high bit in the cache file unless we assign to the vars.
11258(
11259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11260 eval ac_val=\$$ac_var
11261 case $ac_val in #(
11262 *${as_nl}*)
11263 case $ac_var in #(
Jon Dugan92864152010-09-20 21:50:12 +000011264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11265$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011266 esac
11267 case $ac_var in #(
11268 _ | IFS | as_nl) ;; #(
Jon Dugan92864152010-09-20 21:50:12 +000011269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11270 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011271 esac ;;
11272 esac
11273 done
11274
11275 (set) 2>&1 |
11276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11277 *${as_nl}ac_space=\ *)
Jon Dugan92864152010-09-20 21:50:12 +000011278 # `set' does not quote correctly, so add quotes: double-quote
11279 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000011280 sed -n \
11281 "s/'/'\\\\''/g;
11282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11283 ;; #(
11284 *)
11285 # `set' quotes correctly as required by POSIX, so do not add quotes.
11286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11287 ;;
11288 esac |
11289 sort
11290) |
11291 sed '
11292 /^ac_cv_env_/b end
11293 t clear
11294 :clear
11295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11296 t end
11297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11298 :end' >>confcache
11299if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11300 if test -w "$cache_file"; then
11301 test "x$cache_file" != "x/dev/null" &&
Jon Dugan92864152010-09-20 21:50:12 +000011302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11303$as_echo "$as_me: updating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000011304 cat confcache >$cache_file
11305 else
Jon Dugan92864152010-09-20 21:50:12 +000011306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11307$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000011308 fi
11309fi
11310rm -f confcache
11311
11312test "x$prefix" = xNONE && prefix=$ac_default_prefix
11313# Let make expand exec_prefix.
11314test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11315
11316DEFS=-DHAVE_CONFIG_H
11317
11318ac_libobjs=
11319ac_ltlibobjs=
11320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11321 # 1. Remove the extension, and $U if already installed.
11322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jon Dugan92864152010-09-20 21:50:12 +000011323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000011324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11325 # will be set to the directory where LIBOBJS objects are built.
Jon Dugan92864152010-09-20 21:50:12 +000011326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000011328done
11329LIBOBJS=$ac_libobjs
11330
11331LTLIBOBJS=$ac_ltlibobjs
11332
11333
Jon Dugan92864152010-09-20 21:50:12 +000011334 if test -n "$EXEEXT"; then
11335 am__EXEEXT_TRUE=
11336 am__EXEEXT_FALSE='#'
11337else
11338 am__EXEEXT_TRUE='#'
11339 am__EXEEXT_FALSE=
11340fi
11341
Jon Dugane34c20c2010-07-08 23:26:52 +000011342if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Jon Dugan92864152010-09-20 21:50:12 +000011343 as_fn_error "conditional \"AMDEP\" was never defined.
11344Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011345fi
11346if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Jon Dugan92864152010-09-20 21:50:12 +000011347 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11348Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011349fi
11350if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
Jon Dugan92864152010-09-20 21:50:12 +000011351 as_fn_error "conditional \"LINUX\" was never defined.
11352Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011353fi
11354if test -z "${USE_UUID_LIBRARY_TRUE}" && test -z "${USE_UUID_LIBRARY_FALSE}"; then
Jon Dugan92864152010-09-20 21:50:12 +000011355 as_fn_error "conditional \"USE_UUID_LIBRARY\" was never defined.
11356Usually this means the macro was only invoked conditionally." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000011357fi
11358
11359: ${CONFIG_STATUS=./config.status}
Jon Dugan92864152010-09-20 21:50:12 +000011360ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000011361ac_clean_files_save=$ac_clean_files
11362ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jon Dugan92864152010-09-20 21:50:12 +000011363{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11364$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11365as_write_fail=0
11366cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011367#! $SHELL
11368# Generated by $as_me.
11369# Run this file to recreate the current configuration.
11370# Compiler output produced by configure, useful for debugging
11371# configure, is in config.log if it exists.
11372
11373debug=false
11374ac_cs_recheck=false
11375ac_cs_silent=false
sethdelliott01ca9722010-07-19 20:38:40 +000011376
Jon Dugan92864152010-09-20 21:50:12 +000011377SHELL=\${CONFIG_SHELL-$SHELL}
11378export SHELL
11379_ASEOF
11380cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11381## -------------------- ##
11382## M4sh Initialization. ##
11383## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000011384
11385# Be more Bourne compatible
11386DUALCASE=1; export DUALCASE # for MKS sh
Jon Dugan92864152010-09-20 21:50:12 +000011387if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011388 emulate sh
11389 NULLCMD=:
Jon Dugan92864152010-09-20 21:50:12 +000011390 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000011391 # is contrary to our usage. Disable this feature.
11392 alias -g '${1+"$@"}'='"$@"'
11393 setopt NO_GLOB_SUBST
11394else
Jon Dugan92864152010-09-20 21:50:12 +000011395 case `(set -o) 2>/dev/null` in #(
11396 *posix*) :
11397 set -o posix ;; #(
11398 *) :
11399 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011400esac
11401fi
11402
11403
Jon Dugan92864152010-09-20 21:50:12 +000011404as_nl='
11405'
11406export as_nl
11407# Printing a long string crashes Solaris 7 /usr/bin/printf.
11408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11411# Prefer a ksh shell builtin over an external printf program on Solaris,
11412# but without wasting forks for bash or zsh.
11413if test -z "$BASH_VERSION$ZSH_VERSION" \
11414 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11415 as_echo='print -r --'
11416 as_echo_n='print -rn --'
11417elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11418 as_echo='printf %s\n'
11419 as_echo_n='printf %s'
11420else
11421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11423 as_echo_n='/usr/ucb/echo -n'
11424 else
11425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11426 as_echo_n_body='eval
11427 arg=$1;
11428 case $arg in #(
11429 *"$as_nl"*)
11430 expr "X$arg" : "X\\(.*\\)$as_nl";
11431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11432 esac;
11433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11434 '
11435 export as_echo_n_body
11436 as_echo_n='sh -c $as_echo_n_body as_echo'
11437 fi
11438 export as_echo_body
11439 as_echo='sh -c $as_echo_body as_echo'
11440fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011441
11442# The user is always right.
11443if test "${PATH_SEPARATOR+set}" != set; then
Jon Dugan92864152010-09-20 21:50:12 +000011444 PATH_SEPARATOR=:
11445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11447 PATH_SEPARATOR=';'
11448 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011449fi
11450
11451
11452# IFS
11453# We need space, tab and new line, in precisely that order. Quoting is
11454# there to prevent editors from complaining about space-tab.
11455# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11456# splitting by setting IFS to empty value.)
11457IFS=" "" $as_nl"
11458
11459# Find who we are. Look in the path if we contain no directory separator.
Jon Dugan92864152010-09-20 21:50:12 +000011460case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000011461 *[\\/]* ) as_myself=$0 ;;
11462 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
Jon Dugan92864152010-09-20 21:50:12 +000011467 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11468 done
Jon Dugane34c20c2010-07-08 23:26:52 +000011469IFS=$as_save_IFS
11470
11471 ;;
11472esac
11473# We did not find ourselves, most probably we were run as `sh COMMAND'
11474# in which case we are not to be found in the path.
11475if test "x$as_myself" = x; then
11476 as_myself=$0
11477fi
11478if test ! -f "$as_myself"; then
Jon Dugan92864152010-09-20 21:50:12 +000011479 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11480 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011481fi
11482
Jon Dugan92864152010-09-20 21:50:12 +000011483# Unset variables that we do not need and which cause bugs (e.g. in
11484# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11485# suppresses any "Segmentation fault" message there. '((' could
11486# trigger a bug in pdksh 5.2.14.
11487for as_var in BASH_ENV ENV MAIL MAILPATH
11488do eval test x\${$as_var+set} = xset \
11489 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000011490done
11491PS1='$ '
11492PS2='> '
11493PS4='+ '
11494
11495# NLS nuisances.
Jon Dugan92864152010-09-20 21:50:12 +000011496LC_ALL=C
11497export LC_ALL
11498LANGUAGE=C
11499export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000011500
Jon Dugan92864152010-09-20 21:50:12 +000011501# CDPATH.
11502(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11503
11504
11505# as_fn_error ERROR [LINENO LOG_FD]
11506# ---------------------------------
11507# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11508# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11509# script with status $?, using 1 if that was 0.
11510as_fn_error ()
11511{
11512 as_status=$?; test $as_status -eq 0 && as_status=1
11513 if test "$3"; then
11514 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11515 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11516 fi
11517 $as_echo "$as_me: error: $1" >&2
11518 as_fn_exit $as_status
11519} # as_fn_error
11520
11521
11522# as_fn_set_status STATUS
11523# -----------------------
11524# Set $? to STATUS, without forking.
11525as_fn_set_status ()
11526{
11527 return $1
11528} # as_fn_set_status
11529
11530# as_fn_exit STATUS
11531# -----------------
11532# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11533as_fn_exit ()
11534{
11535 set +e
11536 as_fn_set_status $1
11537 exit $1
11538} # as_fn_exit
11539
11540# as_fn_unset VAR
11541# ---------------
11542# Portably unset VAR.
11543as_fn_unset ()
11544{
11545 { eval $1=; unset $1;}
11546}
11547as_unset=as_fn_unset
11548# as_fn_append VAR VALUE
11549# ----------------------
11550# Append the text in VALUE to the end of the definition contained in VAR. Take
11551# advantage of any shell optimizations that allow amortized linear growth over
11552# repeated appends, instead of the typical quadratic growth present in naive
11553# implementations.
11554if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11555 eval 'as_fn_append ()
11556 {
11557 eval $1+=\$2
11558 }'
11559else
11560 as_fn_append ()
11561 {
11562 eval $1=\$$1\$2
11563 }
11564fi # as_fn_append
11565
11566# as_fn_arith ARG...
11567# ------------------
11568# Perform arithmetic evaluation on the ARGs, and store the result in the
11569# global $as_val. Take advantage of shells that can avoid forks. The arguments
11570# must be portable across $(()) and expr.
11571if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11572 eval 'as_fn_arith ()
11573 {
11574 as_val=$(( $* ))
11575 }'
11576else
11577 as_fn_arith ()
11578 {
11579 as_val=`expr "$@" || test $? -eq 1`
11580 }
11581fi # as_fn_arith
11582
11583
Jon Dugane34c20c2010-07-08 23:26:52 +000011584if expr a : '\(a\)' >/dev/null 2>&1 &&
11585 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11586 as_expr=expr
11587else
11588 as_expr=false
11589fi
11590
11591if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11592 as_basename=basename
11593else
11594 as_basename=false
11595fi
11596
Jon Dugan92864152010-09-20 21:50:12 +000011597if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11598 as_dirname=dirname
11599else
11600 as_dirname=false
11601fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011602
11603as_me=`$as_basename -- "$0" ||
11604$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11605 X"$0" : 'X\(//\)$' \| \
11606 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000011607$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000011608 sed '/^.*\/\([^/][^/]*\)\/*$/{
11609 s//\1/
11610 q
11611 }
11612 /^X\/\(\/\/\)$/{
11613 s//\1/
11614 q
11615 }
11616 /^X\/\(\/\).*/{
11617 s//\1/
11618 q
11619 }
11620 s/.*/./; q'`
11621
Jon Dugan92864152010-09-20 21:50:12 +000011622# Avoid depending upon Character Ranges.
11623as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11624as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11625as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11626as_cr_digits='0123456789'
11627as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000011628
11629ECHO_C= ECHO_N= ECHO_T=
Jon Dugan92864152010-09-20 21:50:12 +000011630case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000011631-n*)
Jon Dugan92864152010-09-20 21:50:12 +000011632 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000011633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jon Dugan92864152010-09-20 21:50:12 +000011634 xy) ECHO_C='\c';;
11635 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11636 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000011637 esac;;
11638*)
11639 ECHO_N='-n';;
11640esac
11641
11642rm -f conf$$ conf$$.exe conf$$.file
11643if test -d conf$$.dir; then
11644 rm -f conf$$.dir/conf$$.file
11645else
11646 rm -f conf$$.dir
Jon Dugan92864152010-09-20 21:50:12 +000011647 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000011648fi
Jon Dugan92864152010-09-20 21:50:12 +000011649if (echo >conf$$.file) 2>/dev/null; then
11650 if ln -s conf$$.file conf$$ 2>/dev/null; then
11651 as_ln_s='ln -s'
11652 # ... but there are two gotchas:
11653 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11654 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11655 # In both cases, we have to default to `cp -p'.
11656 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11657 as_ln_s='cp -p'
11658 elif ln conf$$.file conf$$ 2>/dev/null; then
11659 as_ln_s=ln
11660 else
Jon Dugane34c20c2010-07-08 23:26:52 +000011661 as_ln_s='cp -p'
Jon Dugan92864152010-09-20 21:50:12 +000011662 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011663else
11664 as_ln_s='cp -p'
11665fi
11666rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11667rmdir conf$$.dir 2>/dev/null
11668
Jon Dugan92864152010-09-20 21:50:12 +000011669
11670# as_fn_mkdir_p
11671# -------------
11672# Create "$as_dir" as a directory, including parents if necessary.
11673as_fn_mkdir_p ()
11674{
11675
11676 case $as_dir in #(
11677 -*) as_dir=./$as_dir;;
11678 esac
11679 test -d "$as_dir" || eval $as_mkdir_p || {
11680 as_dirs=
11681 while :; do
11682 case $as_dir in #(
11683 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11684 *) as_qdir=$as_dir;;
11685 esac
11686 as_dirs="'$as_qdir' $as_dirs"
11687 as_dir=`$as_dirname -- "$as_dir" ||
11688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11689 X"$as_dir" : 'X\(//\)[^/]' \| \
11690 X"$as_dir" : 'X\(//\)$' \| \
11691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11692$as_echo X"$as_dir" |
11693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11694 s//\1/
11695 q
11696 }
11697 /^X\(\/\/\)[^/].*/{
11698 s//\1/
11699 q
11700 }
11701 /^X\(\/\/\)$/{
11702 s//\1/
11703 q
11704 }
11705 /^X\(\/\).*/{
11706 s//\1/
11707 q
11708 }
11709 s/.*/./; q'`
11710 test -d "$as_dir" && break
11711 done
11712 test -z "$as_dirs" || eval "mkdir $as_dirs"
11713 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11714
11715
11716} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000011717if mkdir -p . 2>/dev/null; then
Jon Dugan92864152010-09-20 21:50:12 +000011718 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000011719else
11720 test -d ./-p && rmdir ./-p
11721 as_mkdir_p=false
11722fi
11723
11724if test -x / >/dev/null 2>&1; then
11725 as_test_x='test -x'
11726else
11727 if ls -dL / >/dev/null 2>&1; then
11728 as_ls_L_option=L
11729 else
11730 as_ls_L_option=
11731 fi
11732 as_test_x='
11733 eval sh -c '\''
11734 if test -d "$1"; then
Jon Dugan92864152010-09-20 21:50:12 +000011735 test -d "$1/.";
Jon Dugane34c20c2010-07-08 23:26:52 +000011736 else
Jon Dugan92864152010-09-20 21:50:12 +000011737 case $1 in #(
11738 -*)set "./$1";;
Jon Dugane34c20c2010-07-08 23:26:52 +000011739 esac;
Jon Dugan92864152010-09-20 21:50:12 +000011740 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000011741 ???[sx]*):;;*)false;;esac;fi
11742 '\'' sh
11743 '
11744fi
11745as_executable_p=$as_test_x
11746
11747# Sed expression to map a string onto a valid CPP name.
11748as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11749
11750# Sed expression to map a string onto a valid variable name.
11751as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11752
11753
11754exec 6>&1
Jon Dugan92864152010-09-20 21:50:12 +000011755## ----------------------------------- ##
11756## Main body of $CONFIG_STATUS script. ##
11757## ----------------------------------- ##
11758_ASEOF
11759test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011760
Jon Dugan92864152010-09-20 21:50:12 +000011761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11762# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000011763# report actual input values of CONFIG_FILES etc. instead of their
11764# values after options handling.
11765ac_log="
11766This file was extended by iperf $as_me 3.0a4, which was
Jon Dugan92864152010-09-20 21:50:12 +000011767generated by GNU Autoconf 2.65. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000011768
11769 CONFIG_FILES = $CONFIG_FILES
11770 CONFIG_HEADERS = $CONFIG_HEADERS
11771 CONFIG_LINKS = $CONFIG_LINKS
11772 CONFIG_COMMANDS = $CONFIG_COMMANDS
11773 $ $0 $@
11774
11775on `(hostname || uname -n) 2>/dev/null | sed 1q`
11776"
11777
11778_ACEOF
11779
Jon Dugan92864152010-09-20 21:50:12 +000011780case $ac_config_files in *"
11781"*) set x $ac_config_files; shift; ac_config_files=$*;;
11782esac
11783
11784case $ac_config_headers in *"
11785"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11786esac
11787
11788
11789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011790# Files that config.status was made for.
11791config_files="$ac_config_files"
11792config_headers="$ac_config_headers"
11793config_commands="$ac_config_commands"
11794
11795_ACEOF
11796
Jon Dugan92864152010-09-20 21:50:12 +000011797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011798ac_cs_usage="\
Jon Dugan92864152010-09-20 21:50:12 +000011799\`$as_me' instantiates files and other configuration actions
11800from templates according to the current configuration. Unless the files
11801and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000011802
Jon Dugan92864152010-09-20 21:50:12 +000011803Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000011804
11805 -h, --help print this help, then exit
11806 -V, --version print version number and configuration settings, then exit
Jon Dugan92864152010-09-20 21:50:12 +000011807 --config print configuration, then exit
11808 -q, --quiet, --silent
11809 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000011810 -d, --debug don't remove temporary files
11811 --recheck update $as_me by reconfiguring in the same conditions
Jon Dugan92864152010-09-20 21:50:12 +000011812 --file=FILE[:TEMPLATE]
11813 instantiate the configuration file FILE
11814 --header=FILE[:TEMPLATE]
11815 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000011816
11817Configuration files:
11818$config_files
11819
11820Configuration headers:
11821$config_headers
11822
11823Configuration commands:
11824$config_commands
11825
Jon Dugan92864152010-09-20 21:50:12 +000011826Report bugs to <iperf-users@lists.sourceforge.net>."
Jon Dugane34c20c2010-07-08 23:26:52 +000011827
11828_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000011831ac_cs_version="\\
11832iperf config.status 3.0a4
Jon Dugan92864152010-09-20 21:50:12 +000011833configured by $0, generated by GNU Autoconf 2.65,
11834 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000011835
Jon Dugan92864152010-09-20 21:50:12 +000011836Copyright (C) 2009 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000011837This config.status script is free software; the Free Software Foundation
11838gives unlimited permission to copy, distribute and modify it."
11839
11840ac_pwd='$ac_pwd'
11841srcdir='$srcdir'
11842INSTALL='$INSTALL'
sethdelliott01ca9722010-07-19 20:38:40 +000011843MKDIR_P='$MKDIR_P'
Jon Dugan92864152010-09-20 21:50:12 +000011844AWK='$AWK'
11845test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000011846_ACEOF
11847
Jon Dugan92864152010-09-20 21:50:12 +000011848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000011850ac_need_defaults=:
11851while test $# != 0
11852do
11853 case $1 in
11854 --*=*)
11855 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11856 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11857 ac_shift=:
11858 ;;
11859 *)
11860 ac_option=$1
11861 ac_optarg=$2
11862 ac_shift=shift
11863 ;;
11864 esac
11865
11866 case $ac_option in
11867 # Handling of the options.
11868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11869 ac_cs_recheck=: ;;
11870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jon Dugan92864152010-09-20 21:50:12 +000011871 $as_echo "$ac_cs_version"; exit ;;
11872 --config | --confi | --conf | --con | --co | --c )
11873 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011874 --debug | --debu | --deb | --de | --d | -d )
11875 debug=: ;;
11876 --file | --fil | --fi | --f )
11877 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000011878 case $ac_optarg in
11879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11880 esac
11881 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000011882 ac_need_defaults=false;;
11883 --header | --heade | --head | --hea )
11884 $ac_shift
Jon Dugan92864152010-09-20 21:50:12 +000011885 case $ac_optarg in
11886 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11887 esac
11888 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000011889 ac_need_defaults=false;;
11890 --he | --h)
11891 # Conflict between --help and --header
Jon Dugan92864152010-09-20 21:50:12 +000011892 as_fn_error "ambiguous option: \`$1'
11893Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000011894 --help | --hel | -h )
Jon Dugan92864152010-09-20 21:50:12 +000011895 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11897 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11898 ac_cs_silent=: ;;
11899
11900 # This is an error.
Jon Dugan92864152010-09-20 21:50:12 +000011901 -*) as_fn_error "unrecognized option: \`$1'
11902Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011903
Jon Dugan92864152010-09-20 21:50:12 +000011904 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000011905 ac_need_defaults=false ;;
11906
11907 esac
11908 shift
11909done
11910
11911ac_configure_extra_args=
11912
11913if $ac_cs_silent; then
11914 exec 6>/dev/null
11915 ac_configure_extra_args="$ac_configure_extra_args --silent"
11916fi
11917
11918_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011920if \$ac_cs_recheck; then
Jon Dugan92864152010-09-20 21:50:12 +000011921 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11922 shift
11923 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11924 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000011925 export CONFIG_SHELL
Jon Dugan92864152010-09-20 21:50:12 +000011926 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000011927fi
11928
11929_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011931exec 5>>config.log
11932{
11933 echo
11934 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11935## Running $as_me. ##
11936_ASBOX
Jon Dugan92864152010-09-20 21:50:12 +000011937 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000011938} >&5
11939
11940_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000011942#
11943# INIT-COMMANDS
11944#
11945AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11946
11947
11948# The HP-UX ksh and POSIX shell print the target directory to stdout
11949# if CDPATH is set.
11950(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11951
11952sed_quote_subst='$sed_quote_subst'
11953double_quote_subst='$double_quote_subst'
11954delay_variable_subst='$delay_variable_subst'
Jon Dugan92864152010-09-20 21:50:12 +000011955macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11956macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11957enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11958enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11959pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11960enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11961SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11962ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11963host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11964host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11965host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11966build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11967build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11968build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11969SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11970Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11971GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11972EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11973FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11974LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11975NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11976LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11977max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11978ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11979exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11980lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11981lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11982lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11983reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11984reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11985OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11986deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11987file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11988AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11989AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11990STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11991RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11992old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11993old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11994old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11995lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11996CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11997CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11998compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11999GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12000lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12001lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12002lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12003lt_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"`'
12004objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12005MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12006lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12007lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12008lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12009lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12010lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12011need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12012DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12013NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12014LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12015OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12016OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12017libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12018shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12019extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12020archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12021enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12022export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12023whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12024compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12025old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12026old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12027archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12028archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12029module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12030module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12031with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12032allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12033no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12034hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12035hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12036hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12037hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12038hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12039hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12040hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12041hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12042inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12043link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12044fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12045always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12046export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12047exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12048include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12049prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12050file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12051variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12052need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12053need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12054version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12055runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12056shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12057shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12058libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12059library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12060soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12061install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12062postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12063postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12064finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12065finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12066hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12067sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12068sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12069hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12070enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12071enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12072enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12073old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12074striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jon Dugane34c20c2010-07-08 23:26:52 +000012075
12076LTCC='$LTCC'
12077LTCFLAGS='$LTCFLAGS'
12078compiler='$compiler_DEFAULT'
12079
Jon Dugan92864152010-09-20 21:50:12 +000012080# A function that is used when there is no print builtin or printf.
12081func_fallback_echo ()
12082{
12083 eval 'cat <<_LTECHO_EOF
12084\$1
12085_LTECHO_EOF'
12086}
12087
Jon Dugane34c20c2010-07-08 23:26:52 +000012088# Quote evaled strings.
Jon Dugan92864152010-09-20 21:50:12 +000012089for var in SHELL \
12090ECHO \
12091SED \
Jon Dugane34c20c2010-07-08 23:26:52 +000012092GREP \
12093EGREP \
12094FGREP \
12095LD \
12096NM \
12097LN_S \
12098lt_SP2NL \
12099lt_NL2SP \
12100reload_flag \
Jon Dugan92864152010-09-20 21:50:12 +000012101OBJDUMP \
Jon Dugane34c20c2010-07-08 23:26:52 +000012102deplibs_check_method \
12103file_magic_cmd \
12104AR \
12105AR_FLAGS \
12106STRIP \
12107RANLIB \
12108CC \
12109CFLAGS \
12110compiler \
12111lt_cv_sys_global_symbol_pipe \
12112lt_cv_sys_global_symbol_to_cdecl \
12113lt_cv_sys_global_symbol_to_c_name_address \
12114lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12115lt_prog_compiler_no_builtin_flag \
12116lt_prog_compiler_wl \
12117lt_prog_compiler_pic \
12118lt_prog_compiler_static \
12119lt_cv_prog_compiler_c_o \
12120need_locks \
12121DSYMUTIL \
12122NMEDIT \
12123LIPO \
12124OTOOL \
12125OTOOL64 \
12126shrext_cmds \
12127export_dynamic_flag_spec \
12128whole_archive_flag_spec \
12129compiler_needs_object \
12130with_gnu_ld \
12131allow_undefined_flag \
12132no_undefined_flag \
12133hardcode_libdir_flag_spec \
12134hardcode_libdir_flag_spec_ld \
12135hardcode_libdir_separator \
12136fix_srcfile_path \
12137exclude_expsyms \
12138include_expsyms \
12139file_list_spec \
12140variables_saved_for_relink \
12141libname_spec \
12142library_names_spec \
12143soname_spec \
Jon Dugan92864152010-09-20 21:50:12 +000012144install_override_mode \
Jon Dugane34c20c2010-07-08 23:26:52 +000012145finish_eval \
12146old_striplib \
12147striplib; do
Jon Dugan92864152010-09-20 21:50:12 +000012148 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012149 *[\\\\\\\`\\"\\\$]*)
Jon Dugan92864152010-09-20 21:50:12 +000012150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Jon Dugane34c20c2010-07-08 23:26:52 +000012151 ;;
12152 *)
12153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12154 ;;
12155 esac
12156done
12157
12158# Double-quote double-evaled strings.
12159for var in reload_cmds \
12160old_postinstall_cmds \
12161old_postuninstall_cmds \
12162old_archive_cmds \
12163extract_expsyms_cmds \
12164old_archive_from_new_cmds \
12165old_archive_from_expsyms_cmds \
12166archive_cmds \
12167archive_expsym_cmds \
12168module_cmds \
12169module_expsym_cmds \
12170export_symbols_cmds \
12171prelink_cmds \
12172postinstall_cmds \
12173postuninstall_cmds \
12174finish_cmds \
12175sys_lib_search_path_spec \
12176sys_lib_dlsearch_path_spec; do
Jon Dugan92864152010-09-20 21:50:12 +000012177 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012178 *[\\\\\\\`\\"\\\$]*)
Jon Dugan92864152010-09-20 21:50:12 +000012179 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 +000012180 ;;
12181 *)
12182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12183 ;;
12184 esac
12185done
12186
12187ac_aux_dir='$ac_aux_dir'
12188xsi_shell='$xsi_shell'
12189lt_shell_append='$lt_shell_append'
12190
12191# See if we are running on zsh, and set the options which allow our
12192# commands through without removal of \ escapes INIT.
12193if test -n "\${ZSH_VERSION+set}" ; then
12194 setopt NO_GLOB_SUBST
12195fi
12196
12197
12198 PACKAGE='$PACKAGE'
12199 VERSION='$VERSION'
12200 TIMESTAMP='$TIMESTAMP'
12201 RM='$RM'
12202 ofile='$ofile'
12203
12204
12205
12206
12207_ACEOF
12208
Jon Dugan92864152010-09-20 21:50:12 +000012209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012210
12211# Handling of arguments.
12212for ac_config_target in $ac_config_targets
12213do
12214 case $ac_config_target in
12215 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12217 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12219 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12220
Jon Dugan92864152010-09-20 21:50:12 +000012221 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012222 esac
12223done
12224
12225
12226# If the user did not use the arguments to specify the items to instantiate,
12227# then the envvar interface is used. Set only those that are not.
12228# We use the long form for the default assignment because of an extremely
12229# bizarre bug on SunOS 4.1.3.
12230if $ac_need_defaults; then
12231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12234fi
12235
12236# Have a temporary directory for convenience. Make it in the build tree
12237# simply because there is no reason against having it here, and in addition,
12238# creating and moving files from /tmp can sometimes cause problems.
12239# Hook for its removal unless debugging.
12240# Note that there is a small window in which the directory will not be cleaned:
12241# after its creation but before its name has been assigned to `$tmp'.
12242$debug ||
12243{
12244 tmp=
12245 trap 'exit_status=$?
12246 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12247' 0
Jon Dugan92864152010-09-20 21:50:12 +000012248 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000012249}
12250# Create a (secure) tmp directory for tmp files.
12251
12252{
12253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12254 test -n "$tmp" && test -d "$tmp"
12255} ||
12256{
12257 tmp=./conf$$-$RANDOM
12258 (umask 077 && mkdir "$tmp")
Jon Dugan92864152010-09-20 21:50:12 +000012259} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012260
Jon Dugan92864152010-09-20 21:50:12 +000012261# Set up the scripts for CONFIG_FILES section.
12262# No need to generate them if there are no CONFIG_FILES.
12263# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000012264if test -n "$CONFIG_FILES"; then
12265
Jon Dugan92864152010-09-20 21:50:12 +000012266
12267ac_cr=`echo X | tr X '\015'`
12268# On cygwin, bash can eat \r inside `` if the user requested igncr.
12269# But we know of no other shell where ac_cr would be empty at this
12270# point, so we can use a bashism as a fallback.
12271if test "x$ac_cr" = x; then
12272 eval ac_cr=\$\'\\r\'
12273fi
12274ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12275if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12276 ac_cs_awk_cr='\r'
12277else
12278 ac_cs_awk_cr=$ac_cr
12279fi
12280
12281echo 'BEGIN {' >"$tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012282_ACEOF
12283
12284
Jon Dugan92864152010-09-20 21:50:12 +000012285{
12286 echo "cat >conf$$subs.awk <<_ACEOF" &&
12287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12288 echo "_ACEOF"
12289} >conf$$subs.sh ||
12290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12291ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012292ac_delim='%!_!# '
12293for ac_last_try in false false false false false :; do
Jon Dugan92864152010-09-20 21:50:12 +000012294 . ./conf$$subs.sh ||
12295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012296
Jon Dugan92864152010-09-20 21:50:12 +000012297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12298 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000012299 break
12300 elif $ac_last_try; then
Jon Dugan92864152010-09-20 21:50:12 +000012301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012302 else
12303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12304 fi
12305done
Jon Dugan92864152010-09-20 21:50:12 +000012306rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000012307
Jon Dugan92864152010-09-20 21:50:12 +000012308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12309cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012310_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012311sed -n '
12312h
12313s/^/S["/; s/!.*/"]=/
12314p
12315g
12316s/^[^!]*!//
12317:repl
12318t repl
12319s/'"$ac_delim"'$//
12320t delim
12321:nl
12322h
12323s/\(.\{148\}\)..*/\1/
12324t more1
12325s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12326p
12327n
12328b repl
12329:more1
12330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12331p
12332g
12333s/.\{148\}//
12334t nl
12335:delim
12336h
12337s/\(.\{148\}\)..*/\1/
12338t more2
12339s/["\\]/\\&/g; s/^/"/; s/$/"/
12340p
12341b
12342:more2
12343s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12344p
12345g
12346s/.\{148\}//
12347t delim
12348' <conf$$subs.awk | sed '
12349/^[^""]/{
12350 N
12351 s/\n//
12352}
12353' >>$CONFIG_STATUS || ac_write_fail=1
12354rm -f conf$$subs.awk
12355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356_ACAWK
12357cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12358 for (key in S) S_is_set[key] = 1
12359 FS = ""
12360
12361}
12362{
12363 line = $ 0
12364 nfields = split(line, field, "@")
12365 substed = 0
12366 len = length(field[1])
12367 for (i = 2; i < nfields; i++) {
12368 key = field[i]
12369 keylen = length(key)
12370 if (S_is_set[key]) {
12371 value = S[key]
12372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12373 len += length(value) + length(field[++i])
12374 substed = 1
12375 } else
12376 len += 1 + keylen
12377 }
12378
12379 print line
12380}
12381
12382_ACAWK
Jon Dugane34c20c2010-07-08 23:26:52 +000012383_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12387else
12388 cat
12389fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012391_ACEOF
12392
12393# VPATH may cause trouble with some makes, so we remove $(srcdir),
12394# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12395# trailing colons and then remove the whole line if VPATH becomes empty
12396# (actually we leave an empty line to preserve line numbers).
12397if test "x$srcdir" = x.; then
12398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12399s/:*\$(srcdir):*/:/
12400s/:*\${srcdir}:*/:/
12401s/:*@srcdir@:*/:/
12402s/^\([^=]*=[ ]*\):*/\1/
12403s/:*$//
12404s/^[^=]*=[ ]*$//
12405}'
12406fi
12407
Jon Dugan92864152010-09-20 21:50:12 +000012408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012409fi # test -n "$CONFIG_FILES"
12410
Jon Dugan92864152010-09-20 21:50:12 +000012411# Set up the scripts for CONFIG_HEADERS section.
12412# No need to generate them if there are no CONFIG_HEADERS.
12413# This happens for instance with `./config.status Makefile'.
12414if test -n "$CONFIG_HEADERS"; then
12415cat >"$tmp/defines.awk" <<\_ACAWK ||
12416BEGIN {
12417_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000012418
Jon Dugan92864152010-09-20 21:50:12 +000012419# Transform confdefs.h into an awk script `defines.awk', embedded as
12420# here-document in config.status, that substitutes the proper values into
12421# config.h.in to produce config.h.
12422
12423# Create a delimiter string that does not exist in confdefs.h, to ease
12424# handling of long lines.
12425ac_delim='%!_!# '
12426for ac_last_try in false false :; do
12427 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12428 if test -z "$ac_t"; then
12429 break
12430 elif $ac_last_try; then
12431 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12432 else
12433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12434 fi
12435done
12436
12437# For the awk script, D is an array of macro values keyed by name,
12438# likewise P contains macro parameters if any. Preserve backslash
12439# newline sequences.
12440
12441ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12442sed -n '
12443s/.\{148\}/&'"$ac_delim"'/g
12444t rset
12445:rset
12446s/^[ ]*#[ ]*define[ ][ ]*/ /
12447t def
12448d
12449:def
12450s/\\$//
12451t bsnl
12452s/["\\]/\\&/g
12453s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12454D["\1"]=" \3"/p
12455s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12456d
12457:bsnl
12458s/["\\]/\\&/g
12459s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12460D["\1"]=" \3\\\\\\n"\\/p
12461t cont
12462s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12463t cont
12464d
12465:cont
12466n
12467s/.\{148\}/&'"$ac_delim"'/g
12468t clear
12469:clear
12470s/\\$//
12471t bsnlc
12472s/["\\]/\\&/g; s/^/"/; s/$/"/p
12473d
12474:bsnlc
12475s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12476b cont
12477' <confdefs.h | sed '
12478s/'"$ac_delim"'/"\\\
12479"/g' >>$CONFIG_STATUS || ac_write_fail=1
12480
12481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12482 for (key in D) D_is_set[key] = 1
12483 FS = ""
12484}
12485/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12486 line = \$ 0
12487 split(line, arg, " ")
12488 if (arg[1] == "#") {
12489 defundef = arg[2]
12490 mac1 = arg[3]
12491 } else {
12492 defundef = substr(arg[1], 2)
12493 mac1 = arg[2]
12494 }
12495 split(mac1, mac2, "(") #)
12496 macro = mac2[1]
12497 prefix = substr(line, 1, index(line, defundef) - 1)
12498 if (D_is_set[macro]) {
12499 # Preserve the white space surrounding the "#".
12500 print prefix "define", macro P[macro] D[macro]
12501 next
12502 } else {
12503 # Replace #undef with comments. This is necessary, for example,
12504 # in the case of _POSIX_SOURCE, which is predefined and required
12505 # on some systems where configure will not decide to define it.
12506 if (defundef == "undef") {
12507 print "/*", prefix defundef, macro, "*/"
12508 next
12509 }
12510 }
12511}
12512{ print }
12513_ACAWK
12514_ACEOF
12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12517fi # test -n "$CONFIG_HEADERS"
12518
12519
12520eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12521shift
12522for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000012523do
12524 case $ac_tag in
12525 :[FHLC]) ac_mode=$ac_tag; continue;;
12526 esac
12527 case $ac_mode$ac_tag in
12528 :[FHL]*:*);;
Jon Dugan92864152010-09-20 21:50:12 +000012529 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012530 :[FH]-) ac_tag=-:-;;
12531 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12532 esac
12533 ac_save_IFS=$IFS
12534 IFS=:
12535 set x $ac_tag
12536 IFS=$ac_save_IFS
12537 shift
12538 ac_file=$1
12539 shift
12540
12541 case $ac_mode in
12542 :L) ac_source=$1;;
12543 :[FH])
12544 ac_file_inputs=
12545 for ac_f
12546 do
12547 case $ac_f in
12548 -) ac_f="$tmp/stdin";;
12549 *) # Look for the file first in the build tree, then in the source tree
12550 # (if the path is not absolute). The absolute path cannot be DOS-style,
12551 # because $ac_f cannot contain `:'.
12552 test -f "$ac_f" ||
12553 case $ac_f in
12554 [\\/$]*) false;;
12555 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12556 esac ||
Jon Dugan92864152010-09-20 21:50:12 +000012557 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012558 esac
Jon Dugan92864152010-09-20 21:50:12 +000012559 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12560 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012561 done
12562
12563 # Let's still pretend it is `configure' which instantiates (i.e., don't
12564 # use $as_me), people would be surprised to read:
12565 # /* config.h. Generated by config.status. */
Jon Dugan92864152010-09-20 21:50:12 +000012566 configure_input='Generated from '`
12567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12568 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000012569 if test x"$ac_file" != x-; then
12570 configure_input="$ac_file. $configure_input"
Jon Dugan92864152010-09-20 21:50:12 +000012571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12572$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012573 fi
Jon Dugan92864152010-09-20 21:50:12 +000012574 # Neutralize special characters interpreted by sed in replacement strings.
12575 case $configure_input in #(
12576 *\&* | *\|* | *\\* )
12577 ac_sed_conf_input=`$as_echo "$configure_input" |
12578 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12579 *) ac_sed_conf_input=$configure_input;;
12580 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000012581
12582 case $ac_tag in
Jon Dugan92864152010-09-20 21:50:12 +000012583 *:-:* | *:-) cat >"$tmp/stdin" \
12584 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012585 esac
12586 ;;
12587 esac
12588
12589 ac_dir=`$as_dirname -- "$ac_file" ||
12590$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12591 X"$ac_file" : 'X\(//\)[^/]' \| \
12592 X"$ac_file" : 'X\(//\)$' \| \
12593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000012594$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12596 s//\1/
12597 q
12598 }
12599 /^X\(\/\/\)[^/].*/{
12600 s//\1/
12601 q
12602 }
12603 /^X\(\/\/\)$/{
12604 s//\1/
12605 q
12606 }
12607 /^X\(\/\).*/{
12608 s//\1/
12609 q
12610 }
12611 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000012612 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000012613 ac_builddir=.
12614
12615case "$ac_dir" in
12616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12617*)
Jon Dugan92864152010-09-20 21:50:12 +000012618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012619 # A ".." for each directory in $ac_dir_suffix.
Jon Dugan92864152010-09-20 21:50:12 +000012620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012621 case $ac_top_builddir_sub in
12622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12624 esac ;;
12625esac
12626ac_abs_top_builddir=$ac_pwd
12627ac_abs_builddir=$ac_pwd$ac_dir_suffix
12628# for backward compatibility:
12629ac_top_builddir=$ac_top_build_prefix
12630
12631case $srcdir in
12632 .) # We are building in place.
12633 ac_srcdir=.
12634 ac_top_srcdir=$ac_top_builddir_sub
12635 ac_abs_top_srcdir=$ac_pwd ;;
12636 [\\/]* | ?:[\\/]* ) # Absolute name.
12637 ac_srcdir=$srcdir$ac_dir_suffix;
12638 ac_top_srcdir=$srcdir
12639 ac_abs_top_srcdir=$srcdir ;;
12640 *) # Relative name.
12641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12642 ac_top_srcdir=$ac_top_build_prefix$srcdir
12643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12644esac
12645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12646
12647
12648 case $ac_mode in
12649 :F)
12650 #
12651 # CONFIG_FILE
12652 #
12653
12654 case $INSTALL in
12655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12656 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12657 esac
sethdelliott01ca9722010-07-19 20:38:40 +000012658 ac_MKDIR_P=$MKDIR_P
12659 case $MKDIR_P in
12660 [\\/$]* | ?:[\\/]* ) ;;
12661 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12662 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000012663_ACEOF
12664
Jon Dugan92864152010-09-20 21:50:12 +000012665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012666# If the template does not know about datarootdir, expand it.
12667# FIXME: This hack should be removed a few years after 2.60.
12668ac_datarootdir_hack=; ac_datarootdir_seen=
Jon Dugan92864152010-09-20 21:50:12 +000012669ac_sed_dataroot='
12670/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000012671 p
12672 q
12673}
12674/@datadir@/p
12675/@docdir@/p
12676/@infodir@/p
12677/@localedir@/p
Jon Dugan92864152010-09-20 21:50:12 +000012678/@mandir@/p'
12679case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012680*datarootdir*) ac_datarootdir_seen=yes;;
12681*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jon Dugan92864152010-09-20 21:50:12 +000012682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12683$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012684_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012686 ac_datarootdir_hack='
12687 s&@datadir@&$datadir&g
12688 s&@docdir@&$docdir&g
12689 s&@infodir@&$infodir&g
12690 s&@localedir@&$localedir&g
12691 s&@mandir@&$mandir&g
Jon Dugan92864152010-09-20 21:50:12 +000012692 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012693esac
12694_ACEOF
12695
12696# Neutralize VPATH when `$srcdir' = `.'.
12697# Shell code in configure.ac might set extrasub.
12698# FIXME: do we really want to maintain this feature?
Jon Dugan92864152010-09-20 21:50:12 +000012699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12700ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000012701$extrasub
12702_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000012703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012704:t
12705/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jon Dugan92864152010-09-20 21:50:12 +000012706s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000012707s&@top_builddir@&$ac_top_builddir_sub&;t t
Jon Dugan92864152010-09-20 21:50:12 +000012708s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000012709s&@srcdir@&$ac_srcdir&;t t
12710s&@abs_srcdir@&$ac_abs_srcdir&;t t
12711s&@top_srcdir@&$ac_top_srcdir&;t t
12712s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12713s&@builddir@&$ac_builddir&;t t
12714s&@abs_builddir@&$ac_abs_builddir&;t t
12715s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12716s&@INSTALL@&$ac_INSTALL&;t t
sethdelliott01ca9722010-07-19 20:38:40 +000012717s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000012718$ac_datarootdir_hack
Jon Dugan92864152010-09-20 21:50:12 +000012719"
12720eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12721 || as_fn_error "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012722
12723test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12724 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jon Dugan92864152010-09-20 21:50:12 +000012726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000012727which seems to be undefined. Please make sure it is defined." >&5
Jon Dugan92864152010-09-20 21:50:12 +000012728$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000012729which seems to be undefined. Please make sure it is defined." >&2;}
12730
12731 rm -f "$tmp/stdin"
12732 case $ac_file in
Jon Dugan92864152010-09-20 21:50:12 +000012733 -) cat "$tmp/out" && rm -f "$tmp/out";;
12734 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12735 esac \
12736 || as_fn_error "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012737 ;;
12738 :H)
12739 #
12740 # CONFIG_HEADER
12741 #
12742 if test x"$ac_file" != x-; then
Jon Dugan92864152010-09-20 21:50:12 +000012743 {
12744 $as_echo "/* $configure_input */" \
12745 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12746 } >"$tmp/config.h" \
12747 || as_fn_error "could not create $ac_file" "$LINENO" 5
12748 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12750$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012751 else
Jon Dugan92864152010-09-20 21:50:12 +000012752 rm -f "$ac_file"
12753 mv "$tmp/config.h" "$ac_file" \
12754 || as_fn_error "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012755 fi
12756 else
Jon Dugan92864152010-09-20 21:50:12 +000012757 $as_echo "/* $configure_input */" \
12758 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12759 || as_fn_error "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000012760 fi
Jon Dugan92864152010-09-20 21:50:12 +000012761# Compute "$ac_file"'s index in $config_headers.
12762_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000012763_am_stamp_count=1
12764for _am_header in $config_headers :; do
12765 case $_am_header in
Jon Dugan92864152010-09-20 21:50:12 +000012766 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000012767 break ;;
12768 * )
12769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12770 esac
12771done
Jon Dugan92864152010-09-20 21:50:12 +000012772echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12773$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12774 X"$_am_arg" : 'X\(//\)[^/]' \| \
12775 X"$_am_arg" : 'X\(//\)$' \| \
12776 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12777$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12779 s//\1/
12780 q
12781 }
12782 /^X\(\/\/\)[^/].*/{
12783 s//\1/
12784 q
12785 }
12786 /^X\(\/\/\)$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\(\/\).*/{
12791 s//\1/
12792 q
12793 }
12794 s/.*/./; q'`/stamp-h$_am_stamp_count
12795 ;;
12796
Jon Dugan92864152010-09-20 21:50:12 +000012797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12798$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012799 ;;
12800 esac
12801
12802
12803 case $ac_file$ac_mode in
Jon Dugan92864152010-09-20 21:50:12 +000012804 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12805 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12806 # are listed without --file. Let's play safe and only enable the eval
12807 # if we detect the quoting.
12808 case $CONFIG_FILES in
12809 *\'*) eval set x "$CONFIG_FILES" ;;
12810 *) set x $CONFIG_FILES ;;
12811 esac
12812 shift
12813 for mf
12814 do
12815 # Strip MF so we end up with the name of the file.
12816 mf=`echo "$mf" | sed -e 's/:.*$//'`
12817 # Check whether this is an Automake generated Makefile or not.
12818 # We used to match only the files named `Makefile.in', but
12819 # some people rename them; so instead we look at the file content.
12820 # Grep'ing the first line is not enough: some people post-process
12821 # each Makefile.in and add a new line on top of each file to say so.
12822 # Grep'ing the whole file is not good either: AIX grep has a line
12823 # limit of 2048, but all sed's we know have understand at least 4000.
12824 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12825 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000012826$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12827 X"$mf" : 'X\(//\)[^/]' \| \
12828 X"$mf" : 'X\(//\)$' \| \
12829 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000012830$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12832 s//\1/
12833 q
12834 }
12835 /^X\(\/\/\)[^/].*/{
12836 s//\1/
12837 q
12838 }
12839 /^X\(\/\/\)$/{
12840 s//\1/
12841 q
12842 }
12843 /^X\(\/\).*/{
12844 s//\1/
12845 q
12846 }
12847 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000012848 else
12849 continue
12850 fi
12851 # Extract the definition of DEPDIR, am__include, and am__quote
12852 # from the Makefile without running `make'.
12853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12854 test -z "$DEPDIR" && continue
12855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12856 test -z "am__include" && continue
12857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12858 # When using ansi2knr, U may be empty or an underscore; expand it
12859 U=`sed -n 's/^U = //p' < "$mf"`
12860 # Find all dependency output files, they are included files with
12861 # $(DEPDIR) in their names. We invoke sed twice because it is the
12862 # simplest approach to changing $(DEPDIR) to its actual value in the
12863 # expansion.
12864 for file in `sed -n "
12865 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12866 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12867 # Make sure the directory exists.
12868 test -f "$dirpart/$file" && continue
12869 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000012870$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871 X"$file" : 'X\(//\)[^/]' \| \
12872 X"$file" : 'X\(//\)$' \| \
12873 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Jon Dugan92864152010-09-20 21:50:12 +000012874$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12876 s//\1/
12877 q
12878 }
12879 /^X\(\/\/\)[^/].*/{
12880 s//\1/
12881 q
12882 }
12883 /^X\(\/\/\)$/{
12884 s//\1/
12885 q
12886 }
12887 /^X\(\/\).*/{
12888 s//\1/
12889 q
12890 }
12891 s/.*/./; q'`
Jon Dugan92864152010-09-20 21:50:12 +000012892 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12893 # echo "creating $dirpart/$file"
12894 echo '# dummy' > "$dirpart/$file"
sethdelliott01ca9722010-07-19 20:38:40 +000012895 done
Jon Dugane34c20c2010-07-08 23:26:52 +000012896 done
Jon Dugan92864152010-09-20 21:50:12 +000012897}
Jon Dugane34c20c2010-07-08 23:26:52 +000012898 ;;
12899 "libtool":C)
12900
12901 # See if we are running on zsh, and set the options which allow our
12902 # commands through without removal of \ escapes.
12903 if test -n "${ZSH_VERSION+set}" ; then
12904 setopt NO_GLOB_SUBST
12905 fi
12906
12907 cfgfile="${ofile}T"
Jon Dugan92864152010-09-20 21:50:12 +000012908 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12909 $RM "$cfgfile"
Jon Dugane34c20c2010-07-08 23:26:52 +000012910
12911 cat <<_LT_EOF >> "$cfgfile"
12912#! $SHELL
12913
12914# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12915# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12917# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12918#
12919# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Jon Dugan92864152010-09-20 21:50:12 +000012920# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12921# Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000012922# Written by Gordon Matzigkeit, 1996
12923#
12924# This file is part of GNU Libtool.
12925#
12926# GNU Libtool is free software; you can redistribute it and/or
12927# modify it under the terms of the GNU General Public License as
12928# published by the Free Software Foundation; either version 2 of
12929# the License, or (at your option) any later version.
12930#
12931# As a special exception to the GNU General Public License,
12932# if you distribute this file as part of a program or library that
12933# is built using GNU Libtool, you may include this file under the
12934# same distribution terms that you use for the rest of that program.
12935#
12936# GNU Libtool is distributed in the hope that it will be useful,
12937# but WITHOUT ANY WARRANTY; without even the implied warranty of
12938# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12939# GNU General Public License for more details.
12940#
12941# You should have received a copy of the GNU General Public License
12942# along with GNU Libtool; see the file COPYING. If not, a copy
12943# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12944# obtained by writing to the Free Software Foundation, Inc.,
12945# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12946
12947
12948# The names of the tagged configurations supported by this script.
12949available_tags=""
12950
12951# ### BEGIN LIBTOOL CONFIG
12952
12953# Which release of libtool.m4 was used?
12954macro_version=$macro_version
12955macro_revision=$macro_revision
12956
12957# Whether or not to build shared libraries.
12958build_libtool_libs=$enable_shared
12959
12960# Whether or not to build static libraries.
12961build_old_libs=$enable_static
12962
12963# What type of objects to build.
12964pic_mode=$pic_mode
12965
12966# Whether or not to optimize for fast installation.
12967fast_install=$enable_fast_install
12968
Jon Dugan92864152010-09-20 21:50:12 +000012969# Shell to use when invoking shell scripts.
12970SHELL=$lt_SHELL
12971
12972# An echo program that protects backslashes.
12973ECHO=$lt_ECHO
12974
Jon Dugane34c20c2010-07-08 23:26:52 +000012975# The host system.
12976host_alias=$host_alias
12977host=$host
12978host_os=$host_os
12979
12980# The build system.
12981build_alias=$build_alias
12982build=$build
12983build_os=$build_os
12984
12985# A sed program that does not truncate output.
12986SED=$lt_SED
12987
12988# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12989Xsed="\$SED -e 1s/^X//"
12990
12991# A grep program that handles long lines.
12992GREP=$lt_GREP
12993
12994# An ERE matcher.
12995EGREP=$lt_EGREP
12996
12997# A literal string matcher.
12998FGREP=$lt_FGREP
12999
13000# A BSD- or MS-compatible name lister.
13001NM=$lt_NM
13002
13003# Whether we need soft or hard links.
13004LN_S=$lt_LN_S
13005
13006# What is the maximum length of a command?
13007max_cmd_len=$max_cmd_len
13008
13009# Object file suffix (normally "o").
13010objext=$ac_objext
13011
13012# Executable file suffix (normally "").
13013exeext=$exeext
13014
13015# whether the shell understands "unset".
13016lt_unset=$lt_unset
13017
13018# turn spaces into newlines.
13019SP2NL=$lt_lt_SP2NL
13020
13021# turn newlines into spaces.
13022NL2SP=$lt_lt_NL2SP
13023
Jon Dugan92864152010-09-20 21:50:12 +000013024# An object symbol dumper.
13025OBJDUMP=$lt_OBJDUMP
Jon Dugane34c20c2010-07-08 23:26:52 +000013026
13027# Method to check whether dependent libraries are shared objects.
13028deplibs_check_method=$lt_deplibs_check_method
13029
13030# Command to use when deplibs_check_method == "file_magic".
13031file_magic_cmd=$lt_file_magic_cmd
13032
13033# The archiver.
13034AR=$lt_AR
13035AR_FLAGS=$lt_AR_FLAGS
13036
13037# A symbol stripping program.
13038STRIP=$lt_STRIP
13039
13040# Commands used to install an old-style archive.
13041RANLIB=$lt_RANLIB
13042old_postinstall_cmds=$lt_old_postinstall_cmds
13043old_postuninstall_cmds=$lt_old_postuninstall_cmds
13044
Jon Dugan92864152010-09-20 21:50:12 +000013045# Whether to use a lock for old archive extraction.
13046lock_old_archive_extraction=$lock_old_archive_extraction
13047
Jon Dugane34c20c2010-07-08 23:26:52 +000013048# A C compiler.
13049LTCC=$lt_CC
13050
13051# LTCC compiler flags.
13052LTCFLAGS=$lt_CFLAGS
13053
13054# Take the output of nm and produce a listing of raw symbols and C names.
13055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13056
13057# Transform the output of nm in a proper C declaration.
13058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13059
13060# Transform the output of nm in a C name address pair.
13061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13062
13063# Transform the output of nm in a C name address pair when lib prefix is needed.
13064global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13065
13066# The name of the directory that contains temporary libtool files.
13067objdir=$objdir
13068
13069# Used to examine libraries when file_magic_cmd begins with "file".
13070MAGIC_CMD=$MAGIC_CMD
13071
13072# Must we lock files when doing compilation?
13073need_locks=$lt_need_locks
13074
13075# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13076DSYMUTIL=$lt_DSYMUTIL
13077
13078# Tool to change global to local symbols on Mac OS X.
13079NMEDIT=$lt_NMEDIT
13080
13081# Tool to manipulate fat objects and archives on Mac OS X.
13082LIPO=$lt_LIPO
13083
13084# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13085OTOOL=$lt_OTOOL
13086
13087# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13088OTOOL64=$lt_OTOOL64
13089
13090# Old archive suffix (normally "a").
13091libext=$libext
13092
13093# Shared library suffix (normally ".so").
13094shrext_cmds=$lt_shrext_cmds
13095
13096# The commands to extract the exported symbol list from a shared archive.
13097extract_expsyms_cmds=$lt_extract_expsyms_cmds
13098
13099# Variables whose values should be saved in libtool wrapper scripts and
13100# restored at link time.
13101variables_saved_for_relink=$lt_variables_saved_for_relink
13102
13103# Do we need the "lib" prefix for modules?
13104need_lib_prefix=$need_lib_prefix
13105
13106# Do we need a version for libraries?
13107need_version=$need_version
13108
13109# Library versioning type.
13110version_type=$version_type
13111
13112# Shared library runtime path variable.
13113runpath_var=$runpath_var
13114
13115# Shared library path variable.
13116shlibpath_var=$shlibpath_var
13117
13118# Is shlibpath searched before the hard-coded library search path?
13119shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13120
13121# Format of library name prefix.
13122libname_spec=$lt_libname_spec
13123
13124# List of archive names. First name is the real one, the rest are links.
13125# The last name is the one that the linker finds with -lNAME
13126library_names_spec=$lt_library_names_spec
13127
13128# The coded name of the library, if different from the real name.
13129soname_spec=$lt_soname_spec
13130
Jon Dugan92864152010-09-20 21:50:12 +000013131# Permission mode override for installation of shared libraries.
13132install_override_mode=$lt_install_override_mode
13133
Jon Dugane34c20c2010-07-08 23:26:52 +000013134# Command to use after installation of a shared archive.
13135postinstall_cmds=$lt_postinstall_cmds
13136
13137# Command to use after uninstallation of a shared archive.
13138postuninstall_cmds=$lt_postuninstall_cmds
13139
13140# Commands used to finish a libtool library installation in a directory.
13141finish_cmds=$lt_finish_cmds
13142
13143# As "finish_cmds", except a single script fragment to be evaled but
13144# not shown.
13145finish_eval=$lt_finish_eval
13146
13147# Whether we should hardcode library paths into libraries.
13148hardcode_into_libs=$hardcode_into_libs
13149
13150# Compile-time system search path for libraries.
13151sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13152
13153# Run-time system search path for libraries.
13154sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13155
13156# Whether dlopen is supported.
13157dlopen_support=$enable_dlopen
13158
13159# Whether dlopen of programs is supported.
13160dlopen_self=$enable_dlopen_self
13161
13162# Whether dlopen of statically linked programs is supported.
13163dlopen_self_static=$enable_dlopen_self_static
13164
13165# Commands to strip libraries.
13166old_striplib=$lt_old_striplib
13167striplib=$lt_striplib
13168
13169
13170# The linker used to build libraries.
13171LD=$lt_LD
13172
Jon Dugan92864152010-09-20 21:50:12 +000013173# How to create reloadable object files.
13174reload_flag=$lt_reload_flag
13175reload_cmds=$lt_reload_cmds
13176
Jon Dugane34c20c2010-07-08 23:26:52 +000013177# Commands used to build an old-style archive.
13178old_archive_cmds=$lt_old_archive_cmds
13179
13180# A language specific compiler.
13181CC=$lt_compiler
13182
13183# Is the compiler the GNU compiler?
13184with_gcc=$GCC
13185
13186# Compiler flag to turn off builtin functions.
13187no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13188
13189# How to pass a linker flag through the compiler.
13190wl=$lt_lt_prog_compiler_wl
13191
13192# Additional compiler flags for building library objects.
13193pic_flag=$lt_lt_prog_compiler_pic
13194
13195# Compiler flag to prevent dynamic linking.
13196link_static_flag=$lt_lt_prog_compiler_static
13197
13198# Does compiler simultaneously support -c and -o options?
13199compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13200
13201# Whether or not to add -lc for building shared libraries.
13202build_libtool_need_lc=$archive_cmds_need_lc
13203
13204# Whether or not to disallow shared libs when runtime libs are static.
13205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13206
13207# Compiler flag to allow reflexive dlopens.
13208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13209
13210# Compiler flag to generate shared objects directly from archives.
13211whole_archive_flag_spec=$lt_whole_archive_flag_spec
13212
13213# Whether the compiler copes with passing no objects directly.
13214compiler_needs_object=$lt_compiler_needs_object
13215
13216# Create an old-style archive from a shared archive.
13217old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13218
13219# Create a temporary old-style archive to link instead of a shared archive.
13220old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13221
13222# Commands used to build a shared archive.
13223archive_cmds=$lt_archive_cmds
13224archive_expsym_cmds=$lt_archive_expsym_cmds
13225
13226# Commands used to build a loadable module if different from building
13227# a shared archive.
13228module_cmds=$lt_module_cmds
13229module_expsym_cmds=$lt_module_expsym_cmds
13230
13231# Whether we are building with GNU ld or not.
13232with_gnu_ld=$lt_with_gnu_ld
13233
13234# Flag that allows shared libraries with undefined symbols to be built.
13235allow_undefined_flag=$lt_allow_undefined_flag
13236
13237# Flag that enforces no undefined symbols.
13238no_undefined_flag=$lt_no_undefined_flag
13239
13240# Flag to hardcode \$libdir into a binary during linking.
13241# This must work even if \$libdir does not exist
13242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13243
13244# If ld is used when linking, flag to hardcode \$libdir into a binary
13245# during linking. This must work even if \$libdir does not exist.
13246hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13247
13248# Whether we need a single "-rpath" flag with a separated argument.
13249hardcode_libdir_separator=$lt_hardcode_libdir_separator
13250
13251# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13252# DIR into the resulting binary.
13253hardcode_direct=$hardcode_direct
13254
13255# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13256# DIR into the resulting binary and the resulting library dependency is
13257# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13258# library is relocated.
13259hardcode_direct_absolute=$hardcode_direct_absolute
13260
13261# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13262# into the resulting binary.
13263hardcode_minus_L=$hardcode_minus_L
13264
13265# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13266# into the resulting binary.
13267hardcode_shlibpath_var=$hardcode_shlibpath_var
13268
13269# Set to "yes" if building a shared library automatically hardcodes DIR
13270# into the library and all subsequent libraries and executables linked
13271# against it.
13272hardcode_automatic=$hardcode_automatic
13273
13274# Set to yes if linker adds runtime paths of dependent libraries
13275# to runtime path list.
13276inherit_rpath=$inherit_rpath
13277
13278# Whether libtool must link a program against all its dependency libraries.
13279link_all_deplibs=$link_all_deplibs
13280
13281# Fix the shell variable \$srcfile for the compiler.
13282fix_srcfile_path=$lt_fix_srcfile_path
13283
13284# Set to "yes" if exported symbols are required.
13285always_export_symbols=$always_export_symbols
13286
13287# The commands to list exported symbols.
13288export_symbols_cmds=$lt_export_symbols_cmds
13289
13290# Symbols that should not be listed in the preloaded symbols.
13291exclude_expsyms=$lt_exclude_expsyms
13292
13293# Symbols that must always be exported.
13294include_expsyms=$lt_include_expsyms
13295
13296# Commands necessary for linking programs (against libraries) with templates.
13297prelink_cmds=$lt_prelink_cmds
13298
13299# Specify filename containing input files.
13300file_list_spec=$lt_file_list_spec
13301
13302# How to hardcode a shared library path into an executable.
13303hardcode_action=$hardcode_action
13304
13305# ### END LIBTOOL CONFIG
13306
13307_LT_EOF
13308
13309 case $host_os in
13310 aix3*)
13311 cat <<\_LT_EOF >> "$cfgfile"
13312# AIX sometimes has problems with the GCC collect2 program. For some
13313# reason, if we set the COLLECT_NAMES environment variable, the problems
13314# vanish in a puff of smoke.
13315if test "X${COLLECT_NAMES+set}" != Xset; then
13316 COLLECT_NAMES=
13317 export COLLECT_NAMES
13318fi
13319_LT_EOF
13320 ;;
13321 esac
13322
13323
13324ltmain="$ac_aux_dir/ltmain.sh"
13325
13326
13327 # We use sed instead of cat because bash on DJGPP gets confused if
13328 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13329 # text mode, it properly converts lines to CR/LF. This bash problem
13330 # is reportedly fixed, but why not run on old versions too?
13331 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13332 || (rm -f "$cfgfile"; exit 1)
13333
13334 case $xsi_shell in
13335 yes)
13336 cat << \_LT_EOF >> "$cfgfile"
13337
13338# func_dirname file append nondir_replacement
13339# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13340# otherwise set result to NONDIR_REPLACEMENT.
13341func_dirname ()
13342{
13343 case ${1} in
13344 */*) func_dirname_result="${1%/*}${2}" ;;
13345 * ) func_dirname_result="${3}" ;;
13346 esac
13347}
13348
13349# func_basename file
13350func_basename ()
13351{
13352 func_basename_result="${1##*/}"
13353}
13354
13355# func_dirname_and_basename file append nondir_replacement
13356# perform func_basename and func_dirname in a single function
13357# call:
13358# dirname: Compute the dirname of FILE. If nonempty,
13359# add APPEND to the result, otherwise set result
13360# to NONDIR_REPLACEMENT.
13361# value returned in "$func_dirname_result"
13362# basename: Compute filename of FILE.
13363# value retuned in "$func_basename_result"
13364# Implementation must be kept synchronized with func_dirname
13365# and func_basename. For efficiency, we do not delegate to
13366# those functions but instead duplicate the functionality here.
13367func_dirname_and_basename ()
13368{
13369 case ${1} in
13370 */*) func_dirname_result="${1%/*}${2}" ;;
13371 * ) func_dirname_result="${3}" ;;
13372 esac
13373 func_basename_result="${1##*/}"
13374}
13375
13376# func_stripname prefix suffix name
13377# strip PREFIX and SUFFIX off of NAME.
13378# PREFIX and SUFFIX must not contain globbing or regex special
13379# characters, hashes, percent signs, but SUFFIX may contain a leading
13380# dot (in which case that matches only a dot).
13381func_stripname ()
13382{
13383 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13384 # positional parameters, so assign one to ordinary parameter first.
13385 func_stripname_result=${3}
13386 func_stripname_result=${func_stripname_result#"${1}"}
13387 func_stripname_result=${func_stripname_result%"${2}"}
13388}
13389
13390# func_opt_split
13391func_opt_split ()
13392{
13393 func_opt_split_opt=${1%%=*}
13394 func_opt_split_arg=${1#*=}
13395}
13396
13397# func_lo2o object
13398func_lo2o ()
13399{
13400 case ${1} in
13401 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13402 *) func_lo2o_result=${1} ;;
13403 esac
13404}
13405
13406# func_xform libobj-or-source
13407func_xform ()
13408{
13409 func_xform_result=${1%.*}.lo
13410}
13411
13412# func_arith arithmetic-term...
13413func_arith ()
13414{
13415 func_arith_result=$(( $* ))
13416}
13417
13418# func_len string
13419# STRING may not start with a hyphen.
13420func_len ()
13421{
13422 func_len_result=${#1}
13423}
13424
13425_LT_EOF
13426 ;;
13427 *) # Bourne compatible functions.
13428 cat << \_LT_EOF >> "$cfgfile"
13429
13430# func_dirname file append nondir_replacement
13431# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13432# otherwise set result to NONDIR_REPLACEMENT.
13433func_dirname ()
13434{
13435 # Extract subdirectory from the argument.
Jon Dugan92864152010-09-20 21:50:12 +000013436 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013437 if test "X$func_dirname_result" = "X${1}"; then
13438 func_dirname_result="${3}"
13439 else
13440 func_dirname_result="$func_dirname_result${2}"
13441 fi
13442}
13443
13444# func_basename file
13445func_basename ()
13446{
Jon Dugan92864152010-09-20 21:50:12 +000013447 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013448}
13449
13450
13451# func_stripname prefix suffix name
13452# strip PREFIX and SUFFIX off of NAME.
13453# PREFIX and SUFFIX must not contain globbing or regex special
13454# characters, hashes, percent signs, but SUFFIX may contain a leading
13455# dot (in which case that matches only a dot).
13456# func_strip_suffix prefix name
13457func_stripname ()
13458{
13459 case ${2} in
Jon Dugan92864152010-09-20 21:50:12 +000013460 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13461 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013462 esac
13463}
13464
13465# sed scripts:
13466my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13467my_sed_long_arg='1s/^-[^=]*=//'
13468
13469# func_opt_split
13470func_opt_split ()
13471{
Jon Dugan92864152010-09-20 21:50:12 +000013472 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13473 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013474}
13475
13476# func_lo2o object
13477func_lo2o ()
13478{
Jon Dugan92864152010-09-20 21:50:12 +000013479 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
Jon Dugane34c20c2010-07-08 23:26:52 +000013480}
13481
13482# func_xform libobj-or-source
13483func_xform ()
13484{
Jon Dugan92864152010-09-20 21:50:12 +000013485 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013486}
13487
13488# func_arith arithmetic-term...
13489func_arith ()
13490{
13491 func_arith_result=`expr "$@"`
13492}
13493
13494# func_len string
13495# STRING may not start with a hyphen.
13496func_len ()
13497{
13498 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13499}
13500
13501_LT_EOF
13502esac
13503
13504case $lt_shell_append in
13505 yes)
13506 cat << \_LT_EOF >> "$cfgfile"
13507
13508# func_append var value
13509# Append VALUE to the end of shell variable VAR.
13510func_append ()
13511{
13512 eval "$1+=\$2"
13513}
13514_LT_EOF
13515 ;;
13516 *)
13517 cat << \_LT_EOF >> "$cfgfile"
13518
13519# func_append var value
13520# Append VALUE to the end of shell variable VAR.
13521func_append ()
13522{
13523 eval "$1=\$$1\$2"
13524}
13525
13526_LT_EOF
13527 ;;
13528 esac
13529
13530
13531 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13532 || (rm -f "$cfgfile"; exit 1)
13533
13534 mv -f "$cfgfile" "$ofile" ||
13535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13536 chmod +x "$ofile"
13537
13538 ;;
13539
13540 esac
13541done # for ac_tag
13542
13543
Jon Dugan92864152010-09-20 21:50:12 +000013544as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000013545_ACEOF
13546ac_clean_files=$ac_clean_files_save
13547
Jon Dugan92864152010-09-20 21:50:12 +000013548test $ac_write_fail = 0 ||
13549 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13550
Jon Dugane34c20c2010-07-08 23:26:52 +000013551
13552# configure is writing to config.log, and then calls config.status.
13553# config.status does its own redirection, appending to config.log.
13554# Unfortunately, on DOS this fails, as config.log is still kept open
13555# by configure, so config.status won't be able to write to it; its
13556# output is simply discarded. So we exec the FD to /dev/null,
13557# effectively closing config.log, so it can be properly (re)opened and
13558# appended to by config.status. When coming back to configure, we
13559# need to make the FD available again.
13560if test "$no_create" != yes; then
13561 ac_cs_success=:
13562 ac_config_status_args=
13563 test "$silent" = yes &&
13564 ac_config_status_args="$ac_config_status_args --quiet"
13565 exec 5>/dev/null
13566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13567 exec 5>>config.log
13568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13569 # would make configure fail if this is the last instruction.
Jon Dugan92864152010-09-20 21:50:12 +000013570 $ac_cs_success || as_fn_exit $?
13571fi
13572if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13574$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013575fi
13576