blob: 062e43000687a6ce8af501ba3e003f7a472e9b9c [file] [log] [blame]
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Douglas Gilbert21fd1552011-08-07 03:10:30 +00003# Generated by GNU Autoconf 2.67 for sg3_utils 1.33.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004#
5# Report bugs to <dgilbert@interlog.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Douglas Gilbert02f2be12010-11-12 16:00:04 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_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
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 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 }
83fi
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.
94case $0 in #((
95 *[\\/]* ) 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=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$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
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# 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 || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# 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
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: dgilbert@interlog.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000366# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000367as_fn_error ()
368{
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000373 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000374 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='sg3_utils'
703PACKAGE_TARNAME='sg3_utils'
Douglas Gilbert21fd1552011-08-07 03:10:30 +0000704PACKAGE_VERSION='1.33'
705PACKAGE_STRING='sg3_utils 1.33'
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000706PACKAGE_BUGREPORT='dgilbert@interlog.com'
707PACKAGE_URL=''
708
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723# include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728# include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745ac_subst_vars='am__EXEEXT_FALSE
746am__EXEEXT_TRUE
747LTLIBOBJS
748LIBOBJS
749OS_WIN32_CYGWIN_FALSE
750OS_WIN32_CYGWIN_TRUE
751OS_WIN32_MINGW_FALSE
752OS_WIN32_MINGW_TRUE
753OS_SOLARIS_FALSE
754OS_SOLARIS_TRUE
755OS_OSF_FALSE
756OS_OSF_TRUE
757OS_LINUX_FALSE
758OS_LINUX_TRUE
759OS_FREEBSD_FALSE
760OS_FREEBSD_TRUE
761os_libs
762GETOPT_O_FILES
763CPP
764OTOOL64
765OTOOL
766LIPO
767NMEDIT
768DSYMUTIL
769lt_ECHO
770RANLIB
771AR
772OBJDUMP
773LN_S
774NM
775ac_ct_DUMPBIN
776DUMPBIN
777LD
778FGREP
779EGREP
780GREP
781SED
782host_os
783host_vendor
784host_cpu
785host
786build_os
787build_vendor
788build_cpu
789build
790LIBTOOL
791am__fastdepCC_FALSE
792am__fastdepCC_TRUE
793CCDEPMODE
794AMDEPBACKSLASH
795AMDEP_FALSE
796AMDEP_TRUE
797am__quote
798am__include
799DEPDIR
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
807MAINT
808MAINTAINER_MODE_FALSE
809MAINTAINER_MODE_TRUE
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_maintainer_mode
875enable_dependency_tracking
876enable_shared
877enable_static
878with_pic
879enable_fast_install
880with_gnu_ld
881enable_libtool_lock
882enable_no_linux_bsg
883enable_win32_spt_direct
884'
885 ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP'
894
895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899ac_unrecognized_opts=
900ac_unrecognized_sep=
901# The variables have the same names as the options, with
902# dashes changed to underlines.
903cache_file=/dev/null
904exec_prefix=NONE
905no_create=
906no_recursion=
907prefix=NONE
908program_prefix=NONE
909program_suffix=NONE
910program_transform_name=s,x,x,
911silent=
912site=
913srcdir=
914verbose=
915x_includes=NONE
916x_libraries=NONE
917
918# Installation directory options.
919# These are left unexpanded so users can "make install exec_prefix=/foo"
920# and all the variables that are supposed to be based on exec_prefix
921# by default will actually change.
922# Use braces instead of parens because sh, perl, etc. also accept them.
923# (The list follows the same order as the GNU Coding Standards.)
924bindir='${exec_prefix}/bin'
925sbindir='${exec_prefix}/sbin'
926libexecdir='${exec_prefix}/libexec'
927datarootdir='${prefix}/share'
928datadir='${datarootdir}'
929sysconfdir='${prefix}/etc'
930sharedstatedir='${prefix}/com'
931localstatedir='${prefix}/var'
932includedir='${prefix}/include'
933oldincludedir='/usr/include'
934docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935infodir='${datarootdir}/info'
936htmldir='${docdir}'
937dvidir='${docdir}'
938pdfdir='${docdir}'
939psdir='${docdir}'
940libdir='${exec_prefix}/lib'
941localedir='${datarootdir}/locale'
942mandir='${datarootdir}/man'
943
944ac_prev=
945ac_dashdash=
946for ac_option
947do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
Douglas Gilbert02f2be12010-11-12 16:00:04 +0000956 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *=) ac_optarg= ;;
958 *) ac_optarg=yes ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +0000959 esac
960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
987 -datadir | --datadir | --datadi | --datad)
988 ac_prev=datadir ;;
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
991
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
999 -disable-* | --disable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001003 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001029 as_fn_error $? "invalid feature name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001233 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=\$ac_optarg ;;
1244
1245 -without-* | --without-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001249 as_fn_error $? "invalid package name: $ac_useropt"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=no ;;
1260
1261 --x)
1262 # Obsolete; use --with-x.
1263 with_x=yes ;;
1264
1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266 | --x-incl | --x-inc | --x-in | --x-i)
1267 ac_prev=x_includes ;;
1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270 x_includes=$ac_optarg ;;
1271
1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274 ac_prev=x_libraries ;;
1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277 x_libraries=$ac_optarg ;;
1278
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001279 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1280Try \`$0 --help' for more information"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001281 ;;
1282
1283 *=*)
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 case $ac_envvar in #(
1287 '' | [0-9]* | *[!_$as_cr_alnum]* )
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001288 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001289 esac
1290 eval $ac_envvar=\$ac_optarg
1291 export $ac_envvar ;;
1292
1293 *)
1294 # FIXME: should be removed in autoconf 3.0.
1295 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1298 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 ;;
1300
1301 esac
1302done
1303
1304if test -n "$ac_prev"; then
1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001306 as_fn_error $? "missing argument to $ac_option"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001307fi
1308
1309if test -n "$ac_unrecognized_opts"; then
1310 case $enable_option_checking in
1311 no) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001312 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 esac
1315fi
1316
1317# Check all directory arguments for consistency.
1318for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1322do
1323 eval ac_val=\$$ac_var
1324 # Remove trailing slashes.
1325 case $ac_val in
1326 */ )
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1329 esac
1330 # Be sure to have absolute directory names.
1331 case $ac_val in
1332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 esac
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001335 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001336done
1337
1338# There might be people who depend on the old broken behavior: `$host'
1339# used to hold the argument of --host etc.
1340# FIXME: To remove some day.
1341build=$build_alias
1342host=$host_alias
1343target=$target_alias
1344
1345# FIXME: To remove some day.
1346if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001349 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1350 If a cross compiler is detected then cross compile mode will be used" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354fi
1355
1356ac_tool_prefix=
1357test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359test "$silent" = yes && exec 6>/dev/null
1360
1361
1362ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363ac_ls_di=`ls -di .` &&
1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001365 as_fn_error $? "working directory cannot be determined"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001366test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001367 as_fn_error $? "pwd does not report name of working directory"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001368
1369
1370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401else
1402 ac_srcdir_defaulted=no
1403fi
1404if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001407fi
1408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001411 pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
1428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
Douglas Gilbert21fd1552011-08-07 03:10:30 +00001436\`configure' configures sg3_utils 1.33 to adapt to many kinds of systems.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001450 -q, --quiet, --silent do not print \`checking ...' messages
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/sg3_utils]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489_ACEOF
1490
1491 cat <<\_ACEOF
1492
1493Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501_ACEOF
1502fi
1503
1504if test -n "$ac_init_help"; then
1505 case $ac_init_help in
Douglas Gilbert21fd1552011-08-07 03:10:30 +00001506 short | recursive ) echo "Configuration of sg3_utils 1.33:";;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001507 esac
1508 cat <<\_ACEOF
1509
1510Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-maintainer-mode enable make rules and dependencies not useful
1515 (and sometimes confusing) to the casual installer
1516 --disable-dependency-tracking speeds up one-time build
1517 --enable-dependency-tracking do not reject slow dependency extractors
1518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --enable-no-linux-bsg ignore linux bsg (sgv4) if present
1524 --enable-win32-spt-direct
1525 enable Win32 SPT Direct
1526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pic try to use only PIC/non-PIC objects [default=use
1531 both]
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533
1534Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1542 CPP C preprocessor
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to <dgilbert@interlog.com>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609 cat <<\_ACEOF
Douglas Gilbert21fd1552011-08-07 03:10:30 +00001610sg3_utils configure 1.33
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001611generated by GNU Autoconf 2.67
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001612
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001613Copyright (C) 2010 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617 exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1632case "(($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_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656fi
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_try_link LINENO
1663# -----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_link ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001717if eval "test \"\${$3+set}\"" = set; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001718 $as_echo_n "(cached) " >&6
1719else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727else
1728 eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_try_cpp LINENO
1740# ----------------------
1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_cpp ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001760 test $ac_status = 0; } > conftest.i && {
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_cpp
1775
1776# ac_fn_c_try_run LINENO
1777# ----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779# that executables *can* be run.
1780ac_fn_c_try_run ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=$ac_status
1811fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_run
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001826if eval "test \"\${$3+set}\"" = set; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001827 $as_echo_n "(cached) " >&6
1828else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872else
1873 eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883} # ac_fn_c_check_func
1884cat >config.log <<_ACEOF
1885This file contains any messages produced by compilers while
1886running configure, to aid debugging if configure makes a mistake.
1887
Douglas Gilbert21fd1552011-08-07 03:10:30 +00001888It was created by sg3_utils $as_me 1.33, which was
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001889generated by GNU Autoconf 2.67. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +00001890
1891 $ $0 $@
1892
1893_ACEOF
1894exec 5>>config.log
1895{
1896cat <<_ASUNAME
1897## --------- ##
1898## Platform. ##
1899## --------- ##
1900
1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918_ASUNAME
1919
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1926 done
1927IFS=$as_save_IFS
1928
1929} >&5
1930
1931cat >&5 <<_ACEOF
1932
1933
1934## ----------- ##
1935## Core tests. ##
1936## ----------- ##
1937
1938_ACEOF
1939
1940
1941# Keep a trace of the command line.
1942# Strip out --no-create and --no-recursion so they do not pile up.
1943# Strip out --silent because we don't want to record it for future runs.
1944# Also quote any args containing shell meta-characters.
1945# Make two passes to allow for proper duplicate-argument suppression.
1946ac_configure_args=
1947ac_configure_args0=
1948ac_configure_args1=
1949ac_must_keep_next=false
1950for ac_pass in 1 2
1951do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
1959 *\'*)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 esac
1962 case $ac_pass in
1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 2)
1965 as_fn_append ac_configure_args1 " '$ac_arg'"
1966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
1981 as_fn_append ac_configure_args " '$ac_arg'"
1982 ;;
1983 esac
1984 done
1985done
1986{ ac_configure_args0=; unset ac_configure_args0;}
1987{ ac_configure_args1=; unset ac_configure_args1;}
1988
1989# When interrupted or exit'd, cleanup temporary files, and complete
1990# config.log. We remove comments because anyway the quotes in there
1991# would cause problems or look ugly.
1992# WARNING: Use '\'' to represent an apostrophe within the trap.
1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
Douglas Gilbert02f2be12010-11-12 16:00:04 +00001999 $as_echo "## ---------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002000## Cache variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002001## ---------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004(
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032)
2033 echo
2034
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002035 $as_echo "## ----------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002036## Output variables. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002037## ----------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002038 echo
2039 for ac_var in $ac_subst_vars
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002050 $as_echo "## ------------------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002051## File substitutions. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002052## ------------------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002066 $as_echo "## ----------- ##
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002067## confdefs.h. ##
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002068## ----------- ##"
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080' 0
2081for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
2087rm -f -r conftest* confdefs.h
2088
2089$as_echo "/* confdefs.h */" > confdefs.h
2090
2091# Predefined preprocessor variables.
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_NAME "$PACKAGE_NAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_VERSION "$PACKAGE_VERSION"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_STRING "$PACKAGE_STRING"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_URL "$PACKAGE_URL"
2115_ACEOF
2116
2117
2118# Let the site file select an alternate cache file if it wants to.
2119# Prefer an explicitly selected file to automatically selected ones.
2120ac_site_file1=NONE
2121ac_site_file2=NONE
2122if test -n "$CONFIG_SITE"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002129elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135fi
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146as_fn_error $? "failed to load site script $ac_site_file
2147See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002148 fi
2149done
2150
2151if test -r "$cache_file"; then
2152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156$as_echo "$as_me: loading cache $cache_file" >&6;}
2157 case $cache_file in
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2160 esac
2161 fi
2162else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164$as_echo "$as_me: creating cache $cache_file" >&6;}
2165 >$cache_file
2166fi
2167
2168# Check that the precious variables saved in the cache have kept the same
2169# value.
2170ac_cache_corrupted=false
2171for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2177 set,)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,set)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215 esac
2216 fi
2217done
2218if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002224fi
2225## -------------------- ##
2226## Main body of script. ##
2227## -------------------- ##
2228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236
2237am__api_version='1.11'
2238
2239ac_aux_dir=
2240for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002241 if test -f "$ac_dir/install-sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 break
2245 elif test -f "$ac_dir/install.sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 break
2249 elif test -f "$ac_dir/shtool"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2252 break
2253 fi
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002254done
2255if test -z "$ac_aux_dir"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002257fi
2258
2259# These three variables are undocumented and unsupported,
2260# and are intended to be withdrawn in a future Autoconf release.
2261# They can cause serious problems if a builder's source tree is in a directory
2262# whose full name contains unusual characters.
2263ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2264ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2265ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266
2267
2268# Find a good install program. We prefer a C program (faster),
2269# so one script is as good as another. But avoid the broken or
2270# incompatible versions:
2271# SysV /etc/install, /usr/sbin/install
2272# SunOS /usr/etc/install
2273# IRIX /sbin/install
2274# AIX /bin/install
2275# AmigaOS /C/install, which installs bootblocks on floppy discs
2276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279# OS/2's system install, which has a completely different semantic
2280# ./install, which can be erroneously created by make from ./install.sh.
2281# Reject install programs that cannot install multiple files.
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283$as_echo_n "checking for a BSD-compatible install... " >&6; }
2284if test -z "$INSTALL"; then
2285if test "${ac_cv_path_install+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
2287else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2299 *)
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2309 :
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2313 :
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2326 fi
2327 fi
2328 fi
2329 done
2330 done
2331 ;;
2332esac
2333
2334 done
2335IFS=$as_save_IFS
2336
2337rm -rf conftest.one conftest.two conftest.dir
2338
2339fi
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2348 fi
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351$as_echo "$INSTALL" >&6; }
2352
2353# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354# It thinks the first close brace ends the variable substitution.
2355test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362$as_echo_n "checking whether build environment is sane... " >&6; }
2363# Just in case
2364sleep 1
2365echo timestamp > conftest.file
2366# Reject unsafe characters in $srcdir or the absolute working directory
2367# name. Accept space and tab only in the latter.
2368am_lf='
2369'
2370case `pwd` in
2371 *[\\\"\#\$\&\'\`$am_lf]*)
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002372 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002373esac
2374case $srcdir in
2375 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002376 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002377esac
2378
2379# Do `set' in a subshell so we don't clobber the current shell's
2380# arguments. Must try -L first in case configure is actually a
2381# symlink; some systems play weird games with the mod time of symlinks
2382# (eg FreeBSD returns the mod time of the symlink's containing
2383# directory).
2384if (
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2389 fi
2390 rm -f conftest.file
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394 # If neither matched, then we have a broken ls. This can happen
2395 # if, for instance, CONFIG_SHELL is bash and it inherits a
2396 # broken ls alias from the environment. This has actually
2397 # happened. Such a system could not be considered "sane".
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002399alias in your environment" "$LINENO" 5
2400 fi
2401
2402 test "$2" = conftest.file
2403 )
2404then
2405 # Ok.
2406 :
2407else
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002408 as_fn_error $? "newly created file is older than distributed files!
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002409Check your system clock" "$LINENO" 5
2410fi
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412$as_echo "yes" >&6; }
2413test "$program_prefix" != NONE &&
2414 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2415# Use a double $ so make ignores it.
2416test "$program_suffix" != NONE &&
2417 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2418# Double any \ or $.
2419# By default was `s,x,x', remove it if useless.
2420ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2422
2423# expand $ac_aux_dir to an absolute path
2424am_aux_dir=`cd $ac_aux_dir && pwd`
2425
2426if test x"${MISSING+set}" != xset; then
2427 case $am_aux_dir in
2428 *\ * | *\ *)
2429 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2430 *)
2431 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2432 esac
2433fi
2434# Use eval to expand $SHELL
2435if eval "$MISSING --run true"; then
2436 am_missing_run="$MISSING --run "
2437else
2438 am_missing_run=
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2440$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2441fi
2442
2443if test x"${install_sh}" != xset; then
2444 case $am_aux_dir in
2445 *\ * | *\ *)
2446 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2447 *)
2448 install_sh="\${SHELL} $am_aux_dir/install-sh"
2449 esac
2450fi
2451
2452# Installed binaries are usually stripped using `strip' when the user
2453# run `make install-strip'. However `strip' might not be the right
2454# tool to use in cross-compilation environments, therefore Automake
2455# will honor the `STRIP' environment variable to overrule this program.
2456if test "$cross_compiling" != no; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459set dummy ${ac_tool_prefix}strip; ac_word=$2
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if test "${ac_cv_prog_STRIP+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
2464else
2465 if test -n "$STRIP"; then
2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479done
2480 done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485STRIP=$ac_cv_prog_STRIP
2486if test -n "$STRIP"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2488$as_echo "$STRIP" >&6; }
2489else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495fi
2496if test -z "$ac_cv_prog_STRIP"; then
2497 ac_ct_STRIP=$STRIP
2498 # Extract the first word of "strip", so it can be a program name with args.
2499set dummy strip; ac_word=$2
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504else
2505 if test -n "$ac_ct_STRIP"; then
2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_STRIP="strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519done
2520 done
2521IFS=$as_save_IFS
2522
2523fi
2524fi
2525ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526if test -n "$ac_ct_STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2528$as_echo "$ac_ct_STRIP" >&6; }
2529else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534 if test "x$ac_ct_STRIP" = x; then
2535 STRIP=":"
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538yes:)
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541ac_tool_warned=yes ;;
2542esac
2543 STRIP=$ac_ct_STRIP
2544 fi
2545else
2546 STRIP="$ac_cv_prog_STRIP"
2547fi
2548
2549fi
2550INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2553$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2554if test -z "$MKDIR_P"; then
2555 if test "${ac_cv_path_mkdir+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_prog in mkdir gmkdir; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2566 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567 'mkdir (GNU coreutils) '* | \
2568 'mkdir (coreutils) '* | \
2569 'mkdir (fileutils) '4.1*)
2570 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2571 break 3;;
2572 esac
2573 done
2574 done
2575 done
2576IFS=$as_save_IFS
2577
2578fi
2579
2580 test -d ./--version && rmdir ./--version
2581 if test "${ac_cv_path_mkdir+set}" = set; then
2582 MKDIR_P="$ac_cv_path_mkdir -p"
2583 else
2584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for MKDIR_P within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
2588 MKDIR_P="$ac_install_sh -d"
2589 fi
2590fi
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2592$as_echo "$MKDIR_P" >&6; }
2593
2594mkdir_p="$MKDIR_P"
2595case $mkdir_p in
2596 [\\/$]* | ?:[\\/]*) ;;
2597 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2598esac
2599
2600for ac_prog in gawk mawk nawk awk
2601do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if test "${ac_cv_prog_AWK+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 if test -n "$AWK"; then
2610 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_AWK="$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623done
2624 done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629AWK=$ac_cv_prog_AWK
2630if test -n "$AWK"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632$as_echo "$AWK" >&6; }
2633else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639 test -n "$AWK" && break
2640done
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002646if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002647 $as_echo_n "(cached) " >&6
2648else
2649 cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652 @echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656 *@@@%%%=?*=@@@%%%*)
2657 eval ac_cv_prog_make_${ac_make}_set=yes;;
2658 *)
2659 eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666 SET_MAKE=
2667else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670 SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673rm -rf .tst 2>/dev/null
2674mkdir .tst 2>/dev/null
2675if test -d .tst; then
2676 am__leading_dot=.
2677else
2678 am__leading_dot=_
2679fi
2680rmdir .tst 2>/dev/null
2681
2682if test "`cd $srcdir && pwd`" != "`pwd`"; then
2683 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2684 # is not polluted with repeated "-I."
2685 am__isrc=' -I$(srcdir)'
2686 # test to see if srcdir already configured
2687 if test -f $srcdir/config.status; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00002688 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002689 fi
2690fi
2691
2692# test whether we have cygpath
2693if test -z "$CYGPATH_W"; then
2694 if (cygpath --version) >/dev/null 2>/dev/null; then
2695 CYGPATH_W='cygpath -w'
2696 else
2697 CYGPATH_W=echo
2698 fi
2699fi
2700
2701
2702# Define the identity of the package.
2703 PACKAGE='sg3_utils'
Douglas Gilbert21fd1552011-08-07 03:10:30 +00002704 VERSION='1.33'
Douglas Gilbert366d25e2010-09-21 03:27:01 +00002705
2706
2707cat >>confdefs.h <<_ACEOF
2708#define PACKAGE "$PACKAGE"
2709_ACEOF
2710
2711
2712cat >>confdefs.h <<_ACEOF
2713#define VERSION "$VERSION"
2714_ACEOF
2715
2716# Some tools Automake needs.
2717
2718ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2719
2720
2721AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2722
2723
2724AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2725
2726
2727AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2728
2729
2730MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2731
2732# We need awk for the "check" target. The system "awk" is bad on
2733# some platforms.
2734# Always define AMTAR for backward compatibility.
2735
2736AMTAR=${AMTAR-"${am_missing_run}tar"}
2737
2738am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2739
2740
2741
2742
2743
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2746$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2747 # Check whether --enable-maintainer-mode was given.
2748if test "${enable_maintainer_mode+set}" = set; then :
2749 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2750else
2751 USE_MAINTAINER_MODE=no
2752fi
2753
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2755$as_echo "$USE_MAINTAINER_MODE" >&6; }
2756 if test $USE_MAINTAINER_MODE = yes; then
2757 MAINTAINER_MODE_TRUE=
2758 MAINTAINER_MODE_FALSE='#'
2759else
2760 MAINTAINER_MODE_TRUE='#'
2761 MAINTAINER_MODE_FALSE=
2762fi
2763
2764 MAINT=$MAINTAINER_MODE_TRUE
2765
2766
2767ac_config_headers="$ac_config_headers config.h"
2768
2769
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if test "${ac_cv_prog_CC+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798 done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806$as_echo "$CC" >&6; }
2807else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813fi
2814if test -z "$ac_cv_prog_CC"; then
2815 ac_ct_CC=$CC
2816 # Extract the first word of "gcc", so it can be a program name with args.
2817set dummy gcc; ac_word=$2
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
2820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2822else
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_CC="gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837done
2838 done
2839IFS=$as_save_IFS
2840
2841fi
2842fi
2843ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844if test -n "$ac_ct_CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846$as_echo "$ac_ct_CC" >&6; }
2847else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849$as_echo "no" >&6; }
2850fi
2851
2852 if test "x$ac_ct_CC" = x; then
2853 CC=""
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856yes:)
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859ac_tool_warned=yes ;;
2860esac
2861 CC=$ac_ct_CC
2862 fi
2863else
2864 CC="$ac_cv_prog_CC"
2865fi
2866
2867if test -z "$CC"; then
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}cc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if test "${ac_cv_prog_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="${ac_tool_prefix}cc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891 done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906 fi
2907fi
2908if test -z "$CC"; then
2909 # Extract the first word of "cc", so it can be a program name with args.
2910set dummy cc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919 ac_prog_rejected=no
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928 ac_prog_rejected=yes
2929 continue
2930 fi
2931 ac_cv_prog_CC="cc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935done
2936 done
2937IFS=$as_save_IFS
2938
2939if test $ac_prog_rejected = yes; then
2940 # We found a bogon in the path, so make sure we never use it.
2941 set dummy $ac_cv_prog_CC
2942 shift
2943 if test $# != 0; then
2944 # We chose a different compiler from the bogus one.
2945 # However, it has the same basename, so the bogon will be chosen
2946 # first if we set CC to just the basename; use the full file name.
2947 shift
2948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2949 fi
2950fi
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956$as_echo "$CC" >&6; }
2957else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989done
2990 done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005 test -n "$CC" && break
3006 done
3007fi
3008if test -z "$CC"; then
3009 ac_ct_CC=$CC
3010 for ac_prog in cl.exe
3011do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018else
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_ac_ct_CC="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033done
3034 done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042$as_echo "$ac_ct_CC" >&6; }
3043else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049 test -n "$ac_ct_CC" && break
3050done
3051
3052 if test "x$ac_ct_CC" = x; then
3053 CC=""
3054 else
3055 case $cross_compiling:$ac_tool_warned in
3056yes:)
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059ac_tool_warned=yes ;;
3060esac
3061 CC=$ac_ct_CC
3062 fi
3063fi
3064
3065fi
3066
3067
3068test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003070as_fn_error $? "no acceptable C compiler found in \$PATH
3071See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003072
3073# Provide some information about the compiler.
3074$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075set X $ac_compile
3076ac_compiler=$2
3077for ac_option in --version -v -V -qversion; do
3078 { { ac_try="$ac_compiler $ac_option >&5"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3086 ac_status=$?
3087 if test -s conftest.err; then
3088 sed '10a\
3089... rest of stderr output deleted ...
3090 10q' conftest.err >conftest.er1
3091 cat conftest.er1 >&5
3092 fi
3093 rm -f conftest.er1 conftest.err
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3096done
3097
3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109ac_clean_files_save=$ac_clean_files
3110ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3111# Try to create an executable without -o first, disregard a.out.
3112# It will help us diagnose broken compilers, and finding out an intuition
3113# of exeext.
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3115$as_echo_n "checking whether the C compiler works... " >&6; }
3116ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118# The possible output files:
3119ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
3121ac_rmfiles=
3122for ac_file in $ac_files
3123do
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127 esac
3128done
3129rm -f $ac_rmfiles
3130
3131if { { ac_try="$ac_link_default"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_link_default") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
3142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144# in a Makefile. We should not override ac_cv_exeext if it was cached,
3145# so that the user can short-circuit this test for compilers unknown to
3146# Autoconf.
3147for ac_file in $ac_files ''
3148do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 ;;
3153 [ab].out )
3154 # We found the default executable, but exeext='' is most
3155 # certainly right.
3156 break;;
3157 *.* )
3158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3159 then :; else
3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 fi
3162 # We set ac_cv_exeext here because the later test for it is not
3163 # safe: cross compilers may not add the suffix if given an `-o'
3164 # argument, so we may need to know it at that point already.
3165 # Even if this section looks crufty: it has the advantage of
3166 # actually working.
3167 break;;
3168 * )
3169 break;;
3170 esac
3171done
3172test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
3174else
3175 ac_file=''
3176fi
3177if test -z "$ac_file"; then :
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180$as_echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003185as_fn_error 77 "C compiler cannot create executables
3186See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003187else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3192$as_echo_n "checking for C compiler default output file name... " >&6; }
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3194$as_echo "$ac_file" >&6; }
3195ac_exeext=$ac_cv_exeext
3196
3197rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3198ac_clean_files=$ac_clean_files_save
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3200$as_echo_n "checking for suffix of executables... " >&6; }
3201if { { ac_try="$ac_link"
3202case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207$as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214# work properly (i.e., refer to `conftest.exe'), while it won't with
3215# `rm'.
3216for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 break;;
3222 * ) break;;
3223 esac
3224done
3225else
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003228as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3229See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003230fi
3231rm -f conftest conftest$ac_cv_exeext
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3233$as_echo "$ac_cv_exeext" >&6; }
3234
3235rm -f conftest.$ac_ext
3236EXEEXT=$ac_cv_exeext
3237ac_exeext=$EXEEXT
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h. */
3240#include <stdio.h>
3241int
3242main ()
3243{
3244FILE *f = fopen ("conftest.out", "w");
3245 return ferror (f) || fclose (f) != 0;
3246
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251ac_clean_files="$ac_clean_files conftest.out"
3252# Check that the compiler produces executables we can run. If not, either
3253# the compiler is broken, or we cross compile.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3255$as_echo_n "checking whether we are cross compiling... " >&6; }
3256if test "$cross_compiling" != yes; then
3257 { { ac_try="$ac_link"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }
3268 if { ac_try='./conftest$ac_cv_exeext'
3269 { { case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274$as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_try") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }; }; then
3279 cross_compiling=no
3280 else
3281 if test "$cross_compiling" = maybe; then
3282 cross_compiling=yes
3283 else
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003286as_fn_error $? "cannot run C compiled programs.
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003287If you meant to cross compile, use \`--host'.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003288See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003289 fi
3290 fi
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293$as_echo "$cross_compiling" >&6; }
3294
3295rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3296ac_clean_files=$ac_clean_files_save
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3298$as_echo_n "checking for suffix of object files... " >&6; }
3299if test "${ac_cv_objext+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3301else
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308
3309 ;
3310 return 0;
3311}
3312_ACEOF
3313rm -f conftest.o conftest.obj
3314if { { ac_try="$ac_compile"
3315case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_compile") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
3333else
3334 $as_echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003339as_fn_error $? "cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003341fi
3342rm -f conftest.$ac_cv_objext conftest.$ac_ext
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3345$as_echo "$ac_cv_objext" >&6; }
3346OBJEXT=$ac_cv_objext
3347ac_objext=$OBJEXT
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3349$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3350if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352else
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355
3356int
3357main ()
3358{
3359#ifndef __GNUC__
3360 choke me
3361#endif
3362
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_compiler_gnu=yes
3369else
3370 ac_compiler_gnu=no
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374
3375fi
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3377$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3378if test $ac_compiler_gnu = yes; then
3379 GCC=yes
3380else
3381 GCC=
3382fi
3383ac_test_CFLAGS=${CFLAGS+set}
3384ac_save_CFLAGS=$CFLAGS
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3386$as_echo_n "checking whether $CC accepts -g... " >&6; }
3387if test "${ac_cv_prog_cc_g+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3389else
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3392 ac_cv_prog_cc_g=no
3393 CFLAGS="-g"
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h. */
3396
3397int
3398main ()
3399{
3400
3401 ;
3402 return 0;
3403}
3404_ACEOF
3405if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_cv_prog_cc_g=yes
3407else
3408 CFLAGS=""
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h. */
3411
3412int
3413main ()
3414{
3415
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421
3422else
3423 ac_c_werror_flag=$ac_save_c_werror_flag
3424 CFLAGS="-g"
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h. */
3427
3428int
3429main ()
3430{
3431
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_prog_cc_g=yes
3438fi
3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_c_werror_flag=$ac_save_c_werror_flag
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3447$as_echo "$ac_cv_prog_cc_g" >&6; }
3448if test "$ac_test_CFLAGS" = set; then
3449 CFLAGS=$ac_save_CFLAGS
3450elif test $ac_cv_prog_cc_g = yes; then
3451 if test "$GCC" = yes; then
3452 CFLAGS="-g -O2"
3453 else
3454 CFLAGS="-g"
3455 fi
3456else
3457 if test "$GCC" = yes; then
3458 CFLAGS="-O2"
3459 else
3460 CFLAGS=
3461 fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3464$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3465if test "${ac_cv_prog_cc_c89+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467else
3468 ac_cv_prog_cc_c89=no
3469ac_save_CC=$CC
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h. */
3472#include <stdarg.h>
3473#include <stdio.h>
3474#include <sys/types.h>
3475#include <sys/stat.h>
3476/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477struct buf { int x; };
3478FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479static char *e (p, i)
3480 char **p;
3481 int i;
3482{
3483 return p[i];
3484}
3485static char *f (char * (*g) (char **, int), char **p, ...)
3486{
3487 char *s;
3488 va_list v;
3489 va_start (v,p);
3490 s = g (p, va_arg (v,int));
3491 va_end (v);
3492 return s;
3493}
3494
3495/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496 function prototypes and stuff, but not '\xHH' hex character constants.
3497 These don't provoke an error unfortunately, instead are silently treated
3498 as 'x'. The following induces an error, until -std is added to get
3499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500 array size at least. It's necessary to write '\x00'==0 to get something
3501 that's true only with -std. */
3502int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505 inside strings and character constants. */
3506#define FOO(x) 'x'
3507int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509int test (int i, double x);
3510struct s1 {int (*f) (int a);};
3511struct s2 {int (*f) (double a);};
3512int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513int argc;
3514char **argv;
3515int
3516main ()
3517{
3518return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525do
3526 CC="$ac_save_CC $ac_arg"
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_c89=$ac_arg
3529fi
3530rm -f core conftest.err conftest.$ac_objext
3531 test "x$ac_cv_prog_cc_c89" != "xno" && break
3532done
3533rm -f conftest.$ac_ext
3534CC=$ac_save_CC
3535
3536fi
3537# AC_CACHE_VAL
3538case "x$ac_cv_prog_cc_c89" in
3539 x)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541$as_echo "none needed" >&6; } ;;
3542 xno)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544$as_echo "unsupported" >&6; } ;;
3545 *)
3546 CC="$CC $ac_cv_prog_cc_c89"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3548$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549esac
3550if test "x$ac_cv_prog_cc_c89" != xno; then :
3551
3552fi
3553
3554ac_ext=c
3555ac_cpp='$CPP $CPPFLAGS'
3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559DEPDIR="${am__leading_dot}deps"
3560
3561ac_config_commands="$ac_config_commands depfiles"
3562
3563
3564am_make=${MAKE-make}
3565cat > confinc << 'END'
3566am__doit:
3567 @echo this is the am__doit target
3568.PHONY: am__doit
3569END
3570# If we don't find an include directive, just comment out the code.
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3572$as_echo_n "checking for style of include used by $am_make... " >&6; }
3573am__include="#"
3574am__quote=
3575_am_result=none
3576# First try GNU make style include.
3577echo "include confinc" > confmf
3578# Ignore all kinds of additional output from `make'.
3579case `$am_make -s -f confmf 2> /dev/null` in #(
3580*the\ am__doit\ target*)
3581 am__include=include
3582 am__quote=
3583 _am_result=GNU
3584 ;;
3585esac
3586# Now try BSD make style include.
3587if test "$am__include" = "#"; then
3588 echo '.include "confinc"' > confmf
3589 case `$am_make -s -f confmf 2> /dev/null` in #(
3590 *the\ am__doit\ target*)
3591 am__include=.include
3592 am__quote="\""
3593 _am_result=BSD
3594 ;;
3595 esac
3596fi
3597
3598
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3600$as_echo "$_am_result" >&6; }
3601rm -f confinc confmf
3602
3603# Check whether --enable-dependency-tracking was given.
3604if test "${enable_dependency_tracking+set}" = set; then :
3605 enableval=$enable_dependency_tracking;
3606fi
3607
3608if test "x$enable_dependency_tracking" != xno; then
3609 am_depcomp="$ac_aux_dir/depcomp"
3610 AMDEPBACKSLASH='\'
3611fi
3612 if test "x$enable_dependency_tracking" != xno; then
3613 AMDEP_TRUE=
3614 AMDEP_FALSE='#'
3615else
3616 AMDEP_TRUE='#'
3617 AMDEP_FALSE=
3618fi
3619
3620
3621
3622depcc="$CC" am_compiler_list=
3623
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3625$as_echo_n "checking dependency style of $depcc... " >&6; }
3626if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628else
3629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3630 # We make a subdir and do the tests there. Otherwise we can end up
3631 # making bogus files that we don't know about and never remove. For
3632 # instance it was reported that on HP-UX the gcc test will end up
3633 # making a dummy file named `D' -- because `-MD' means `put the output
3634 # in D'.
3635 mkdir conftest.dir
3636 # Copy depcomp to subdir because otherwise we won't find it if we're
3637 # using a relative directory.
3638 cp "$am_depcomp" conftest.dir
3639 cd conftest.dir
3640 # We will build objects and dependencies in a subdirectory because
3641 # it helps to detect inapplicable dependency modes. For instance
3642 # both Tru64's cc and ICC support -MD to output dependencies as a
3643 # side effect of compilation, but ICC will put the dependencies in
3644 # the current directory while Tru64 will put them in the object
3645 # directory.
3646 mkdir sub
3647
3648 am_cv_CC_dependencies_compiler_type=none
3649 if test "$am_compiler_list" = ""; then
3650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3651 fi
3652 am__universal=false
3653 case " $depcc " in #(
3654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3655 esac
3656
3657 for depmode in $am_compiler_list; do
3658 # Setup a source with many dependencies, because some compilers
3659 # like to wrap large dependency lists on column 80 (with \), and
3660 # we should not choose a depcomp mode which is confused by this.
3661 #
3662 # We need to recreate these files for each test, as the compiler may
3663 # overwrite some of them when testing with obscure command lines.
3664 # This happens at least with the AIX C compiler.
3665 : > sub/conftest.c
3666 for i in 1 2 3 4 5 6; do
3667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3669 # Solaris 8's {/usr,}/bin/sh.
3670 touch sub/conftst$i.h
3671 done
3672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3673
3674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675 # mode. It turns out that the SunPro C++ compiler does not properly
3676 # handle `-M -o', and we need to detect this. Also, some Intel
3677 # versions had trouble with output in subdirs
3678 am__obj=sub/conftest.${OBJEXT-o}
3679 am__minus_obj="-o $am__obj"
3680 case $depmode in
3681 gcc)
3682 # This depmode causes a compiler race in universal mode.
3683 test "$am__universal" = false || continue
3684 ;;
3685 nosideeffect)
3686 # after this tag, mechanisms are not by side-effect, so they'll
3687 # only be used when explicitly requested
3688 if test "x$enable_dependency_tracking" = xyes; then
3689 continue
3690 else
3691 break
3692 fi
3693 ;;
3694 msvisualcpp | msvcmsys)
3695 # This compiler won't grok `-c -o', but also, the minuso test has
3696 # not run yet. These depmodes are late enough in the game, and
3697 # so weak that their functioning should not be impacted.
3698 am__obj=conftest.${OBJEXT-o}
3699 am__minus_obj=
3700 ;;
3701 none) break ;;
3702 esac
3703 if depmode=$depmode \
3704 source=sub/conftest.c object=$am__obj \
3705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3707 >/dev/null 2>conftest.err &&
3708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712 # icc doesn't choke on unknown options, it will just issue warnings
3713 # or remarks (even with -Werror). So we grep stderr for any message
3714 # that says an option was ignored or not supported.
3715 # When given -MP, icc 7.0 and 7.1 complain thusly:
3716 # icc: Command line warning: ignoring option '-M'; no argument required
3717 # The diagnosis changed in icc 8.0:
3718 # icc: Command line remark: option '-MP' not supported
3719 if (grep 'ignoring option' conftest.err ||
3720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721 am_cv_CC_dependencies_compiler_type=$depmode
3722 break
3723 fi
3724 fi
3725 done
3726
3727 cd ..
3728 rm -rf conftest.dir
3729else
3730 am_cv_CC_dependencies_compiler_type=none
3731fi
3732
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3735$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3737
3738 if
3739 test "x$enable_dependency_tracking" != xno \
3740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741 am__fastdepCC_TRUE=
3742 am__fastdepCC_FALSE='#'
3743else
3744 am__fastdepCC_TRUE='#'
3745 am__fastdepCC_FALSE=
3746fi
3747
3748
3749# AC_PROG_CXX
3750
3751
3752# Adding libtools to the build seems to bring in C++ environment
3753case `pwd` in
3754 *\ * | *\ *)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3756$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3757esac
3758
3759
3760
3761macro_version='2.2.6b'
3762macro_revision='1.3017'
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776ltmain="$ac_aux_dir/ltmain.sh"
3777
3778# Make sure we can run config.sub.
3779$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003780 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003781
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3783$as_echo_n "checking build system type... " >&6; }
3784if test "${ac_cv_build+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786else
3787 ac_build_alias=$build_alias
3788test "x$ac_build_alias" = x &&
3789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3790test "x$ac_build_alias" = x &&
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003791 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003792ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003794
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3797$as_echo "$ac_cv_build" >&6; }
3798case $ac_cv_build in
3799*-*-*) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003800*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003801esac
3802build=$ac_cv_build
3803ac_save_IFS=$IFS; IFS='-'
3804set x $ac_cv_build
3805shift
3806build_cpu=$1
3807build_vendor=$2
3808shift; shift
3809# Remember, the first character of IFS is used to create $*,
3810# except with old shells:
3811build_os=$*
3812IFS=$ac_save_IFS
3813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3814
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3817$as_echo_n "checking host system type... " >&6; }
3818if test "${ac_cv_host+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820else
3821 if test "x$host_alias" = x; then
3822 ac_cv_host=$ac_cv_build
3823else
3824 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003826fi
3827
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3830$as_echo "$ac_cv_host" >&6; }
3831case $ac_cv_host in
3832*-*-*) ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003833*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003834esac
3835host=$ac_cv_host
3836ac_save_IFS=$IFS; IFS='-'
3837set x $ac_cv_host
3838shift
3839host_cpu=$1
3840host_vendor=$2
3841shift; shift
3842# Remember, the first character of IFS is used to create $*,
3843# except with old shells:
3844host_os=$*
3845IFS=$ac_save_IFS
3846case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3847
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3850$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3851if test "${ac_cv_path_SED+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853else
3854 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3855 for ac_i in 1 2 3 4 5 6 7; do
3856 ac_script="$ac_script$as_nl$ac_script"
3857 done
3858 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3859 { ac_script=; unset ac_script;}
3860 if test -z "$SED"; then
3861 ac_path_SED_found=false
3862 # Loop through the user's path and test for each of PROGNAME-LIST
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in sed gsed; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3871 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3872# Check for GNU ac_path_SED and select it if it is found.
3873 # Check for GNU $ac_path_SED
3874case `"$ac_path_SED" --version 2>&1` in
3875*GNU*)
3876 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3877*)
3878 ac_count=0
3879 $as_echo_n 0123456789 >"conftest.in"
3880 while :
3881 do
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 $as_echo '' >> "conftest.nl"
3886 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 as_fn_arith $ac_count + 1 && ac_count=$as_val
3889 if test $ac_count -gt ${ac_path_SED_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_SED="$ac_path_SED"
3892 ac_path_SED_max=$ac_count
3893 fi
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3896 done
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898esac
3899
3900 $ac_path_SED_found && break 3
3901 done
3902 done
3903 done
3904IFS=$as_save_IFS
3905 if test -z "$ac_cv_path_SED"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003906 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003907 fi
3908else
3909 ac_cv_path_SED=$SED
3910fi
3911
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3914$as_echo "$ac_cv_path_SED" >&6; }
3915 SED="$ac_cv_path_SED"
3916 rm -f conftest.sed
3917
3918test -z "$SED" && SED=sed
3919Xsed="$SED -e 1s/^X//"
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3932$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3933if test "${ac_cv_path_GREP+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 if test -z "$GREP"; then
3937 ac_path_GREP_found=false
3938 # Loop through the user's path and test for each of PROGNAME-LIST
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_prog in grep ggrep; do
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3947 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3948# Check for GNU ac_path_GREP and select it if it is found.
3949 # Check for GNU $ac_path_GREP
3950case `"$ac_path_GREP" --version 2>&1` in
3951*GNU*)
3952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3953*)
3954 ac_count=0
3955 $as_echo_n 0123456789 >"conftest.in"
3956 while :
3957 do
3958 cat "conftest.in" "conftest.in" >"conftest.tmp"
3959 mv "conftest.tmp" "conftest.in"
3960 cp "conftest.in" "conftest.nl"
3961 $as_echo 'GREP' >> "conftest.nl"
3962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964 as_fn_arith $ac_count + 1 && ac_count=$as_val
3965 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3966 # Best one so far, save it but keep looking for a better one
3967 ac_cv_path_GREP="$ac_path_GREP"
3968 ac_path_GREP_max=$ac_count
3969 fi
3970 # 10*(2^10) chars as input seems more than enough
3971 test $ac_count -gt 10 && break
3972 done
3973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974esac
3975
3976 $ac_path_GREP_found && break 3
3977 done
3978 done
3979 done
3980IFS=$as_save_IFS
3981 if test -z "$ac_cv_path_GREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00003982 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00003983 fi
3984else
3985 ac_cv_path_GREP=$GREP
3986fi
3987
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3990$as_echo "$ac_cv_path_GREP" >&6; }
3991 GREP="$ac_cv_path_GREP"
3992
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3995$as_echo_n "checking for egrep... " >&6; }
3996if test "${ac_cv_path_EGREP+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4000 then ac_cv_path_EGREP="$GREP -E"
4001 else
4002 if test -z "$EGREP"; then
4003 ac_path_EGREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4014# Check for GNU ac_path_EGREP and select it if it is found.
4015 # Check for GNU $ac_path_EGREP
4016case `"$ac_path_EGREP" --version 2>&1` in
4017*GNU*)
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019*)
4020 ac_count=0
4021 $as_echo_n 0123456789 >"conftest.in"
4022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 $as_echo 'EGREP' >> "conftest.nl"
4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 as_fn_arith $ac_count + 1 && ac_count=$as_val
4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040esac
4041
4042 $ac_path_EGREP_found && break 3
4043 done
4044 done
4045 done
4046IFS=$as_save_IFS
4047 if test -z "$ac_cv_path_EGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004048 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004049 fi
4050else
4051 ac_cv_path_EGREP=$EGREP
4052fi
4053
4054 fi
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4057$as_echo "$ac_cv_path_EGREP" >&6; }
4058 EGREP="$ac_cv_path_EGREP"
4059
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4062$as_echo_n "checking for fgrep... " >&6; }
4063if test "${ac_cv_path_FGREP+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065else
4066 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4067 then ac_cv_path_FGREP="$GREP -F"
4068 else
4069 if test -z "$FGREP"; then
4070 ac_path_FGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in fgrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4081# Check for GNU ac_path_FGREP and select it if it is found.
4082 # Check for GNU $ac_path_FGREP
4083case `"$ac_path_FGREP" --version 2>&1` in
4084*GNU*)
4085 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4086*)
4087 ac_count=0
4088 $as_echo_n 0123456789 >"conftest.in"
4089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 $as_echo 'FGREP' >> "conftest.nl"
4095 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 as_fn_arith $ac_count + 1 && ac_count=$as_val
4098 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_FGREP="$ac_path_FGREP"
4101 ac_path_FGREP_max=$ac_count
4102 fi
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107esac
4108
4109 $ac_path_FGREP_found && break 3
4110 done
4111 done
4112 done
4113IFS=$as_save_IFS
4114 if test -z "$ac_cv_path_FGREP"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004115 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004116 fi
4117else
4118 ac_cv_path_FGREP=$FGREP
4119fi
4120
4121 fi
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4124$as_echo "$ac_cv_path_FGREP" >&6; }
4125 FGREP="$ac_cv_path_FGREP"
4126
4127
4128test -z "$GREP" && GREP=grep
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148# Check whether --with-gnu-ld was given.
4149if test "${with_gnu_ld+set}" = set; then :
4150 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4151else
4152 with_gnu_ld=no
4153fi
4154
4155ac_prog=ld
4156if test "$GCC" = yes; then
4157 # Check if gcc -print-prog-name=ld gives a path.
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4159$as_echo_n "checking for ld used by $CC... " >&6; }
4160 case $host in
4161 *-*-mingw*)
4162 # gcc leaves a trailing carriage return which upsets mingw
4163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4164 *)
4165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4166 esac
4167 case $ac_prog in
4168 # Accept absolute paths.
4169 [\\/]* | ?:[\\/]*)
4170 re_direlt='/[^/][^/]*/\.\./'
4171 # Canonicalize the pathname of ld
4172 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4173 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4174 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4175 done
4176 test -z "$LD" && LD="$ac_prog"
4177 ;;
4178 "")
4179 # If it fails, then pretend we aren't using GCC.
4180 ac_prog=ld
4181 ;;
4182 *)
4183 # If it is relative, then search for the first ld in PATH.
4184 with_gnu_ld=unknown
4185 ;;
4186 esac
4187elif test "$with_gnu_ld" = yes; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4189$as_echo_n "checking for GNU ld... " >&6; }
4190else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4192$as_echo_n "checking for non-GNU ld... " >&6; }
4193fi
4194if test "${lt_cv_path_LD+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 if test -z "$LD"; then
4198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4199 for ac_dir in $PATH; do
4200 IFS="$lt_save_ifs"
4201 test -z "$ac_dir" && ac_dir=.
4202 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4203 lt_cv_path_LD="$ac_dir/$ac_prog"
4204 # Check to see if the program is GNU ld. I'd rather use --version,
4205 # but apparently some variants of GNU ld only accept -v.
4206 # Break only if it was the GNU/non-GNU ld that we prefer.
4207 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4208 *GNU* | *'with BFD'*)
4209 test "$with_gnu_ld" != no && break
4210 ;;
4211 *)
4212 test "$with_gnu_ld" != yes && break
4213 ;;
4214 esac
4215 fi
4216 done
4217 IFS="$lt_save_ifs"
4218else
4219 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4220fi
4221fi
4222
4223LD="$lt_cv_path_LD"
4224if test -n "$LD"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4226$as_echo "$LD" >&6; }
4227else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004231test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4233$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4234if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4238case `$LD -v 2>&1 </dev/null` in
4239*GNU* | *'with BFD'*)
4240 lt_cv_prog_gnu_ld=yes
4241 ;;
4242*)
4243 lt_cv_prog_gnu_ld=no
4244 ;;
4245esac
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4248$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4249with_gnu_ld=$lt_cv_prog_gnu_ld
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4260$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4261if test "${lt_cv_path_NM+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263else
4264 if test -n "$NM"; then
4265 # Let the user override the test.
4266 lt_cv_path_NM="$NM"
4267else
4268 lt_nm_to_check="${ac_tool_prefix}nm"
4269 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4270 lt_nm_to_check="$lt_nm_to_check nm"
4271 fi
4272 for lt_tmp_nm in $lt_nm_to_check; do
4273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4274 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4275 IFS="$lt_save_ifs"
4276 test -z "$ac_dir" && ac_dir=.
4277 tmp_nm="$ac_dir/$lt_tmp_nm"
4278 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4279 # Check to see if the nm accepts a BSD-compat flag.
4280 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4281 # nm: unknown option "B" ignored
4282 # Tru64's nm complains that /dev/null is an invalid object file
4283 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4284 */dev/null* | *'Invalid file or object type'*)
4285 lt_cv_path_NM="$tmp_nm -B"
4286 break
4287 ;;
4288 *)
4289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4290 */dev/null*)
4291 lt_cv_path_NM="$tmp_nm -p"
4292 break
4293 ;;
4294 *)
4295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4296 continue # so that we can try to find one that supports BSD flags
4297 ;;
4298 esac
4299 ;;
4300 esac
4301 fi
4302 done
4303 IFS="$lt_save_ifs"
4304 done
4305 : ${lt_cv_path_NM=no}
4306fi
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4309$as_echo "$lt_cv_path_NM" >&6; }
4310if test "$lt_cv_path_NM" != "no"; then
4311 NM="$lt_cv_path_NM"
4312else
4313 # Didn't find any BSD compatible name lister, look for dumpbin.
4314 if test -n "$ac_tool_prefix"; then
4315 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4316 do
4317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320$as_echo_n "checking for $ac_word... " >&6; }
4321if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323else
4324 if test -n "$DUMPBIN"; then
4325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339 done
4340IFS=$as_save_IFS
4341
4342fi
4343fi
4344DUMPBIN=$ac_cv_prog_DUMPBIN
4345if test -n "$DUMPBIN"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4347$as_echo "$DUMPBIN" >&6; }
4348else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
4351fi
4352
4353
4354 test -n "$DUMPBIN" && break
4355 done
4356fi
4357if test -z "$DUMPBIN"; then
4358 ac_ct_DUMPBIN=$DUMPBIN
4359 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4360do
4361 # Extract the first word of "$ac_prog", so it can be a program name with args.
4362set dummy $ac_prog; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$ac_ct_DUMPBIN"; then
4369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383 done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4389if test -n "$ac_ct_DUMPBIN"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4391$as_echo "$ac_ct_DUMPBIN" >&6; }
4392else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398 test -n "$ac_ct_DUMPBIN" && break
4399done
4400
4401 if test "x$ac_ct_DUMPBIN" = x; then
4402 DUMPBIN=":"
4403 else
4404 case $cross_compiling:$ac_tool_warned in
4405yes:)
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408ac_tool_warned=yes ;;
4409esac
4410 DUMPBIN=$ac_ct_DUMPBIN
4411 fi
4412fi
4413
4414
4415 if test "$DUMPBIN" != ":"; then
4416 NM="$DUMPBIN"
4417 fi
4418fi
4419test -z "$NM" && NM=nm
4420
4421
4422
4423
4424
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4427$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4428if test "${lt_cv_nm_interface+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 lt_cv_nm_interface="BSD nm"
4432 echo "int some_variable = 0;" > conftest.$ac_ext
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004433 (eval echo "\"\$as_me:4433: $ac_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004434 (eval "$ac_compile" 2>conftest.err)
4435 cat conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004436 (eval echo "\"\$as_me:4436: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004437 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4438 cat conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00004439 (eval echo "\"\$as_me:4439: output\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00004440 cat conftest.out >&5
4441 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4442 lt_cv_nm_interface="MS dumpbin"
4443 fi
4444 rm -f conftest*
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4447$as_echo "$lt_cv_nm_interface" >&6; }
4448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4450$as_echo_n "checking whether ln -s works... " >&6; }
4451LN_S=$as_ln_s
4452if test "$LN_S" = "ln -s"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454$as_echo "yes" >&6; }
4455else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4457$as_echo "no, using $LN_S" >&6; }
4458fi
4459
4460# find the maximum length of command line arguments
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4462$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4463if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 i=0
4467 teststring="ABCD"
4468
4469 case $build_os in
4470 msdosdjgpp*)
4471 # On DJGPP, this test can blow up pretty badly due to problems in libc
4472 # (any single argument exceeding 2000 bytes causes a buffer overrun
4473 # during glob expansion). Even if it were fixed, the result of this
4474 # check would be larger than it should be.
4475 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4476 ;;
4477
4478 gnu*)
4479 # Under GNU Hurd, this test is not required because there is
4480 # no limit to the length of command line arguments.
4481 # Libtool will interpret -1 as no limit whatsoever
4482 lt_cv_sys_max_cmd_len=-1;
4483 ;;
4484
4485 cygwin* | mingw* | cegcc*)
4486 # On Win9x/ME, this test blows up -- it succeeds, but takes
4487 # about 5 minutes as the teststring grows exponentially.
4488 # Worse, since 9x/ME are not pre-emptively multitasking,
4489 # you end up with a "frozen" computer, even though with patience
4490 # the test eventually succeeds (with a max line length of 256k).
4491 # Instead, let's just punt: use the minimum linelength reported by
4492 # all of the supported platforms: 8192 (on NT/2K/XP).
4493 lt_cv_sys_max_cmd_len=8192;
4494 ;;
4495
4496 amigaos*)
4497 # On AmigaOS with pdksh, this test takes hours, literally.
4498 # So we just punt and use a minimum line length of 8192.
4499 lt_cv_sys_max_cmd_len=8192;
4500 ;;
4501
4502 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4503 # This has been around since 386BSD, at least. Likely further.
4504 if test -x /sbin/sysctl; then
4505 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4506 elif test -x /usr/sbin/sysctl; then
4507 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4508 else
4509 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4510 fi
4511 # And add a safety zone
4512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4514 ;;
4515
4516 interix*)
4517 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4518 lt_cv_sys_max_cmd_len=196608
4519 ;;
4520
4521 osf*)
4522 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4523 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4524 # nice to cause kernel panics so lets avoid the loop below.
4525 # First set a reasonable default.
4526 lt_cv_sys_max_cmd_len=16384
4527 #
4528 if test -x /sbin/sysconfig; then
4529 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4530 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4531 esac
4532 fi
4533 ;;
4534 sco3.2v5*)
4535 lt_cv_sys_max_cmd_len=102400
4536 ;;
4537 sysv5* | sco5v6* | sysv4.2uw2*)
4538 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4539 if test -n "$kargmax"; then
4540 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4541 else
4542 lt_cv_sys_max_cmd_len=32768
4543 fi
4544 ;;
4545 *)
4546 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4547 if test -n "$lt_cv_sys_max_cmd_len"; then
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4550 else
4551 # Make teststring a little bigger before we do anything with it.
4552 # a 1K string should be a reasonable start.
4553 for i in 1 2 3 4 5 6 7 8 ; do
4554 teststring=$teststring$teststring
4555 done
4556 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4557 # If test is not a shell built-in, we'll probably end up computing a
4558 # maximum length that is only half of the actual maximum length, but
4559 # we can't tell.
4560 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4561 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4562 test $i != 17 # 1/2 MB should be enough
4563 do
4564 i=`expr $i + 1`
4565 teststring=$teststring$teststring
4566 done
4567 # Only check the string length outside the loop.
4568 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4569 teststring=
4570 # Add a significant safety factor because C++ compilers can tack on
4571 # massive amounts of additional arguments before passing them to the
4572 # linker. It appears as though 1/2 is a usable value.
4573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4574 fi
4575 ;;
4576 esac
4577
4578fi
4579
4580if test -n $lt_cv_sys_max_cmd_len ; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4582$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4583else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4585$as_echo "none" >&6; }
4586fi
4587max_cmd_len=$lt_cv_sys_max_cmd_len
4588
4589
4590
4591
4592
4593
4594: ${CP="cp -f"}
4595: ${MV="mv -f"}
4596: ${RM="rm -f"}
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4599$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4600# Try some XSI features
4601xsi_shell=no
4602( _lt_dummy="a/b/c"
4603 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4604 = c,a/b,, \
4605 && eval 'test $(( 1 + 1 )) -eq 2 \
4606 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4607 && xsi_shell=yes
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4609$as_echo "$xsi_shell" >&6; }
4610
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4613$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4614lt_shell_append=no
4615( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4616 >/dev/null 2>&1 \
4617 && lt_shell_append=yes
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4619$as_echo "$lt_shell_append" >&6; }
4620
4621
4622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4623 lt_unset=unset
4624else
4625 lt_unset=false
4626fi
4627
4628
4629
4630
4631
4632# test EBCDIC or ASCII
4633case `echo X|tr X '\101'` in
4634 A) # ASCII based system
4635 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4636 lt_SP2NL='tr \040 \012'
4637 lt_NL2SP='tr \015\012 \040\040'
4638 ;;
4639 *) # EBCDIC based system
4640 lt_SP2NL='tr \100 \n'
4641 lt_NL2SP='tr \r\n \100\100'
4642 ;;
4643esac
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4654$as_echo_n "checking for $LD option to reload object files... " >&6; }
4655if test "${lt_cv_ld_reload_flag+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657else
4658 lt_cv_ld_reload_flag='-r'
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4661$as_echo "$lt_cv_ld_reload_flag" >&6; }
4662reload_flag=$lt_cv_ld_reload_flag
4663case $reload_flag in
4664"" | " "*) ;;
4665*) reload_flag=" $reload_flag" ;;
4666esac
4667reload_cmds='$LD$reload_flag -o $output$reload_objs'
4668case $host_os in
4669 darwin*)
4670 if test "$GCC" = yes; then
4671 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4672 else
4673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4674 fi
4675 ;;
4676esac
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}objdump; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$OBJDUMP"; then
4695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714OBJDUMP=$ac_cv_prog_OBJDUMP
4715if test -n "$OBJDUMP"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4717$as_echo "$OBJDUMP" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$ac_cv_prog_OBJDUMP"; then
4726 ac_ct_OBJDUMP=$OBJDUMP
4727 # Extract the first word of "objdump", so it can be a program name with args.
4728set dummy objdump; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733else
4734 if test -n "$ac_ct_OBJDUMP"; then
4735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749 done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4755if test -n "$ac_ct_OBJDUMP"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4757$as_echo "$ac_ct_OBJDUMP" >&6; }
4758else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763 if test "x$ac_ct_OBJDUMP" = x; then
4764 OBJDUMP="false"
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772 OBJDUMP=$ac_ct_OBJDUMP
4773 fi
4774else
4775 OBJDUMP="$ac_cv_prog_OBJDUMP"
4776fi
4777
4778test -z "$OBJDUMP" && OBJDUMP=objdump
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4789$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4790if test "${lt_cv_deplibs_check_method+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792else
4793 lt_cv_file_magic_cmd='$MAGIC_CMD'
4794lt_cv_file_magic_test_file=
4795lt_cv_deplibs_check_method='unknown'
4796# Need to set the preceding variable on all platforms that support
4797# interlibrary dependencies.
4798# 'none' -- dependencies not supported.
4799# `unknown' -- same as none, but documents that we really don't know.
4800# 'pass_all' -- all dependencies passed with no checks.
4801# 'test_compile' -- check by making test program.
4802# 'file_magic [[regex]]' -- check by looking for files in library path
4803# which responds to the $file_magic_cmd with a given extended regex.
4804# If you have `file' or equivalent on your system and you're not sure
4805# whether `pass_all' will *always* work, you probably want this one.
4806
4807case $host_os in
4808aix[4-9]*)
4809 lt_cv_deplibs_check_method=pass_all
4810 ;;
4811
4812beos*)
4813 lt_cv_deplibs_check_method=pass_all
4814 ;;
4815
4816bsdi[45]*)
4817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818 lt_cv_file_magic_cmd='/usr/bin/file -L'
4819 lt_cv_file_magic_test_file=/shlib/libc.so
4820 ;;
4821
4822cygwin*)
4823 # func_win32_libid is a shell function defined in ltmain.sh
4824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825 lt_cv_file_magic_cmd='func_win32_libid'
4826 ;;
4827
4828mingw* | pw32*)
4829 # Base MSYS/MinGW do not provide the 'file' command needed by
4830 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4831 # unless we find 'file', for example because we are cross-compiling.
4832 if ( file / ) >/dev/null 2>&1; then
4833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4834 lt_cv_file_magic_cmd='func_win32_libid'
4835 else
4836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4837 lt_cv_file_magic_cmd='$OBJDUMP -f'
4838 fi
4839 ;;
4840
4841cegcc)
4842 # use the weaker test based on 'objdump'. See mingw*.
4843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4844 lt_cv_file_magic_cmd='$OBJDUMP -f'
4845 ;;
4846
4847darwin* | rhapsody*)
4848 lt_cv_deplibs_check_method=pass_all
4849 ;;
4850
4851freebsd* | dragonfly*)
4852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4853 case $host_cpu in
4854 i*86 )
4855 # Not sure whether the presence of OpenBSD here was a mistake.
4856 # Let's accept both of them until this is cleared up.
4857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4858 lt_cv_file_magic_cmd=/usr/bin/file
4859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4860 ;;
4861 esac
4862 else
4863 lt_cv_deplibs_check_method=pass_all
4864 fi
4865 ;;
4866
4867gnu*)
4868 lt_cv_deplibs_check_method=pass_all
4869 ;;
4870
4871hpux10.20* | hpux11*)
4872 lt_cv_file_magic_cmd=/usr/bin/file
4873 case $host_cpu in
4874 ia64*)
4875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4876 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4877 ;;
4878 hppa*64*)
4879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4880 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4881 ;;
4882 *)
4883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4884 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4885 ;;
4886 esac
4887 ;;
4888
4889interix[3-9]*)
4890 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4892 ;;
4893
4894irix5* | irix6* | nonstopux*)
4895 case $LD in
4896 *-32|*"-32 ") libmagic=32-bit;;
4897 *-n32|*"-n32 ") libmagic=N32;;
4898 *-64|*"-64 ") libmagic=64-bit;;
4899 *) libmagic=never-match;;
4900 esac
4901 lt_cv_deplibs_check_method=pass_all
4902 ;;
4903
4904# This must be Linux ELF.
4905linux* | k*bsd*-gnu | kopensolaris*-gnu)
4906 lt_cv_deplibs_check_method=pass_all
4907 ;;
4908
4909netbsd* | netbsdelf*-gnu)
4910 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4912 else
4913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4914 fi
4915 ;;
4916
4917newos6*)
4918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4919 lt_cv_file_magic_cmd=/usr/bin/file
4920 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4921 ;;
4922
4923*nto* | *qnx*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927openbsd*)
4928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4930 else
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4932 fi
4933 ;;
4934
4935osf3* | osf4* | osf5*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939rdos*)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942
4943solaris*)
4944 lt_cv_deplibs_check_method=pass_all
4945 ;;
4946
4947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4948 lt_cv_deplibs_check_method=pass_all
4949 ;;
4950
4951sysv4 | sysv4.3*)
4952 case $host_vendor in
4953 motorola)
4954 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]'
4955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4956 ;;
4957 ncr)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960 sequent)
4961 lt_cv_file_magic_cmd='/bin/file'
4962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4963 ;;
4964 sni)
4965 lt_cv_file_magic_cmd='/bin/file'
4966 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4967 lt_cv_file_magic_test_file=/lib/libc.so
4968 ;;
4969 siemens)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972 pc)
4973 lt_cv_deplibs_check_method=pass_all
4974 ;;
4975 esac
4976 ;;
4977
4978tpf*)
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981esac
4982
4983fi
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4985$as_echo "$lt_cv_deplibs_check_method" >&6; }
4986file_magic_cmd=$lt_cv_file_magic_cmd
4987deplibs_check_method=$lt_cv_deplibs_check_method
4988test -z "$deplibs_check_method" && deplibs_check_method=unknown
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}ar; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_AR+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008else
5009 if test -n "$AR"; then
5010 ac_cv_prog_AR="$AR" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_AR="${ac_tool_prefix}ar"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023done
5024 done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029AR=$ac_cv_prog_AR
5030if test -n "$AR"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5032$as_echo "$AR" >&6; }
5033else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039fi
5040if test -z "$ac_cv_prog_AR"; then
5041 ac_ct_AR=$AR
5042 # Extract the first word of "ar", so it can be a program name with args.
5043set dummy ar; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 if test -n "$ac_ct_AR"; then
5050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_AR="ar"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063done
5064 done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069ac_ct_AR=$ac_cv_prog_ac_ct_AR
5070if test -n "$ac_ct_AR"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5072$as_echo "$ac_ct_AR" >&6; }
5073else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078 if test "x$ac_ct_AR" = x; then
5079 AR="false"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087 AR=$ac_ct_AR
5088 fi
5089else
5090 AR="$ac_cv_prog_AR"
5091fi
5092
5093test -z "$AR" && AR=ar
5094test -z "$AR_FLAGS" && AR_FLAGS=cru
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106if test -n "$ac_tool_prefix"; then
5107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5108set dummy ${ac_tool_prefix}strip; ac_word=$2
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
5111if test "${ac_cv_prog_STRIP+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113else
5114 if test -n "$STRIP"; then
5115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128done
5129 done
5130IFS=$as_save_IFS
5131
5132fi
5133fi
5134STRIP=$ac_cv_prog_STRIP
5135if test -n "$STRIP"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5137$as_echo "$STRIP" >&6; }
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142
5143
5144fi
5145if test -z "$ac_cv_prog_STRIP"; then
5146 ac_ct_STRIP=$STRIP
5147 # Extract the first word of "strip", so it can be a program name with args.
5148set dummy strip; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 if test -n "$ac_ct_STRIP"; then
5155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_ac_ct_STRIP="strip"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169 done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5175if test -n "$ac_ct_STRIP"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5177$as_echo "$ac_ct_STRIP" >&6; }
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183 if test "x$ac_ct_STRIP" = x; then
5184 STRIP=":"
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187yes:)
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190ac_tool_warned=yes ;;
5191esac
5192 STRIP=$ac_ct_STRIP
5193 fi
5194else
5195 STRIP="$ac_cv_prog_STRIP"
5196fi
5197
5198test -z "$STRIP" && STRIP=:
5199
5200
5201
5202
5203
5204
5205if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5207set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if test "${ac_cv_prog_RANLIB+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 if test -n "$RANLIB"; then
5214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227done
5228 done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233RANLIB=$ac_cv_prog_RANLIB
5234if test -n "$RANLIB"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5236$as_echo "$RANLIB" >&6; }
5237else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$ac_cv_prog_RANLIB"; then
5245 ac_ct_RANLIB=$RANLIB
5246 # Extract the first word of "ranlib", so it can be a program name with args.
5247set dummy ranlib; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252else
5253 if test -n "$ac_ct_RANLIB"; then
5254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_RANLIB="ranlib"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268 done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5274if test -n "$ac_ct_RANLIB"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5276$as_echo "$ac_ct_RANLIB" >&6; }
5277else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282 if test "x$ac_ct_RANLIB" = x; then
5283 RANLIB=":"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291 RANLIB=$ac_ct_RANLIB
5292 fi
5293else
5294 RANLIB="$ac_cv_prog_RANLIB"
5295fi
5296
5297test -z "$RANLIB" && RANLIB=:
5298
5299
5300
5301
5302
5303
5304# Determine commands to create old-style static archives.
5305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5306old_postinstall_cmds='chmod 644 $oldlib'
5307old_postuninstall_cmds=
5308
5309if test -n "$RANLIB"; then
5310 case $host_os in
5311 openbsd*)
5312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5313 ;;
5314 *)
5315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5316 ;;
5317 esac
5318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5319fi
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354# If no C compiler was specified, use CC.
5355LTCC=${LTCC-"$CC"}
5356
5357# If no C compiler flags were specified, use CFLAGS.
5358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5359
5360# Allow CC to be a program name with arguments.
5361compiler=$CC
5362
5363
5364# Check for command to grab the raw symbol name followed by C symbol from nm.
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5367if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369else
5370
5371# These are sane defaults that work on at least a few old systems.
5372# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5373
5374# Character class describing NM global symbol codes.
5375symcode='[BCDEGRST]'
5376
5377# Regexp to match symbols that can be accessed directly from C.
5378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5379
5380# Define system-specific variables.
5381case $host_os in
5382aix*)
5383 symcode='[BCDT]'
5384 ;;
5385cygwin* | mingw* | pw32* | cegcc*)
5386 symcode='[ABCDGISTW]'
5387 ;;
5388hpux*)
5389 if test "$host_cpu" = ia64; then
5390 symcode='[ABCDEGRST]'
5391 fi
5392 ;;
5393irix* | nonstopux*)
5394 symcode='[BCDEGRST]'
5395 ;;
5396osf*)
5397 symcode='[BCDEGQRST]'
5398 ;;
5399solaris*)
5400 symcode='[BDRT]'
5401 ;;
5402sco3.2v5*)
5403 symcode='[DT]'
5404 ;;
5405sysv4.2uw2*)
5406 symcode='[DT]'
5407 ;;
5408sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409 symcode='[ABDT]'
5410 ;;
5411sysv4)
5412 symcode='[DFNSTU]'
5413 ;;
5414esac
5415
5416# If we're using GNU nm, then use its standard symbol codes.
5417case `$NM -V 2>&1` in
5418*GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5420esac
5421
5422# Transform an extracted symbol line into a proper C declaration.
5423# Some systems (esp. on ia64) link data and code symbols differently,
5424# so use this general approach.
5425lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5426
5427# Transform an extracted symbol line into symbol name and symbol address
5428lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5429lt_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'"
5430
5431# Handle CRLF in mingw tool chain
5432opt_cr=
5433case $build_os in
5434mingw*)
5435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5436 ;;
5437esac
5438
5439# Try without a prefix underscore, then with it.
5440for ac_symprfx in "" "_"; do
5441
5442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5443 symxfrm="\\1 $ac_symprfx\\2 \\2"
5444
5445 # Write the raw and C identifiers.
5446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5447 # Fake it for dumpbin and say T for any non-static function
5448 # and D for any global variable.
5449 # Also find C++ and __fastcall symbols from MSVC++,
5450 # which start with @ or ?.
5451 lt_cv_sys_global_symbol_pipe="$AWK '"\
5452" {last_section=section; section=\$ 3};"\
5453" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5454" \$ 0!~/External *\|/{next};"\
5455" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5456" {if(hide[section]) next};"\
5457" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5458" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5459" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5460" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5461" ' prfx=^$ac_symprfx"
5462 else
5463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5464 fi
5465
5466 # Check to see that the pipe works correctly.
5467 pipe_works=no
5468
5469 rm -f conftest*
5470 cat > conftest.$ac_ext <<_LT_EOF
5471#ifdef __cplusplus
5472extern "C" {
5473#endif
5474char nm_test_var;
5475void nm_test_func(void);
5476void nm_test_func(void){}
5477#ifdef __cplusplus
5478}
5479#endif
5480int main(){nm_test_var='a';nm_test_func();return(0);}
5481_LT_EOF
5482
5483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }; then
5488 # Now try to grab the symbols.
5489 nlist=conftest.nm
5490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5491 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5492 ac_status=$?
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } && test -s "$nlist"; then
5495 # Try sorting and uniquifying the output.
5496 if sort "$nlist" | uniq > "$nlist"T; then
5497 mv -f "$nlist"T "$nlist"
5498 else
5499 rm -f "$nlist"T
5500 fi
5501
5502 # Make sure that we snagged all the symbols we need.
5503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5505 cat <<_LT_EOF > conftest.$ac_ext
5506#ifdef __cplusplus
5507extern "C" {
5508#endif
5509
5510_LT_EOF
5511 # Now generate the symbol file.
5512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5513
5514 cat <<_LT_EOF >> conftest.$ac_ext
5515
5516/* The mapping between symbol names and symbols. */
5517const struct {
5518 const char *name;
5519 void *address;
5520}
5521lt__PROGRAM__LTX_preloaded_symbols[] =
5522{
5523 { "@PROGRAM@", (void *) 0 },
5524_LT_EOF
5525 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5526 cat <<\_LT_EOF >> conftest.$ac_ext
5527 {0, (void *) 0}
5528};
5529
5530/* This works around a problem in FreeBSD linker */
5531#ifdef FREEBSD_WORKAROUND
5532static const void *lt_preloaded_setup() {
5533 return lt__PROGRAM__LTX_preloaded_symbols;
5534}
5535#endif
5536
5537#ifdef __cplusplus
5538}
5539#endif
5540_LT_EOF
5541 # Now try linking the two files.
5542 mv conftest.$ac_objext conftstm.$ac_objext
5543 lt_save_LIBS="$LIBS"
5544 lt_save_CFLAGS="$CFLAGS"
5545 LIBS="conftstm.$ac_objext"
5546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5551 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5552 pipe_works=yes
5553 fi
5554 LIBS="$lt_save_LIBS"
5555 CFLAGS="$lt_save_CFLAGS"
5556 else
5557 echo "cannot find nm_test_func in $nlist" >&5
5558 fi
5559 else
5560 echo "cannot find nm_test_var in $nlist" >&5
5561 fi
5562 else
5563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5564 fi
5565 else
5566 echo "$progname: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5568 fi
5569 rm -rf conftest* conftst*
5570
5571 # Do not use the global_symbol_pipe unless it works.
5572 if test "$pipe_works" = yes; then
5573 break
5574 else
5575 lt_cv_sys_global_symbol_pipe=
5576 fi
5577done
5578
5579fi
5580
5581if test -z "$lt_cv_sys_global_symbol_pipe"; then
5582 lt_cv_sys_global_symbol_to_cdecl=
5583fi
5584if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5586$as_echo "failed" >&6; }
5587else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5589$as_echo "ok" >&6; }
5590fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614# Check whether --enable-libtool-lock was given.
5615if test "${enable_libtool_lock+set}" = set; then :
5616 enableval=$enable_libtool_lock;
5617fi
5618
5619test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5620
5621# Some flags need to be propagated to the compiler or linker for good
5622# libtool support.
5623case $host in
5624ia64-*-hpux*)
5625 # Find out which ABI we are using.
5626 echo 'int i;' > conftest.$ac_ext
5627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5628 (eval $ac_compile) 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; }; then
5632 case `/usr/bin/file conftest.$ac_objext` in
5633 *ELF-32*)
5634 HPUX_IA64_MODE="32"
5635 ;;
5636 *ELF-64*)
5637 HPUX_IA64_MODE="64"
5638 ;;
5639 esac
5640 fi
5641 rm -rf conftest*
5642 ;;
5643*-*-irix6*)
5644 # Find out which ABI we are using.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00005645 echo '#line 5645 "configure"' > conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00005646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5647 (eval $ac_compile) 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; }; then
5651 if test "$lt_cv_prog_gnu_ld" = yes; then
5652 case `/usr/bin/file conftest.$ac_objext` in
5653 *32-bit*)
5654 LD="${LD-ld} -melf32bsmip"
5655 ;;
5656 *N32*)
5657 LD="${LD-ld} -melf32bmipn32"
5658 ;;
5659 *64-bit*)
5660 LD="${LD-ld} -melf64bmip"
5661 ;;
5662 esac
5663 else
5664 case `/usr/bin/file conftest.$ac_objext` in
5665 *32-bit*)
5666 LD="${LD-ld} -32"
5667 ;;
5668 *N32*)
5669 LD="${LD-ld} -n32"
5670 ;;
5671 *64-bit*)
5672 LD="${LD-ld} -64"
5673 ;;
5674 esac
5675 fi
5676 fi
5677 rm -rf conftest*
5678 ;;
5679
5680x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5681s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5682 # Find out which ABI we are using.
5683 echo 'int i;' > conftest.$ac_ext
5684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5685 (eval $ac_compile) 2>&5
5686 ac_status=$?
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; }; then
5689 case `/usr/bin/file conftest.o` in
5690 *32-bit*)
5691 case $host in
5692 x86_64-*kfreebsd*-gnu)
5693 LD="${LD-ld} -m elf_i386_fbsd"
5694 ;;
5695 x86_64-*linux*)
5696 LD="${LD-ld} -m elf_i386"
5697 ;;
5698 ppc64-*linux*|powerpc64-*linux*)
5699 LD="${LD-ld} -m elf32ppclinux"
5700 ;;
5701 s390x-*linux*)
5702 LD="${LD-ld} -m elf_s390"
5703 ;;
5704 sparc64-*linux*)
5705 LD="${LD-ld} -m elf32_sparc"
5706 ;;
5707 esac
5708 ;;
5709 *64-bit*)
5710 case $host in
5711 x86_64-*kfreebsd*-gnu)
5712 LD="${LD-ld} -m elf_x86_64_fbsd"
5713 ;;
5714 x86_64-*linux*)
5715 LD="${LD-ld} -m elf_x86_64"
5716 ;;
5717 ppc*-*linux*|powerpc*-*linux*)
5718 LD="${LD-ld} -m elf64ppc"
5719 ;;
5720 s390*-*linux*|s390*-*tpf*)
5721 LD="${LD-ld} -m elf64_s390"
5722 ;;
5723 sparc*-*linux*)
5724 LD="${LD-ld} -m elf64_sparc"
5725 ;;
5726 esac
5727 ;;
5728 esac
5729 fi
5730 rm -rf conftest*
5731 ;;
5732
5733*-*-sco3.2v5*)
5734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5735 SAVE_CFLAGS="$CFLAGS"
5736 CFLAGS="$CFLAGS -belf"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5738$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5739if test "${lt_cv_cc_needs_belf+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h. */
5750
5751int
5752main ()
5753{
5754
5755 ;
5756 return 0;
5757}
5758_ACEOF
5759if ac_fn_c_try_link "$LINENO"; then :
5760 lt_cv_cc_needs_belf=yes
5761else
5762 lt_cv_cc_needs_belf=no
5763fi
5764rm -f core conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766 ac_ext=c
5767ac_cpp='$CPP $CPPFLAGS'
5768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5774$as_echo "$lt_cv_cc_needs_belf" >&6; }
5775 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5777 CFLAGS="$SAVE_CFLAGS"
5778 fi
5779 ;;
5780sparc*-*solaris*)
5781 # Find out which ABI we are using.
5782 echo 'int i;' > conftest.$ac_ext
5783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5784 (eval $ac_compile) 2>&5
5785 ac_status=$?
5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787 test $ac_status = 0; }; then
5788 case `/usr/bin/file conftest.o` in
5789 *64-bit*)
5790 case $lt_cv_prog_gnu_ld in
5791 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5792 *)
5793 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5794 LD="${LD-ld} -64"
5795 fi
5796 ;;
5797 esac
5798 ;;
5799 esac
5800 fi
5801 rm -rf conftest*
5802 ;;
5803esac
5804
5805need_locks="$enable_libtool_lock"
5806
5807
5808 case $host_os in
5809 rhapsody* | darwin*)
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$DSYMUTIL"; then
5819 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838DSYMUTIL=$ac_cv_prog_DSYMUTIL
5839if test -n "$DSYMUTIL"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5841$as_echo "$DSYMUTIL" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_DSYMUTIL"; then
5850 ac_ct_DSYMUTIL=$DSYMUTIL
5851 # Extract the first word of "dsymutil", so it can be a program name with args.
5852set dummy dsymutil; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$ac_ct_DSYMUTIL"; then
5859 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5879if test -n "$ac_ct_DSYMUTIL"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5881$as_echo "$ac_ct_DSYMUTIL" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887 if test "x$ac_ct_DSYMUTIL" = x; then
5888 DSYMUTIL=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 DSYMUTIL=$ac_ct_DSYMUTIL
5897 fi
5898else
5899 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5900fi
5901
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5904set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906$as_echo_n "checking for $ac_word... " >&6; }
5907if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909else
5910 if test -n "$NMEDIT"; then
5911 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924done
5925 done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930NMEDIT=$ac_cv_prog_NMEDIT
5931if test -n "$NMEDIT"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5933$as_echo "$NMEDIT" >&6; }
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939
5940fi
5941if test -z "$ac_cv_prog_NMEDIT"; then
5942 ac_ct_NMEDIT=$NMEDIT
5943 # Extract the first word of "nmedit", so it can be a program name with args.
5944set dummy nmedit; ac_word=$2
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946$as_echo_n "checking for $ac_word... " >&6; }
5947if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949else
5950 if test -n "$ac_ct_NMEDIT"; then
5951 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965 done
5966IFS=$as_save_IFS
5967
5968fi
5969fi
5970ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5971if test -n "$ac_ct_NMEDIT"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5973$as_echo "$ac_ct_NMEDIT" >&6; }
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979 if test "x$ac_ct_NMEDIT" = x; then
5980 NMEDIT=":"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983yes:)
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986ac_tool_warned=yes ;;
5987esac
5988 NMEDIT=$ac_ct_NMEDIT
5989 fi
5990else
5991 NMEDIT="$ac_cv_prog_NMEDIT"
5992fi
5993
5994 if test -n "$ac_tool_prefix"; then
5995 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5996set dummy ${ac_tool_prefix}lipo; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if test "${ac_cv_prog_LIPO+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001else
6002 if test -n "$LIPO"; then
6003 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
6017 done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022LIPO=$ac_cv_prog_LIPO
6023if test -n "$LIPO"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6025$as_echo "$LIPO" >&6; }
6026else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031
6032fi
6033if test -z "$ac_cv_prog_LIPO"; then
6034 ac_ct_LIPO=$LIPO
6035 # Extract the first word of "lipo", so it can be a program name with args.
6036set dummy lipo; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042 if test -n "$ac_ct_LIPO"; then
6043 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_ac_ct_LIPO="lipo"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057 done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6063if test -n "$ac_ct_LIPO"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6065$as_echo "$ac_ct_LIPO" >&6; }
6066else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071 if test "x$ac_ct_LIPO" = x; then
6072 LIPO=":"
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078ac_tool_warned=yes ;;
6079esac
6080 LIPO=$ac_ct_LIPO
6081 fi
6082else
6083 LIPO="$ac_cv_prog_LIPO"
6084fi
6085
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}otool; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if test "${ac_cv_prog_OTOOL+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6093else
6094 if test -n "$OTOOL"; then
6095 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109 done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114OTOOL=$ac_cv_prog_OTOOL
6115if test -n "$OTOOL"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6117$as_echo "$OTOOL" >&6; }
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124fi
6125if test -z "$ac_cv_prog_OTOOL"; then
6126 ac_ct_OTOOL=$OTOOL
6127 # Extract the first word of "otool", so it can be a program name with args.
6128set dummy otool; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133else
6134 if test -n "$ac_ct_OTOOL"; then
6135 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_ac_ct_OTOOL="otool"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149 done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6155if test -n "$ac_ct_OTOOL"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6157$as_echo "$ac_ct_OTOOL" >&6; }
6158else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163 if test "x$ac_ct_OTOOL" = x; then
6164 OTOOL=":"
6165 else
6166 case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172 OTOOL=$ac_ct_OTOOL
6173 fi
6174else
6175 OTOOL="$ac_cv_prog_OTOOL"
6176fi
6177
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}otool64; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185else
6186 if test -n "$OTOOL64"; then
6187 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201 done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206OTOOL64=$ac_cv_prog_OTOOL64
6207if test -n "$OTOOL64"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6209$as_echo "$OTOOL64" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_OTOOL64"; then
6218 ac_ct_OTOOL64=$OTOOL64
6219 # Extract the first word of "otool64", so it can be a program name with args.
6220set dummy otool64; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$ac_ct_OTOOL64"; then
6227 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_OTOOL64="otool64"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6247if test -n "$ac_ct_OTOOL64"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6249$as_echo "$ac_ct_OTOOL64" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255 if test "x$ac_ct_OTOOL64" = x; then
6256 OTOOL64=":"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264 OTOOL64=$ac_ct_OTOOL64
6265 fi
6266else
6267 OTOOL64="$ac_cv_prog_OTOOL64"
6268fi
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6297$as_echo_n "checking for -single_module linker flag... " >&6; }
6298if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300else
6301 lt_cv_apple_cc_single_mod=no
6302 if test -z "${LT_MULTI_MODULE}"; then
6303 # By default we will add the -single_module flag. You can override
6304 # by either setting the environment variable LT_MULTI_MODULE
6305 # non-empty at configure time, or by adding -multi_module to the
6306 # link flags.
6307 rm -rf libconftest.dylib*
6308 echo "int foo(void){return 1;}" > conftest.c
6309 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6310-dynamiclib -Wl,-single_module conftest.c" >&5
6311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6312 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6313 _lt_result=$?
6314 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6315 lt_cv_apple_cc_single_mod=yes
6316 else
6317 cat conftest.err >&5
6318 fi
6319 rm -rf libconftest.dylib*
6320 rm -f conftest.*
6321 fi
6322fi
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6324$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6326$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6327if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329else
6330 lt_cv_ld_exported_symbols_list=no
6331 save_LDFLAGS=$LDFLAGS
6332 echo "_main" > conftest.sym
6333 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336
6337int
6338main ()
6339{
6340
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345if ac_fn_c_try_link "$LINENO"; then :
6346 lt_cv_ld_exported_symbols_list=yes
6347else
6348 lt_cv_ld_exported_symbols_list=no
6349fi
6350rm -f core conftest.err conftest.$ac_objext \
6351 conftest$ac_exeext conftest.$ac_ext
6352 LDFLAGS="$save_LDFLAGS"
6353
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6356$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6357 case $host_os in
6358 rhapsody* | darwin1.[012])
6359 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6360 darwin1.*)
6361 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6362 darwin*) # darwin 5.x on
6363 # if running on 10.5 or later, the deployment target defaults
6364 # to the OS version, if on x86, and 10.4, the deployment
6365 # target defaults to 10.4. Don't you love it?
6366 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6367 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6369 10.[012]*)
6370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6371 10.*)
6372 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6373 esac
6374 ;;
6375 esac
6376 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6377 _lt_dar_single_mod='$single_module'
6378 fi
6379 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6380 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6381 else
6382 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6383 fi
6384 if test "$DSYMUTIL" != ":"; then
6385 _lt_dsymutil='~$DSYMUTIL $lib || :'
6386 else
6387 _lt_dsymutil=
6388 fi
6389 ;;
6390 esac
6391
6392ac_ext=c
6393ac_cpp='$CPP $CPPFLAGS'
6394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6398$as_echo_n "checking how to run the C preprocessor... " >&6; }
6399# On Suns, sometimes $CPP names a directory.
6400if test -n "$CPP" && test -d "$CPP"; then
6401 CPP=
6402fi
6403if test -z "$CPP"; then
6404 if test "${ac_cv_prog_CPP+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 # Double quotes because CPP needs to be expanded
6408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6409 do
6410 ac_preproc_ok=false
6411for ac_c_preproc_warn_flag in '' yes
6412do
6413 # Use a header file that comes with gcc, so configuring glibc
6414 # with a fresh cross-compiler works.
6415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6416 # <limits.h> exists even on freestanding compilers.
6417 # On the NeXT, cc -E runs the code through the compiler's parser,
6418 # not just through cpp. "Syntax error" is here to catch this case.
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h. */
6421#ifdef __STDC__
6422# include <limits.h>
6423#else
6424# include <assert.h>
6425#endif
6426 Syntax error
6427_ACEOF
6428if ac_fn_c_try_cpp "$LINENO"; then :
6429
6430else
6431 # Broken: fails on valid input.
6432continue
6433fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006434rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006435
6436 # OK, works on sane cases. Now check whether nonexistent headers
6437 # can be detected and how.
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h. */
6440#include <ac_nonexistent.h>
6441_ACEOF
6442if ac_fn_c_try_cpp "$LINENO"; then :
6443 # Broken: success on invalid input.
6444continue
6445else
6446 # Passes both tests.
6447ac_preproc_ok=:
6448break
6449fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006450rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006451
6452done
6453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006454rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006455if $ac_preproc_ok; then :
6456 break
6457fi
6458
6459 done
6460 ac_cv_prog_CPP=$CPP
6461
6462fi
6463 CPP=$ac_cv_prog_CPP
6464else
6465 ac_cv_prog_CPP=$CPP
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6468$as_echo "$CPP" >&6; }
6469ac_preproc_ok=false
6470for ac_c_preproc_warn_flag in '' yes
6471do
6472 # Use a header file that comes with gcc, so configuring glibc
6473 # with a fresh cross-compiler works.
6474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475 # <limits.h> exists even on freestanding compilers.
6476 # On the NeXT, cc -E runs the code through the compiler's parser,
6477 # not just through cpp. "Syntax error" is here to catch this case.
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480#ifdef __STDC__
6481# include <limits.h>
6482#else
6483# include <assert.h>
6484#endif
6485 Syntax error
6486_ACEOF
6487if ac_fn_c_try_cpp "$LINENO"; then :
6488
6489else
6490 # Broken: fails on valid input.
6491continue
6492fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006493rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006494
6495 # OK, works on sane cases. Now check whether nonexistent headers
6496 # can be detected and how.
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h. */
6499#include <ac_nonexistent.h>
6500_ACEOF
6501if ac_fn_c_try_cpp "$LINENO"; then :
6502 # Broken: success on invalid input.
6503continue
6504else
6505 # Passes both tests.
6506ac_preproc_ok=:
6507break
6508fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006509rm -f conftest.err conftest.i conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006510
6511done
6512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006513rm -f conftest.i conftest.err conftest.$ac_ext
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006514if $ac_preproc_ok; then :
6515
6516else
6517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006519as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6520See \`config.log' for more details" "$LINENO" 5 ; }
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006521fi
6522
6523ac_ext=c
6524ac_cpp='$CPP $CPPFLAGS'
6525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528
6529
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6531$as_echo_n "checking for ANSI C header files... " >&6; }
6532if test "${ac_cv_header_stdc+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h. */
6537#include <stdlib.h>
6538#include <stdarg.h>
6539#include <string.h>
6540#include <float.h>
6541
6542int
6543main ()
6544{
6545
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_header_stdc=yes
6552else
6553 ac_cv_header_stdc=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
6561#include <string.h>
6562
6563_ACEOF
6564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6565 $EGREP "memchr" >/dev/null 2>&1; then :
6566
6567else
6568 ac_cv_header_stdc=no
6569fi
6570rm -f conftest*
6571
6572fi
6573
6574if test $ac_cv_header_stdc = yes; then
6575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h. */
6578#include <stdlib.h>
6579
6580_ACEOF
6581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6582 $EGREP "free" >/dev/null 2>&1; then :
6583
6584else
6585 ac_cv_header_stdc=no
6586fi
6587rm -f conftest*
6588
6589fi
6590
6591if test $ac_cv_header_stdc = yes; then
6592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6593 if test "$cross_compiling" = yes; then :
6594 :
6595else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h. */
6598#include <ctype.h>
6599#include <stdlib.h>
6600#if ((' ' & 0x0FF) == 0x020)
6601# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6602# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6603#else
6604# define ISLOWER(c) \
6605 (('a' <= (c) && (c) <= 'i') \
6606 || ('j' <= (c) && (c) <= 'r') \
6607 || ('s' <= (c) && (c) <= 'z'))
6608# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6609#endif
6610
6611#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6612int
6613main ()
6614{
6615 int i;
6616 for (i = 0; i < 256; i++)
6617 if (XOR (islower (i), ISLOWER (i))
6618 || toupper (i) != TOUPPER (i))
6619 return 2;
6620 return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_run "$LINENO"; then :
6624
6625else
6626 ac_cv_header_stdc=no
6627fi
6628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6629 conftest.$ac_objext conftest.beam conftest.$ac_ext
6630fi
6631
6632fi
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6635$as_echo "$ac_cv_header_stdc" >&6; }
6636if test $ac_cv_header_stdc = yes; then
6637
6638$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6639
6640fi
6641
6642# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6643for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6644 inttypes.h stdint.h unistd.h
6645do :
6646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6647ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6648"
Douglas Gilbert02f2be12010-11-12 16:00:04 +00006649if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +00006650 cat >>confdefs.h <<_ACEOF
6651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6652_ACEOF
6653
6654fi
6655
6656done
6657
6658
6659for ac_header in dlfcn.h
6660do :
6661 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6662"
6663if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665#define HAVE_DLFCN_H 1
6666_ACEOF
6667
6668fi
6669
6670done
6671
6672
6673
6674# Set options
6675
6676
6677
6678 enable_dlopen=no
6679
6680
6681 enable_win32_dll=no
6682
6683
6684 # Check whether --enable-shared was given.
6685if test "${enable_shared+set}" = set; then :
6686 enableval=$enable_shared; p=${PACKAGE-default}
6687 case $enableval in
6688 yes) enable_shared=yes ;;
6689 no) enable_shared=no ;;
6690 *)
6691 enable_shared=no
6692 # Look at the argument we got. We use all the common list separators.
6693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6694 for pkg in $enableval; do
6695 IFS="$lt_save_ifs"
6696 if test "X$pkg" = "X$p"; then
6697 enable_shared=yes
6698 fi
6699 done
6700 IFS="$lt_save_ifs"
6701 ;;
6702 esac
6703else
6704 enable_shared=yes
6705fi
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715 # Check whether --enable-static was given.
6716if test "${enable_static+set}" = set; then :
6717 enableval=$enable_static; p=${PACKAGE-default}
6718 case $enableval in
6719 yes) enable_static=yes ;;
6720 no) enable_static=no ;;
6721 *)
6722 enable_static=no
6723 # Look at the argument we got. We use all the common list separators.
6724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6725 for pkg in $enableval; do
6726 IFS="$lt_save_ifs"
6727 if test "X$pkg" = "X$p"; then
6728 enable_static=yes
6729 fi
6730 done
6731 IFS="$lt_save_ifs"
6732 ;;
6733 esac
6734else
6735 enable_static=yes
6736fi
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747# Check whether --with-pic was given.
6748if test "${with_pic+set}" = set; then :
6749 withval=$with_pic; pic_mode="$withval"
6750else
6751 pic_mode=default
6752fi
6753
6754
6755test -z "$pic_mode" && pic_mode=default
6756
6757
6758
6759
6760
6761
6762
6763 # Check whether --enable-fast-install was given.
6764if test "${enable_fast_install+set}" = set; then :
6765 enableval=$enable_fast_install; p=${PACKAGE-default}
6766 case $enableval in
6767 yes) enable_fast_install=yes ;;
6768 no) enable_fast_install=no ;;
6769 *)
6770 enable_fast_install=no
6771 # Look at the argument we got. We use all the common list separators.
6772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6773 for pkg in $enableval; do
6774 IFS="$lt_save_ifs"
6775 if test "X$pkg" = "X$p"; then
6776 enable_fast_install=yes
6777 fi
6778 done
6779 IFS="$lt_save_ifs"
6780 ;;
6781 esac
6782else
6783 enable_fast_install=yes
6784fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796# This can be used to rebuild libtool when needed
6797LIBTOOL_DEPS="$ltmain"
6798
6799# Always use our own libtool.
6800LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826test -z "$LN_S" && LN_S="ln -s"
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841if test -n "${ZSH_VERSION+set}" ; then
6842 setopt NO_GLOB_SUBST
6843fi
6844
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6846$as_echo_n "checking for objdir... " >&6; }
6847if test "${lt_cv_objdir+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849else
6850 rm -f .libs 2>/dev/null
6851mkdir .libs 2>/dev/null
6852if test -d .libs; then
6853 lt_cv_objdir=.libs
6854else
6855 # MS-DOS does not allow filenames that begin with a dot.
6856 lt_cv_objdir=_libs
6857fi
6858rmdir .libs 2>/dev/null
6859fi
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6861$as_echo "$lt_cv_objdir" >&6; }
6862objdir=$lt_cv_objdir
6863
6864
6865
6866
6867
6868cat >>confdefs.h <<_ACEOF
6869#define LT_OBJDIR "$lt_cv_objdir/"
6870_ACEOF
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888case $host_os in
6889aix3*)
6890 # AIX sometimes has problems with the GCC collect2 program. For some
6891 # reason, if we set the COLLECT_NAMES environment variable, the problems
6892 # vanish in a puff of smoke.
6893 if test "X${COLLECT_NAMES+set}" != Xset; then
6894 COLLECT_NAMES=
6895 export COLLECT_NAMES
6896 fi
6897 ;;
6898esac
6899
6900# Sed substitution that helps us do robust quoting. It backslashifies
6901# metacharacters that are still active within double-quoted strings.
6902sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6903
6904# Same as above, but do not quote variable references.
6905double_quote_subst='s/\(["`\\]\)/\\\1/g'
6906
6907# Sed substitution to delay expansion of an escaped shell variable in a
6908# double_quote_subst'ed string.
6909delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6910
6911# Sed substitution to delay expansion of an escaped single quote.
6912delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6913
6914# Sed substitution to avoid accidental globbing in evaled expressions
6915no_glob_subst='s/\*/\\\*/g'
6916
6917# Global variables:
6918ofile=libtool
6919can_build_shared=yes
6920
6921# All known linkers require a `.a' archive for static linking (except MSVC,
6922# which needs '.lib').
6923libext=a
6924
6925with_gnu_ld="$lt_cv_prog_gnu_ld"
6926
6927old_CC="$CC"
6928old_CFLAGS="$CFLAGS"
6929
6930# Set sane defaults for various variables
6931test -z "$CC" && CC=cc
6932test -z "$LTCC" && LTCC=$CC
6933test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6934test -z "$LD" && LD=ld
6935test -z "$ac_objext" && ac_objext=o
6936
6937for cc_temp in $compiler""; do
6938 case $cc_temp in
6939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6941 \-*) ;;
6942 *) break;;
6943 esac
6944done
6945cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6946
6947
6948# Only perform the check for file, if the check method requires it
6949test -z "$MAGIC_CMD" && MAGIC_CMD=file
6950case $deplibs_check_method in
6951file_magic*)
6952 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6954$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6955if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957else
6958 case $MAGIC_CMD in
6959[\\/*] | ?:[\\/]*)
6960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6961 ;;
6962*)
6963 lt_save_MAGIC_CMD="$MAGIC_CMD"
6964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6966 for ac_dir in $ac_dummy; do
6967 IFS="$lt_save_ifs"
6968 test -z "$ac_dir" && ac_dir=.
6969 if test -f $ac_dir/${ac_tool_prefix}file; then
6970 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6971 if test -n "$file_magic_test_file"; then
6972 case $deplibs_check_method in
6973 "file_magic "*)
6974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6977 $EGREP "$file_magic_regex" > /dev/null; then
6978 :
6979 else
6980 cat <<_LT_EOF 1>&2
6981
6982*** Warning: the command libtool uses to detect shared libraries,
6983*** $file_magic_cmd, produces output that libtool cannot recognize.
6984*** The result is that libtool may fail to recognize shared libraries
6985*** as such. This will affect the creation of libtool libraries that
6986*** depend on shared libraries, but programs linked with such libtool
6987*** libraries will work regardless of this problem. Nevertheless, you
6988*** may want to report the problem to your system manager and/or to
6989*** bug-libtool@gnu.org
6990
6991_LT_EOF
6992 fi ;;
6993 esac
6994 fi
6995 break
6996 fi
6997 done
6998 IFS="$lt_save_ifs"
6999 MAGIC_CMD="$lt_save_MAGIC_CMD"
7000 ;;
7001esac
7002fi
7003
7004MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005if test -n "$MAGIC_CMD"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7007$as_echo "$MAGIC_CMD" >&6; }
7008else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013
7014
7015
7016
7017if test -z "$lt_cv_path_MAGIC_CMD"; then
7018 if test -n "$ac_tool_prefix"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7020$as_echo_n "checking for file... " >&6; }
7021if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
7023else
7024 case $MAGIC_CMD in
7025[\\/*] | ?:[\\/]*)
7026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7027 ;;
7028*)
7029 lt_save_MAGIC_CMD="$MAGIC_CMD"
7030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7032 for ac_dir in $ac_dummy; do
7033 IFS="$lt_save_ifs"
7034 test -z "$ac_dir" && ac_dir=.
7035 if test -f $ac_dir/file; then
7036 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7037 if test -n "$file_magic_test_file"; then
7038 case $deplibs_check_method in
7039 "file_magic "*)
7040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7043 $EGREP "$file_magic_regex" > /dev/null; then
7044 :
7045 else
7046 cat <<_LT_EOF 1>&2
7047
7048*** Warning: the command libtool uses to detect shared libraries,
7049*** $file_magic_cmd, produces output that libtool cannot recognize.
7050*** The result is that libtool may fail to recognize shared libraries
7051*** as such. This will affect the creation of libtool libraries that
7052*** depend on shared libraries, but programs linked with such libtool
7053*** libraries will work regardless of this problem. Nevertheless, you
7054*** may want to report the problem to your system manager and/or to
7055*** bug-libtool@gnu.org
7056
7057_LT_EOF
7058 fi ;;
7059 esac
7060 fi
7061 break
7062 fi
7063 done
7064 IFS="$lt_save_ifs"
7065 MAGIC_CMD="$lt_save_MAGIC_CMD"
7066 ;;
7067esac
7068fi
7069
7070MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071if test -n "$MAGIC_CMD"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7073$as_echo "$MAGIC_CMD" >&6; }
7074else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080 else
7081 MAGIC_CMD=:
7082 fi
7083fi
7084
7085 fi
7086 ;;
7087esac
7088
7089# Use C for the default configuration in the libtool script
7090
7091lt_save_CC="$CC"
7092ac_ext=c
7093ac_cpp='$CPP $CPPFLAGS'
7094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097
7098
7099# Source file extension for C test sources.
7100ac_ext=c
7101
7102# Object file extension for compiled C test sources.
7103objext=o
7104objext=$objext
7105
7106# Code to be used in simple compile tests
7107lt_simple_compile_test_code="int some_variable = 0;"
7108
7109# Code to be used in simple link tests
7110lt_simple_link_test_code='int main(){return(0);}'
7111
7112
7113
7114
7115
7116
7117
7118# If no C compiler was specified, use CC.
7119LTCC=${LTCC-"$CC"}
7120
7121# If no C compiler flags were specified, use CFLAGS.
7122LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7123
7124# Allow CC to be a program name with arguments.
7125compiler=$CC
7126
7127# Save the default compiler, since it gets overwritten when the other
7128# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7129compiler_DEFAULT=$CC
7130
7131# save warnings/boilerplate of simple test code
7132ac_outfile=conftest.$ac_objext
7133echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7134eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7135_lt_compiler_boilerplate=`cat conftest.err`
7136$RM conftest*
7137
7138ac_outfile=conftest.$ac_objext
7139echo "$lt_simple_link_test_code" >conftest.$ac_ext
7140eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7141_lt_linker_boilerplate=`cat conftest.err`
7142$RM -r conftest*
7143
7144
7145if test -n "$compiler"; then
7146
7147lt_prog_compiler_no_builtin_flag=
7148
7149if test "$GCC" = yes; then
7150 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7153$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7154if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156else
7157 lt_cv_prog_compiler_rtti_exceptions=no
7158 ac_outfile=conftest.$ac_objext
7159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7160 lt_compiler_flag="-fno-rtti -fno-exceptions"
7161 # Insert the option either (1) after the last *FLAGS variable, or
7162 # (2) before a word containing "conftest.", or (3) at the end.
7163 # Note that $ac_compile itself does not contain backslashes and begins
7164 # with a dollar sign (not a hyphen), so the echo should work correctly.
7165 # The option is referenced via a variable to avoid confusing sed.
7166 lt_compile=`echo "$ac_compile" | $SED \
7167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7169 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007170 (eval echo "\"\$as_me:7170: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007171 (eval "$lt_compile" 2>conftest.err)
7172 ac_status=$?
7173 cat conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007174 echo "$as_me:7174: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007175 if (exit $ac_status) && test -s "$ac_outfile"; then
7176 # The compiler can only warn and ignore the option if not recognized
7177 # So say no if there are warnings other than the usual output.
7178 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7181 lt_cv_prog_compiler_rtti_exceptions=yes
7182 fi
7183 fi
7184 $RM conftest*
7185
7186fi
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7188$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7189
7190if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7191 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7192else
7193 :
7194fi
7195
7196fi
7197
7198
7199
7200
7201
7202
7203 lt_prog_compiler_wl=
7204lt_prog_compiler_pic=
7205lt_prog_compiler_static=
7206
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7208$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7209
7210 if test "$GCC" = yes; then
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_static='-static'
7213
7214 case $host_os in
7215 aix*)
7216 # All AIX code is PIC.
7217 if test "$host_cpu" = ia64; then
7218 # AIX 5 now supports IA64 processor
7219 lt_prog_compiler_static='-Bstatic'
7220 fi
7221 ;;
7222
7223 amigaos*)
7224 case $host_cpu in
7225 powerpc)
7226 # see comment about AmigaOS4 .so support
7227 lt_prog_compiler_pic='-fPIC'
7228 ;;
7229 m68k)
7230 # FIXME: we need at least 68020 code to build shared libraries, but
7231 # adding the `-m68020' flag to GCC prevents building anything better,
7232 # like `-m68040'.
7233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7234 ;;
7235 esac
7236 ;;
7237
7238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7239 # PIC is the default for these OSes.
7240 ;;
7241
7242 mingw* | cygwin* | pw32* | os2* | cegcc*)
7243 # This hack is so that the source file can tell whether it is being
7244 # built for inclusion in a dll (and should export symbols for example).
7245 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7246 # (--disable-auto-import) libraries
7247 lt_prog_compiler_pic='-DDLL_EXPORT'
7248 ;;
7249
7250 darwin* | rhapsody*)
7251 # PIC is the default on this platform
7252 # Common symbols not allowed in MH_DYLIB files
7253 lt_prog_compiler_pic='-fno-common'
7254 ;;
7255
7256 hpux*)
7257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7259 # sets the default TLS model and affects inlining.
7260 case $host_cpu in
7261 hppa*64*)
7262 # +Z the default
7263 ;;
7264 *)
7265 lt_prog_compiler_pic='-fPIC'
7266 ;;
7267 esac
7268 ;;
7269
7270 interix[3-9]*)
7271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7272 # Instead, we relocate shared libraries at runtime.
7273 ;;
7274
7275 msdosdjgpp*)
7276 # Just because we use GCC doesn't mean we suddenly get shared libraries
7277 # on systems that don't support them.
7278 lt_prog_compiler_can_build_shared=no
7279 enable_shared=no
7280 ;;
7281
7282 *nto* | *qnx*)
7283 # QNX uses GNU C++, but need to define -shared option too, otherwise
7284 # it will coredump.
7285 lt_prog_compiler_pic='-fPIC -shared'
7286 ;;
7287
7288 sysv4*MP*)
7289 if test -d /usr/nec; then
7290 lt_prog_compiler_pic=-Kconform_pic
7291 fi
7292 ;;
7293
7294 *)
7295 lt_prog_compiler_pic='-fPIC'
7296 ;;
7297 esac
7298 else
7299 # PORTME Check for flag to pass linker flags through the system compiler.
7300 case $host_os in
7301 aix*)
7302 lt_prog_compiler_wl='-Wl,'
7303 if test "$host_cpu" = ia64; then
7304 # AIX 5 now supports IA64 processor
7305 lt_prog_compiler_static='-Bstatic'
7306 else
7307 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7308 fi
7309 ;;
7310
7311 mingw* | cygwin* | pw32* | os2* | cegcc*)
7312 # This hack is so that the source file can tell whether it is being
7313 # built for inclusion in a dll (and should export symbols for example).
7314 lt_prog_compiler_pic='-DDLL_EXPORT'
7315 ;;
7316
7317 hpux9* | hpux10* | hpux11*)
7318 lt_prog_compiler_wl='-Wl,'
7319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7320 # not for PA HP-UX.
7321 case $host_cpu in
7322 hppa*64*|ia64*)
7323 # +Z the default
7324 ;;
7325 *)
7326 lt_prog_compiler_pic='+Z'
7327 ;;
7328 esac
7329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7330 lt_prog_compiler_static='${wl}-a ${wl}archive'
7331 ;;
7332
7333 irix5* | irix6* | nonstopux*)
7334 lt_prog_compiler_wl='-Wl,'
7335 # PIC (with -KPIC) is the default.
7336 lt_prog_compiler_static='-non_shared'
7337 ;;
7338
7339 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7340 case $cc_basename in
7341 # old Intel for x86_64 which still supported -KPIC.
7342 ecc*)
7343 lt_prog_compiler_wl='-Wl,'
7344 lt_prog_compiler_pic='-KPIC'
7345 lt_prog_compiler_static='-static'
7346 ;;
7347 # icc used to be incompatible with GCC.
7348 # ICC 10 doesn't accept -KPIC any more.
7349 icc* | ifort*)
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_pic='-fPIC'
7352 lt_prog_compiler_static='-static'
7353 ;;
7354 # Lahey Fortran 8.1.
7355 lf95*)
7356 lt_prog_compiler_wl='-Wl,'
7357 lt_prog_compiler_pic='--shared'
7358 lt_prog_compiler_static='--static'
7359 ;;
7360 pgcc* | pgf77* | pgf90* | pgf95*)
7361 # Portland Group compilers (*not* the Pentium gcc compiler,
7362 # which looks to be a dead project)
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_pic='-fpic'
7365 lt_prog_compiler_static='-Bstatic'
7366 ;;
7367 ccc*)
7368 lt_prog_compiler_wl='-Wl,'
7369 # All Alpha code is PIC.
7370 lt_prog_compiler_static='-non_shared'
7371 ;;
7372 xl*)
7373 # IBM XL C 8.0/Fortran 10.1 on PPC
7374 lt_prog_compiler_wl='-Wl,'
7375 lt_prog_compiler_pic='-qpic'
7376 lt_prog_compiler_static='-qstaticlink'
7377 ;;
7378 *)
7379 case `$CC -V 2>&1 | sed 5q` in
7380 *Sun\ C*)
7381 # Sun C 5.9
7382 lt_prog_compiler_pic='-KPIC'
7383 lt_prog_compiler_static='-Bstatic'
7384 lt_prog_compiler_wl='-Wl,'
7385 ;;
7386 *Sun\ F*)
7387 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7388 lt_prog_compiler_pic='-KPIC'
7389 lt_prog_compiler_static='-Bstatic'
7390 lt_prog_compiler_wl=''
7391 ;;
7392 esac
7393 ;;
7394 esac
7395 ;;
7396
7397 newsos6)
7398 lt_prog_compiler_pic='-KPIC'
7399 lt_prog_compiler_static='-Bstatic'
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 osf3* | osf4* | osf5*)
7409 lt_prog_compiler_wl='-Wl,'
7410 # All OSF/1 code is PIC.
7411 lt_prog_compiler_static='-non_shared'
7412 ;;
7413
7414 rdos*)
7415 lt_prog_compiler_static='-non_shared'
7416 ;;
7417
7418 solaris*)
7419 lt_prog_compiler_pic='-KPIC'
7420 lt_prog_compiler_static='-Bstatic'
7421 case $cc_basename in
7422 f77* | f90* | f95*)
7423 lt_prog_compiler_wl='-Qoption ld ';;
7424 *)
7425 lt_prog_compiler_wl='-Wl,';;
7426 esac
7427 ;;
7428
7429 sunos4*)
7430 lt_prog_compiler_wl='-Qoption ld '
7431 lt_prog_compiler_pic='-PIC'
7432 lt_prog_compiler_static='-Bstatic'
7433 ;;
7434
7435 sysv4 | sysv4.2uw2* | sysv4.3*)
7436 lt_prog_compiler_wl='-Wl,'
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 ;;
7440
7441 sysv4*MP*)
7442 if test -d /usr/nec ;then
7443 lt_prog_compiler_pic='-Kconform_pic'
7444 lt_prog_compiler_static='-Bstatic'
7445 fi
7446 ;;
7447
7448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7449 lt_prog_compiler_wl='-Wl,'
7450 lt_prog_compiler_pic='-KPIC'
7451 lt_prog_compiler_static='-Bstatic'
7452 ;;
7453
7454 unicos*)
7455 lt_prog_compiler_wl='-Wl,'
7456 lt_prog_compiler_can_build_shared=no
7457 ;;
7458
7459 uts4*)
7460 lt_prog_compiler_pic='-pic'
7461 lt_prog_compiler_static='-Bstatic'
7462 ;;
7463
7464 *)
7465 lt_prog_compiler_can_build_shared=no
7466 ;;
7467 esac
7468 fi
7469
7470case $host_os in
7471 # For platforms which do not support PIC, -DPIC is meaningless:
7472 *djgpp*)
7473 lt_prog_compiler_pic=
7474 ;;
7475 *)
7476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7477 ;;
7478esac
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7480$as_echo "$lt_prog_compiler_pic" >&6; }
7481
7482
7483
7484
7485
7486
7487#
7488# Check to make sure the PIC flag actually works.
7489#
7490if test -n "$lt_prog_compiler_pic"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7492$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7493if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495else
7496 lt_cv_prog_compiler_pic_works=no
7497 ac_outfile=conftest.$ac_objext
7498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7499 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7500 # Insert the option either (1) after the last *FLAGS variable, or
7501 # (2) before a word containing "conftest.", or (3) at the end.
7502 # Note that $ac_compile itself does not contain backslashes and begins
7503 # with a dollar sign (not a hyphen), so the echo should work correctly.
7504 # The option is referenced via a variable to avoid confusing sed.
7505 lt_compile=`echo "$ac_compile" | $SED \
7506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7508 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007509 (eval echo "\"\$as_me:7509: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007510 (eval "$lt_compile" 2>conftest.err)
7511 ac_status=$?
7512 cat conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007513 echo "$as_me:7513: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007514 if (exit $ac_status) && test -s "$ac_outfile"; then
7515 # The compiler can only warn and ignore the option if not recognized
7516 # So say no if there are warnings other than the usual output.
7517 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7520 lt_cv_prog_compiler_pic_works=yes
7521 fi
7522 fi
7523 $RM conftest*
7524
7525fi
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7527$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7528
7529if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7530 case $lt_prog_compiler_pic in
7531 "" | " "*) ;;
7532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7533 esac
7534else
7535 lt_prog_compiler_pic=
7536 lt_prog_compiler_can_build_shared=no
7537fi
7538
7539fi
7540
7541
7542
7543
7544
7545
7546#
7547# Check to make sure the static flag actually works.
7548#
7549wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7551$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7552if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554else
7555 lt_cv_prog_compiler_static_works=no
7556 save_LDFLAGS="$LDFLAGS"
7557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7560 # The linker can only warn and ignore the option if not recognized
7561 # So say no if there are warnings
7562 if test -s conftest.err; then
7563 # Append any errors to the config.log.
7564 cat conftest.err 1>&5
7565 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7567 if diff conftest.exp conftest.er2 >/dev/null; then
7568 lt_cv_prog_compiler_static_works=yes
7569 fi
7570 else
7571 lt_cv_prog_compiler_static_works=yes
7572 fi
7573 fi
7574 $RM -r conftest*
7575 LDFLAGS="$save_LDFLAGS"
7576
7577fi
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7579$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7580
7581if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7582 :
7583else
7584 lt_prog_compiler_static=
7585fi
7586
7587
7588
7589
7590
7591
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7594$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7595if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598 lt_cv_prog_compiler_c_o=no
7599 $RM -r conftest 2>/dev/null
7600 mkdir conftest
7601 cd conftest
7602 mkdir out
7603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7604
7605 lt_compiler_flag="-o out/conftest2.$ac_objext"
7606 # Insert the option either (1) after the last *FLAGS variable, or
7607 # (2) before a word containing "conftest.", or (3) at the end.
7608 # Note that $ac_compile itself does not contain backslashes and begins
7609 # with a dollar sign (not a hyphen), so the echo should work correctly.
7610 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007615 (eval "$lt_compile" 2>out/conftest.err)
7616 ac_status=$?
7617 cat out/conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007618 echo "$as_me:7618: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7620 then
7621 # The compiler can only warn and ignore the option if not recognized
7622 # So say no if there are warnings
7623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7626 lt_cv_prog_compiler_c_o=yes
7627 fi
7628 fi
7629 chmod u+w . 2>&5
7630 $RM conftest*
7631 # SGI C++ compiler will create directory out/ii_files/ for
7632 # template instantiation
7633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7634 $RM out/* && rmdir out
7635 cd ..
7636 $RM -r conftest
7637 $RM conftest*
7638
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7641$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7642
7643
7644
7645
7646
7647
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7650if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652else
7653 lt_cv_prog_compiler_c_o=no
7654 $RM -r conftest 2>/dev/null
7655 mkdir conftest
7656 cd conftest
7657 mkdir out
7658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7659
7660 lt_compiler_flag="-o out/conftest2.$ac_objext"
7661 # Insert the option either (1) after the last *FLAGS variable, or
7662 # (2) before a word containing "conftest.", or (3) at the end.
7663 # Note that $ac_compile itself does not contain backslashes and begins
7664 # with a dollar sign (not a hyphen), so the echo should work correctly.
7665 lt_compile=`echo "$ac_compile" | $SED \
7666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668 -e 's:$: $lt_compiler_flag:'`
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007670 (eval "$lt_compile" 2>out/conftest.err)
7671 ac_status=$?
7672 cat out/conftest.err >&5
Douglas Gilbert02f2be12010-11-12 16:00:04 +00007673 echo "$as_me:7673: \$? = $ac_status" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +00007674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7675 then
7676 # The compiler can only warn and ignore the option if not recognized
7677 # So say no if there are warnings
7678 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7681 lt_cv_prog_compiler_c_o=yes
7682 fi
7683 fi
7684 chmod u+w . 2>&5
7685 $RM conftest*
7686 # SGI C++ compiler will create directory out/ii_files/ for
7687 # template instantiation
7688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7689 $RM out/* && rmdir out
7690 cd ..
7691 $RM -r conftest
7692 $RM conftest*
7693
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7696$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7697
7698
7699
7700
7701hard_links="nottested"
7702if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7703 # do not overwrite the value of need_locks provided by the user
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7705$as_echo_n "checking if we can lock with hard links... " >&6; }
7706 hard_links=yes
7707 $RM conftest*
7708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7709 touch conftest.a
7710 ln conftest.a conftest.b 2>&5 || hard_links=no
7711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7713$as_echo "$hard_links" >&6; }
7714 if test "$hard_links" = no; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7716$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7717 need_locks=warn
7718 fi
7719else
7720 need_locks=no
7721fi
7722
7723
7724
7725
7726
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7730
7731 runpath_var=
7732 allow_undefined_flag=
7733 always_export_symbols=no
7734 archive_cmds=
7735 archive_expsym_cmds=
7736 compiler_needs_object=no
7737 enable_shared_with_static_runtimes=no
7738 export_dynamic_flag_spec=
7739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7740 hardcode_automatic=no
7741 hardcode_direct=no
7742 hardcode_direct_absolute=no
7743 hardcode_libdir_flag_spec=
7744 hardcode_libdir_flag_spec_ld=
7745 hardcode_libdir_separator=
7746 hardcode_minus_L=no
7747 hardcode_shlibpath_var=unsupported
7748 inherit_rpath=no
7749 link_all_deplibs=unknown
7750 module_cmds=
7751 module_expsym_cmds=
7752 old_archive_from_new_cmds=
7753 old_archive_from_expsyms_cmds=
7754 thread_safe_flag_spec=
7755 whole_archive_flag_spec=
7756 # include_expsyms should be a list of space-separated symbols to be *always*
7757 # included in the symbol list
7758 include_expsyms=
7759 # exclude_expsyms can be an extended regexp of symbols to exclude
7760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7762 # as well as any symbol that contains `d'.
7763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7765 # platforms (ab)use it in PIC code, but their linkers get confused if
7766 # the symbol is explicitly referenced. Since portable code cannot
7767 # rely on this symbol name, it's probably fine to never include it in
7768 # preloaded symbol tables.
7769 # Exclude shared library initialization/finalization symbols.
7770 extract_expsyms_cmds=
7771
7772 case $host_os in
7773 cygwin* | mingw* | pw32* | cegcc*)
7774 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7775 # When not using gcc, we currently assume that we are using
7776 # Microsoft Visual C++.
7777 if test "$GCC" != yes; then
7778 with_gnu_ld=no
7779 fi
7780 ;;
7781 interix*)
7782 # we just hope/assume this is gcc and not c89 (= MSVC++)
7783 with_gnu_ld=yes
7784 ;;
7785 openbsd*)
7786 with_gnu_ld=no
7787 ;;
7788 linux* | k*bsd*-gnu)
7789 link_all_deplibs=no
7790 ;;
7791 esac
7792
7793 ld_shlibs=yes
7794 if test "$with_gnu_ld" = yes; then
7795 # If archive_cmds runs LD, not CC, wlarc should be empty
7796 wlarc='${wl}'
7797
7798 # Set some defaults for GNU ld with shared library support. These
7799 # are reset later if shared libraries are not supported. Putting them
7800 # here allows them to be overridden if necessary.
7801 runpath_var=LD_RUN_PATH
7802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7803 export_dynamic_flag_spec='${wl}--export-dynamic'
7804 # ancient GNU ld didn't support --whole-archive et. al.
7805 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7806 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7807 else
7808 whole_archive_flag_spec=
7809 fi
7810 supports_anon_versioning=no
7811 case `$LD -v 2>&1` in
7812 *GNU\ gold*) supports_anon_versioning=yes ;;
7813 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7814 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7815 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7816 *\ 2.11.*) ;; # other 2.11 versions
7817 *) supports_anon_versioning=yes ;;
7818 esac
7819
7820 # See if GNU ld supports shared libraries.
7821 case $host_os in
7822 aix[3-9]*)
7823 # On AIX/PPC, the GNU linker is very broken
7824 if test "$host_cpu" != ia64; then
7825 ld_shlibs=no
7826 cat <<_LT_EOF 1>&2
7827
7828*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7829*** to be unable to reliably create shared libraries on AIX.
7830*** Therefore, libtool is disabling shared libraries support. If you
7831*** really care for shared libraries, you may want to modify your PATH
7832*** so that a non-GNU linker is found, and then restart.
7833
7834_LT_EOF
7835 fi
7836 ;;
7837
7838 amigaos*)
7839 case $host_cpu in
7840 powerpc)
7841 # see comment about AmigaOS4 .so support
7842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7843 archive_expsym_cmds=''
7844 ;;
7845 m68k)
7846 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)'
7847 hardcode_libdir_flag_spec='-L$libdir'
7848 hardcode_minus_L=yes
7849 ;;
7850 esac
7851 ;;
7852
7853 beos*)
7854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7855 allow_undefined_flag=unsupported
7856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7857 # support --undefined. This deserves some investigation. FIXME
7858 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7859 else
7860 ld_shlibs=no
7861 fi
7862 ;;
7863
7864 cygwin* | mingw* | pw32* | cegcc*)
7865 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7866 # as there is no search path for DLLs.
7867 hardcode_libdir_flag_spec='-L$libdir'
7868 allow_undefined_flag=unsupported
7869 always_export_symbols=no
7870 enable_shared_with_static_runtimes=yes
7871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7872
7873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7875 # If the export-symbols file already is a .def file (1st line
7876 # is EXPORTS), use it as is; otherwise, prepend...
7877 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7878 cp $export_symbols $output_objdir/$soname.def;
7879 else
7880 echo EXPORTS > $output_objdir/$soname.def;
7881 cat $export_symbols >> $output_objdir/$soname.def;
7882 fi~
7883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7884 else
7885 ld_shlibs=no
7886 fi
7887 ;;
7888
7889 interix[3-9]*)
7890 hardcode_direct=no
7891 hardcode_shlibpath_var=no
7892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7893 export_dynamic_flag_spec='${wl}-E'
7894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7895 # Instead, shared libraries are loaded at an image base (0x10000000 by
7896 # default) and relocated if they conflict, which is a slow very memory
7897 # consuming and fragmenting process. To avoid this, we pick a random,
7898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7901 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'
7902 ;;
7903
7904 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7905 tmp_diet=no
7906 if test "$host_os" = linux-dietlibc; then
7907 case $cc_basename in
7908 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7909 esac
7910 fi
7911 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7912 && test "$tmp_diet" = no
7913 then
7914 tmp_addflag=
7915 tmp_sharedflag='-shared'
7916 case $cc_basename,$host_cpu in
7917 pgcc*) # Portland Group C compiler
7918 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7919 tmp_addflag=' $pic_flag'
7920 ;;
7921 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7922 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7923 tmp_addflag=' $pic_flag -Mnomain' ;;
7924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7925 tmp_addflag=' -i_dynamic' ;;
7926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7927 tmp_addflag=' -i_dynamic -nofor_main' ;;
7928 ifc* | ifort*) # Intel Fortran compiler
7929 tmp_addflag=' -nofor_main' ;;
7930 lf95*) # Lahey Fortran 8.1
7931 whole_archive_flag_spec=
7932 tmp_sharedflag='--shared' ;;
7933 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7934 tmp_sharedflag='-qmkshrobj'
7935 tmp_addflag= ;;
7936 esac
7937 case `$CC -V 2>&1 | sed 5q` in
7938 *Sun\ C*) # Sun C 5.9
7939 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7940 compiler_needs_object=yes
7941 tmp_sharedflag='-G' ;;
7942 *Sun\ F*) # Sun Fortran 8.3
7943 tmp_sharedflag='-G' ;;
7944 esac
7945 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946
7947 if test "x$supports_anon_versioning" = xyes; then
7948 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7950 echo "local: *; };" >> $output_objdir/$libname.ver~
7951 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7952 fi
7953
7954 case $cc_basename in
7955 xlf*)
7956 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7957 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7958 hardcode_libdir_flag_spec=
7959 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7960 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7961 if test "x$supports_anon_versioning" = xyes; then
7962 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7964 echo "local: *; };" >> $output_objdir/$libname.ver~
7965 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7966 fi
7967 ;;
7968 esac
7969 else
7970 ld_shlibs=no
7971 fi
7972 ;;
7973
7974 netbsd* | netbsdelf*-gnu)
7975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7976 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7977 wlarc=
7978 else
7979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7981 fi
7982 ;;
7983
7984 solaris*)
7985 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7986 ld_shlibs=no
7987 cat <<_LT_EOF 1>&2
7988
7989*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7990*** create shared libraries on Solaris systems. Therefore, libtool
7991*** is disabling shared libraries support. We urge you to upgrade GNU
7992*** binutils to release 2.9.1 or newer. Another option is to modify
7993*** your PATH or compiler configuration so that the native linker is
7994*** used, and then restart.
7995
7996_LT_EOF
7997 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8000 else
8001 ld_shlibs=no
8002 fi
8003 ;;
8004
8005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8006 case `$LD -v 2>&1` in
8007 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8008 ld_shlibs=no
8009 cat <<_LT_EOF 1>&2
8010
8011*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8012*** reliably create shared libraries on SCO systems. Therefore, libtool
8013*** is disabling shared libraries support. We urge you to upgrade GNU
8014*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8015*** your PATH or compiler configuration so that the native linker is
8016*** used, and then restart.
8017
8018_LT_EOF
8019 ;;
8020 *)
8021 # For security reasons, it is highly recommended that you always
8022 # use absolute paths for naming shared libraries, and exclude the
8023 # DT_RUNPATH tag from executables and libraries. But doing so
8024 # requires that you compile everything twice, which is a pain.
8025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8029 else
8030 ld_shlibs=no
8031 fi
8032 ;;
8033 esac
8034 ;;
8035
8036 sunos4*)
8037 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8038 wlarc=
8039 hardcode_direct=yes
8040 hardcode_shlibpath_var=no
8041 ;;
8042
8043 *)
8044 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047 else
8048 ld_shlibs=no
8049 fi
8050 ;;
8051 esac
8052
8053 if test "$ld_shlibs" = no; then
8054 runpath_var=
8055 hardcode_libdir_flag_spec=
8056 export_dynamic_flag_spec=
8057 whole_archive_flag_spec=
8058 fi
8059 else
8060 # PORTME fill in a description of your system's linker (not GNU ld)
8061 case $host_os in
8062 aix3*)
8063 allow_undefined_flag=unsupported
8064 always_export_symbols=yes
8065 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'
8066 # Note: this linker hardcodes the directories in LIBPATH if there
8067 # are no directories specified by -L.
8068 hardcode_minus_L=yes
8069 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8070 # Neither direct hardcoding nor static linking is supported with a
8071 # broken collect2.
8072 hardcode_direct=unsupported
8073 fi
8074 ;;
8075
8076 aix[4-9]*)
8077 if test "$host_cpu" = ia64; then
8078 # On IA64, the linker does run time linking by default, so we don't
8079 # have to do anything special.
8080 aix_use_runtimelinking=no
8081 exp_sym_flag='-Bexport'
8082 no_entry_flag=""
8083 else
8084 # If we're using GNU nm, then we don't want the "-C" option.
8085 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8086 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8087 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8088 else
8089 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'
8090 fi
8091 aix_use_runtimelinking=no
8092
8093 # Test if we are trying to use run time linking or normal
8094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8095 # need to do runtime linking.
8096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8097 for ld_flag in $LDFLAGS; do
8098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8099 aix_use_runtimelinking=yes
8100 break
8101 fi
8102 done
8103 ;;
8104 esac
8105
8106 exp_sym_flag='-bexport'
8107 no_entry_flag='-bnoentry'
8108 fi
8109
8110 # When large executables or shared objects are built, AIX ld can
8111 # have problems creating the table of contents. If linking a library
8112 # or program results in "error TOC overflow" add -mminimal-toc to
8113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8115
8116 archive_cmds=''
8117 hardcode_direct=yes
8118 hardcode_direct_absolute=yes
8119 hardcode_libdir_separator=':'
8120 link_all_deplibs=yes
8121 file_list_spec='${wl}-f,'
8122
8123 if test "$GCC" = yes; then
8124 case $host_os in aix4.[012]|aix4.[012].*)
8125 # We only want to do this on AIX 4.2 and lower, the check
8126 # below for broken collect2 doesn't work under 4.3+
8127 collect2name=`${CC} -print-prog-name=collect2`
8128 if test -f "$collect2name" &&
8129 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8130 then
8131 # We have reworked collect2
8132 :
8133 else
8134 # We have old collect2
8135 hardcode_direct=unsupported
8136 # It fails to find uninstalled libraries when the uninstalled
8137 # path is not listed in the libpath. Setting hardcode_minus_L
8138 # to unsupported forces relinking
8139 hardcode_minus_L=yes
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_libdir_separator=
8142 fi
8143 ;;
8144 esac
8145 shared_flag='-shared'
8146 if test "$aix_use_runtimelinking" = yes; then
8147 shared_flag="$shared_flag "'${wl}-G'
8148 fi
8149 link_all_deplibs=no
8150 else
8151 # not using gcc
8152 if test "$host_cpu" = ia64; then
8153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8154 # chokes on -Wl,-G. The following line is correct:
8155 shared_flag='-G'
8156 else
8157 if test "$aix_use_runtimelinking" = yes; then
8158 shared_flag='${wl}-G'
8159 else
8160 shared_flag='${wl}-bM:SRE'
8161 fi
8162 fi
8163 fi
8164
8165 export_dynamic_flag_spec='${wl}-bexpall'
8166 # It seems that -bexpall does not export symbols beginning with
8167 # underscore (_), so it is better to generate a list of symbols to export.
8168 always_export_symbols=yes
8169 if test "$aix_use_runtimelinking" = yes; then
8170 # Warning - without using the other runtime loading flags (-brtl),
8171 # -berok will link without error, but may produce a broken library.
8172 allow_undefined_flag='-berok'
8173 # Determine the default libpath from the value encoded in an
8174 # empty executable.
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h. */
8177
8178int
8179main ()
8180{
8181
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186if ac_fn_c_try_link "$LINENO"; then :
8187
8188lt_aix_libpath_sed='
8189 /Import File Strings/,/^$/ {
8190 /^0/ {
8191 s/^0 *\(.*\)$/\1/
8192 p
8193 }
8194 }'
8195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8196# Check for a 64-bit object if we didn't find anything.
8197if test -z "$aix_libpath"; then
8198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8199fi
8200fi
8201rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8204
8205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8206 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8207 else
8208 if test "$host_cpu" = ia64; then
8209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8210 allow_undefined_flag="-z nodefs"
8211 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"
8212 else
8213 # Determine the default libpath from the value encoded in an
8214 # empty executable.
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h. */
8217
8218int
8219main ()
8220{
8221
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_link "$LINENO"; then :
8227
8228lt_aix_libpath_sed='
8229 /Import File Strings/,/^$/ {
8230 /^0/ {
8231 s/^0 *\(.*\)$/\1/
8232 p
8233 }
8234 }'
8235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8236# Check for a 64-bit object if we didn't find anything.
8237if test -z "$aix_libpath"; then
8238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8239fi
8240fi
8241rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8244
8245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8246 # Warning - without using the other run time loading flags,
8247 # -berok will link without error, but may produce a broken library.
8248 no_undefined_flag=' ${wl}-bernotok'
8249 allow_undefined_flag=' ${wl}-berok'
8250 # Exported symbols can be pulled into shared objects from archives
8251 whole_archive_flag_spec='$convenience'
8252 archive_cmds_need_lc=yes
8253 # This is similar to how AIX traditionally builds its shared libraries.
8254 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'
8255 fi
8256 fi
8257 ;;
8258
8259 amigaos*)
8260 case $host_cpu in
8261 powerpc)
8262 # see comment about AmigaOS4 .so support
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds=''
8265 ;;
8266 m68k)
8267 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)'
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_minus_L=yes
8270 ;;
8271 esac
8272 ;;
8273
8274 bsdi[45]*)
8275 export_dynamic_flag_spec=-rdynamic
8276 ;;
8277
8278 cygwin* | mingw* | pw32* | cegcc*)
8279 # When not using gcc, we currently assume that we are using
8280 # Microsoft Visual C++.
8281 # hardcode_libdir_flag_spec is actually meaningless, as there is
8282 # no search path for DLLs.
8283 hardcode_libdir_flag_spec=' '
8284 allow_undefined_flag=unsupported
8285 # Tell ltmain to make .lib files, not .a files.
8286 libext=lib
8287 # Tell ltmain to make .dll files, not .so files.
8288 shrext_cmds=".dll"
8289 # FIXME: Setting linknames here is a bad hack.
8290 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8291 # The linker will automatically build a .lib file if we build a DLL.
8292 old_archive_from_new_cmds='true'
8293 # FIXME: Should let the user specify the lib program.
8294 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8295 fix_srcfile_path='`cygpath -w "$srcfile"`'
8296 enable_shared_with_static_runtimes=yes
8297 ;;
8298
8299 darwin* | rhapsody*)
8300
8301
8302 archive_cmds_need_lc=no
8303 hardcode_direct=no
8304 hardcode_automatic=yes
8305 hardcode_shlibpath_var=unsupported
8306 whole_archive_flag_spec=''
8307 link_all_deplibs=yes
8308 allow_undefined_flag="$_lt_dar_allow_undefined"
8309 case $cc_basename in
8310 ifort*) _lt_dar_can_shared=yes ;;
8311 *) _lt_dar_can_shared=$GCC ;;
8312 esac
8313 if test "$_lt_dar_can_shared" = "yes"; then
8314 output_verbose_link_cmd=echo
8315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8317 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}"
8318 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}"
8319
8320 else
8321 ld_shlibs=no
8322 fi
8323
8324 ;;
8325
8326 dgux*)
8327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_libdir_flag_spec='-L$libdir'
8329 hardcode_shlibpath_var=no
8330 ;;
8331
8332 freebsd1*)
8333 ld_shlibs=no
8334 ;;
8335
8336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8337 # support. Future versions do this automatically, but an explicit c++rt0.o
8338 # does not break anything, and helps significantly (at the cost of a little
8339 # extra space).
8340 freebsd2.2*)
8341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8342 hardcode_libdir_flag_spec='-R$libdir'
8343 hardcode_direct=yes
8344 hardcode_shlibpath_var=no
8345 ;;
8346
8347 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8348 freebsd2*)
8349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_direct=yes
8351 hardcode_minus_L=yes
8352 hardcode_shlibpath_var=no
8353 ;;
8354
8355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8356 freebsd* | dragonfly*)
8357 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_direct=yes
8360 hardcode_shlibpath_var=no
8361 ;;
8362
8363 hpux9*)
8364 if test "$GCC" = yes; then
8365 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'
8366 else
8367 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'
8368 fi
8369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8370 hardcode_libdir_separator=:
8371 hardcode_direct=yes
8372
8373 # hardcode_minus_L: Not really in the search PATH,
8374 # but as the default location of the library.
8375 hardcode_minus_L=yes
8376 export_dynamic_flag_spec='${wl}-E'
8377 ;;
8378
8379 hpux10*)
8380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8381 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8382 else
8383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8384 fi
8385 if test "$with_gnu_ld" = no; then
8386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8387 hardcode_libdir_flag_spec_ld='+b $libdir'
8388 hardcode_libdir_separator=:
8389 hardcode_direct=yes
8390 hardcode_direct_absolute=yes
8391 export_dynamic_flag_spec='${wl}-E'
8392 # hardcode_minus_L: Not really in the search PATH,
8393 # but as the default location of the library.
8394 hardcode_minus_L=yes
8395 fi
8396 ;;
8397
8398 hpux11*)
8399 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8400 case $host_cpu in
8401 hppa*64*)
8402 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 ;;
8404 ia64*)
8405 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8406 ;;
8407 *)
8408 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8409 ;;
8410 esac
8411 else
8412 case $host_cpu in
8413 hppa*64*)
8414 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 ;;
8416 ia64*)
8417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8418 ;;
8419 *)
8420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8421 ;;
8422 esac
8423 fi
8424 if test "$with_gnu_ld" = no; then
8425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8426 hardcode_libdir_separator=:
8427
8428 case $host_cpu in
8429 hppa*64*|ia64*)
8430 hardcode_direct=no
8431 hardcode_shlibpath_var=no
8432 ;;
8433 *)
8434 hardcode_direct=yes
8435 hardcode_direct_absolute=yes
8436 export_dynamic_flag_spec='${wl}-E'
8437
8438 # hardcode_minus_L: Not really in the search PATH,
8439 # but as the default location of the library.
8440 hardcode_minus_L=yes
8441 ;;
8442 esac
8443 fi
8444 ;;
8445
8446 irix5* | irix6* | nonstopux*)
8447 if test "$GCC" = yes; then
8448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8449 # Try to use the -exported_symbol ld option, if it does not
8450 # work, assume that -exports_file does not work either and
8451 # implicitly export all symbols.
8452 save_LDFLAGS="$LDFLAGS"
8453 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h. */
8456int foo(void) {}
8457_ACEOF
8458if ac_fn_c_try_link "$LINENO"; then :
8459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8460
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 LDFLAGS="$save_LDFLAGS"
8465 else
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8468 fi
8469 archive_cmds_need_lc='no'
8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471 hardcode_libdir_separator=:
8472 inherit_rpath=yes
8473 link_all_deplibs=yes
8474 ;;
8475
8476 netbsd* | netbsdelf*-gnu)
8477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8479 else
8480 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8481 fi
8482 hardcode_libdir_flag_spec='-R$libdir'
8483 hardcode_direct=yes
8484 hardcode_shlibpath_var=no
8485 ;;
8486
8487 newsos6)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_direct=yes
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491 hardcode_libdir_separator=:
8492 hardcode_shlibpath_var=no
8493 ;;
8494
8495 *nto* | *qnx*)
8496 ;;
8497
8498 openbsd*)
8499 if test -f /usr/libexec/ld.so; then
8500 hardcode_direct=yes
8501 hardcode_shlibpath_var=no
8502 hardcode_direct_absolute=yes
8503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8507 export_dynamic_flag_spec='${wl}-E'
8508 else
8509 case $host_os in
8510 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_libdir_flag_spec='-R$libdir'
8513 ;;
8514 *)
8515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8517 ;;
8518 esac
8519 fi
8520 else
8521 ld_shlibs=no
8522 fi
8523 ;;
8524
8525 os2*)
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_minus_L=yes
8528 allow_undefined_flag=unsupported
8529 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'
8530 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8531 ;;
8532
8533 osf3*)
8534 if test "$GCC" = yes; then
8535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8536 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8537 else
8538 allow_undefined_flag=' -expect_unresolved \*'
8539 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8540 fi
8541 archive_cmds_need_lc='no'
8542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8543 hardcode_libdir_separator=:
8544 ;;
8545
8546 osf4* | osf5*) # as osf3* with the addition of -msym flag
8547 if test "$GCC" = yes; then
8548 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8549 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551 else
8552 allow_undefined_flag=' -expect_unresolved \*'
8553 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8554 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~
8555 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8556
8557 # Both c and cxx compiler support -rpath directly
8558 hardcode_libdir_flag_spec='-rpath $libdir'
8559 fi
8560 archive_cmds_need_lc='no'
8561 hardcode_libdir_separator=:
8562 ;;
8563
8564 solaris*)
8565 no_undefined_flag=' -z defs'
8566 if test "$GCC" = yes; then
8567 wlarc='${wl}'
8568 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8570 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8571 else
8572 case `$CC -V 2>&1` in
8573 *"Compilers 5.0"*)
8574 wlarc=''
8575 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8578 ;;
8579 *)
8580 wlarc='${wl}'
8581 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8583 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8584 ;;
8585 esac
8586 fi
8587 hardcode_libdir_flag_spec='-R$libdir'
8588 hardcode_shlibpath_var=no
8589 case $host_os in
8590 solaris2.[0-5] | solaris2.[0-5].*) ;;
8591 *)
8592 # The compiler driver will combine and reorder linker options,
8593 # but understands `-z linker_flag'. GCC discards it without `$wl',
8594 # but is careful enough not to reorder.
8595 # Supported since Solaris 2.6 (maybe 2.5.1?)
8596 if test "$GCC" = yes; then
8597 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8598 else
8599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8600 fi
8601 ;;
8602 esac
8603 link_all_deplibs=yes
8604 ;;
8605
8606 sunos4*)
8607 if test "x$host_vendor" = xsequent; then
8608 # Use $CC to link under sequent, because it throws in some extra .o
8609 # files that make .init and .fini sections work.
8610 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8611 else
8612 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8613 fi
8614 hardcode_libdir_flag_spec='-L$libdir'
8615 hardcode_direct=yes
8616 hardcode_minus_L=yes
8617 hardcode_shlibpath_var=no
8618 ;;
8619
8620 sysv4)
8621 case $host_vendor in
8622 sni)
8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_direct=yes # is this really true???
8625 ;;
8626 siemens)
8627 ## LD is ld it makes a PLAMLIB
8628 ## CC just makes a GrossModule.
8629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8630 reload_cmds='$CC -r -o $output$reload_objs'
8631 hardcode_direct=no
8632 ;;
8633 motorola)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8636 ;;
8637 esac
8638 runpath_var='LD_RUN_PATH'
8639 hardcode_shlibpath_var=no
8640 ;;
8641
8642 sysv4.3*)
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_shlibpath_var=no
8645 export_dynamic_flag_spec='-Bexport'
8646 ;;
8647
8648 sysv4*MP*)
8649 if test -d /usr/nec; then
8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651 hardcode_shlibpath_var=no
8652 runpath_var=LD_RUN_PATH
8653 hardcode_runpath_var=yes
8654 ld_shlibs=yes
8655 fi
8656 ;;
8657
8658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8659 no_undefined_flag='${wl}-z,text'
8660 archive_cmds_need_lc=no
8661 hardcode_shlibpath_var=no
8662 runpath_var='LD_RUN_PATH'
8663
8664 if test "$GCC" = yes; then
8665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8667 else
8668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8670 fi
8671 ;;
8672
8673 sysv5* | sco3.2v5* | sco5v6*)
8674 # Note: We can NOT use -z defs as we might desire, because we do not
8675 # link with -lc, and that would cause any symbols used from libc to
8676 # always be unresolved, which means just about no library would
8677 # ever link correctly. If we're not using GNU ld we use -z text
8678 # though, which does catch some bad symbols but isn't as heavy-handed
8679 # as -z defs.
8680 no_undefined_flag='${wl}-z,text'
8681 allow_undefined_flag='${wl}-z,nodefs'
8682 archive_cmds_need_lc=no
8683 hardcode_shlibpath_var=no
8684 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8685 hardcode_libdir_separator=':'
8686 link_all_deplibs=yes
8687 export_dynamic_flag_spec='${wl}-Bexport'
8688 runpath_var='LD_RUN_PATH'
8689
8690 if test "$GCC" = yes; then
8691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 else
8694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8696 fi
8697 ;;
8698
8699 uts4*)
8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701 hardcode_libdir_flag_spec='-L$libdir'
8702 hardcode_shlibpath_var=no
8703 ;;
8704
8705 *)
8706 ld_shlibs=no
8707 ;;
8708 esac
8709
8710 if test x$host_vendor = xsni; then
8711 case $host in
8712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8713 export_dynamic_flag_spec='${wl}-Blargedynsym'
8714 ;;
8715 esac
8716 fi
8717 fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8720$as_echo "$ld_shlibs" >&6; }
8721test "$ld_shlibs" = no && can_build_shared=no
8722
8723with_gnu_ld=$with_gnu_ld
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739#
8740# Do we need to explicitly link libc?
8741#
8742case "x$archive_cmds_need_lc" in
8743x|xyes)
8744 # Assume -lc should be added
8745 archive_cmds_need_lc=yes
8746
8747 if test "$enable_shared" = yes && test "$GCC" = yes; then
8748 case $archive_cmds in
8749 *'~'*)
8750 # FIXME: we may have to deal with multi-command sequences.
8751 ;;
8752 '$CC '*)
8753 # Test whether the compiler implicitly links with -lc since on some
8754 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8755 # to ld, don't add -lc before -lgcc.
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8757$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8758 $RM conftest*
8759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8760
8761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8762 (eval $ac_compile) 2>&5
8763 ac_status=$?
8764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765 test $ac_status = 0; } 2>conftest.err; then
8766 soname=conftest
8767 lib=conftest
8768 libobjs=conftest.$ac_objext
8769 deplibs=
8770 wl=$lt_prog_compiler_wl
8771 pic_flag=$lt_prog_compiler_pic
8772 compiler_flags=-v
8773 linker_flags=-v
8774 verstring=
8775 output_objdir=.
8776 libname=conftest
8777 lt_save_allow_undefined_flag=$allow_undefined_flag
8778 allow_undefined_flag=
8779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8780 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8781 ac_status=$?
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }
8784 then
8785 archive_cmds_need_lc=no
8786 else
8787 archive_cmds_need_lc=yes
8788 fi
8789 allow_undefined_flag=$lt_save_allow_undefined_flag
8790 else
8791 cat conftest.err 1>&5
8792 fi
8793 $RM conftest*
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8795$as_echo "$archive_cmds_need_lc" >&6; }
8796 ;;
8797 esac
8798 fi
8799 ;;
8800esac
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8959$as_echo_n "checking dynamic linker characteristics... " >&6; }
8960
8961if test "$GCC" = yes; then
8962 case $host_os in
8963 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8964 *) lt_awk_arg="/^libraries:/" ;;
8965 esac
8966 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8967 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8968 # if the path contains ";" then we assume it to be the separator
8969 # otherwise default to the standard path separator (i.e. ":") - it is
8970 # assumed that no part of a normal pathname contains ";" but that should
8971 # okay in the real world where ";" in dirpaths is itself problematic.
8972 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8973 else
8974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8975 fi
8976 # Ok, now we have the path, separated by spaces, we can step through it
8977 # and add multilib dir if necessary.
8978 lt_tmp_lt_search_path_spec=
8979 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8980 for lt_sys_path in $lt_search_path_spec; do
8981 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8983 else
8984 test -d "$lt_sys_path" && \
8985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8986 fi
8987 done
8988 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8989BEGIN {RS=" "; FS="/|\n";} {
8990 lt_foo="";
8991 lt_count=0;
8992 for (lt_i = NF; lt_i > 0; lt_i--) {
8993 if ($lt_i != "" && $lt_i != ".") {
8994 if ($lt_i == "..") {
8995 lt_count++;
8996 } else {
8997 if (lt_count == 0) {
8998 lt_foo="/" $lt_i lt_foo;
8999 } else {
9000 lt_count--;
9001 }
9002 }
9003 }
9004 }
9005 if (lt_foo != "") { lt_freq[lt_foo]++; }
9006 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9007}'`
9008 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9009else
9010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9011fi
9012library_names_spec=
9013libname_spec='lib$name'
9014soname_spec=
9015shrext_cmds=".so"
9016postinstall_cmds=
9017postuninstall_cmds=
9018finish_cmds=
9019finish_eval=
9020shlibpath_var=
9021shlibpath_overrides_runpath=unknown
9022version_type=none
9023dynamic_linker="$host_os ld.so"
9024sys_lib_dlsearch_path_spec="/lib /usr/lib"
9025need_lib_prefix=unknown
9026hardcode_into_libs=no
9027
9028# when you set need_version to no, make sure it does not cause -set_version
9029# flags to be left without arguments
9030need_version=unknown
9031
9032case $host_os in
9033aix3*)
9034 version_type=linux
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9036 shlibpath_var=LIBPATH
9037
9038 # AIX 3 has no versioning support, so we append a major version to the name.
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 ;;
9041
9042aix[4-9]*)
9043 version_type=linux
9044 need_lib_prefix=no
9045 need_version=no
9046 hardcode_into_libs=yes
9047 if test "$host_cpu" = ia64; then
9048 # AIX 5 supports IA64
9049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 else
9052 # With GCC up to 2.95.x, collect2 would create an import file
9053 # for dependence libraries. The import file would start with
9054 # the line `#! .'. This would cause the generated library to
9055 # depend on `.', always an invalid library. This was fixed in
9056 # development snapshots of GCC prior to 3.0.
9057 case $host_os in
9058 aix4 | aix4.[01] | aix4.[01].*)
9059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9060 echo ' yes '
9061 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9062 :
9063 else
9064 can_build_shared=no
9065 fi
9066 ;;
9067 esac
9068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9069 # soname into executable. Probably we can add versioning support to
9070 # collect2, so additional links can be useful in future.
9071 if test "$aix_use_runtimelinking" = yes; then
9072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9073 # instead of lib<name>.a to let people know that these are not
9074 # typical AIX shared libraries.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 else
9077 # We preserve .a as extension for shared libraries through AIX4.2
9078 # and later when we are not doing run time linking.
9079 library_names_spec='${libname}${release}.a $libname.a'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 fi
9082 shlibpath_var=LIBPATH
9083 fi
9084 ;;
9085
9086amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # Since July 2007 AmigaOS4 officially supports .so libraries.
9090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 ;;
9093 m68k)
9094 library_names_spec='$libname.ixlibrary $libname.a'
9095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9096 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9097 ;;
9098 esac
9099 ;;
9100
9101beos*)
9102 library_names_spec='${libname}${shared_ext}'
9103 dynamic_linker="$host_os ld.so"
9104 shlibpath_var=LIBRARY_PATH
9105 ;;
9106
9107bsdi[45]*)
9108 version_type=linux
9109 need_version=no
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9116 # the default ld.so.conf also contains /usr/contrib/lib and
9117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9118 # libtool to hard-code these into programs
9119 ;;
9120
9121cygwin* | mingw* | pw32* | cegcc*)
9122 version_type=windows
9123 shrext_cmds=".dll"
9124 need_version=no
9125 need_lib_prefix=no
9126
9127 case $GCC,$host_os in
9128 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9129 library_names_spec='$libname.dll.a'
9130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9131 postinstall_cmds='base_file=`basename \${file}`~
9132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9133 dldir=$destdir/`dirname \$dlpath`~
9134 test -d \$dldir || mkdir -p \$dldir~
9135 $install_prog $dir/$dlname \$dldir/$dlname~
9136 chmod a+x \$dldir/$dlname~
9137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9139 fi'
9140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9141 dlpath=$dir/\$dldll~
9142 $RM \$dlpath'
9143 shlibpath_overrides_runpath=yes
9144
9145 case $host_os in
9146 cygwin*)
9147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9149 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9150 ;;
9151 mingw* | cegcc*)
9152 # MinGW DLLs use traditional 'lib' prefix
9153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9154 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9155 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9156 # It is most probably a Windows format PATH printed by
9157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9158 # path with ; separators, and with drive letters. We can handle the
9159 # drive letters (cygwin fileutils understands them), so leave them,
9160 # especially as we might pass files found there to a mingw objdump,
9161 # which wouldn't understand a cygwinified path. Ahh.
9162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9163 else
9164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9165 fi
9166 ;;
9167 pw32*)
9168 # pw32 DLLs use 'pw' prefix rather than 'lib'
9169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9170 ;;
9171 esac
9172 ;;
9173
9174 *)
9175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9176 ;;
9177 esac
9178 dynamic_linker='Win32 ld.exe'
9179 # FIXME: first we should search . and the directory the executable is in
9180 shlibpath_var=PATH
9181 ;;
9182
9183darwin* | rhapsody*)
9184 dynamic_linker="$host_os dyld"
9185 version_type=darwin
9186 need_lib_prefix=no
9187 need_version=no
9188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9189 soname_spec='${libname}${release}${major}$shared_ext'
9190 shlibpath_overrides_runpath=yes
9191 shlibpath_var=DYLD_LIBRARY_PATH
9192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9193
9194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9196 ;;
9197
9198dgux*)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 ;;
9206
9207freebsd1*)
9208 dynamic_linker=no
9209 ;;
9210
9211freebsd* | dragonfly*)
9212 # DragonFly does not have aout. When/if they implement a new
9213 # versioning mechanism, adjust this.
9214 if test -x /usr/bin/objformat; then
9215 objformat=`/usr/bin/objformat`
9216 else
9217 case $host_os in
9218 freebsd[123]*) objformat=aout ;;
9219 *) objformat=elf ;;
9220 esac
9221 fi
9222 version_type=freebsd-$objformat
9223 case $version_type in
9224 freebsd-elf*)
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226 need_version=no
9227 need_lib_prefix=no
9228 ;;
9229 freebsd-*)
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9231 need_version=yes
9232 ;;
9233 esac
9234 shlibpath_var=LD_LIBRARY_PATH
9235 case $host_os in
9236 freebsd2*)
9237 shlibpath_overrides_runpath=yes
9238 ;;
9239 freebsd3.[01]* | freebsdelf3.[01]*)
9240 shlibpath_overrides_runpath=yes
9241 hardcode_into_libs=yes
9242 ;;
9243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9245 shlibpath_overrides_runpath=no
9246 hardcode_into_libs=yes
9247 ;;
9248 *) # from 4.6 on, and DragonFly
9249 shlibpath_overrides_runpath=yes
9250 hardcode_into_libs=yes
9251 ;;
9252 esac
9253 ;;
9254
9255gnu*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 hardcode_into_libs=yes
9263 ;;
9264
9265hpux9* | hpux10* | hpux11*)
9266 # Give a soname corresponding to the major version so that dld.sl refuses to
9267 # link against other versions.
9268 version_type=sunos
9269 need_lib_prefix=no
9270 need_version=no
9271 case $host_cpu in
9272 ia64*)
9273 shrext_cmds='.so'
9274 hardcode_into_libs=yes
9275 dynamic_linker="$host_os dld.so"
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 if test "X$HPUX_IA64_MODE" = X32; then
9281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9282 else
9283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9284 fi
9285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9286 ;;
9287 hppa*64*)
9288 shrext_cmds='.sl'
9289 hardcode_into_libs=yes
9290 dynamic_linker="$host_os dld.sl"
9291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9297 ;;
9298 *)
9299 shrext_cmds='.sl'
9300 dynamic_linker="$host_os dld.sl"
9301 shlibpath_var=SHLIB_PATH
9302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 ;;
9306 esac
9307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9308 postinstall_cmds='chmod 555 $lib'
9309 ;;
9310
9311interix[3-9]*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=no
9320 hardcode_into_libs=yes
9321 ;;
9322
9323irix5* | irix6* | nonstopux*)
9324 case $host_os in
9325 nonstopux*) version_type=nonstopux ;;
9326 *)
9327 if test "$lt_cv_prog_gnu_ld" = yes; then
9328 version_type=linux
9329 else
9330 version_type=irix
9331 fi ;;
9332 esac
9333 need_lib_prefix=no
9334 need_version=no
9335 soname_spec='${libname}${release}${shared_ext}$major'
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9337 case $host_os in
9338 irix5* | nonstopux*)
9339 libsuff= shlibsuff=
9340 ;;
9341 *)
9342 case $LD in # libtool.m4 will add one of these switches to LD
9343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9344 libsuff= shlibsuff= libmagic=32-bit;;
9345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9346 libsuff=32 shlibsuff=N32 libmagic=N32;;
9347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9349 *) libsuff= shlibsuff= libmagic=never-match;;
9350 esac
9351 ;;
9352 esac
9353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9354 shlibpath_overrides_runpath=no
9355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9357 hardcode_into_libs=yes
9358 ;;
9359
9360# No shared lib support for Linux oldld, aout, or coff.
9361linux*oldld* | linux*aout* | linux*coff*)
9362 dynamic_linker=no
9363 ;;
9364
9365# This must be Linux ELF.
9366linux* | k*bsd*-gnu | kopensolaris*-gnu)
9367 version_type=linux
9368 need_lib_prefix=no
9369 need_version=no
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 shlibpath_overrides_runpath=no
9375 # Some binutils ld are patched to set DT_RUNPATH
9376 save_LDFLAGS=$LDFLAGS
9377 save_libdir=$libdir
9378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
9382
9383int
9384main ()
9385{
9386
9387 ;
9388 return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9393 shlibpath_overrides_runpath=yes
9394fi
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LDFLAGS=$save_LDFLAGS
9399 libdir=$save_libdir
9400
9401 # This implies no fast_install, which is unacceptable.
9402 # Some rework will be needed to allow for fast_install
9403 # before this can be enabled.
9404 hardcode_into_libs=yes
9405
9406 # Append ld.so.conf contents to the search path
9407 if test -f /etc/ld.so.conf; then
9408 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9410 fi
9411
9412 # We used to test for /lib/ld.so.1 and disable shared libraries on
9413 # powerpc, because MkLinux only supported shared libraries with the
9414 # GNU dynamic linker. Since this was broken with cross compilers,
9415 # most powerpc-linux boxes support dynamic linking these days and
9416 # people can always --disable-shared, the test was removed, and we
9417 # assume the GNU/Linux dynamic linker is in use.
9418 dynamic_linker='GNU/Linux ld.so'
9419 ;;
9420
9421netbsdelf*-gnu)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 hardcode_into_libs=yes
9430 dynamic_linker='NetBSD ld.elf_so'
9431 ;;
9432
9433netbsd*)
9434 version_type=sunos
9435 need_lib_prefix=no
9436 need_version=no
9437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9440 dynamic_linker='NetBSD (a.out) ld.so'
9441 else
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 dynamic_linker='NetBSD ld.elf_so'
9445 fi
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9449 ;;
9450
9451newsos6)
9452 version_type=linux
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 ;;
9457
9458*nto* | *qnx*)
9459 version_type=qnx
9460 need_lib_prefix=no
9461 need_version=no
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=no
9466 hardcode_into_libs=yes
9467 dynamic_linker='ldqnx.so'
9468 ;;
9469
9470openbsd*)
9471 version_type=sunos
9472 sys_lib_dlsearch_path_spec="/usr/lib"
9473 need_lib_prefix=no
9474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9475 case $host_os in
9476 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9477 *) need_version=no ;;
9478 esac
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9483 case $host_os in
9484 openbsd2.[89] | openbsd2.[89].*)
9485 shlibpath_overrides_runpath=no
9486 ;;
9487 *)
9488 shlibpath_overrides_runpath=yes
9489 ;;
9490 esac
9491 else
9492 shlibpath_overrides_runpath=yes
9493 fi
9494 ;;
9495
9496os2*)
9497 libname_spec='$name'
9498 shrext_cmds=".dll"
9499 need_lib_prefix=no
9500 library_names_spec='$libname${shared_ext} $libname.a'
9501 dynamic_linker='OS/2 ld.exe'
9502 shlibpath_var=LIBPATH
9503 ;;
9504
9505osf3* | osf4* | osf5*)
9506 version_type=osf
9507 need_lib_prefix=no
9508 need_version=no
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9514 ;;
9515
9516rdos*)
9517 dynamic_linker=no
9518 ;;
9519
9520solaris*)
9521 version_type=linux
9522 need_lib_prefix=no
9523 need_version=no
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9529 # ldd complains unless libraries are executable
9530 postinstall_cmds='chmod +x $lib'
9531 ;;
9532
9533sunos4*)
9534 version_type=sunos
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=yes
9539 if test "$with_gnu_ld" = yes; then
9540 need_lib_prefix=no
9541 fi
9542 need_version=yes
9543 ;;
9544
9545sysv4 | sysv4.3*)
9546 version_type=linux
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 shlibpath_var=LD_LIBRARY_PATH
9550 case $host_vendor in
9551 sni)
9552 shlibpath_overrides_runpath=no
9553 need_lib_prefix=no
9554 runpath_var=LD_RUN_PATH
9555 ;;
9556 siemens)
9557 need_lib_prefix=no
9558 ;;
9559 motorola)
9560 need_lib_prefix=no
9561 need_version=no
9562 shlibpath_overrides_runpath=no
9563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9564 ;;
9565 esac
9566 ;;
9567
9568sysv4*MP*)
9569 if test -d /usr/nec ;then
9570 version_type=linux
9571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9572 soname_spec='$libname${shared_ext}.$major'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 fi
9575 ;;
9576
9577sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9578 version_type=freebsd-elf
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9585 hardcode_into_libs=yes
9586 if test "$with_gnu_ld" = yes; then
9587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9588 else
9589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9590 case $host_os in
9591 sco3.2v5*)
9592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9593 ;;
9594 esac
9595 fi
9596 sys_lib_dlsearch_path_spec='/usr/lib'
9597 ;;
9598
9599tpf*)
9600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9601 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 shlibpath_var=LD_LIBRARY_PATH
9606 shlibpath_overrides_runpath=no
9607 hardcode_into_libs=yes
9608 ;;
9609
9610uts4*)
9611 version_type=linux
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 ;;
9616
9617*)
9618 dynamic_linker=no
9619 ;;
9620esac
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9622$as_echo "$dynamic_linker" >&6; }
9623test "$dynamic_linker" = no && can_build_shared=no
9624
9625variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9626if test "$GCC" = yes; then
9627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9628fi
9629
9630if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9631 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9632fi
9633if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9634 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9635fi
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9724$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9725hardcode_action=
9726if test -n "$hardcode_libdir_flag_spec" ||
9727 test -n "$runpath_var" ||
9728 test "X$hardcode_automatic" = "Xyes" ; then
9729
9730 # We can hardcode non-existent directories.
9731 if test "$hardcode_direct" != no &&
9732 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9733 # have to relink, otherwise we might link with an installed library
9734 # when we should be linking with a yet-to-be-installed one
9735 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9736 test "$hardcode_minus_L" != no; then
9737 # Linking always hardcodes the temporary library directory.
9738 hardcode_action=relink
9739 else
9740 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9741 hardcode_action=immediate
9742 fi
9743else
9744 # We cannot hardcode anything, or else we can only hardcode existing
9745 # directories.
9746 hardcode_action=unsupported
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9749$as_echo "$hardcode_action" >&6; }
9750
9751if test "$hardcode_action" = relink ||
9752 test "$inherit_rpath" = yes; then
9753 # Fast installation is not supported
9754 enable_fast_install=no
9755elif test "$shlibpath_overrides_runpath" = yes ||
9756 test "$enable_shared" = no; then
9757 # Fast installation is not necessary
9758 enable_fast_install=needless
9759fi
9760
9761
9762
9763
9764
9765
9766 if test "x$enable_dlopen" != xyes; then
9767 enable_dlopen=unknown
9768 enable_dlopen_self=unknown
9769 enable_dlopen_self_static=unknown
9770else
9771 lt_cv_dlopen=no
9772 lt_cv_dlopen_libs=
9773
9774 case $host_os in
9775 beos*)
9776 lt_cv_dlopen="load_add_on"
9777 lt_cv_dlopen_libs=
9778 lt_cv_dlopen_self=yes
9779 ;;
9780
9781 mingw* | pw32* | cegcc*)
9782 lt_cv_dlopen="LoadLibrary"
9783 lt_cv_dlopen_libs=
9784 ;;
9785
9786 cygwin*)
9787 lt_cv_dlopen="dlopen"
9788 lt_cv_dlopen_libs=
9789 ;;
9790
9791 darwin*)
9792 # if libdl is installed we need to link against it
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9794$as_echo_n "checking for dlopen in -ldl... " >&6; }
9795if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797else
9798 ac_check_lib_save_LIBS=$LIBS
9799LIBS="-ldl $LIBS"
9800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801/* end confdefs.h. */
9802
9803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806#ifdef __cplusplus
9807extern "C"
9808#endif
9809char dlopen ();
9810int
9811main ()
9812{
9813return dlopen ();
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818if ac_fn_c_try_link "$LINENO"; then :
9819 ac_cv_lib_dl_dlopen=yes
9820else
9821 ac_cv_lib_dl_dlopen=no
9822fi
9823rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9828$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9829if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831else
9832
9833 lt_cv_dlopen="dyld"
9834 lt_cv_dlopen_libs=
9835 lt_cv_dlopen_self=yes
9836
9837fi
9838
9839 ;;
9840
9841 *)
9842 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9843if test "x$ac_cv_func_shl_load" = x""yes; then :
9844 lt_cv_dlopen="shl_load"
9845else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9847$as_echo_n "checking for shl_load in -ldld... " >&6; }
9848if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-ldld $LIBS"
9853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h. */
9855
9856/* Override any GCC internal prototype to avoid an error.
9857 Use char because int might match the return type of a GCC
9858 builtin and then its argument prototype would still apply. */
9859#ifdef __cplusplus
9860extern "C"
9861#endif
9862char shl_load ();
9863int
9864main ()
9865{
9866return shl_load ();
9867 ;
9868 return 0;
9869}
9870_ACEOF
9871if ac_fn_c_try_link "$LINENO"; then :
9872 ac_cv_lib_dld_shl_load=yes
9873else
9874 ac_cv_lib_dld_shl_load=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878LIBS=$ac_check_lib_save_LIBS
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9881$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9882if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9883 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9884else
9885 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9886if test "x$ac_cv_func_dlopen" = x""yes; then :
9887 lt_cv_dlopen="dlopen"
9888else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9890$as_echo_n "checking for dlopen in -ldl... " >&6; }
9891if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893else
9894 ac_check_lib_save_LIBS=$LIBS
9895LIBS="-ldl $LIBS"
9896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899/* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9902#ifdef __cplusplus
9903extern "C"
9904#endif
9905char dlopen ();
9906int
9907main ()
9908{
9909return dlopen ();
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"; then :
9915 ac_cv_lib_dl_dlopen=yes
9916else
9917 ac_cv_lib_dl_dlopen=no
9918fi
9919rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921LIBS=$ac_check_lib_save_LIBS
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9924$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9925if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9927else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9929$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9930if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932else
9933 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-lsvld $LIBS"
9935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h. */
9937
9938/* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941#ifdef __cplusplus
9942extern "C"
9943#endif
9944char dlopen ();
9945int
9946main ()
9947{
9948return dlopen ();
9949 ;
9950 return 0;
9951}
9952_ACEOF
9953if ac_fn_c_try_link "$LINENO"; then :
9954 ac_cv_lib_svld_dlopen=yes
9955else
9956 ac_cv_lib_svld_dlopen=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960LIBS=$ac_check_lib_save_LIBS
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9963$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9964if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9966else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9968$as_echo_n "checking for dld_link in -ldld... " >&6; }
9969if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9971else
9972 ac_check_lib_save_LIBS=$LIBS
9973LIBS="-ldld $LIBS"
9974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h. */
9976
9977/* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980#ifdef __cplusplus
9981extern "C"
9982#endif
9983char dld_link ();
9984int
9985main ()
9986{
9987return dld_link ();
9988 ;
9989 return 0;
9990}
9991_ACEOF
9992if ac_fn_c_try_link "$LINENO"; then :
9993 ac_cv_lib_dld_dld_link=yes
9994else
9995 ac_cv_lib_dld_dld_link=no
9996fi
9997rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999LIBS=$ac_check_lib_save_LIBS
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10002$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10003if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10004 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10005fi
10006
10007
10008fi
10009
10010
10011fi
10012
10013
10014fi
10015
10016
10017fi
10018
10019
10020fi
10021
10022 ;;
10023 esac
10024
10025 if test "x$lt_cv_dlopen" != xno; then
10026 enable_dlopen=yes
10027 else
10028 enable_dlopen=no
10029 fi
10030
10031 case $lt_cv_dlopen in
10032 dlopen)
10033 save_CPPFLAGS="$CPPFLAGS"
10034 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10035
10036 save_LDFLAGS="$LDFLAGS"
10037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10038
10039 save_LIBS="$LIBS"
10040 LIBS="$lt_cv_dlopen_libs $LIBS"
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10043$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10044if test "${lt_cv_dlopen_self+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046else
10047 if test "$cross_compiling" = yes; then :
10048 lt_cv_dlopen_self=cross
10049else
10050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10051 lt_status=$lt_dlunknown
10052 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010053#line 10053 "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010054#include "confdefs.h"
10055
10056#if HAVE_DLFCN_H
10057#include <dlfcn.h>
10058#endif
10059
10060#include <stdio.h>
10061
10062#ifdef RTLD_GLOBAL
10063# define LT_DLGLOBAL RTLD_GLOBAL
10064#else
10065# ifdef DL_GLOBAL
10066# define LT_DLGLOBAL DL_GLOBAL
10067# else
10068# define LT_DLGLOBAL 0
10069# endif
10070#endif
10071
10072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10073 find out it does not work in some platform. */
10074#ifndef LT_DLLAZY_OR_NOW
10075# ifdef RTLD_LAZY
10076# define LT_DLLAZY_OR_NOW RTLD_LAZY
10077# else
10078# ifdef DL_LAZY
10079# define LT_DLLAZY_OR_NOW DL_LAZY
10080# else
10081# ifdef RTLD_NOW
10082# define LT_DLLAZY_OR_NOW RTLD_NOW
10083# else
10084# ifdef DL_NOW
10085# define LT_DLLAZY_OR_NOW DL_NOW
10086# else
10087# define LT_DLLAZY_OR_NOW 0
10088# endif
10089# endif
10090# endif
10091# endif
10092#endif
10093
10094void fnord() { int i=42;}
10095int main ()
10096{
10097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10098 int status = $lt_dlunknown;
10099
10100 if (self)
10101 {
10102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10104 /* dlclose (self); */
10105 }
10106 else
10107 puts (dlerror ());
10108
10109 return status;
10110}
10111_LT_EOF
10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10113 (eval $ac_link) 2>&5
10114 ac_status=$?
10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10117 (./conftest; exit; ) >&5 2>/dev/null
10118 lt_status=$?
10119 case x$lt_status in
10120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10122 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10123 esac
10124 else :
10125 # compilation failed
10126 lt_cv_dlopen_self=no
10127 fi
10128fi
10129rm -fr conftest*
10130
10131
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10134$as_echo "$lt_cv_dlopen_self" >&6; }
10135
10136 if test "x$lt_cv_dlopen_self" = xyes; then
10137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10139$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10140if test "${lt_cv_dlopen_self_static+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142else
10143 if test "$cross_compiling" = yes; then :
10144 lt_cv_dlopen_self_static=cross
10145else
10146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10147 lt_status=$lt_dlunknown
10148 cat > conftest.$ac_ext <<_LT_EOF
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010149#line 10149 "configure"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010150#include "confdefs.h"
10151
10152#if HAVE_DLFCN_H
10153#include <dlfcn.h>
10154#endif
10155
10156#include <stdio.h>
10157
10158#ifdef RTLD_GLOBAL
10159# define LT_DLGLOBAL RTLD_GLOBAL
10160#else
10161# ifdef DL_GLOBAL
10162# define LT_DLGLOBAL DL_GLOBAL
10163# else
10164# define LT_DLGLOBAL 0
10165# endif
10166#endif
10167
10168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10169 find out it does not work in some platform. */
10170#ifndef LT_DLLAZY_OR_NOW
10171# ifdef RTLD_LAZY
10172# define LT_DLLAZY_OR_NOW RTLD_LAZY
10173# else
10174# ifdef DL_LAZY
10175# define LT_DLLAZY_OR_NOW DL_LAZY
10176# else
10177# ifdef RTLD_NOW
10178# define LT_DLLAZY_OR_NOW RTLD_NOW
10179# else
10180# ifdef DL_NOW
10181# define LT_DLLAZY_OR_NOW DL_NOW
10182# else
10183# define LT_DLLAZY_OR_NOW 0
10184# endif
10185# endif
10186# endif
10187# endif
10188#endif
10189
10190void fnord() { int i=42;}
10191int main ()
10192{
10193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10194 int status = $lt_dlunknown;
10195
10196 if (self)
10197 {
10198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10200 /* dlclose (self); */
10201 }
10202 else
10203 puts (dlerror ());
10204
10205 return status;
10206}
10207_LT_EOF
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10209 (eval $ac_link) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10213 (./conftest; exit; ) >&5 2>/dev/null
10214 lt_status=$?
10215 case x$lt_status in
10216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10218 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10219 esac
10220 else :
10221 # compilation failed
10222 lt_cv_dlopen_self_static=no
10223 fi
10224fi
10225rm -fr conftest*
10226
10227
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10230$as_echo "$lt_cv_dlopen_self_static" >&6; }
10231 fi
10232
10233 CPPFLAGS="$save_CPPFLAGS"
10234 LDFLAGS="$save_LDFLAGS"
10235 LIBS="$save_LIBS"
10236 ;;
10237 esac
10238
10239 case $lt_cv_dlopen_self in
10240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10241 *) enable_dlopen_self=unknown ;;
10242 esac
10243
10244 case $lt_cv_dlopen_self_static in
10245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10246 *) enable_dlopen_self_static=unknown ;;
10247 esac
10248fi
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266striplib=
10267old_striplib=
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10269$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10270if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10274$as_echo "yes" >&6; }
10275else
10276# FIXME - insert some real tests, host_os isn't really good enough
10277 case $host_os in
10278 darwin*)
10279 if test -n "$STRIP" ; then
10280 striplib="$STRIP -x"
10281 old_striplib="$STRIP -S"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10283$as_echo "yes" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
10287 fi
10288 ;;
10289 *)
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
10292 ;;
10293 esac
10294fi
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 # Report which library types will actually be built
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10309$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10311$as_echo "$can_build_shared" >&6; }
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10314$as_echo_n "checking whether to build shared libraries... " >&6; }
10315 test "$can_build_shared" = "no" && enable_shared=no
10316
10317 # On AIX, shared libraries and static libraries use the same namespace, and
10318 # are all built from PIC.
10319 case $host_os in
10320 aix3*)
10321 test "$enable_shared" = yes && enable_static=no
10322 if test -n "$RANLIB"; then
10323 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10324 postinstall_cmds='$RANLIB $lib'
10325 fi
10326 ;;
10327
10328 aix[4-9]*)
10329 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10330 test "$enable_shared" = yes && enable_static=no
10331 fi
10332 ;;
10333 esac
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10335$as_echo "$enable_shared" >&6; }
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10338$as_echo_n "checking whether to build static libraries... " >&6; }
10339 # Make sure either enable_shared or enable_static is yes.
10340 test "$enable_shared" = yes || enable_static=yes
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10342$as_echo "$enable_static" >&6; }
10343
10344
10345
10346
10347fi
10348ac_ext=c
10349ac_cpp='$CPP $CPPFLAGS'
10350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10352ac_compiler_gnu=$ac_cv_c_compiler_gnu
10353
10354CC="$lt_save_CC"
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368 ac_config_commands="$ac_config_commands libtool"
10369
10370
10371
10372
10373# Only expand once:
10374
10375
10376
10377# check for headers
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10379$as_echo_n "checking for ANSI C header files... " >&6; }
10380if test "${ac_cv_header_stdc+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10382else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h. */
10385#include <stdlib.h>
10386#include <stdarg.h>
10387#include <string.h>
10388#include <float.h>
10389
10390int
10391main ()
10392{
10393
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398if ac_fn_c_try_compile "$LINENO"; then :
10399 ac_cv_header_stdc=yes
10400else
10401 ac_cv_header_stdc=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404
10405if test $ac_cv_header_stdc = yes; then
10406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h. */
10409#include <string.h>
10410
10411_ACEOF
10412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10413 $EGREP "memchr" >/dev/null 2>&1; then :
10414
10415else
10416 ac_cv_header_stdc=no
10417fi
10418rm -f conftest*
10419
10420fi
10421
10422if test $ac_cv_header_stdc = yes; then
10423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425/* end confdefs.h. */
10426#include <stdlib.h>
10427
10428_ACEOF
10429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10430 $EGREP "free" >/dev/null 2>&1; then :
10431
10432else
10433 ac_cv_header_stdc=no
10434fi
10435rm -f conftest*
10436
10437fi
10438
10439if test $ac_cv_header_stdc = yes; then
10440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10441 if test "$cross_compiling" = yes; then :
10442 :
10443else
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h. */
10446#include <ctype.h>
10447#include <stdlib.h>
10448#if ((' ' & 0x0FF) == 0x020)
10449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10451#else
10452# define ISLOWER(c) \
10453 (('a' <= (c) && (c) <= 'i') \
10454 || ('j' <= (c) && (c) <= 'r') \
10455 || ('s' <= (c) && (c) <= 'z'))
10456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10457#endif
10458
10459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10460int
10461main ()
10462{
10463 int i;
10464 for (i = 0; i < 256; i++)
10465 if (XOR (islower (i), ISLOWER (i))
10466 || toupper (i) != TOUPPER (i))
10467 return 2;
10468 return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_run "$LINENO"; then :
10472
10473else
10474 ac_cv_header_stdc=no
10475fi
10476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10477 conftest.$ac_objext conftest.beam conftest.$ac_ext
10478fi
10479
10480fi
10481fi
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10483$as_echo "$ac_cv_header_stdc" >&6; }
10484if test $ac_cv_header_stdc = yes; then
10485
10486$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10487
10488fi
10489
10490for ac_header in linux/types.h linux/bsg.h linux/kdev_t.h
10491do :
10492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10493ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
10494 # include <linux/types.h>
10495 #endif
10496
10497"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010498if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010499 cat >>confdefs.h <<_ACEOF
10500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10501_ACEOF
10502
10503fi
10504
10505done
10506
10507
10508# check for functions
10509for ac_func in getopt_long
10510do :
10511 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
10512if test "x$ac_cv_func_getopt_long" = x""yes; then :
10513 cat >>confdefs.h <<_ACEOF
10514#define HAVE_GETOPT_LONG 1
10515_ACEOF
10516 GETOPT_O_FILES=''
10517else
10518 GETOPT_O_FILES='getopt_long.o'
10519fi
10520done
10521
10522for ac_func in posix_fadvise
10523do :
10524 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
10525if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
10526 cat >>confdefs.h <<_ACEOF
10527#define HAVE_POSIX_FADVISE 1
10528_ACEOF
10529
10530fi
10531done
10532
10533
10534
10535
10536
10537
10538cat >>confdefs.h <<_ACEOF
10539#define SG_LIB_BUILD_HOST "${host}"
10540_ACEOF
10541
10542
10543case "${host}" in
10544 *-*-linux-gnu*)
10545
10546cat >>confdefs.h <<_ACEOF
10547#define SG_LIB_LINUX 1
10548_ACEOF
10549
10550 os_libs=''
10551 ;;
10552 *-*-linux*)
10553
10554cat >>confdefs.h <<_ACEOF
10555#define SG_LIB_LINUX 1
10556_ACEOF
10557
10558 os_libs=''
10559 ;;
10560 *-*-freebsd*|*-*-kfreebsd*-gnu*)
10561
10562cat >>confdefs.h <<_ACEOF
10563#define SG_LIB_FREEBSD 1
10564_ACEOF
10565
10566 os_libs='-lcam'
10567;;
10568 *-*-solaris*)
10569
10570cat >>confdefs.h <<_ACEOF
10571#define SG_LIB_SOLARIS 1
10572_ACEOF
10573
10574 os_libs=''
10575;;
10576 *-*-osf*)
10577
10578cat >>confdefs.h <<_ACEOF
10579#define SG_LIB_OSF1 1
10580_ACEOF
10581
10582 os_libs=''
10583 ;;
10584 *-*-cygwin*)
10585
10586cat >>confdefs.h <<_ACEOF
10587#define SG_LIB_WIN32 1
10588_ACEOF
10589
10590 os_libs=''
10591 ;;
10592 *-*-mingw*)
10593
10594cat >>confdefs.h <<_ACEOF
10595#define SG_LIB_WIN32 1
10596_ACEOF
10597
10598
10599cat >>confdefs.h <<_ACEOF
10600#define SG_LIB_MINGW 1
10601_ACEOF
10602
10603 os_libs=''
10604 ;;
10605 *)
10606
10607cat >>confdefs.h <<_ACEOF
10608#define SG_LIB_LINUX 1
10609_ACEOF
10610
10611 os_libs=''
10612 ;;
10613esac
10614
10615# Define platform-specific symbol.
10616 if echo $host_os | grep 'freebsd' > /dev/null; then
10617 OS_FREEBSD_TRUE=
10618 OS_FREEBSD_FALSE='#'
10619else
10620 OS_FREEBSD_TRUE='#'
10621 OS_FREEBSD_FALSE=
10622fi
10623
10624 if echo $host_os | grep '^linux' > /dev/null; then
10625 OS_LINUX_TRUE=
10626 OS_LINUX_FALSE='#'
10627else
10628 OS_LINUX_TRUE='#'
10629 OS_LINUX_FALSE=
10630fi
10631
10632 if echo $host_os | grep '^osf' > /dev/null; then
10633 OS_OSF_TRUE=
10634 OS_OSF_FALSE='#'
10635else
10636 OS_OSF_TRUE='#'
10637 OS_OSF_FALSE=
10638fi
10639
10640 if echo $host_os | grep '^solaris' > /dev/null; then
10641 OS_SOLARIS_TRUE=
10642 OS_SOLARIS_FALSE='#'
10643else
10644 OS_SOLARIS_TRUE='#'
10645 OS_SOLARIS_FALSE=
10646fi
10647
10648 if echo $host_os | grep '^mingw' > /dev/null; then
10649 OS_WIN32_MINGW_TRUE=
10650 OS_WIN32_MINGW_FALSE='#'
10651else
10652 OS_WIN32_MINGW_TRUE='#'
10653 OS_WIN32_MINGW_FALSE=
10654fi
10655
10656 if echo $host_os | grep '^cygwin' > /dev/null; then
10657 OS_WIN32_CYGWIN_TRUE=
10658 OS_WIN32_CYGWIN_FALSE='#'
10659else
10660 OS_WIN32_CYGWIN_TRUE='#'
10661 OS_WIN32_CYGWIN_FALSE=
10662fi
10663
10664
10665# Check whether --enable-no-linux-bsg was given.
10666if test "${enable_no_linux_bsg+set}" = set; then :
10667 enableval=$enable_no_linux_bsg;
10668cat >>confdefs.h <<_ACEOF
10669#define IGNORE_LINUX_BSG 1
10670_ACEOF
10671
10672
10673fi
10674
10675
10676# Check whether --enable-win32-spt-direct was given.
10677if test "${enable_win32_spt_direct+set}" = set; then :
10678 enableval=$enable_win32_spt_direct;
10679cat >>confdefs.h <<_ACEOF
10680#define WIN32_SPT_DIRECT 1
10681_ACEOF
10682
10683
10684fi
10685
10686
10687ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile"
10688
10689cat >confcache <<\_ACEOF
10690# This file is a shell script that caches the results of configure
10691# tests run on this system so they can be shared between configure
10692# scripts and configure runs, see configure's option --config-cache.
10693# It is not useful on other systems. If it contains results you don't
10694# want to keep, you may remove or edit it.
10695#
10696# config.status only pays attention to the cache file if you give it
10697# the --recheck option to rerun configure.
10698#
10699# `ac_cv_env_foo' variables (set or unset) will be overridden when
10700# loading this file, other *unset* `ac_cv_foo' will be assigned the
10701# following values.
10702
10703_ACEOF
10704
10705# The following way of writing the cache mishandles newlines in values,
10706# but we know of no workaround that is simple, portable, and efficient.
10707# So, we kill variables containing newlines.
10708# Ultrix sh set writes to stderr and can't be redirected directly,
10709# and sets the high bit in the cache file unless we assign to the vars.
10710(
10711 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10712 eval ac_val=\$$ac_var
10713 case $ac_val in #(
10714 *${as_nl}*)
10715 case $ac_var in #(
10716 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10717$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10718 esac
10719 case $ac_var in #(
10720 _ | IFS | as_nl) ;; #(
10721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10722 *) { eval $ac_var=; unset $ac_var;} ;;
10723 esac ;;
10724 esac
10725 done
10726
10727 (set) 2>&1 |
10728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10729 *${as_nl}ac_space=\ *)
10730 # `set' does not quote correctly, so add quotes: double-quote
10731 # substitution turns \\\\ into \\, and sed turns \\ into \.
10732 sed -n \
10733 "s/'/'\\\\''/g;
10734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10735 ;; #(
10736 *)
10737 # `set' quotes correctly as required by POSIX, so do not add quotes.
10738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10739 ;;
10740 esac |
10741 sort
10742) |
10743 sed '
10744 /^ac_cv_env_/b end
10745 t clear
10746 :clear
10747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10748 t end
10749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10750 :end' >>confcache
10751if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10752 if test -w "$cache_file"; then
10753 test "x$cache_file" != "x/dev/null" &&
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10755$as_echo "$as_me: updating cache $cache_file" >&6;}
10756 cat confcache >$cache_file
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10760 fi
10761fi
10762rm -f confcache
10763
10764test "x$prefix" = xNONE && prefix=$ac_default_prefix
10765# Let make expand exec_prefix.
10766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10767
10768DEFS=-DHAVE_CONFIG_H
10769
10770ac_libobjs=
10771ac_ltlibobjs=
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010772U=
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10774 # 1. Remove the extension, and $U if already installed.
10775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10778 # will be set to the directory where LIBOBJS objects are built.
10779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10781done
10782LIBOBJS=$ac_libobjs
10783
10784LTLIBOBJS=$ac_ltlibobjs
10785
10786
10787 if test -n "$EXEEXT"; then
10788 am__EXEEXT_TRUE=
10789 am__EXEEXT_FALSE='#'
10790else
10791 am__EXEEXT_TRUE='#'
10792 am__EXEEXT_FALSE=
10793fi
10794
10795if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010796 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010797Usually this means the macro was only invoked conditionally." "$LINENO" 5
10798fi
10799if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010800 as_fn_error $? "conditional \"AMDEP\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010801Usually this means the macro was only invoked conditionally." "$LINENO" 5
10802fi
10803if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010804 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010805Usually this means the macro was only invoked conditionally." "$LINENO" 5
10806fi
10807if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010808 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010809Usually this means the macro was only invoked conditionally." "$LINENO" 5
10810fi
10811if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010812 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010813Usually this means the macro was only invoked conditionally." "$LINENO" 5
10814fi
10815if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010816 as_fn_error $? "conditional \"OS_OSF\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010817Usually this means the macro was only invoked conditionally." "$LINENO" 5
10818fi
10819if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010820 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010821Usually this means the macro was only invoked conditionally." "$LINENO" 5
10822fi
10823if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010824 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010825Usually this means the macro was only invoked conditionally." "$LINENO" 5
10826fi
10827if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010828 as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010829Usually this means the macro was only invoked conditionally." "$LINENO" 5
10830fi
10831
10832: ${CONFIG_STATUS=./config.status}
10833ac_write_fail=0
10834ac_clean_files_save=$ac_clean_files
10835ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10837$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10838as_write_fail=0
10839cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10840#! $SHELL
10841# Generated by $as_me.
10842# Run this file to recreate the current configuration.
10843# Compiler output produced by configure, useful for debugging
10844# configure, is in config.log if it exists.
10845
10846debug=false
10847ac_cs_recheck=false
10848ac_cs_silent=false
10849
10850SHELL=\${CONFIG_SHELL-$SHELL}
10851export SHELL
10852_ASEOF
10853cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10854## -------------------- ##
10855## M4sh Initialization. ##
10856## -------------------- ##
10857
10858# Be more Bourne compatible
10859DUALCASE=1; export DUALCASE # for MKS sh
10860if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10861 emulate sh
10862 NULLCMD=:
10863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10864 # is contrary to our usage. Disable this feature.
10865 alias -g '${1+"$@"}'='"$@"'
10866 setopt NO_GLOB_SUBST
10867else
10868 case `(set -o) 2>/dev/null` in #(
10869 *posix*) :
10870 set -o posix ;; #(
10871 *) :
10872 ;;
10873esac
10874fi
10875
10876
10877as_nl='
10878'
10879export as_nl
10880# Printing a long string crashes Solaris 7 /usr/bin/printf.
10881as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10883as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10884# Prefer a ksh shell builtin over an external printf program on Solaris,
10885# but without wasting forks for bash or zsh.
10886if test -z "$BASH_VERSION$ZSH_VERSION" \
10887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10888 as_echo='print -r --'
10889 as_echo_n='print -rn --'
10890elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10891 as_echo='printf %s\n'
10892 as_echo_n='printf %s'
10893else
10894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10896 as_echo_n='/usr/ucb/echo -n'
10897 else
10898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10899 as_echo_n_body='eval
10900 arg=$1;
10901 case $arg in #(
10902 *"$as_nl"*)
10903 expr "X$arg" : "X\\(.*\\)$as_nl";
10904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10905 esac;
10906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10907 '
10908 export as_echo_n_body
10909 as_echo_n='sh -c $as_echo_n_body as_echo'
10910 fi
10911 export as_echo_body
10912 as_echo='sh -c $as_echo_body as_echo'
10913fi
10914
10915# The user is always right.
10916if test "${PATH_SEPARATOR+set}" != set; then
10917 PATH_SEPARATOR=:
10918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10920 PATH_SEPARATOR=';'
10921 }
10922fi
10923
10924
10925# IFS
10926# We need space, tab and new line, in precisely that order. Quoting is
10927# there to prevent editors from complaining about space-tab.
10928# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10929# splitting by setting IFS to empty value.)
10930IFS=" "" $as_nl"
10931
10932# Find who we are. Look in the path if we contain no directory separator.
10933case $0 in #((
10934 *[\\/]* ) as_myself=$0 ;;
10935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10941 done
10942IFS=$as_save_IFS
10943
10944 ;;
10945esac
10946# We did not find ourselves, most probably we were run as `sh COMMAND'
10947# in which case we are not to be found in the path.
10948if test "x$as_myself" = x; then
10949 as_myself=$0
10950fi
10951if test ! -f "$as_myself"; then
10952 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10953 exit 1
10954fi
10955
10956# Unset variables that we do not need and which cause bugs (e.g. in
10957# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10958# suppresses any "Segmentation fault" message there. '((' could
10959# trigger a bug in pdksh 5.2.14.
10960for as_var in BASH_ENV ENV MAIL MAILPATH
10961do eval test x\${$as_var+set} = xset \
10962 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10963done
10964PS1='$ '
10965PS2='> '
10966PS4='+ '
10967
10968# NLS nuisances.
10969LC_ALL=C
10970export LC_ALL
10971LANGUAGE=C
10972export LANGUAGE
10973
10974# CDPATH.
10975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10976
10977
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010978# as_fn_error STATUS ERROR [LINENO LOG_FD]
10979# ----------------------------------------
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010982# script with STATUS, using 1 if that was 0.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010983as_fn_error ()
10984{
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010985 as_status=$1; test $as_status -eq 0 && as_status=1
10986 if test "$4"; then
10987 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10988 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010989 fi
Douglas Gilbert02f2be12010-11-12 16:00:04 +000010990 $as_echo "$as_me: error: $2" >&2
Douglas Gilbert366d25e2010-09-21 03:27:01 +000010991 as_fn_exit $as_status
10992} # as_fn_error
10993
10994
10995# as_fn_set_status STATUS
10996# -----------------------
10997# Set $? to STATUS, without forking.
10998as_fn_set_status ()
10999{
11000 return $1
11001} # as_fn_set_status
11002
11003# as_fn_exit STATUS
11004# -----------------
11005# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11006as_fn_exit ()
11007{
11008 set +e
11009 as_fn_set_status $1
11010 exit $1
11011} # as_fn_exit
11012
11013# as_fn_unset VAR
11014# ---------------
11015# Portably unset VAR.
11016as_fn_unset ()
11017{
11018 { eval $1=; unset $1;}
11019}
11020as_unset=as_fn_unset
11021# as_fn_append VAR VALUE
11022# ----------------------
11023# Append the text in VALUE to the end of the definition contained in VAR. Take
11024# advantage of any shell optimizations that allow amortized linear growth over
11025# repeated appends, instead of the typical quadratic growth present in naive
11026# implementations.
11027if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11028 eval 'as_fn_append ()
11029 {
11030 eval $1+=\$2
11031 }'
11032else
11033 as_fn_append ()
11034 {
11035 eval $1=\$$1\$2
11036 }
11037fi # as_fn_append
11038
11039# as_fn_arith ARG...
11040# ------------------
11041# Perform arithmetic evaluation on the ARGs, and store the result in the
11042# global $as_val. Take advantage of shells that can avoid forks. The arguments
11043# must be portable across $(()) and expr.
11044if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11045 eval 'as_fn_arith ()
11046 {
11047 as_val=$(( $* ))
11048 }'
11049else
11050 as_fn_arith ()
11051 {
11052 as_val=`expr "$@" || test $? -eq 1`
11053 }
11054fi # as_fn_arith
11055
11056
11057if expr a : '\(a\)' >/dev/null 2>&1 &&
11058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11059 as_expr=expr
11060else
11061 as_expr=false
11062fi
11063
11064if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11065 as_basename=basename
11066else
11067 as_basename=false
11068fi
11069
11070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11071 as_dirname=dirname
11072else
11073 as_dirname=false
11074fi
11075
11076as_me=`$as_basename -- "$0" ||
11077$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11078 X"$0" : 'X\(//\)$' \| \
11079 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11080$as_echo X/"$0" |
11081 sed '/^.*\/\([^/][^/]*\)\/*$/{
11082 s//\1/
11083 q
11084 }
11085 /^X\/\(\/\/\)$/{
11086 s//\1/
11087 q
11088 }
11089 /^X\/\(\/\).*/{
11090 s//\1/
11091 q
11092 }
11093 s/.*/./; q'`
11094
11095# Avoid depending upon Character Ranges.
11096as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11098as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11099as_cr_digits='0123456789'
11100as_cr_alnum=$as_cr_Letters$as_cr_digits
11101
11102ECHO_C= ECHO_N= ECHO_T=
11103case `echo -n x` in #(((((
11104-n*)
11105 case `echo 'xy\c'` in
11106 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11107 xy) ECHO_C='\c';;
11108 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11109 ECHO_T=' ';;
11110 esac;;
11111*)
11112 ECHO_N='-n';;
11113esac
11114
11115rm -f conf$$ conf$$.exe conf$$.file
11116if test -d conf$$.dir; then
11117 rm -f conf$$.dir/conf$$.file
11118else
11119 rm -f conf$$.dir
11120 mkdir conf$$.dir 2>/dev/null
11121fi
11122if (echo >conf$$.file) 2>/dev/null; then
11123 if ln -s conf$$.file conf$$ 2>/dev/null; then
11124 as_ln_s='ln -s'
11125 # ... but there are two gotchas:
11126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11128 # In both cases, we have to default to `cp -p'.
11129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11130 as_ln_s='cp -p'
11131 elif ln conf$$.file conf$$ 2>/dev/null; then
11132 as_ln_s=ln
11133 else
11134 as_ln_s='cp -p'
11135 fi
11136else
11137 as_ln_s='cp -p'
11138fi
11139rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11140rmdir conf$$.dir 2>/dev/null
11141
11142
11143# as_fn_mkdir_p
11144# -------------
11145# Create "$as_dir" as a directory, including parents if necessary.
11146as_fn_mkdir_p ()
11147{
11148
11149 case $as_dir in #(
11150 -*) as_dir=./$as_dir;;
11151 esac
11152 test -d "$as_dir" || eval $as_mkdir_p || {
11153 as_dirs=
11154 while :; do
11155 case $as_dir in #(
11156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11157 *) as_qdir=$as_dir;;
11158 esac
11159 as_dirs="'$as_qdir' $as_dirs"
11160 as_dir=`$as_dirname -- "$as_dir" ||
11161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11162 X"$as_dir" : 'X\(//\)[^/]' \| \
11163 X"$as_dir" : 'X\(//\)$' \| \
11164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11165$as_echo X"$as_dir" |
11166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11167 s//\1/
11168 q
11169 }
11170 /^X\(\/\/\)[^/].*/{
11171 s//\1/
11172 q
11173 }
11174 /^X\(\/\/\)$/{
11175 s//\1/
11176 q
11177 }
11178 /^X\(\/\).*/{
11179 s//\1/
11180 q
11181 }
11182 s/.*/./; q'`
11183 test -d "$as_dir" && break
11184 done
11185 test -z "$as_dirs" || eval "mkdir $as_dirs"
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011186 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011187
11188
11189} # as_fn_mkdir_p
11190if mkdir -p . 2>/dev/null; then
11191 as_mkdir_p='mkdir -p "$as_dir"'
11192else
11193 test -d ./-p && rmdir ./-p
11194 as_mkdir_p=false
11195fi
11196
11197if test -x / >/dev/null 2>&1; then
11198 as_test_x='test -x'
11199else
11200 if ls -dL / >/dev/null 2>&1; then
11201 as_ls_L_option=L
11202 else
11203 as_ls_L_option=
11204 fi
11205 as_test_x='
11206 eval sh -c '\''
11207 if test -d "$1"; then
11208 test -d "$1/.";
11209 else
11210 case $1 in #(
11211 -*)set "./$1";;
11212 esac;
11213 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11214 ???[sx]*):;;*)false;;esac;fi
11215 '\'' sh
11216 '
11217fi
11218as_executable_p=$as_test_x
11219
11220# Sed expression to map a string onto a valid CPP name.
11221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11222
11223# Sed expression to map a string onto a valid variable name.
11224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11225
11226
11227exec 6>&1
11228## ----------------------------------- ##
11229## Main body of $CONFIG_STATUS script. ##
11230## ----------------------------------- ##
11231_ASEOF
11232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11233
11234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11235# Save the log message, to keep $0 and so on meaningful, and to
11236# report actual input values of CONFIG_FILES etc. instead of their
11237# values after options handling.
11238ac_log="
Douglas Gilbert21fd1552011-08-07 03:10:30 +000011239This file was extended by sg3_utils $as_me 1.33, which was
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011240generated by GNU Autoconf 2.67. Invocation command line was
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011241
11242 CONFIG_FILES = $CONFIG_FILES
11243 CONFIG_HEADERS = $CONFIG_HEADERS
11244 CONFIG_LINKS = $CONFIG_LINKS
11245 CONFIG_COMMANDS = $CONFIG_COMMANDS
11246 $ $0 $@
11247
11248on `(hostname || uname -n) 2>/dev/null | sed 1q`
11249"
11250
11251_ACEOF
11252
11253case $ac_config_files in *"
11254"*) set x $ac_config_files; shift; ac_config_files=$*;;
11255esac
11256
11257case $ac_config_headers in *"
11258"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11259esac
11260
11261
11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263# Files that config.status was made for.
11264config_files="$ac_config_files"
11265config_headers="$ac_config_headers"
11266config_commands="$ac_config_commands"
11267
11268_ACEOF
11269
11270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11271ac_cs_usage="\
11272\`$as_me' instantiates files and other configuration actions
11273from templates according to the current configuration. Unless the files
11274and actions are specified as TAGs, all are instantiated by default.
11275
11276Usage: $0 [OPTION]... [TAG]...
11277
11278 -h, --help print this help, then exit
11279 -V, --version print version number and configuration settings, then exit
11280 --config print configuration, then exit
11281 -q, --quiet, --silent
11282 do not print progress messages
11283 -d, --debug don't remove temporary files
11284 --recheck update $as_me by reconfiguring in the same conditions
11285 --file=FILE[:TEMPLATE]
11286 instantiate the configuration file FILE
11287 --header=FILE[:TEMPLATE]
11288 instantiate the configuration header FILE
11289
11290Configuration files:
11291$config_files
11292
11293Configuration headers:
11294$config_headers
11295
11296Configuration commands:
11297$config_commands
11298
11299Report bugs to <dgilbert@interlog.com>."
11300
11301_ACEOF
11302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11303ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11304ac_cs_version="\\
Douglas Gilbert21fd1552011-08-07 03:10:30 +000011305sg3_utils config.status 1.33
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011306configured by $0, generated by GNU Autoconf 2.67,
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011307 with options \\"\$ac_cs_config\\"
11308
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011309Copyright (C) 2010 Free Software Foundation, Inc.
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011310This config.status script is free software; the Free Software Foundation
11311gives unlimited permission to copy, distribute and modify it."
11312
11313ac_pwd='$ac_pwd'
11314srcdir='$srcdir'
11315INSTALL='$INSTALL'
11316MKDIR_P='$MKDIR_P'
11317AWK='$AWK'
11318test -n "\$AWK" || AWK=awk
11319_ACEOF
11320
11321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11322# The default lists apply if the user does not specify any file.
11323ac_need_defaults=:
11324while test $# != 0
11325do
11326 case $1 in
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011327 --*=?*)
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11330 ac_shift=:
11331 ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011332 --*=)
11333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11334 ac_optarg=
11335 ac_shift=:
11336 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011337 *)
11338 ac_option=$1
11339 ac_optarg=$2
11340 ac_shift=shift
11341 ;;
11342 esac
11343
11344 case $ac_option in
11345 # Handling of the options.
11346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11347 ac_cs_recheck=: ;;
11348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11349 $as_echo "$ac_cs_version"; exit ;;
11350 --config | --confi | --conf | --con | --co | --c )
11351 $as_echo "$ac_cs_config"; exit ;;
11352 --debug | --debu | --deb | --de | --d | -d )
11353 debug=: ;;
11354 --file | --fil | --fi | --f )
11355 $ac_shift
11356 case $ac_optarg in
11357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011358 '') as_fn_error $? "missing file argument" ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011359 esac
11360 as_fn_append CONFIG_FILES " '$ac_optarg'"
11361 ac_need_defaults=false;;
11362 --header | --heade | --head | --hea )
11363 $ac_shift
11364 case $ac_optarg in
11365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11366 esac
11367 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11368 ac_need_defaults=false;;
11369 --he | --h)
11370 # Conflict between --help and --header
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011371 as_fn_error $? "ambiguous option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011372Try \`$0 --help' for more information.";;
11373 --help | --hel | -h )
11374 $as_echo "$ac_cs_usage"; exit ;;
11375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11377 ac_cs_silent=: ;;
11378
11379 # This is an error.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011380 -*) as_fn_error $? "unrecognized option: \`$1'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011381Try \`$0 --help' for more information." ;;
11382
11383 *) as_fn_append ac_config_targets " $1"
11384 ac_need_defaults=false ;;
11385
11386 esac
11387 shift
11388done
11389
11390ac_configure_extra_args=
11391
11392if $ac_cs_silent; then
11393 exec 6>/dev/null
11394 ac_configure_extra_args="$ac_configure_extra_args --silent"
11395fi
11396
11397_ACEOF
11398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11399if \$ac_cs_recheck; then
11400 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11401 shift
11402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11403 CONFIG_SHELL='$SHELL'
11404 export CONFIG_SHELL
11405 exec "\$@"
11406fi
11407
11408_ACEOF
11409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11410exec 5>>config.log
11411{
11412 echo
11413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11414## Running $as_me. ##
11415_ASBOX
11416 $as_echo "$ac_log"
11417} >&5
11418
11419_ACEOF
11420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11421#
11422# INIT-COMMANDS
11423#
11424AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11425
11426
11427# The HP-UX ksh and POSIX shell print the target directory to stdout
11428# if CDPATH is set.
11429(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11430
11431sed_quote_subst='$sed_quote_subst'
11432double_quote_subst='$double_quote_subst'
11433delay_variable_subst='$delay_variable_subst'
11434macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11435macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11436enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11437enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11438pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11439enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11440host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11441host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11442host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11443build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11444build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11445build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11446SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11447Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11448GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11449EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11450FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11451LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11452NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11453LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11454max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11455ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11456exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11457lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11458lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11459lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11460reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11461reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11462OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11463deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11464file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11465AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11466AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11467STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11468RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11469old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11470old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11471old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11472CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11473CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11474compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11475GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11476lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11477lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11478lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11479lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11480objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11481SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11482ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11483MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11484lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11485lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11486lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11487lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11488lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11489need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11490DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11491NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11492LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11493OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11494OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11495libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11496shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11497extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11498archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11499enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11500export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11501whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11502compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11503old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11504old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11505archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11506archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11507module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11508module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11509with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11510allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11511no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11512hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11513hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11514hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11515hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11516hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11517hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11518hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11519hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11520inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11521link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11522fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11523always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11524export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11525exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11526include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11527prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11528file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11529variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11530need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11531need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11532version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11533runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11534shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11535shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11536libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11537library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11538soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11539postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11540postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11541finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11542finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11543hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11544sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11545sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11546hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11547enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11548enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11549enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11550old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11551striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11552
11553LTCC='$LTCC'
11554LTCFLAGS='$LTCFLAGS'
11555compiler='$compiler_DEFAULT'
11556
11557# Quote evaled strings.
11558for var in SED \
11559GREP \
11560EGREP \
11561FGREP \
11562LD \
11563NM \
11564LN_S \
11565lt_SP2NL \
11566lt_NL2SP \
11567reload_flag \
11568OBJDUMP \
11569deplibs_check_method \
11570file_magic_cmd \
11571AR \
11572AR_FLAGS \
11573STRIP \
11574RANLIB \
11575CC \
11576CFLAGS \
11577compiler \
11578lt_cv_sys_global_symbol_pipe \
11579lt_cv_sys_global_symbol_to_cdecl \
11580lt_cv_sys_global_symbol_to_c_name_address \
11581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11582SHELL \
11583ECHO \
11584lt_prog_compiler_no_builtin_flag \
11585lt_prog_compiler_wl \
11586lt_prog_compiler_pic \
11587lt_prog_compiler_static \
11588lt_cv_prog_compiler_c_o \
11589need_locks \
11590DSYMUTIL \
11591NMEDIT \
11592LIPO \
11593OTOOL \
11594OTOOL64 \
11595shrext_cmds \
11596export_dynamic_flag_spec \
11597whole_archive_flag_spec \
11598compiler_needs_object \
11599with_gnu_ld \
11600allow_undefined_flag \
11601no_undefined_flag \
11602hardcode_libdir_flag_spec \
11603hardcode_libdir_flag_spec_ld \
11604hardcode_libdir_separator \
11605fix_srcfile_path \
11606exclude_expsyms \
11607include_expsyms \
11608file_list_spec \
11609variables_saved_for_relink \
11610libname_spec \
11611library_names_spec \
11612soname_spec \
11613finish_eval \
11614old_striplib \
11615striplib; do
11616 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11617 *[\\\\\\\`\\"\\\$]*)
11618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11619 ;;
11620 *)
11621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11622 ;;
11623 esac
11624done
11625
11626# Double-quote double-evaled strings.
11627for var in reload_cmds \
11628old_postinstall_cmds \
11629old_postuninstall_cmds \
11630old_archive_cmds \
11631extract_expsyms_cmds \
11632old_archive_from_new_cmds \
11633old_archive_from_expsyms_cmds \
11634archive_cmds \
11635archive_expsym_cmds \
11636module_cmds \
11637module_expsym_cmds \
11638export_symbols_cmds \
11639prelink_cmds \
11640postinstall_cmds \
11641postuninstall_cmds \
11642finish_cmds \
11643sys_lib_search_path_spec \
11644sys_lib_dlsearch_path_spec; do
11645 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11646 *[\\\\\\\`\\"\\\$]*)
11647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11648 ;;
11649 *)
11650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11651 ;;
11652 esac
11653done
11654
11655# Fix-up fallback echo if it was mangled by the above quoting rules.
11656case \$lt_ECHO in
11657*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11658 ;;
11659esac
11660
11661ac_aux_dir='$ac_aux_dir'
11662xsi_shell='$xsi_shell'
11663lt_shell_append='$lt_shell_append'
11664
11665# See if we are running on zsh, and set the options which allow our
11666# commands through without removal of \ escapes INIT.
11667if test -n "\${ZSH_VERSION+set}" ; then
11668 setopt NO_GLOB_SUBST
11669fi
11670
11671
11672 PACKAGE='$PACKAGE'
11673 VERSION='$VERSION'
11674 TIMESTAMP='$TIMESTAMP'
11675 RM='$RM'
11676 ofile='$ofile'
11677
11678
11679
11680
11681_ACEOF
11682
11683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11684
11685# Handling of arguments.
11686for ac_config_target in $ac_config_targets
11687do
11688 case $ac_config_target in
11689 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11690 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11691 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11693 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11694 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11695 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11696 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11697
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011699 esac
11700done
11701
11702
11703# If the user did not use the arguments to specify the items to instantiate,
11704# then the envvar interface is used. Set only those that are not.
11705# We use the long form for the default assignment because of an extremely
11706# bizarre bug on SunOS 4.1.3.
11707if $ac_need_defaults; then
11708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11711fi
11712
11713# Have a temporary directory for convenience. Make it in the build tree
11714# simply because there is no reason against having it here, and in addition,
11715# creating and moving files from /tmp can sometimes cause problems.
11716# Hook for its removal unless debugging.
11717# Note that there is a small window in which the directory will not be cleaned:
11718# after its creation but before its name has been assigned to `$tmp'.
11719$debug ||
11720{
11721 tmp=
11722 trap 'exit_status=$?
11723 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11724' 0
11725 trap 'as_fn_exit 1' 1 2 13 15
11726}
11727# Create a (secure) tmp directory for tmp files.
11728
11729{
11730 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11731 test -n "$tmp" && test -d "$tmp"
11732} ||
11733{
11734 tmp=./conf$$-$RANDOM
11735 (umask 077 && mkdir "$tmp")
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011736} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011737
11738# Set up the scripts for CONFIG_FILES section.
11739# No need to generate them if there are no CONFIG_FILES.
11740# This happens for instance with `./config.status config.h'.
11741if test -n "$CONFIG_FILES"; then
11742
11743
11744ac_cr=`echo X | tr X '\015'`
11745# On cygwin, bash can eat \r inside `` if the user requested igncr.
11746# But we know of no other shell where ac_cr would be empty at this
11747# point, so we can use a bashism as a fallback.
11748if test "x$ac_cr" = x; then
11749 eval ac_cr=\$\'\\r\'
11750fi
11751ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11752if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011753 ac_cs_awk_cr='\\r'
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011754else
11755 ac_cs_awk_cr=$ac_cr
11756fi
11757
11758echo 'BEGIN {' >"$tmp/subs1.awk" &&
11759_ACEOF
11760
11761
11762{
11763 echo "cat >conf$$subs.awk <<_ACEOF" &&
11764 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11765 echo "_ACEOF"
11766} >conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11768ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011769ac_delim='%!_!# '
11770for ac_last_try in false false false false false :; do
11771 . ./conf$$subs.sh ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011773
11774 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11775 if test $ac_delim_n = $ac_delim_num; then
11776 break
11777 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011779 else
11780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11781 fi
11782done
11783rm -f conf$$subs.sh
11784
11785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11786cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11787_ACEOF
11788sed -n '
11789h
11790s/^/S["/; s/!.*/"]=/
11791p
11792g
11793s/^[^!]*!//
11794:repl
11795t repl
11796s/'"$ac_delim"'$//
11797t delim
11798:nl
11799h
11800s/\(.\{148\}\)..*/\1/
11801t more1
11802s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11803p
11804n
11805b repl
11806:more1
11807s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11808p
11809g
11810s/.\{148\}//
11811t nl
11812:delim
11813h
11814s/\(.\{148\}\)..*/\1/
11815t more2
11816s/["\\]/\\&/g; s/^/"/; s/$/"/
11817p
11818b
11819:more2
11820s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11821p
11822g
11823s/.\{148\}//
11824t delim
11825' <conf$$subs.awk | sed '
11826/^[^""]/{
11827 N
11828 s/\n//
11829}
11830' >>$CONFIG_STATUS || ac_write_fail=1
11831rm -f conf$$subs.awk
11832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11833_ACAWK
11834cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11835 for (key in S) S_is_set[key] = 1
11836 FS = ""
11837
11838}
11839{
11840 line = $ 0
11841 nfields = split(line, field, "@")
11842 substed = 0
11843 len = length(field[1])
11844 for (i = 2; i < nfields; i++) {
11845 key = field[i]
11846 keylen = length(key)
11847 if (S_is_set[key]) {
11848 value = S[key]
11849 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11850 len += length(value) + length(field[++i])
11851 substed = 1
11852 } else
11853 len += 1 + keylen
11854 }
11855
11856 print line
11857}
11858
11859_ACAWK
11860_ACEOF
11861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11862if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11863 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11864else
11865 cat
11866fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011867 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011868_ACEOF
11869
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011870# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11871# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011872# trailing colons and then remove the whole line if VPATH becomes empty
11873# (actually we leave an empty line to preserve line numbers).
11874if test "x$srcdir" = x.; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011875 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11876h
11877s///
11878s/^/:/
11879s/[ ]*$/:/
11880s/:\$(srcdir):/:/g
11881s/:\${srcdir}:/:/g
11882s/:@srcdir@:/:/g
11883s/^:*//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011884s/:*$//
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011885x
11886s/\(=[ ]*\).*/\1/
11887G
11888s/\n//
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011889s/^[^=]*=[ ]*$//
11890}'
11891fi
11892
11893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11894fi # test -n "$CONFIG_FILES"
11895
11896# Set up the scripts for CONFIG_HEADERS section.
11897# No need to generate them if there are no CONFIG_HEADERS.
11898# This happens for instance with `./config.status Makefile'.
11899if test -n "$CONFIG_HEADERS"; then
11900cat >"$tmp/defines.awk" <<\_ACAWK ||
11901BEGIN {
11902_ACEOF
11903
11904# Transform confdefs.h into an awk script `defines.awk', embedded as
11905# here-document in config.status, that substitutes the proper values into
11906# config.h.in to produce config.h.
11907
11908# Create a delimiter string that does not exist in confdefs.h, to ease
11909# handling of long lines.
11910ac_delim='%!_!# '
11911for ac_last_try in false false :; do
11912 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11913 if test -z "$ac_t"; then
11914 break
11915 elif $ac_last_try; then
Douglas Gilbert02f2be12010-11-12 16:00:04 +000011916 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000011917 else
11918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11919 fi
11920done
11921
11922# For the awk script, D is an array of macro values keyed by name,
11923# likewise P contains macro parameters if any. Preserve backslash
11924# newline sequences.
11925
11926ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11927sed -n '
11928s/.\{148\}/&'"$ac_delim"'/g
11929t rset
11930:rset
11931s/^[ ]*#[ ]*define[ ][ ]*/ /
11932t def
11933d
11934:def
11935s/\\$//
11936t bsnl
11937s/["\\]/\\&/g
11938s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11939D["\1"]=" \3"/p
11940s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11941d
11942:bsnl
11943s/["\\]/\\&/g
11944s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11945D["\1"]=" \3\\\\\\n"\\/p
11946t cont
11947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11948t cont
11949d
11950:cont
11951n
11952s/.\{148\}/&'"$ac_delim"'/g
11953t clear
11954:clear
11955s/\\$//
11956t bsnlc
11957s/["\\]/\\&/g; s/^/"/; s/$/"/p
11958d
11959:bsnlc
11960s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11961b cont
11962' <confdefs.h | sed '
11963s/'"$ac_delim"'/"\\\
11964"/g' >>$CONFIG_STATUS || ac_write_fail=1
11965
11966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11967 for (key in D) D_is_set[key] = 1
11968 FS = ""
11969}
11970/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11971 line = \$ 0
11972 split(line, arg, " ")
11973 if (arg[1] == "#") {
11974 defundef = arg[2]
11975 mac1 = arg[3]
11976 } else {
11977 defundef = substr(arg[1], 2)
11978 mac1 = arg[2]
11979 }
11980 split(mac1, mac2, "(") #)
11981 macro = mac2[1]
11982 prefix = substr(line, 1, index(line, defundef) - 1)
11983 if (D_is_set[macro]) {
11984 # Preserve the white space surrounding the "#".
11985 print prefix "define", macro P[macro] D[macro]
11986 next
11987 } else {
11988 # Replace #undef with comments. This is necessary, for example,
11989 # in the case of _POSIX_SOURCE, which is predefined and required
11990 # on some systems where configure will not decide to define it.
11991 if (defundef == "undef") {
11992 print "/*", prefix defundef, macro, "*/"
11993 next
11994 }
11995 }
11996}
11997{ print }
11998_ACAWK
11999_ACEOF
12000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012001 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012002fi # test -n "$CONFIG_HEADERS"
12003
12004
12005eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12006shift
12007for ac_tag
12008do
12009 case $ac_tag in
12010 :[FHLC]) ac_mode=$ac_tag; continue;;
12011 esac
12012 case $ac_mode$ac_tag in
12013 :[FHL]*:*);;
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012014 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012015 :[FH]-) ac_tag=-:-;;
12016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12017 esac
12018 ac_save_IFS=$IFS
12019 IFS=:
12020 set x $ac_tag
12021 IFS=$ac_save_IFS
12022 shift
12023 ac_file=$1
12024 shift
12025
12026 case $ac_mode in
12027 :L) ac_source=$1;;
12028 :[FH])
12029 ac_file_inputs=
12030 for ac_f
12031 do
12032 case $ac_f in
12033 -) ac_f="$tmp/stdin";;
12034 *) # Look for the file first in the build tree, then in the source tree
12035 # (if the path is not absolute). The absolute path cannot be DOS-style,
12036 # because $ac_f cannot contain `:'.
12037 test -f "$ac_f" ||
12038 case $ac_f in
12039 [\\/$]*) false;;
12040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12041 esac ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012042 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012043 esac
12044 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12045 as_fn_append ac_file_inputs " '$ac_f'"
12046 done
12047
12048 # Let's still pretend it is `configure' which instantiates (i.e., don't
12049 # use $as_me), people would be surprised to read:
12050 # /* config.h. Generated by config.status. */
12051 configure_input='Generated from '`
12052 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12053 `' by configure.'
12054 if test x"$ac_file" != x-; then
12055 configure_input="$ac_file. $configure_input"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12057$as_echo "$as_me: creating $ac_file" >&6;}
12058 fi
12059 # Neutralize special characters interpreted by sed in replacement strings.
12060 case $configure_input in #(
12061 *\&* | *\|* | *\\* )
12062 ac_sed_conf_input=`$as_echo "$configure_input" |
12063 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12064 *) ac_sed_conf_input=$configure_input;;
12065 esac
12066
12067 case $ac_tag in
12068 *:-:* | *:-) cat >"$tmp/stdin" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012070 esac
12071 ;;
12072 esac
12073
12074 ac_dir=`$as_dirname -- "$ac_file" ||
12075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12076 X"$ac_file" : 'X\(//\)[^/]' \| \
12077 X"$ac_file" : 'X\(//\)$' \| \
12078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12079$as_echo X"$ac_file" |
12080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12081 s//\1/
12082 q
12083 }
12084 /^X\(\/\/\)[^/].*/{
12085 s//\1/
12086 q
12087 }
12088 /^X\(\/\/\)$/{
12089 s//\1/
12090 q
12091 }
12092 /^X\(\/\).*/{
12093 s//\1/
12094 q
12095 }
12096 s/.*/./; q'`
12097 as_dir="$ac_dir"; as_fn_mkdir_p
12098 ac_builddir=.
12099
12100case "$ac_dir" in
12101.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12102*)
12103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12104 # A ".." for each directory in $ac_dir_suffix.
12105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12106 case $ac_top_builddir_sub in
12107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12109 esac ;;
12110esac
12111ac_abs_top_builddir=$ac_pwd
12112ac_abs_builddir=$ac_pwd$ac_dir_suffix
12113# for backward compatibility:
12114ac_top_builddir=$ac_top_build_prefix
12115
12116case $srcdir in
12117 .) # We are building in place.
12118 ac_srcdir=.
12119 ac_top_srcdir=$ac_top_builddir_sub
12120 ac_abs_top_srcdir=$ac_pwd ;;
12121 [\\/]* | ?:[\\/]* ) # Absolute name.
12122 ac_srcdir=$srcdir$ac_dir_suffix;
12123 ac_top_srcdir=$srcdir
12124 ac_abs_top_srcdir=$srcdir ;;
12125 *) # Relative name.
12126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12127 ac_top_srcdir=$ac_top_build_prefix$srcdir
12128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12129esac
12130ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12131
12132
12133 case $ac_mode in
12134 :F)
12135 #
12136 # CONFIG_FILE
12137 #
12138
12139 case $INSTALL in
12140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12142 esac
12143 ac_MKDIR_P=$MKDIR_P
12144 case $MKDIR_P in
12145 [\\/$]* | ?:[\\/]* ) ;;
12146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12147 esac
12148_ACEOF
12149
12150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151# If the template does not know about datarootdir, expand it.
12152# FIXME: This hack should be removed a few years after 2.60.
12153ac_datarootdir_hack=; ac_datarootdir_seen=
12154ac_sed_dataroot='
12155/datarootdir/ {
12156 p
12157 q
12158}
12159/@datadir@/p
12160/@docdir@/p
12161/@infodir@/p
12162/@localedir@/p
12163/@mandir@/p'
12164case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12165*datarootdir*) ac_datarootdir_seen=yes;;
12166*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12168$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12169_ACEOF
12170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12171 ac_datarootdir_hack='
12172 s&@datadir@&$datadir&g
12173 s&@docdir@&$docdir&g
12174 s&@infodir@&$infodir&g
12175 s&@localedir@&$localedir&g
12176 s&@mandir@&$mandir&g
12177 s&\\\${datarootdir}&$datarootdir&g' ;;
12178esac
12179_ACEOF
12180
12181# Neutralize VPATH when `$srcdir' = `.'.
12182# Shell code in configure.ac might set extrasub.
12183# FIXME: do we really want to maintain this feature?
12184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12185ac_sed_extra="$ac_vpsub
12186$extrasub
12187_ACEOF
12188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189:t
12190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12191s|@configure_input@|$ac_sed_conf_input|;t t
12192s&@top_builddir@&$ac_top_builddir_sub&;t t
12193s&@top_build_prefix@&$ac_top_build_prefix&;t t
12194s&@srcdir@&$ac_srcdir&;t t
12195s&@abs_srcdir@&$ac_abs_srcdir&;t t
12196s&@top_srcdir@&$ac_top_srcdir&;t t
12197s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12198s&@builddir@&$ac_builddir&;t t
12199s&@abs_builddir@&$ac_abs_builddir&;t t
12200s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12201s&@INSTALL@&$ac_INSTALL&;t t
12202s&@MKDIR_P@&$ac_MKDIR_P&;t t
12203$ac_datarootdir_hack
12204"
12205eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012207
12208test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12209 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012212which seems to be undefined. Please make sure it is defined" >&5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012213$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012214which seems to be undefined. Please make sure it is defined" >&2;}
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012215
12216 rm -f "$tmp/stdin"
12217 case $ac_file in
12218 -) cat "$tmp/out" && rm -f "$tmp/out";;
12219 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12220 esac \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012222 ;;
12223 :H)
12224 #
12225 # CONFIG_HEADER
12226 #
12227 if test x"$ac_file" != x-; then
12228 {
12229 $as_echo "/* $configure_input */" \
12230 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12231 } >"$tmp/config.h" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012233 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12235$as_echo "$as_me: $ac_file is unchanged" >&6;}
12236 else
12237 rm -f "$ac_file"
12238 mv "$tmp/config.h" "$ac_file" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012240 fi
12241 else
12242 $as_echo "/* $configure_input */" \
12243 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Douglas Gilbert02f2be12010-11-12 16:00:04 +000012244 || as_fn_error $? "could not create -" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000012245 fi
12246# Compute "$ac_file"'s index in $config_headers.
12247_am_arg="$ac_file"
12248_am_stamp_count=1
12249for _am_header in $config_headers :; do
12250 case $_am_header in
12251 $_am_arg | $_am_arg:* )
12252 break ;;
12253 * )
12254 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12255 esac
12256done
12257echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12258$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12259 X"$_am_arg" : 'X\(//\)[^/]' \| \
12260 X"$_am_arg" : 'X\(//\)$' \| \
12261 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12262$as_echo X"$_am_arg" |
12263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12264 s//\1/
12265 q
12266 }
12267 /^X\(\/\/\)[^/].*/{
12268 s//\1/
12269 q
12270 }
12271 /^X\(\/\/\)$/{
12272 s//\1/
12273 q
12274 }
12275 /^X\(\/\).*/{
12276 s//\1/
12277 q
12278 }
12279 s/.*/./; q'`/stamp-h$_am_stamp_count
12280 ;;
12281
12282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12283$as_echo "$as_me: executing $ac_file commands" >&6;}
12284 ;;
12285 esac
12286
12287
12288 case $ac_file$ac_mode in
12289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12290 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12291 # are listed without --file. Let's play safe and only enable the eval
12292 # if we detect the quoting.
12293 case $CONFIG_FILES in
12294 *\'*) eval set x "$CONFIG_FILES" ;;
12295 *) set x $CONFIG_FILES ;;
12296 esac
12297 shift
12298 for mf
12299 do
12300 # Strip MF so we end up with the name of the file.
12301 mf=`echo "$mf" | sed -e 's/:.*$//'`
12302 # Check whether this is an Automake generated Makefile or not.
12303 # We used to match only the files named `Makefile.in', but
12304 # some people rename them; so instead we look at the file content.
12305 # Grep'ing the first line is not enough: some people post-process
12306 # each Makefile.in and add a new line on top of each file to say so.
12307 # Grep'ing the whole file is not good either: AIX grep has a line
12308 # limit of 2048, but all sed's we know have understand at least 4000.
12309 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12310 dirpart=`$as_dirname -- "$mf" ||
12311$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12312 X"$mf" : 'X\(//\)[^/]' \| \
12313 X"$mf" : 'X\(//\)$' \| \
12314 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12315$as_echo X"$mf" |
12316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12317 s//\1/
12318 q
12319 }
12320 /^X\(\/\/\)[^/].*/{
12321 s//\1/
12322 q
12323 }
12324 /^X\(\/\/\)$/{
12325 s//\1/
12326 q
12327 }
12328 /^X\(\/\).*/{
12329 s//\1/
12330 q
12331 }
12332 s/.*/./; q'`
12333 else
12334 continue
12335 fi
12336 # Extract the definition of DEPDIR, am__include, and am__quote
12337 # from the Makefile without running `make'.
12338 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12339 test -z "$DEPDIR" && continue
12340 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12341 test -z "am__include" && continue
12342 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12343 # When using ansi2knr, U may be empty or an underscore; expand it
12344 U=`sed -n 's/^U = //p' < "$mf"`
12345 # Find all dependency output files, they are included files with
12346 # $(DEPDIR) in their names. We invoke sed twice because it is the
12347 # simplest approach to changing $(DEPDIR) to its actual value in the
12348 # expansion.
12349 for file in `sed -n "
12350 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12351 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12352 # Make sure the directory exists.
12353 test -f "$dirpart/$file" && continue
12354 fdir=`$as_dirname -- "$file" ||
12355$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12356 X"$file" : 'X\(//\)[^/]' \| \
12357 X"$file" : 'X\(//\)$' \| \
12358 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12359$as_echo X"$file" |
12360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12361 s//\1/
12362 q
12363 }
12364 /^X\(\/\/\)[^/].*/{
12365 s//\1/
12366 q
12367 }
12368 /^X\(\/\/\)$/{
12369 s//\1/
12370 q
12371 }
12372 /^X\(\/\).*/{
12373 s//\1/
12374 q
12375 }
12376 s/.*/./; q'`
12377 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12378 # echo "creating $dirpart/$file"
12379 echo '# dummy' > "$dirpart/$file"
12380 done
12381 done
12382}
12383 ;;
12384 "libtool":C)
12385
12386 # See if we are running on zsh, and set the options which allow our
12387 # commands through without removal of \ escapes.
12388 if test -n "${ZSH_VERSION+set}" ; then
12389 setopt NO_GLOB_SUBST
12390 fi
12391
12392 cfgfile="${ofile}T"
12393 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12394 $RM "$cfgfile"
12395
12396 cat <<_LT_EOF >> "$cfgfile"
12397#! $SHELL
12398
12399# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12400# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12401# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12402# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12403#
12404# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12405# 2006, 2007, 2008 Free Software Foundation, Inc.
12406# Written by Gordon Matzigkeit, 1996
12407#
12408# This file is part of GNU Libtool.
12409#
12410# GNU Libtool is free software; you can redistribute it and/or
12411# modify it under the terms of the GNU General Public License as
12412# published by the Free Software Foundation; either version 2 of
12413# the License, or (at your option) any later version.
12414#
12415# As a special exception to the GNU General Public License,
12416# if you distribute this file as part of a program or library that
12417# is built using GNU Libtool, you may include this file under the
12418# same distribution terms that you use for the rest of that program.
12419#
12420# GNU Libtool is distributed in the hope that it will be useful,
12421# but WITHOUT ANY WARRANTY; without even the implied warranty of
12422# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12423# GNU General Public License for more details.
12424#
12425# You should have received a copy of the GNU General Public License
12426# along with GNU Libtool; see the file COPYING. If not, a copy
12427# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12428# obtained by writing to the Free Software Foundation, Inc.,
12429# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12430
12431
12432# The names of the tagged configurations supported by this script.
12433available_tags=""
12434
12435# ### BEGIN LIBTOOL CONFIG
12436
12437# Which release of libtool.m4 was used?
12438macro_version=$macro_version
12439macro_revision=$macro_revision
12440
12441# Whether or not to build shared libraries.
12442build_libtool_libs=$enable_shared
12443
12444# Whether or not to build static libraries.
12445build_old_libs=$enable_static
12446
12447# What type of objects to build.
12448pic_mode=$pic_mode
12449
12450# Whether or not to optimize for fast installation.
12451fast_install=$enable_fast_install
12452
12453# The host system.
12454host_alias=$host_alias
12455host=$host
12456host_os=$host_os
12457
12458# The build system.
12459build_alias=$build_alias
12460build=$build
12461build_os=$build_os
12462
12463# A sed program that does not truncate output.
12464SED=$lt_SED
12465
12466# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12467Xsed="\$SED -e 1s/^X//"
12468
12469# A grep program that handles long lines.
12470GREP=$lt_GREP
12471
12472# An ERE matcher.
12473EGREP=$lt_EGREP
12474
12475# A literal string matcher.
12476FGREP=$lt_FGREP
12477
12478# A BSD- or MS-compatible name lister.
12479NM=$lt_NM
12480
12481# Whether we need soft or hard links.
12482LN_S=$lt_LN_S
12483
12484# What is the maximum length of a command?
12485max_cmd_len=$max_cmd_len
12486
12487# Object file suffix (normally "o").
12488objext=$ac_objext
12489
12490# Executable file suffix (normally "").
12491exeext=$exeext
12492
12493# whether the shell understands "unset".
12494lt_unset=$lt_unset
12495
12496# turn spaces into newlines.
12497SP2NL=$lt_lt_SP2NL
12498
12499# turn newlines into spaces.
12500NL2SP=$lt_lt_NL2SP
12501
12502# How to create reloadable object files.
12503reload_flag=$lt_reload_flag
12504reload_cmds=$lt_reload_cmds
12505
12506# An object symbol dumper.
12507OBJDUMP=$lt_OBJDUMP
12508
12509# Method to check whether dependent libraries are shared objects.
12510deplibs_check_method=$lt_deplibs_check_method
12511
12512# Command to use when deplibs_check_method == "file_magic".
12513file_magic_cmd=$lt_file_magic_cmd
12514
12515# The archiver.
12516AR=$lt_AR
12517AR_FLAGS=$lt_AR_FLAGS
12518
12519# A symbol stripping program.
12520STRIP=$lt_STRIP
12521
12522# Commands used to install an old-style archive.
12523RANLIB=$lt_RANLIB
12524old_postinstall_cmds=$lt_old_postinstall_cmds
12525old_postuninstall_cmds=$lt_old_postuninstall_cmds
12526
12527# A C compiler.
12528LTCC=$lt_CC
12529
12530# LTCC compiler flags.
12531LTCFLAGS=$lt_CFLAGS
12532
12533# Take the output of nm and produce a listing of raw symbols and C names.
12534global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12535
12536# Transform the output of nm in a proper C declaration.
12537global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12538
12539# Transform the output of nm in a C name address pair.
12540global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12541
12542# Transform the output of nm in a C name address pair when lib prefix is needed.
12543global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12544
12545# The name of the directory that contains temporary libtool files.
12546objdir=$objdir
12547
12548# Shell to use when invoking shell scripts.
12549SHELL=$lt_SHELL
12550
12551# An echo program that does not interpret backslashes.
12552ECHO=$lt_ECHO
12553
12554# Used to examine libraries when file_magic_cmd begins with "file".
12555MAGIC_CMD=$MAGIC_CMD
12556
12557# Must we lock files when doing compilation?
12558need_locks=$lt_need_locks
12559
12560# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12561DSYMUTIL=$lt_DSYMUTIL
12562
12563# Tool to change global to local symbols on Mac OS X.
12564NMEDIT=$lt_NMEDIT
12565
12566# Tool to manipulate fat objects and archives on Mac OS X.
12567LIPO=$lt_LIPO
12568
12569# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12570OTOOL=$lt_OTOOL
12571
12572# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12573OTOOL64=$lt_OTOOL64
12574
12575# Old archive suffix (normally "a").
12576libext=$libext
12577
12578# Shared library suffix (normally ".so").
12579shrext_cmds=$lt_shrext_cmds
12580
12581# The commands to extract the exported symbol list from a shared archive.
12582extract_expsyms_cmds=$lt_extract_expsyms_cmds
12583
12584# Variables whose values should be saved in libtool wrapper scripts and
12585# restored at link time.
12586variables_saved_for_relink=$lt_variables_saved_for_relink
12587
12588# Do we need the "lib" prefix for modules?
12589need_lib_prefix=$need_lib_prefix
12590
12591# Do we need a version for libraries?
12592need_version=$need_version
12593
12594# Library versioning type.
12595version_type=$version_type
12596
12597# Shared library runtime path variable.
12598runpath_var=$runpath_var
12599
12600# Shared library path variable.
12601shlibpath_var=$shlibpath_var
12602
12603# Is shlibpath searched before the hard-coded library search path?
12604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12605
12606# Format of library name prefix.
12607libname_spec=$lt_libname_spec
12608
12609# List of archive names. First name is the real one, the rest are links.
12610# The last name is the one that the linker finds with -lNAME
12611library_names_spec=$lt_library_names_spec
12612
12613# The coded name of the library, if different from the real name.
12614soname_spec=$lt_soname_spec
12615
12616# Command to use after installation of a shared archive.
12617postinstall_cmds=$lt_postinstall_cmds
12618
12619# Command to use after uninstallation of a shared archive.
12620postuninstall_cmds=$lt_postuninstall_cmds
12621
12622# Commands used to finish a libtool library installation in a directory.
12623finish_cmds=$lt_finish_cmds
12624
12625# As "finish_cmds", except a single script fragment to be evaled but
12626# not shown.
12627finish_eval=$lt_finish_eval
12628
12629# Whether we should hardcode library paths into libraries.
12630hardcode_into_libs=$hardcode_into_libs
12631
12632# Compile-time system search path for libraries.
12633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12634
12635# Run-time system search path for libraries.
12636sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12637
12638# Whether dlopen is supported.
12639dlopen_support=$enable_dlopen
12640
12641# Whether dlopen of programs is supported.
12642dlopen_self=$enable_dlopen_self
12643
12644# Whether dlopen of statically linked programs is supported.
12645dlopen_self_static=$enable_dlopen_self_static
12646
12647# Commands to strip libraries.
12648old_striplib=$lt_old_striplib
12649striplib=$lt_striplib
12650
12651
12652# The linker used to build libraries.
12653LD=$lt_LD
12654
12655# Commands used to build an old-style archive.
12656old_archive_cmds=$lt_old_archive_cmds
12657
12658# A language specific compiler.
12659CC=$lt_compiler
12660
12661# Is the compiler the GNU compiler?
12662with_gcc=$GCC
12663
12664# Compiler flag to turn off builtin functions.
12665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12666
12667# How to pass a linker flag through the compiler.
12668wl=$lt_lt_prog_compiler_wl
12669
12670# Additional compiler flags for building library objects.
12671pic_flag=$lt_lt_prog_compiler_pic
12672
12673# Compiler flag to prevent dynamic linking.
12674link_static_flag=$lt_lt_prog_compiler_static
12675
12676# Does compiler simultaneously support -c and -o options?
12677compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12678
12679# Whether or not to add -lc for building shared libraries.
12680build_libtool_need_lc=$archive_cmds_need_lc
12681
12682# Whether or not to disallow shared libs when runtime libs are static.
12683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12684
12685# Compiler flag to allow reflexive dlopens.
12686export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12687
12688# Compiler flag to generate shared objects directly from archives.
12689whole_archive_flag_spec=$lt_whole_archive_flag_spec
12690
12691# Whether the compiler copes with passing no objects directly.
12692compiler_needs_object=$lt_compiler_needs_object
12693
12694# Create an old-style archive from a shared archive.
12695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12696
12697# Create a temporary old-style archive to link instead of a shared archive.
12698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12699
12700# Commands used to build a shared archive.
12701archive_cmds=$lt_archive_cmds
12702archive_expsym_cmds=$lt_archive_expsym_cmds
12703
12704# Commands used to build a loadable module if different from building
12705# a shared archive.
12706module_cmds=$lt_module_cmds
12707module_expsym_cmds=$lt_module_expsym_cmds
12708
12709# Whether we are building with GNU ld or not.
12710with_gnu_ld=$lt_with_gnu_ld
12711
12712# Flag that allows shared libraries with undefined symbols to be built.
12713allow_undefined_flag=$lt_allow_undefined_flag
12714
12715# Flag that enforces no undefined symbols.
12716no_undefined_flag=$lt_no_undefined_flag
12717
12718# Flag to hardcode \$libdir into a binary during linking.
12719# This must work even if \$libdir does not exist
12720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12721
12722# If ld is used when linking, flag to hardcode \$libdir into a binary
12723# during linking. This must work even if \$libdir does not exist.
12724hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12725
12726# Whether we need a single "-rpath" flag with a separated argument.
12727hardcode_libdir_separator=$lt_hardcode_libdir_separator
12728
12729# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12730# DIR into the resulting binary.
12731hardcode_direct=$hardcode_direct
12732
12733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12734# DIR into the resulting binary and the resulting library dependency is
12735# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12736# library is relocated.
12737hardcode_direct_absolute=$hardcode_direct_absolute
12738
12739# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12740# into the resulting binary.
12741hardcode_minus_L=$hardcode_minus_L
12742
12743# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12744# into the resulting binary.
12745hardcode_shlibpath_var=$hardcode_shlibpath_var
12746
12747# Set to "yes" if building a shared library automatically hardcodes DIR
12748# into the library and all subsequent libraries and executables linked
12749# against it.
12750hardcode_automatic=$hardcode_automatic
12751
12752# Set to yes if linker adds runtime paths of dependent libraries
12753# to runtime path list.
12754inherit_rpath=$inherit_rpath
12755
12756# Whether libtool must link a program against all its dependency libraries.
12757link_all_deplibs=$link_all_deplibs
12758
12759# Fix the shell variable \$srcfile for the compiler.
12760fix_srcfile_path=$lt_fix_srcfile_path
12761
12762# Set to "yes" if exported symbols are required.
12763always_export_symbols=$always_export_symbols
12764
12765# The commands to list exported symbols.
12766export_symbols_cmds=$lt_export_symbols_cmds
12767
12768# Symbols that should not be listed in the preloaded symbols.
12769exclude_expsyms=$lt_exclude_expsyms
12770
12771# Symbols that must always be exported.
12772include_expsyms=$lt_include_expsyms
12773
12774# Commands necessary for linking programs (against libraries) with templates.
12775prelink_cmds=$lt_prelink_cmds
12776
12777# Specify filename containing input files.
12778file_list_spec=$lt_file_list_spec
12779
12780# How to hardcode a shared library path into an executable.
12781hardcode_action=$hardcode_action
12782
12783# ### END LIBTOOL CONFIG
12784
12785_LT_EOF
12786
12787 case $host_os in
12788 aix3*)
12789 cat <<\_LT_EOF >> "$cfgfile"
12790# AIX sometimes has problems with the GCC collect2 program. For some
12791# reason, if we set the COLLECT_NAMES environment variable, the problems
12792# vanish in a puff of smoke.
12793if test "X${COLLECT_NAMES+set}" != Xset; then
12794 COLLECT_NAMES=
12795 export COLLECT_NAMES
12796fi
12797_LT_EOF
12798 ;;
12799 esac
12800
12801
12802ltmain="$ac_aux_dir/ltmain.sh"
12803
12804
12805 # We use sed instead of cat because bash on DJGPP gets confused if
12806 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12807 # text mode, it properly converts lines to CR/LF. This bash problem
12808 # is reportedly fixed, but why not run on old versions too?
12809 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12810 || (rm -f "$cfgfile"; exit 1)
12811
12812 case $xsi_shell in
12813 yes)
12814 cat << \_LT_EOF >> "$cfgfile"
12815
12816# func_dirname file append nondir_replacement
12817# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12818# otherwise set result to NONDIR_REPLACEMENT.
12819func_dirname ()
12820{
12821 case ${1} in
12822 */*) func_dirname_result="${1%/*}${2}" ;;
12823 * ) func_dirname_result="${3}" ;;
12824 esac
12825}
12826
12827# func_basename file
12828func_basename ()
12829{
12830 func_basename_result="${1##*/}"
12831}
12832
12833# func_dirname_and_basename file append nondir_replacement
12834# perform func_basename and func_dirname in a single function
12835# call:
12836# dirname: Compute the dirname of FILE. If nonempty,
12837# add APPEND to the result, otherwise set result
12838# to NONDIR_REPLACEMENT.
12839# value returned in "$func_dirname_result"
12840# basename: Compute filename of FILE.
12841# value retuned in "$func_basename_result"
12842# Implementation must be kept synchronized with func_dirname
12843# and func_basename. For efficiency, we do not delegate to
12844# those functions but instead duplicate the functionality here.
12845func_dirname_and_basename ()
12846{
12847 case ${1} in
12848 */*) func_dirname_result="${1%/*}${2}" ;;
12849 * ) func_dirname_result="${3}" ;;
12850 esac
12851 func_basename_result="${1##*/}"
12852}
12853
12854# func_stripname prefix suffix name
12855# strip PREFIX and SUFFIX off of NAME.
12856# PREFIX and SUFFIX must not contain globbing or regex special
12857# characters, hashes, percent signs, but SUFFIX may contain a leading
12858# dot (in which case that matches only a dot).
12859func_stripname ()
12860{
12861 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12862 # positional parameters, so assign one to ordinary parameter first.
12863 func_stripname_result=${3}
12864 func_stripname_result=${func_stripname_result#"${1}"}
12865 func_stripname_result=${func_stripname_result%"${2}"}
12866}
12867
12868# func_opt_split
12869func_opt_split ()
12870{
12871 func_opt_split_opt=${1%%=*}
12872 func_opt_split_arg=${1#*=}
12873}
12874
12875# func_lo2o object
12876func_lo2o ()
12877{
12878 case ${1} in
12879 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12880 *) func_lo2o_result=${1} ;;
12881 esac
12882}
12883
12884# func_xform libobj-or-source
12885func_xform ()
12886{
12887 func_xform_result=${1%.*}.lo
12888}
12889
12890# func_arith arithmetic-term...
12891func_arith ()
12892{
12893 func_arith_result=$(( $* ))
12894}
12895
12896# func_len string
12897# STRING may not start with a hyphen.
12898func_len ()
12899{
12900 func_len_result=${#1}
12901}
12902
12903_LT_EOF
12904 ;;
12905 *) # Bourne compatible functions.
12906 cat << \_LT_EOF >> "$cfgfile"
12907
12908# func_dirname file append nondir_replacement
12909# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12910# otherwise set result to NONDIR_REPLACEMENT.
12911func_dirname ()
12912{
12913 # Extract subdirectory from the argument.
12914 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12915 if test "X$func_dirname_result" = "X${1}"; then
12916 func_dirname_result="${3}"
12917 else
12918 func_dirname_result="$func_dirname_result${2}"
12919 fi
12920}
12921
12922# func_basename file
12923func_basename ()
12924{
12925 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12926}
12927
12928
12929# func_stripname prefix suffix name
12930# strip PREFIX and SUFFIX off of NAME.
12931# PREFIX and SUFFIX must not contain globbing or regex special
12932# characters, hashes, percent signs, but SUFFIX may contain a leading
12933# dot (in which case that matches only a dot).
12934# func_strip_suffix prefix name
12935func_stripname ()
12936{
12937 case ${2} in
12938 .*) func_stripname_result=`$ECHO "X${3}" \
12939 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12940 *) func_stripname_result=`$ECHO "X${3}" \
12941 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12942 esac
12943}
12944
12945# sed scripts:
12946my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12947my_sed_long_arg='1s/^-[^=]*=//'
12948
12949# func_opt_split
12950func_opt_split ()
12951{
12952 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12953 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12954}
12955
12956# func_lo2o object
12957func_lo2o ()
12958{
12959 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12960}
12961
12962# func_xform libobj-or-source
12963func_xform ()
12964{
12965 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12966}
12967
12968# func_arith arithmetic-term...
12969func_arith ()
12970{
12971 func_arith_result=`expr "$@"`
12972}
12973
12974# func_len string
12975# STRING may not start with a hyphen.
12976func_len ()
12977{
12978 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12979}
12980
12981_LT_EOF
12982esac
12983
12984case $lt_shell_append in
12985 yes)
12986 cat << \_LT_EOF >> "$cfgfile"
12987
12988# func_append var value
12989# Append VALUE to the end of shell variable VAR.
12990func_append ()
12991{
12992 eval "$1+=\$2"
12993}
12994_LT_EOF
12995 ;;
12996 *)
12997 cat << \_LT_EOF >> "$cfgfile"
12998
12999# func_append var value
13000# Append VALUE to the end of shell variable VAR.
13001func_append ()
13002{
13003 eval "$1=\$$1\$2"
13004}
13005
13006_LT_EOF
13007 ;;
13008 esac
13009
13010
13011 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13012 || (rm -f "$cfgfile"; exit 1)
13013
13014 mv -f "$cfgfile" "$ofile" ||
13015 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13016 chmod +x "$ofile"
13017
13018 ;;
13019
13020 esac
13021done # for ac_tag
13022
13023
13024as_fn_exit 0
13025_ACEOF
13026ac_clean_files=$ac_clean_files_save
13027
13028test $ac_write_fail = 0 ||
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013029 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013030
13031
13032# configure is writing to config.log, and then calls config.status.
13033# config.status does its own redirection, appending to config.log.
13034# Unfortunately, on DOS this fails, as config.log is still kept open
13035# by configure, so config.status won't be able to write to it; its
13036# output is simply discarded. So we exec the FD to /dev/null,
13037# effectively closing config.log, so it can be properly (re)opened and
13038# appended to by config.status. When coming back to configure, we
13039# need to make the FD available again.
13040if test "$no_create" != yes; then
13041 ac_cs_success=:
13042 ac_config_status_args=
13043 test "$silent" = yes &&
13044 ac_config_status_args="$ac_config_status_args --quiet"
13045 exec 5>/dev/null
13046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13047 exec 5>>config.log
13048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13049 # would make configure fail if this is the last instruction.
Douglas Gilbert02f2be12010-11-12 16:00:04 +000013050 $ac_cs_success || as_fn_exit 1
Douglas Gilbert366d25e2010-09-21 03:27:01 +000013051fi
13052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13055fi
13056