* target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
[official-gcc.git] / libssp / configure
bloba94b74ca8ec75adf0eb14ea53f13a797693e1307
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libssp 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
576 done
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
600 done
601 IFS="$lt_save_ifs"
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
649 prev="$cmd"
650 done
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684 # Initializations.
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME='libssp'
697 PACKAGE_TARNAME='libssp'
698 PACKAGE_VERSION='1.0'
699 PACKAGE_STRING='libssp 1.0'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
703 ac_unique_file="ssp.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 toolexeclibdir
745 toolexecdir
746 enable_static
747 enable_shared
748 OTOOL64
749 OTOOL
750 LIPO
751 NMEDIT
752 DSYMUTIL
753 lt_ECHO
754 RANLIB
756 OBJDUMP
757 LN_S
759 ac_ct_DUMPBIN
760 DUMPBIN
762 FGREP
764 LIBTOOL
765 ssp_have_usable_vsnprintf
766 EGREP
767 GREP
768 LIBSSP_USE_SYMVER_FALSE
769 LIBSSP_USE_SYMVER_TRUE
771 am__fastdepCC_FALSE
772 am__fastdepCC_TRUE
773 CCDEPMODE
774 AMDEPBACKSLASH
775 AMDEP_FALSE
776 AMDEP_TRUE
777 am__quote
778 am__include
779 DEPDIR
780 OBJEXT
781 EXEEXT
782 ac_ct_CC
783 CPPFLAGS
784 LDFLAGS
785 CFLAGS
787 multi_basedir
788 MAINT
789 MAINTAINER_MODE_FALSE
790 MAINTAINER_MODE_TRUE
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_version_specific_runtime_libs
869 enable_maintainer_mode
870 enable_multilib
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 with_gnu_ld
877 enable_libtool_lock
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CPPFLAGS'
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
934 ac_prev=
935 ac_dashdash=
936 for ac_option
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
954 ac_dashdash=yes ;;
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
966 -cache-file | --cache-file | --cache-fil | --cache-fi \
967 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968 ac_prev=cache_file ;;
969 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971 cache_file=$ac_optarg ;;
973 --config-cache | -C)
974 cache_file=config.cache ;;
976 -datadir | --datadir | --datadi | --datad)
977 ac_prev=datadir ;;
978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979 datadir=$ac_optarg ;;
981 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982 | --dataroo | --dataro | --datar)
983 ac_prev=datarootdir ;;
984 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986 datarootdir=$ac_optarg ;;
988 -disable-* | --disable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) as_fn_error "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information."
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1278 esac
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 esac
1291 done
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error "missing argument to $ac_option"
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1377 /^X\(\/\/\)$/{
1378 s//\1/
1381 /^X\(\/\).*/{
1382 s//\1/
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1390 else
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1480 cat <<\_ACEOF
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491 _ACEOF
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of libssp 1.0:";;
1497 esac
1498 cat <<\_ACEOF
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
1507 --enable-multilib build many library versions (default)
1508 --disable-dependency-tracking speeds up one-time build
1509 --enable-dependency-tracking do not reject slow dependency extractors
1510 --enable-shared[=PKGS] build shared libraries [default=yes]
1511 --enable-static[=PKGS] build static libraries [default=yes]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libssp configure 1.0
1600 generated by GNU Autoconf 2.64
1602 Copyright (C) 2009 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=1
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 return $ac_retval
1649 } # ac_fn_c_try_compile
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } >/dev/null && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=1
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1686 } # ac_fn_c_try_cpp
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 return $ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737 # the include files in INCLUDES and setting the cache variable VAR
1738 # accordingly.
1739 ac_fn_c_check_header_mongrel ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1748 eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 else
1752 # Is the header compilable?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754 $as_echo_n "checking $2 usability... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 ac_header_compiler=yes
1762 else
1763 ac_header_compiler=no
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767 $as_echo "$ac_header_compiler" >&6; }
1769 # Is the header present?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771 $as_echo_n "checking $2 presence... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_cpp "$LINENO"; then :
1777 ac_header_preproc=yes
1778 else
1779 ac_header_preproc=no
1781 rm -f conftest.err conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783 $as_echo "$ac_header_preproc" >&6; }
1785 # So? What about this header?
1786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1787 yes:no: )
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 no:yes:* )
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1797 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1801 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 esac
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 eval "$3=\$ac_header_compiler"
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_c_try_run
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 if test x$gcc_no_link = xyes; then
1906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912 #define $2 innocuous_$2
1914 /* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1919 #ifdef __STDC__
1920 # include <limits.h>
1921 #else
1922 # include <assert.h>
1923 #endif
1925 #undef $2
1927 /* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930 #ifdef __cplusplus
1931 extern "C"
1932 #endif
1933 char $2 ();
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined __stub_$2 || defined __stub___$2
1938 choke me
1939 #endif
1942 main ()
1944 return $2 ();
1946 return 0;
1948 _ACEOF
1949 if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951 else
1952 eval "$3=no"
1954 rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_c_check_func
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1967 It was created by libssp $as_me 1.0, which was
1968 generated by GNU Autoconf 2.64. Invocation command line was
1970 $ $0 $@
1972 _ACEOF
1973 exec 5>>config.log
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997 _ASUNAME
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2005 done
2006 IFS=$as_save_IFS
2008 } >&5
2010 cat >&5 <<_ACEOF
2013 ## ----------- ##
2014 ## Core tests. ##
2015 ## ----------- ##
2017 _ACEOF
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_configure_args=
2026 ac_configure_args0=
2027 ac_configure_args1=
2028 ac_must_keep_next=false
2029 for ac_pass in 1 2
2031 for ac_arg
2033 case $ac_arg in
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2037 continue ;;
2038 *\'*)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040 esac
2041 case $ac_pass in
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2047 else
2048 case $ac_arg in
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055 esac
2057 -* ) ac_must_keep_next=true ;;
2058 esac
2060 as_fn_append ac_configure_args " '$ac_arg'"
2062 esac
2063 done
2064 done
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log. We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2076 echo
2078 cat <<\_ASBOX
2079 ## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##
2082 _ASBOX
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
2101 (set) 2>&1 |
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2104 sed -n \
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 esac |
2112 sort
2114 echo
2116 cat <<\_ASBOX
2117 ## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##
2120 _ASBOX
2121 echo
2122 for ac_var in $ac_subst_vars
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2132 if test -n "$ac_subst_files"; then
2133 cat <<\_ASBOX
2134 ## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##
2137 _ASBOX
2138 echo
2139 for ac_var in $ac_subst_files
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2150 if test -s confdefs.h; then
2151 cat <<\_ASBOX
2152 ## ----------- ##
2153 ## confdefs.h. ##
2154 ## ----------- ##
2155 _ASBOX
2156 echo
2157 cat confdefs.h
2158 echo
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 ac_site_file1=$CONFIG_SITE
2211 elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214 else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE && continue
2221 if test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2225 . "$ac_site_file"
2227 done
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special
2231 # files actually), so we avoid doing that.
2232 if test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 ac_aux_dir=
2319 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320 for ac_t in install-sh install.sh shtool; do
2321 if test -f "$ac_dir/$ac_t"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/$ac_t -c"
2324 break 2
2326 done
2327 done
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if test "${ac_cv_build+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380 $as_echo_n "checking host system type... " >&6; }
2381 if test "${ac_cv_host+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386 else
2387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393 $as_echo "$ac_cv_host" >&6; }
2394 case $ac_cv_host in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397 esac
2398 host=$ac_cv_host
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_host
2401 shift
2402 host_cpu=$1
2403 host_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 host_os=$*
2408 IFS=$ac_save_IFS
2409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413 $as_echo_n "checking target system type... " >&6; }
2414 if test "${ac_cv_target+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
2419 else
2420 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426 $as_echo "$ac_cv_target" >&6; }
2427 case $ac_cv_target in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430 esac
2431 target=$ac_cv_target
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_target
2434 shift
2435 target_cpu=$1
2436 target_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 target_os=$*
2441 IFS=$ac_save_IFS
2442 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445 # The aliases save the names the user supplied, while $host etc.
2446 # will get canonicalized.
2447 test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
2452 case ${build_alias} in
2453 "") build_noncanonical=${build} ;;
2454 *) build_noncanonical=${build_alias} ;;
2455 esac
2457 case ${host_alias} in
2458 "") host_noncanonical=${build_noncanonical} ;;
2459 *) host_noncanonical=${host_alias} ;;
2460 esac
2462 case ${target_alias} in
2463 "") target_noncanonical=${host_noncanonical} ;;
2464 *) target_noncanonical=${target_alias} ;;
2465 esac
2470 am__api_version='1.11'
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502 /usr/ucb/* ) ;;
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2506 # by default.
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2518 else
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2522 mkdir conftest.dir
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2527 then
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529 break 3
2533 done
2534 done
2536 esac
2538 done
2539 IFS=$as_save_IFS
2541 rm -rf conftest.one conftest.two conftest.dir
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2546 else
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581 esac
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2591 # -L didn't work.
2592 set X `ls -t "$srcdir/configure" conftest.file`
2594 rm -f conftest.file
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2598 # If neither matched, then we have a broken ls. This can happen
2599 # if, for instance, CONFIG_SHELL is bash and it inherits a
2600 # broken ls alias from the environment. This has actually
2601 # happened. Such a system could not be considered "sane".
2602 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2606 test "$2" = conftest.file
2608 then
2609 # Ok.
2611 else
2612 as_fn_error "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640 am_missing_run="$MISSING --run "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2647 if test x"${install_sh}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'. However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2683 done
2684 done
2685 IFS=$as_save_IFS
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if test "${ac_cv_path_mkdir+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2784 if test "${ac_cv_path_mkdir+set}" = set; then
2785 MKDIR_P="$ac_cv_path_mkdir -p"
2786 else
2787 # As a last resort, use the slow shell script. Don't cache a
2788 # value for MKDIR_P within a source directory, because that will
2789 # break other packages using the cache if that directory is
2790 # removed, or if the value is a relative name.
2791 test -d ./--version && rmdir ./--version
2792 MKDIR_P="$ac_install_sh -d"
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800 [\\/$]* | ?:[\\/]*) ;;
2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2804 for ac_prog in gawk mawk nawk awk
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_AWK="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$AWK" && break
2844 done
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856 @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 *@@@%%%=?*=@@@%%%*)
2861 eval ac_cv_prog_make_${ac_make}_set=yes;;
2863 eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 SET_MAKE=
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 SET_MAKE="MAKE=${MAKE-make}"
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880 am__leading_dot=.
2881 else
2882 am__leading_dot=_
2884 rmdir .tst 2>/dev/null
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888 # is not polluted with repeated "-I."
2889 am__isrc=' -I$(srcdir)'
2890 # test to see if srcdir already configured
2891 if test -f $srcdir/config.status; then
2892 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898 if (cygpath --version) >/dev/null 2>/dev/null; then
2899 CYGPATH_W='cygpath -w'
2900 else
2901 CYGPATH_W=echo
2906 # Define the identity of the package.
2907 PACKAGE='libssp'
2908 VERSION='1.0'
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2920 # Some tools Automake needs.
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936 # We need awk for the "check" target. The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility.
2940 AMTAR=${AMTAR-"${am_missing_run}tar"}
2942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2950 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2951 # Check whether --enable-version-specific-runtime-libs was given.
2952 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2953 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2954 yes) version_specific_libs=yes ;;
2955 no) version_specific_libs=no ;;
2956 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2957 esac
2958 else
2959 version_specific_libs=no
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2963 $as_echo "$version_specific_libs" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2967 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2968 # Check whether --enable-maintainer-mode was given.
2969 if test "${enable_maintainer_mode+set}" = set; then :
2970 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2971 else
2972 USE_MAINTAINER_MODE=no
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2976 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2977 if test $USE_MAINTAINER_MODE = yes; then
2978 MAINTAINER_MODE_TRUE=
2979 MAINTAINER_MODE_FALSE='#'
2980 else
2981 MAINTAINER_MODE_TRUE='#'
2982 MAINTAINER_MODE_FALSE=
2985 MAINT=$MAINTAINER_MODE_TRUE
2991 # Default to --enable-multilib
2992 # Check whether --enable-multilib was given.
2993 if test "${enable_multilib+set}" = set; then :
2994 enableval=$enable_multilib; case "$enableval" in
2995 yes) multilib=yes ;;
2996 no) multilib=no ;;
2997 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2998 esac
2999 else
3000 multilib=yes
3004 # We may get other options which we leave undocumented:
3005 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3006 # See config-ml.in if you want the gory details.
3008 if test "$srcdir" = "."; then
3009 if test "$with_target_subdir" != "."; then
3010 multi_basedir="$srcdir/$with_multisrctop../.."
3011 else
3012 multi_basedir="$srcdir/$with_multisrctop.."
3014 else
3015 multi_basedir="$srcdir/.."
3019 # Even if the default multilib is not a cross compilation,
3020 # it may be that some of the other multilibs are.
3021 if test $cross_compiling = no && test $multilib = yes \
3022 && test "x${with_multisubdir}" != x ; then
3023 cross_compiling=maybe
3026 ac_config_commands="$ac_config_commands default-1"
3029 target_alias=${target_alias-$host_alias}
3032 ac_config_headers="$ac_config_headers config.h"
3035 ac_ext=c
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3042 # We must force CC to /not/ be precious variables; otherwise
3043 # the wrong, non-multilib-adjusted value will be used in multilibs.
3044 # As a side effect, we have to subst CFLAGS ourselves.
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3092 if test -z "$ac_cv_prog_CC"; then
3093 ac_ct_CC=$CC
3094 # Extract the first word of "gcc", so it can be a program name with args.
3095 set dummy gcc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$ac_ct_CC"; then
3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_CC="gcc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3115 done
3116 done
3117 IFS=$as_save_IFS
3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122 if test -n "$ac_ct_CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124 $as_echo "$ac_ct_CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139 CC=$ac_ct_CC
3141 else
3142 CC="$ac_cv_prog_CC"
3145 if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}cc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="${ac_tool_prefix}cc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3170 IFS=$as_save_IFS
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3186 if test -z "$CC"; then
3187 # Extract the first word of "cc", so it can be a program name with args.
3188 set dummy cc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_CC+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 ac_prog_rejected=no
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206 ac_prog_rejected=yes
3207 continue
3209 ac_cv_prog_CC="cc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3215 IFS=$as_save_IFS
3217 if test $ac_prog_rejected = yes; then
3218 # We found a bogon in the path, so make sure we never use it.
3219 set dummy $ac_cv_prog_CC
3220 shift
3221 if test $# != 0; then
3222 # We chose a different compiler from the bogus one.
3223 # However, it has the same basename, so the bogon will be chosen
3224 # first if we set CC to just the basename; use the full file name.
3225 shift
3226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3231 CC=$ac_cv_prog_CC
3232 if test -n "$CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234 $as_echo "$CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3242 if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 for ac_prog in cl.exe
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_CC+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3269 IFS=$as_save_IFS
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3283 test -n "$CC" && break
3284 done
3286 if test -z "$CC"; then
3287 ac_ct_CC=$CC
3288 for ac_prog in cl.exe
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_ac_ct_CC="$ac_prog"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320 $as_echo "$ac_ct_CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3327 test -n "$ac_ct_CC" && break
3328 done
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error "no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details." "$LINENO" 5; }
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 for ac_option in --version -v -V -qversion; do
3356 { { ac_try="$ac_compiler $ac_option >&5"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364 ac_status=$?
3365 if test -s conftest.err; then
3366 sed '10a\
3367 ... rest of stderr output deleted ...
3368 10q' conftest.err >conftest.er1
3369 cat conftest.er1 >&5
3370 rm -f conftest.er1 conftest.err
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 done
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 # FIXME: Cleanup?
3388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3389 (eval $ac_link) 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 gcc_no_link=no
3394 else
3395 gcc_no_link=yes
3397 if test x$gcc_no_link = xyes; then
3398 # Setting cross_compile will disable run tests; it will
3399 # also disable AC_CHECK_FILE but that's generally
3400 # correct if we can't link.
3401 cross_compiling=yes
3402 EXEEXT=
3403 else
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3408 main ()
3412 return 0;
3414 _ACEOF
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3419 # of exeext.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421 $as_echo_n "checking for C compiler default output file name... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3427 ac_rmfiles=
3428 for ac_file in $ac_files
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433 esac
3434 done
3435 rm -f $ac_rmfiles
3437 if { { ac_try="$ac_link_default"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link_default") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3452 # Autoconf.
3453 for ac_file in $ac_files ''
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3459 [ab].out )
3460 # We found the default executable, but exeext='' is most
3461 # certainly right.
3462 break;;
3463 *.* )
3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465 then :; else
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 # We set ac_cv_exeext here because the later test for it is not
3469 # safe: cross compilers may not add the suffix if given an `-o'
3470 # argument, so we may need to know it at that point already.
3471 # Even if this section looks crufty: it has the advantage of
3472 # actually working.
3473 break;;
3475 break;;
3476 esac
3477 done
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3480 else
3481 ac_file=''
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 $as_echo "$ac_file" >&6; }
3485 if test -z "$ac_file"; then :
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 { as_fn_set_status 77
3492 as_fn_error "C compiler cannot create executables
3493 See \`config.log' for more details." "$LINENO" 5; }; }
3495 ac_exeext=$ac_cv_exeext
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 # If not cross compiling, check that we can run a simple program.
3502 if test "$cross_compiling" != yes; then
3503 if { ac_try='./$ac_file'
3504 { { case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_try") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; }; then
3514 cross_compiling=no
3515 else
3516 if test "$cross_compiling" = maybe; then
3517 cross_compiling=yes
3518 else
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "cannot run C compiled programs.
3522 If you meant to cross compile, use \`--host'.
3523 See \`config.log' for more details." "$LINENO" 5; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3530 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3531 ac_clean_files=$ac_clean_files_save
3532 # Check that the compiler produces executables we can run. If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3535 $as_echo_n "checking whether we are cross compiling... " >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { { ac_try="$ac_link"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 break;;
3562 * ) break;;
3563 esac
3564 done
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error "cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." "$LINENO" 5; }
3571 rm -f conftest$ac_cv_exeext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573 $as_echo "$ac_cv_exeext" >&6; }
3575 rm -f conftest.$ac_ext
3576 EXEEXT=$ac_cv_exeext
3577 ac_exeext=$EXEEXT
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3580 $as_echo_n "checking for suffix of object files... " >&6; }
3581 if test "${ac_cv_objext+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3588 main ()
3592 return 0;
3594 _ACEOF
3595 rm -f conftest.o conftest.obj
3596 if { { ac_try="$ac_compile"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compile") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; then :
3607 for ac_file in conftest.o conftest.obj conftest.*; do
3608 test -f "$ac_file" || continue;
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3612 break;;
3613 esac
3614 done
3615 else
3616 $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "cannot compute suffix of object files: cannot compile
3622 See \`config.log' for more details." "$LINENO" 5; }
3624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3627 $as_echo "$ac_cv_objext" >&6; }
3628 OBJEXT=$ac_cv_objext
3629 ac_objext=$OBJEXT
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3632 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3639 main ()
3641 #ifndef __GNUC__
3642 choke me
3643 #endif
3646 return 0;
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_compiler_gnu=yes
3651 else
3652 ac_compiler_gnu=no
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3660 if test $ac_compiler_gnu = yes; then
3661 GCC=yes
3662 else
3663 GCC=
3665 ac_test_CFLAGS=${CFLAGS+set}
3666 ac_save_CFLAGS=$CFLAGS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3669 if test "${ac_cv_prog_cc_g+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_save_c_werror_flag=$ac_c_werror_flag
3673 ac_c_werror_flag=yes
3674 ac_cv_prog_cc_g=no
3675 CFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3680 main ()
3684 return 0;
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_g=yes
3689 else
3690 CFLAGS=""
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3695 main ()
3699 return 0;
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3704 else
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3706 CFLAGS="-g"
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3711 main ()
3715 return 0;
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_g=yes
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3734 CFLAGS="-g -O2"
3735 else
3736 CFLAGS="-g"
3738 else
3739 if test "$GCC" = yes; then
3740 CFLAGS="-O2"
3741 else
3742 CFLAGS=
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_cv_prog_cc_c89=no
3751 ac_save_CC=$CC
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <stdarg.h>
3755 #include <stdio.h>
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3762 char **p;
3763 int i;
3765 return p[i];
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3769 char *s;
3770 va_list v;
3771 va_start (v,p);
3772 s = g (p, va_arg (v,int));
3773 va_end (v);
3774 return s;
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3778 function prototypes and stuff, but not '\xHH' hex character constants.
3779 These don't provoke an error unfortunately, instead are silently treated
3780 as 'x'. The following induces an error, until -std is added to get
3781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3782 array size at least. It's necessary to write '\x00'==0 to get something
3783 that's true only with -std. */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787 inside strings and character constants. */
3788 #define FOO(x) 'x'
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795 int argc;
3796 char **argv;
3798 main ()
3800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3802 return 0;
3804 _ACEOF
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 CC="$ac_save_CC $ac_arg"
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_c89=$ac_arg
3812 rm -f core conftest.err conftest.$ac_objext
3813 test "x$ac_cv_prog_cc_c89" != "xno" && break
3814 done
3815 rm -f conftest.$ac_ext
3816 CC=$ac_save_CC
3819 # AC_CACHE_VAL
3820 case "x$ac_cv_prog_cc_c89" in
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3823 $as_echo "none needed" >&6; } ;;
3824 xno)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;;
3828 CC="$CC $ac_cv_prog_cc_c89"
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3831 esac
3832 if test "x$ac_cv_prog_cc_c89" != xno; then :
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 DEPDIR="${am__leading_dot}deps"
3843 ac_config_commands="$ac_config_commands depfiles"
3846 am_make=${MAKE-make}
3847 cat > confinc << 'END'
3848 am__doit:
3849 @echo this is the am__doit target
3850 .PHONY: am__doit
3852 # If we don't find an include directive, just comment out the code.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3854 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3855 am__include="#"
3856 am__quote=
3857 _am_result=none
3858 # First try GNU make style include.
3859 echo "include confinc" > confmf
3860 # Ignore all kinds of additional output from `make'.
3861 case `$am_make -s -f confmf 2> /dev/null` in #(
3862 *the\ am__doit\ target*)
3863 am__include=include
3864 am__quote=
3865 _am_result=GNU
3867 esac
3868 # Now try BSD make style include.
3869 if test "$am__include" = "#"; then
3870 echo '.include "confinc"' > confmf
3871 case `$am_make -s -f confmf 2> /dev/null` in #(
3872 *the\ am__doit\ target*)
3873 am__include=.include
3874 am__quote="\""
3875 _am_result=BSD
3877 esac
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3882 $as_echo "$_am_result" >&6; }
3883 rm -f confinc confmf
3885 # Check whether --enable-dependency-tracking was given.
3886 if test "${enable_dependency_tracking+set}" = set; then :
3887 enableval=$enable_dependency_tracking;
3890 if test "x$enable_dependency_tracking" != xno; then
3891 am_depcomp="$ac_aux_dir/depcomp"
3892 AMDEPBACKSLASH='\'
3894 if test "x$enable_dependency_tracking" != xno; then
3895 AMDEP_TRUE=
3896 AMDEP_FALSE='#'
3897 else
3898 AMDEP_TRUE='#'
3899 AMDEP_FALSE=
3904 depcc="$CC" am_compiler_list=
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907 $as_echo_n "checking dependency style of $depcc... " >&6; }
3908 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3912 # We make a subdir and do the tests there. Otherwise we can end up
3913 # making bogus files that we don't know about and never remove. For
3914 # instance it was reported that on HP-UX the gcc test will end up
3915 # making a dummy file named `D' -- because `-MD' means `put the output
3916 # in D'.
3917 mkdir conftest.dir
3918 # Copy depcomp to subdir because otherwise we won't find it if we're
3919 # using a relative directory.
3920 cp "$am_depcomp" conftest.dir
3921 cd conftest.dir
3922 # We will build objects and dependencies in a subdirectory because
3923 # it helps to detect inapplicable dependency modes. For instance
3924 # both Tru64's cc and ICC support -MD to output dependencies as a
3925 # side effect of compilation, but ICC will put the dependencies in
3926 # the current directory while Tru64 will put them in the object
3927 # directory.
3928 mkdir sub
3930 am_cv_CC_dependencies_compiler_type=none
3931 if test "$am_compiler_list" = ""; then
3932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3934 am__universal=false
3935 case " $depcc " in #(
3936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937 esac
3939 for depmode in $am_compiler_list; do
3940 # Setup a source with many dependencies, because some compilers
3941 # like to wrap large dependency lists on column 80 (with \), and
3942 # we should not choose a depcomp mode which is confused by this.
3944 # We need to recreate these files for each test, as the compiler may
3945 # overwrite some of them when testing with obscure command lines.
3946 # This happens at least with the AIX C compiler.
3947 : > sub/conftest.c
3948 for i in 1 2 3 4 5 6; do
3949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3951 # Solaris 8's {/usr,}/bin/sh.
3952 touch sub/conftst$i.h
3953 done
3954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3956 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3957 # mode. It turns out that the SunPro C++ compiler does not properly
3958 # handle `-M -o', and we need to detect this. Also, some Intel
3959 # versions had trouble with output in subdirs
3960 am__obj=sub/conftest.${OBJEXT-o}
3961 am__minus_obj="-o $am__obj"
3962 case $depmode in
3963 gcc)
3964 # This depmode causes a compiler race in universal mode.
3965 test "$am__universal" = false || continue
3967 nosideeffect)
3968 # after this tag, mechanisms are not by side-effect, so they'll
3969 # only be used when explicitly requested
3970 if test "x$enable_dependency_tracking" = xyes; then
3971 continue
3972 else
3973 break
3976 msvisualcpp | msvcmsys)
3977 # This compiler won't grok `-c -o', but also, the minuso test has
3978 # not run yet. These depmodes are late enough in the game, and
3979 # so weak that their functioning should not be impacted.
3980 am__obj=conftest.${OBJEXT-o}
3981 am__minus_obj=
3983 none) break ;;
3984 esac
3985 if depmode=$depmode \
3986 source=sub/conftest.c object=$am__obj \
3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989 >/dev/null 2>conftest.err &&
3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CC_dependencies_compiler_type=$depmode
4004 break
4007 done
4009 cd ..
4010 rm -rf conftest.dir
4011 else
4012 am_cv_CC_dependencies_compiler_type=none
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4021 test "x$enable_dependency_tracking" != xno \
4022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023 am__fastdepCC_TRUE=
4024 am__fastdepCC_FALSE='#'
4025 else
4026 am__fastdepCC_TRUE='#'
4027 am__fastdepCC_FALSE=
4035 if test "x$GCC" != "xyes"; then
4036 as_fn_error "libssp must be built with GCC" "$LINENO" 5
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4047 CPP=
4049 if test -z "$CPP"; then
4050 if test "${ac_cv_prog_CPP+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 # Double quotes because CPP needs to be expanded
4054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056 ac_preproc_ok=false
4057 for ac_c_preproc_warn_flag in '' yes
4059 # Use a header file that comes with gcc, so configuring glibc
4060 # with a fresh cross-compiler works.
4061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062 # <limits.h> exists even on freestanding compilers.
4063 # On the NeXT, cc -E runs the code through the compiler's parser,
4064 # not just through cpp. "Syntax error" is here to catch this case.
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #ifdef __STDC__
4068 # include <limits.h>
4069 #else
4070 # include <assert.h>
4071 #endif
4072 Syntax error
4073 _ACEOF
4074 if ac_fn_c_try_cpp "$LINENO"; then :
4076 else
4077 # Broken: fails on valid input.
4078 continue
4080 rm -f conftest.err conftest.$ac_ext
4082 # OK, works on sane cases. Now check whether nonexistent headers
4083 # can be detected and how.
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <ac_nonexistent.h>
4087 _ACEOF
4088 if ac_fn_c_try_cpp "$LINENO"; then :
4089 # Broken: success on invalid input.
4090 continue
4091 else
4092 # Passes both tests.
4093 ac_preproc_ok=:
4094 break
4096 rm -f conftest.err conftest.$ac_ext
4098 done
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then :
4102 break
4105 done
4106 ac_cv_prog_CPP=$CPP
4109 CPP=$ac_cv_prog_CPP
4110 else
4111 ac_cv_prog_CPP=$CPP
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4114 $as_echo "$CPP" >&6; }
4115 ac_preproc_ok=false
4116 for ac_c_preproc_warn_flag in '' yes
4118 # Use a header file that comes with gcc, so configuring glibc
4119 # with a fresh cross-compiler works.
4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 # <limits.h> exists even on freestanding compilers.
4122 # On the NeXT, cc -E runs the code through the compiler's parser,
4123 # not just through cpp. "Syntax error" is here to catch this case.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #ifdef __STDC__
4127 # include <limits.h>
4128 #else
4129 # include <assert.h>
4130 #endif
4131 Syntax error
4132 _ACEOF
4133 if ac_fn_c_try_cpp "$LINENO"; then :
4135 else
4136 # Broken: fails on valid input.
4137 continue
4139 rm -f conftest.err conftest.$ac_ext
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if ac_fn_c_try_cpp "$LINENO"; then :
4148 # Broken: success on invalid input.
4149 continue
4150 else
4151 # Passes both tests.
4152 ac_preproc_ok=:
4153 break
4155 rm -f conftest.err conftest.$ac_ext
4157 done
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then :
4162 else
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4166 See \`config.log' for more details." "$LINENO" 5; }
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4177 $as_echo_n "checking whether -fstack-protector works... " >&6; }
4178 save_CFLAGS="$CFLAGS"
4179 CFLAGS="$CFLAGS -fstack-protector -Werror"
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4184 void __attribute__((noinline)) bar (char *x)
4186 __builtin_memset (x, 0, 64);
4189 main ()
4191 char buf[64]; bar (buf);
4193 return 0;
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198 $as_echo "yes" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 CFLAGS="$save_CFLAGS"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4207 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4211 void __attribute__((visibility ("hidden"))) bar (void) {}
4213 main ()
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ssp_hidden=yes
4222 else
4223 ssp_hidden=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4227 $as_echo "$ssp_hidden" >&6; }
4228 if test x$ssp_hidden = xyes; then
4230 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4235 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4236 cat > conftest.map <<EOF
4237 FOO_1.0 {
4238 global: *foo*; bar; local: *;
4241 save_LDFLAGS="$LDFLAGS"
4242 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4243 if test x$gcc_no_link = xyes; then
4244 # If we cannot link, we cannot build shared libraries, so do not use
4245 # symbol versioning.
4246 ssp_use_symver=no
4247 else
4248 if test x$gcc_no_link = xyes; then
4249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 int foo;
4255 main ()
4259 return 0;
4261 _ACEOF
4262 if ac_fn_c_try_link "$LINENO"; then :
4263 ssp_use_symver=yes
4264 else
4265 ssp_use_symver=no
4267 rm -f core conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4270 LDFLAGS="$save_LDFLAGS"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4272 $as_echo "$ssp_use_symver" >&6; }
4273 if test "x$ssp_use_symver" = xyes; then
4274 LIBSSP_USE_SYMVER_TRUE=
4275 LIBSSP_USE_SYMVER_FALSE='#'
4276 else
4277 LIBSSP_USE_SYMVER_TRUE='#'
4278 LIBSSP_USE_SYMVER_FALSE=
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4284 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4285 if test "${ac_cv_path_GREP+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -z "$GREP"; then
4289 ac_path_GREP_found=false
4290 # Loop through the user's path and test for each of PROGNAME-LIST
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_prog in grep ggrep; do
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4299 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4300 # Check for GNU ac_path_GREP and select it if it is found.
4301 # Check for GNU $ac_path_GREP
4302 case `"$ac_path_GREP" --version 2>&1` in
4303 *GNU*)
4304 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4306 ac_count=0
4307 $as_echo_n 0123456789 >"conftest.in"
4308 while :
4310 cat "conftest.in" "conftest.in" >"conftest.tmp"
4311 mv "conftest.tmp" "conftest.in"
4312 cp "conftest.in" "conftest.nl"
4313 $as_echo 'GREP' >> "conftest.nl"
4314 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4316 as_fn_arith $ac_count + 1 && ac_count=$as_val
4317 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4318 # Best one so far, save it but keep looking for a better one
4319 ac_cv_path_GREP="$ac_path_GREP"
4320 ac_path_GREP_max=$ac_count
4322 # 10*(2^10) chars as input seems more than enough
4323 test $ac_count -gt 10 && break
4324 done
4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326 esac
4328 $ac_path_GREP_found && break 3
4329 done
4330 done
4331 done
4332 IFS=$as_save_IFS
4333 if test -z "$ac_cv_path_GREP"; then
4334 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 else
4337 ac_cv_path_GREP=$GREP
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343 GREP="$ac_cv_path_GREP"
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4352 then ac_cv_path_EGREP="$GREP -E"
4353 else
4354 if test -z "$EGREP"; then
4355 ac_path_EGREP_found=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_prog in egrep; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4369 *GNU*)
4370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4372 ac_count=0
4373 $as_echo_n 0123456789 >"conftest.in"
4374 while :
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382 as_fn_arith $ac_count + 1 && ac_count=$as_val
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP="$ac_path_EGREP"
4386 ac_path_EGREP_max=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4390 done
4391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4394 $ac_path_EGREP_found && break 3
4395 done
4396 done
4397 done
4398 IFS=$as_save_IFS
4399 if test -z "$ac_cv_path_EGREP"; then
4400 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402 else
4403 ac_cv_path_EGREP=$EGREP
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410 EGREP="$ac_cv_path_EGREP"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4414 $as_echo_n "checking for ANSI C header files... " >&6; }
4415 if test "${ac_cv_header_stdc+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4421 #include <stdarg.h>
4422 #include <string.h>
4423 #include <float.h>
4426 main ()
4430 return 0;
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"; then :
4434 ac_cv_header_stdc=yes
4435 else
4436 ac_cv_header_stdc=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 if test $ac_cv_header_stdc = yes; then
4441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <string.h>
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "memchr" >/dev/null 2>&1; then :
4450 else
4451 ac_cv_header_stdc=no
4453 rm -f conftest*
4457 if test $ac_cv_header_stdc = yes; then
4458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <stdlib.h>
4463 _ACEOF
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 $EGREP "free" >/dev/null 2>&1; then :
4467 else
4468 ac_cv_header_stdc=no
4470 rm -f conftest*
4474 if test $ac_cv_header_stdc = yes; then
4475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4476 if test "$cross_compiling" = yes; then :
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #include <ctype.h>
4482 #include <stdlib.h>
4483 #if ((' ' & 0x0FF) == 0x020)
4484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4486 #else
4487 # define ISLOWER(c) \
4488 (('a' <= (c) && (c) <= 'i') \
4489 || ('j' <= (c) && (c) <= 'r') \
4490 || ('s' <= (c) && (c) <= 'z'))
4491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4492 #endif
4494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4496 main ()
4498 int i;
4499 for (i = 0; i < 256; i++)
4500 if (XOR (islower (i), ISLOWER (i))
4501 || toupper (i) != TOUPPER (i))
4502 return 2;
4503 return 0;
4505 _ACEOF
4506 if ac_fn_c_try_run "$LINENO"; then :
4508 else
4509 ac_cv_header_stdc=no
4511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4512 conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4518 $as_echo "$ac_cv_header_stdc" >&6; }
4519 if test $ac_cv_header_stdc = yes; then
4521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527 inttypes.h stdint.h unistd.h
4528 do :
4529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4532 eval as_val=\$$as_ac_Header
4533 if test "x$as_val" = x""yes; then :
4534 cat >>confdefs.h <<_ACEOF
4535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4536 _ACEOF
4540 done
4543 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4544 do :
4545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4547 eval as_val=\$$as_ac_Header
4548 if test "x$as_val" = x""yes; then :
4549 cat >>confdefs.h <<_ACEOF
4550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 _ACEOF
4555 done
4558 if test x$gcc_no_link = xyes; then
4559 # Presume the ISO C functions are available; add target-specific
4560 # configuration here if required.
4561 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4563 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4565 else
4566 for ac_func in mempcpy strncpy strncat
4567 do :
4568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4570 eval as_val=\$$as_ac_var
4571 if test "x$as_val" = x""yes; then :
4572 cat >>confdefs.h <<_ACEOF
4573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4574 _ACEOF
4577 done
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4582 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4583 if test "$cross_compiling" = yes; then :
4584 ssp_have_usable_vsnprintf=undef
4585 else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4589 #include <stdarg.h>
4590 #include <string.h>
4591 #include <stdio.h>
4592 int foo (char *buf, size_t n, const char *fmt, ...)
4594 va_list ap;
4595 int ret;
4596 va_start (ap, fmt);
4597 ret = vsnprintf (buf, n, fmt, ap);
4598 va_end (ap);
4599 return ret;
4602 main ()
4604 char buf[8]; memset (buf, 'A', sizeof (buf));
4605 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4606 return 1;
4607 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4609 return 0;
4611 _ACEOF
4612 if ac_fn_c_try_run "$LINENO"; then :
4613 ssp_have_usable_vsnprintf=define
4614 else
4615 ssp_have_usable_vsnprintf=undef
4617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4618 conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 $as_echo "yes" >&6; }
4625 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 case `pwd` in
4634 *\ * | *\ *)
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4636 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4637 esac
4641 macro_version='2.2.6'
4642 macro_revision='1.3012'
4656 ltmain="$ac_aux_dir/ltmain.sh"
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4660 if test "${ac_cv_path_SED+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4664 for ac_i in 1 2 3 4 5 6 7; do
4665 ac_script="$ac_script$as_nl$ac_script"
4666 done
4667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4668 { ac_script=; unset ac_script;}
4669 if test -z "$SED"; then
4670 ac_path_SED_found=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_prog in sed gsed; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4680 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4681 # Check for GNU ac_path_SED and select it if it is found.
4682 # Check for GNU $ac_path_SED
4683 case `"$ac_path_SED" --version 2>&1` in
4684 *GNU*)
4685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4687 ac_count=0
4688 $as_echo_n 0123456789 >"conftest.in"
4689 while :
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo '' >> "conftest.nl"
4695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_SED_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_SED="$ac_path_SED"
4701 ac_path_SED_max=$ac_count
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4705 done
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4709 $ac_path_SED_found && break 3
4710 done
4711 done
4712 done
4713 IFS=$as_save_IFS
4714 if test -z "$ac_cv_path_SED"; then
4715 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4717 else
4718 ac_cv_path_SED=$SED
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4723 $as_echo "$ac_cv_path_SED" >&6; }
4724 SED="$ac_cv_path_SED"
4725 rm -f conftest.sed
4727 test -z "$SED" && SED=sed
4728 Xsed="$SED -e 1s/^X//"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4741 $as_echo_n "checking for fgrep... " >&6; }
4742 if test "${ac_cv_path_FGREP+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4746 then ac_cv_path_FGREP="$GREP -F"
4747 else
4748 if test -z "$FGREP"; then
4749 ac_path_FGREP_found=false
4750 # Loop through the user's path and test for each of PROGNAME-LIST
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_prog in fgrep; do
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4759 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4760 # Check for GNU ac_path_FGREP and select it if it is found.
4761 # Check for GNU $ac_path_FGREP
4762 case `"$ac_path_FGREP" --version 2>&1` in
4763 *GNU*)
4764 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4766 ac_count=0
4767 $as_echo_n 0123456789 >"conftest.in"
4768 while :
4770 cat "conftest.in" "conftest.in" >"conftest.tmp"
4771 mv "conftest.tmp" "conftest.in"
4772 cp "conftest.in" "conftest.nl"
4773 $as_echo 'FGREP' >> "conftest.nl"
4774 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776 as_fn_arith $ac_count + 1 && ac_count=$as_val
4777 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4778 # Best one so far, save it but keep looking for a better one
4779 ac_cv_path_FGREP="$ac_path_FGREP"
4780 ac_path_FGREP_max=$ac_count
4782 # 10*(2^10) chars as input seems more than enough
4783 test $ac_count -gt 10 && break
4784 done
4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4788 $ac_path_FGREP_found && break 3
4789 done
4790 done
4791 done
4792 IFS=$as_save_IFS
4793 if test -z "$ac_cv_path_FGREP"; then
4794 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796 else
4797 ac_cv_path_FGREP=$FGREP
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4803 $as_echo "$ac_cv_path_FGREP" >&6; }
4804 FGREP="$ac_cv_path_FGREP"
4807 test -z "$GREP" && GREP=grep
4827 # Check whether --with-gnu-ld was given.
4828 if test "${with_gnu_ld+set}" = set; then :
4829 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4830 else
4831 with_gnu_ld=no
4834 ac_prog=ld
4835 if test "$GCC" = yes; then
4836 # Check if gcc -print-prog-name=ld gives a path.
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4838 $as_echo_n "checking for ld used by $CC... " >&6; }
4839 case $host in
4840 *-*-mingw*)
4841 # gcc leaves a trailing carriage return which upsets mingw
4842 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4844 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4845 esac
4846 case $ac_prog in
4847 # Accept absolute paths.
4848 [\\/]* | ?:[\\/]*)
4849 re_direlt='/[^/][^/]*/\.\./'
4850 # Canonicalize the pathname of ld
4851 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4852 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4853 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4854 done
4855 test -z "$LD" && LD="$ac_prog"
4858 # If it fails, then pretend we aren't using GCC.
4859 ac_prog=ld
4862 # If it is relative, then search for the first ld in PATH.
4863 with_gnu_ld=unknown
4865 esac
4866 elif test "$with_gnu_ld" = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4868 $as_echo_n "checking for GNU ld... " >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4871 $as_echo_n "checking for non-GNU ld... " >&6; }
4873 if test "${lt_cv_path_LD+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -z "$LD"; then
4877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4878 for ac_dir in $PATH; do
4879 IFS="$lt_save_ifs"
4880 test -z "$ac_dir" && ac_dir=.
4881 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4882 lt_cv_path_LD="$ac_dir/$ac_prog"
4883 # Check to see if the program is GNU ld. I'd rather use --version,
4884 # but apparently some variants of GNU ld only accept -v.
4885 # Break only if it was the GNU/non-GNU ld that we prefer.
4886 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4887 *GNU* | *'with BFD'*)
4888 test "$with_gnu_ld" != no && break
4891 test "$with_gnu_ld" != yes && break
4893 esac
4895 done
4896 IFS="$lt_save_ifs"
4897 else
4898 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4902 LD="$lt_cv_path_LD"
4903 if test -n "$LD"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4905 $as_echo "$LD" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4910 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4912 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4913 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4917 case `$LD -v 2>&1 </dev/null` in
4918 *GNU* | *'with BFD'*)
4919 lt_cv_prog_gnu_ld=yes
4922 lt_cv_prog_gnu_ld=no
4924 esac
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4927 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4928 with_gnu_ld=$lt_cv_prog_gnu_ld
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4939 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4940 if test "${lt_cv_path_NM+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$NM"; then
4944 # Let the user override the test.
4945 lt_cv_path_NM="$NM"
4946 else
4947 lt_nm_to_check="${ac_tool_prefix}nm"
4948 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4949 lt_nm_to_check="$lt_nm_to_check nm"
4951 for lt_tmp_nm in $lt_nm_to_check; do
4952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4953 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4954 IFS="$lt_save_ifs"
4955 test -z "$ac_dir" && ac_dir=.
4956 tmp_nm="$ac_dir/$lt_tmp_nm"
4957 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4958 # Check to see if the nm accepts a BSD-compat flag.
4959 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4960 # nm: unknown option "B" ignored
4961 # Tru64's nm complains that /dev/null is an invalid object file
4962 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4963 */dev/null* | *'Invalid file or object type'*)
4964 lt_cv_path_NM="$tmp_nm -B"
4965 break
4968 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4969 */dev/null*)
4970 lt_cv_path_NM="$tmp_nm -p"
4971 break
4974 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4975 continue # so that we can try to find one that supports BSD flags
4977 esac
4979 esac
4981 done
4982 IFS="$lt_save_ifs"
4983 done
4984 : ${lt_cv_path_NM=no}
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4988 $as_echo "$lt_cv_path_NM" >&6; }
4989 if test "$lt_cv_path_NM" != "no"; then
4990 NM="$lt_cv_path_NM"
4991 else
4992 # Didn't find any BSD compatible name lister, look for dumpbin.
4993 if test -n "$ac_tool_prefix"; then
4994 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$DUMPBIN"; then
5004 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5019 IFS=$as_save_IFS
5023 DUMPBIN=$ac_cv_prog_DUMPBIN
5024 if test -n "$DUMPBIN"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5026 $as_echo "$DUMPBIN" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 test -n "$DUMPBIN" && break
5034 done
5036 if test -z "$DUMPBIN"; then
5037 ac_ct_DUMPBIN=$DUMPBIN
5038 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_DUMPBIN"; then
5048 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5068 if test -n "$ac_ct_DUMPBIN"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5070 $as_echo "$ac_ct_DUMPBIN" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5077 test -n "$ac_ct_DUMPBIN" && break
5078 done
5080 if test "x$ac_ct_DUMPBIN" = x; then
5081 DUMPBIN=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 DUMPBIN=$ac_ct_DUMPBIN
5094 if test "$DUMPBIN" != ":"; then
5095 NM="$DUMPBIN"
5098 test -z "$NM" && NM=nm
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5106 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5107 if test "${lt_cv_nm_interface+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 lt_cv_nm_interface="BSD nm"
5111 echo "int some_variable = 0;" > conftest.$ac_ext
5112 (eval echo "\"\$as_me:5112: $ac_compile\"" >&5)
5113 (eval "$ac_compile" 2>conftest.err)
5114 cat conftest.err >&5
5115 (eval echo "\"\$as_me:5115: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5117 cat conftest.err >&5
5118 (eval echo "\"\$as_me:5118: output\"" >&5)
5119 cat conftest.out >&5
5120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5121 lt_cv_nm_interface="MS dumpbin"
5123 rm -f conftest*
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5126 $as_echo "$lt_cv_nm_interface" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5130 LN_S=$as_ln_s
5131 if test "$LN_S" = "ln -s"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5139 # find the maximum length of command line arguments
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5146 teststring="ABCD"
5148 case $build_os in
5149 msdosdjgpp*)
5150 # On DJGPP, this test can blow up pretty badly due to problems in libc
5151 # (any single argument exceeding 2000 bytes causes a buffer overrun
5152 # during glob expansion). Even if it were fixed, the result of this
5153 # check would be larger than it should be.
5154 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5157 gnu*)
5158 # Under GNU Hurd, this test is not required because there is
5159 # no limit to the length of command line arguments.
5160 # Libtool will interpret -1 as no limit whatsoever
5161 lt_cv_sys_max_cmd_len=-1;
5164 cygwin* | mingw* | cegcc*)
5165 # On Win9x/ME, this test blows up -- it succeeds, but takes
5166 # about 5 minutes as the teststring grows exponentially.
5167 # Worse, since 9x/ME are not pre-emptively multitasking,
5168 # you end up with a "frozen" computer, even though with patience
5169 # the test eventually succeeds (with a max line length of 256k).
5170 # Instead, let's just punt: use the minimum linelength reported by
5171 # all of the supported platforms: 8192 (on NT/2K/XP).
5172 lt_cv_sys_max_cmd_len=8192;
5175 amigaos*)
5176 # On AmigaOS with pdksh, this test takes hours, literally.
5177 # So we just punt and use a minimum line length of 8192.
5178 lt_cv_sys_max_cmd_len=8192;
5181 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5182 # This has been around since 386BSD, at least. Likely further.
5183 if test -x /sbin/sysctl; then
5184 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5185 elif test -x /usr/sbin/sysctl; then
5186 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5187 else
5188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5190 # And add a safety zone
5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195 interix*)
5196 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5197 lt_cv_sys_max_cmd_len=196608
5200 osf*)
5201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5203 # nice to cause kernel panics so lets avoid the loop below.
5204 # First set a reasonable default.
5205 lt_cv_sys_max_cmd_len=16384
5207 if test -x /sbin/sysconfig; then
5208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5209 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5210 esac
5213 sco3.2v5*)
5214 lt_cv_sys_max_cmd_len=102400
5216 sysv5* | sco5v6* | sysv4.2uw2*)
5217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5218 if test -n "$kargmax"; then
5219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5220 else
5221 lt_cv_sys_max_cmd_len=32768
5225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5226 if test -n "$lt_cv_sys_max_cmd_len"; then
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229 else
5230 # Make teststring a little bigger before we do anything with it.
5231 # a 1K string should be a reasonable start.
5232 for i in 1 2 3 4 5 6 7 8 ; do
5233 teststring=$teststring$teststring
5234 done
5235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5236 # If test is not a shell built-in, we'll probably end up computing a
5237 # maximum length that is only half of the actual maximum length, but
5238 # we can't tell.
5239 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5240 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5241 test $i != 17 # 1/2 MB should be enough
5243 i=`expr $i + 1`
5244 teststring=$teststring$teststring
5245 done
5246 # Only check the string length outside the loop.
5247 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5248 teststring=
5249 # Add a significant safety factor because C++ compilers can tack on
5250 # massive amounts of additional arguments before passing them to the
5251 # linker. It appears as though 1/2 is a usable value.
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5255 esac
5259 if test -n $lt_cv_sys_max_cmd_len ; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5264 $as_echo "none" >&6; }
5266 max_cmd_len=$lt_cv_sys_max_cmd_len
5273 : ${CP="cp -f"}
5274 : ${MV="mv -f"}
5275 : ${RM="rm -f"}
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5278 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5279 # Try some XSI features
5280 xsi_shell=no
5281 ( _lt_dummy="a/b/c"
5282 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5283 = c,a/b,, \
5284 && eval 'test $(( 1 + 1 )) -eq 2 \
5285 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5286 && xsi_shell=yes
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5288 $as_echo "$xsi_shell" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5292 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5293 lt_shell_append=no
5294 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5295 >/dev/null 2>&1 \
5296 && lt_shell_append=yes
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5298 $as_echo "$lt_shell_append" >&6; }
5301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302 lt_unset=unset
5303 else
5304 lt_unset=false
5311 # test EBCDIC or ASCII
5312 case `echo X|tr X '\101'` in
5313 A) # ASCII based system
5314 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5315 lt_SP2NL='tr \040 \012'
5316 lt_NL2SP='tr \015\012 \040\040'
5318 *) # EBCDIC based system
5319 lt_SP2NL='tr \100 \n'
5320 lt_NL2SP='tr \r\n \100\100'
5322 esac
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5334 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 lt_cv_ld_reload_flag='-r'
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5341 reload_flag=$lt_cv_ld_reload_flag
5342 case $reload_flag in
5343 "" | " "*) ;;
5344 *) reload_flag=" $reload_flag" ;;
5345 esac
5346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347 case $host_os in
5348 darwin*)
5349 if test "$GCC" = yes; then
5350 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5351 else
5352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355 esac
5365 if test -n "$ac_tool_prefix"; then
5366 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5367 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$OBJDUMP"; then
5374 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 OBJDUMP=$ac_cv_prog_OBJDUMP
5394 if test -n "$OBJDUMP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5396 $as_echo "$OBJDUMP" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5404 if test -z "$ac_cv_prog_OBJDUMP"; then
5405 ac_ct_OBJDUMP=$OBJDUMP
5406 # Extract the first word of "objdump", so it can be a program name with args.
5407 set dummy objdump; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5427 done
5428 done
5429 IFS=$as_save_IFS
5433 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5434 if test -n "$ac_ct_OBJDUMP"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5436 $as_echo "$ac_ct_OBJDUMP" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5442 if test "x$ac_ct_OBJDUMP" = x; then
5443 OBJDUMP="false"
5444 else
5445 case $cross_compiling:$ac_tool_warned in
5446 yes:)
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5449 ac_tool_warned=yes ;;
5450 esac
5451 OBJDUMP=$ac_ct_OBJDUMP
5453 else
5454 OBJDUMP="$ac_cv_prog_OBJDUMP"
5457 test -z "$OBJDUMP" && OBJDUMP=objdump
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5468 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5469 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 lt_cv_file_magic_cmd='$MAGIC_CMD'
5473 lt_cv_file_magic_test_file=
5474 lt_cv_deplibs_check_method='unknown'
5475 # Need to set the preceding variable on all platforms that support
5476 # interlibrary dependencies.
5477 # 'none' -- dependencies not supported.
5478 # `unknown' -- same as none, but documents that we really don't know.
5479 # 'pass_all' -- all dependencies passed with no checks.
5480 # 'test_compile' -- check by making test program.
5481 # 'file_magic [[regex]]' -- check by looking for files in library path
5482 # which responds to the $file_magic_cmd with a given extended regex.
5483 # If you have `file' or equivalent on your system and you're not sure
5484 # whether `pass_all' will *always* work, you probably want this one.
5486 case $host_os in
5487 aix[4-9]*)
5488 lt_cv_deplibs_check_method=pass_all
5491 beos*)
5492 lt_cv_deplibs_check_method=pass_all
5495 bsdi[45]*)
5496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5497 lt_cv_file_magic_cmd='/usr/bin/file -L'
5498 lt_cv_file_magic_test_file=/shlib/libc.so
5501 cygwin*)
5502 # func_win32_libid is a shell function defined in ltmain.sh
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5507 mingw* | pw32*)
5508 # Base MSYS/MinGW do not provide the 'file' command needed by
5509 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5510 # unless we find 'file', for example because we are cross-compiling.
5511 if ( file / ) >/dev/null 2>&1; then
5512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513 lt_cv_file_magic_cmd='func_win32_libid'
5514 else
5515 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516 lt_cv_file_magic_cmd='$OBJDUMP -f'
5520 cegcc)
5521 # use the weaker test based on 'objdump'. See mingw*.
5522 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5523 lt_cv_file_magic_cmd='$OBJDUMP -f'
5526 darwin* | rhapsody*)
5527 lt_cv_deplibs_check_method=pass_all
5530 freebsd* | dragonfly*)
5531 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532 case $host_cpu in
5533 i*86 )
5534 # Not sure whether the presence of OpenBSD here was a mistake.
5535 # Let's accept both of them until this is cleared up.
5536 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5537 lt_cv_file_magic_cmd=/usr/bin/file
5538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5540 esac
5541 else
5542 lt_cv_deplibs_check_method=pass_all
5546 gnu*)
5547 lt_cv_deplibs_check_method=pass_all
5550 hpux10.20* | hpux11*)
5551 lt_cv_file_magic_cmd=/usr/bin/file
5552 case $host_cpu in
5553 ia64*)
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5555 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5557 hppa*64*)
5558 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]'
5559 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5562 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5563 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5565 esac
5568 interix[3-9]*)
5569 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5573 irix5* | irix6* | nonstopux*)
5574 case $LD in
5575 *-32|*"-32 ") libmagic=32-bit;;
5576 *-n32|*"-n32 ") libmagic=N32;;
5577 *-64|*"-64 ") libmagic=64-bit;;
5578 *) libmagic=never-match;;
5579 esac
5580 lt_cv_deplibs_check_method=pass_all
5583 # This must be Linux ELF.
5584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5585 lt_cv_deplibs_check_method=pass_all
5588 netbsd*)
5589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591 else
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5596 newos6*)
5597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5602 *nto* | *qnx*)
5603 lt_cv_deplibs_check_method=pass_all
5606 openbsd*)
5607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5609 else
5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 osf3* | osf4* | osf5*)
5615 lt_cv_deplibs_check_method=pass_all
5618 rdos*)
5619 lt_cv_deplibs_check_method=pass_all
5622 solaris*)
5623 lt_cv_deplibs_check_method=pass_all
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5630 sysv4 | sysv4.3*)
5631 case $host_vendor in
5632 motorola)
5633 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]'
5634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5636 ncr)
5637 lt_cv_deplibs_check_method=pass_all
5639 sequent)
5640 lt_cv_file_magic_cmd='/bin/file'
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5643 sni)
5644 lt_cv_file_magic_cmd='/bin/file'
5645 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5646 lt_cv_file_magic_test_file=/lib/libc.so
5648 siemens)
5649 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5654 esac
5657 tpf*)
5658 lt_cv_deplibs_check_method=pass_all
5660 esac
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5665 file_magic_cmd=$lt_cv_file_magic_cmd
5666 deplibs_check_method=$lt_cv_deplibs_check_method
5667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}ar; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_AR+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$AR"; then
5689 ac_cv_prog_AR="$AR" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_AR="${ac_tool_prefix}ar"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 AR=$ac_cv_prog_AR
5709 if test -n "$AR"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5711 $as_echo "$AR" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5719 if test -z "$ac_cv_prog_AR"; then
5720 ac_ct_AR=$AR
5721 # Extract the first word of "ar", so it can be a program name with args.
5722 set dummy ar; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$ac_ct_AR"; then
5729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_ac_ct_AR="ar"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5749 if test -n "$ac_ct_AR"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5751 $as_echo "$ac_ct_AR" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5757 if test "x$ac_ct_AR" = x; then
5758 AR="false"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766 AR=$ac_ct_AR
5768 else
5769 AR="$ac_cv_prog_AR"
5772 test -z "$AR" && AR=ar
5773 test -z "$AR_FLAGS" && AR_FLAGS=cru
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}strip; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_STRIP+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$STRIP"; then
5794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5809 IFS=$as_save_IFS
5813 STRIP=$ac_cv_prog_STRIP
5814 if test -n "$STRIP"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5816 $as_echo "$STRIP" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5824 if test -z "$ac_cv_prog_STRIP"; then
5825 ac_ct_STRIP=$STRIP
5826 # Extract the first word of "strip", so it can be a program name with args.
5827 set dummy strip; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$ac_ct_STRIP"; then
5834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_ac_ct_STRIP="strip"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854 if test -n "$ac_ct_STRIP"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5856 $as_echo "$ac_ct_STRIP" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5862 if test "x$ac_ct_STRIP" = x; then
5863 STRIP=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 STRIP=$ac_ct_STRIP
5873 else
5874 STRIP="$ac_cv_prog_STRIP"
5877 test -z "$STRIP" && STRIP=:
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$RANLIB"; then
5893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5912 RANLIB=$ac_cv_prog_RANLIB
5913 if test -n "$RANLIB"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915 $as_echo "$RANLIB" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_RANLIB"; then
5924 ac_ct_RANLIB=$RANLIB
5925 # Extract the first word of "ranlib", so it can be a program name with args.
5926 set dummy ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$ac_ct_RANLIB"; then
5933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_RANLIB="ranlib"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953 if test -n "$ac_ct_RANLIB"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955 $as_echo "$ac_ct_RANLIB" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_RANLIB" = x; then
5962 RANLIB=":"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 RANLIB=$ac_ct_RANLIB
5972 else
5973 RANLIB="$ac_cv_prog_RANLIB"
5976 test -z "$RANLIB" && RANLIB=:
5983 # Determine commands to create old-style static archives.
5984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5985 old_postinstall_cmds='chmod 644 $oldlib'
5986 old_postuninstall_cmds=
5988 if test -n "$RANLIB"; then
5989 case $host_os in
5990 openbsd*)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5996 esac
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6033 # If no C compiler was specified, use CC.
6034 LTCC=${LTCC-"$CC"}
6036 # If no C compiler flags were specified, use CFLAGS.
6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6039 # Allow CC to be a program name with arguments.
6040 compiler=$CC
6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6045 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6050 # These are sane defaults that work on at least a few old systems.
6051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6053 # Character class describing NM global symbol codes.
6054 symcode='[BCDEGRST]'
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6059 # Define system-specific variables.
6060 case $host_os in
6061 aix*)
6062 symcode='[BCDT]'
6064 cygwin* | mingw* | pw32* | cegcc*)
6065 symcode='[ABCDGISTW]'
6067 hpux*)
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDEGRST]'
6072 irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6075 osf*)
6076 symcode='[BCDEGQRST]'
6078 solaris*)
6079 symcode='[BDRT]'
6081 sco3.2v5*)
6082 symcode='[DT]'
6084 sysv4.2uw2*)
6085 symcode='[DT]'
6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6090 sysv4)
6091 symcode='[DFNSTU]'
6093 esac
6095 # If we're using GNU nm, then use its standard symbol codes.
6096 case `$NM -V 2>&1` in
6097 *GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099 esac
6101 # Transform an extracted symbol line into a proper C declaration.
6102 # Some systems (esp. on ia64) link data and code symbols differently,
6103 # so use this general approach.
6104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6106 # Transform an extracted symbol line into symbol name and symbol address
6107 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6108 lt_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'"
6110 # Handle CRLF in mingw tool chain
6111 opt_cr=
6112 case $build_os in
6113 mingw*)
6114 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 esac
6118 # Try without a prefix underscore, then with it.
6119 for ac_symprfx in "" "_"; do
6121 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6122 symxfrm="\\1 $ac_symprfx\\2 \\2"
6124 # Write the raw and C identifiers.
6125 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6126 # Fake it for dumpbin and say T for any non-static function
6127 # and D for any global variable.
6128 # Also find C++ and __fastcall symbols from MSVC++,
6129 # which start with @ or ?.
6130 lt_cv_sys_global_symbol_pipe="$AWK '"\
6131 " {last_section=section; section=\$ 3};"\
6132 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133 " \$ 0!~/External *\|/{next};"\
6134 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6135 " {if(hide[section]) next};"\
6136 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6137 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6138 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6139 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6140 " ' prfx=^$ac_symprfx"
6141 else
6142 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6145 # Check to see that the pipe works correctly.
6146 pipe_works=no
6148 rm -f conftest*
6149 cat > conftest.$ac_ext <<_LT_EOF
6150 #ifdef __cplusplus
6151 extern "C" {
6152 #endif
6153 char nm_test_var;
6154 void nm_test_func(void);
6155 void nm_test_func(void){}
6156 #ifdef __cplusplus
6158 #endif
6159 int main(){nm_test_var='a';nm_test_func();return(0);}
6160 _LT_EOF
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163 (eval $ac_compile) 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }; then
6167 # Now try to grab the symbols.
6168 nlist=conftest.nm
6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6170 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6171 ac_status=$?
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; } && test -s "$nlist"; then
6174 # Try sorting and uniquifying the output.
6175 if sort "$nlist" | uniq > "$nlist"T; then
6176 mv -f "$nlist"T "$nlist"
6177 else
6178 rm -f "$nlist"T
6181 # Make sure that we snagged all the symbols we need.
6182 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6183 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6184 cat <<_LT_EOF > conftest.$ac_ext
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6189 _LT_EOF
6190 # Now generate the symbol file.
6191 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6193 cat <<_LT_EOF >> conftest.$ac_ext
6195 /* The mapping between symbol names and symbols. */
6196 const struct {
6197 const char *name;
6198 void *address;
6200 lt__PROGRAM__LTX_preloaded_symbols[] =
6202 { "@PROGRAM@", (void *) 0 },
6203 _LT_EOF
6204 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6205 cat <<\_LT_EOF >> conftest.$ac_ext
6206 {0, (void *) 0}
6209 /* This works around a problem in FreeBSD linker */
6210 #ifdef FREEBSD_WORKAROUND
6211 static const void *lt_preloaded_setup() {
6212 return lt__PROGRAM__LTX_preloaded_symbols;
6214 #endif
6216 #ifdef __cplusplus
6218 #endif
6219 _LT_EOF
6220 # Now try linking the two files.
6221 mv conftest.$ac_objext conftstm.$ac_objext
6222 lt_save_LIBS="$LIBS"
6223 lt_save_CFLAGS="$CFLAGS"
6224 LIBS="conftstm.$ac_objext"
6225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6227 (eval $ac_link) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231 pipe_works=yes
6233 LIBS="$lt_save_LIBS"
6234 CFLAGS="$lt_save_CFLAGS"
6235 else
6236 echo "cannot find nm_test_func in $nlist" >&5
6238 else
6239 echo "cannot find nm_test_var in $nlist" >&5
6241 else
6242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6244 else
6245 echo "$progname: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 rm -rf conftest* conftst*
6250 # Do not use the global_symbol_pipe unless it works.
6251 if test "$pipe_works" = yes; then
6252 break
6253 else
6254 lt_cv_sys_global_symbol_pipe=
6256 done
6260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6261 lt_cv_sys_global_symbol_to_cdecl=
6263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6265 $as_echo "failed" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6268 $as_echo "ok" >&6; }
6292 # Check whether --enable-libtool-lock was given.
6293 if test "${enable_libtool_lock+set}" = set; then :
6294 enableval=$enable_libtool_lock;
6297 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6299 # Some flags need to be propagated to the compiler or linker for good
6300 # libtool support.
6301 case $host in
6302 ia64-*-hpux*)
6303 # Find out which ABI we are using.
6304 echo 'int i;' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 case `/usr/bin/file conftest.$ac_objext` in
6311 *ELF-32*)
6312 HPUX_IA64_MODE="32"
6314 *ELF-64*)
6315 HPUX_IA64_MODE="64"
6317 esac
6319 rm -rf conftest*
6321 *-*-irix6*)
6322 # Find out which ABI we are using.
6323 echo '#line 6323 "configure"' > conftest.$ac_ext
6324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325 (eval $ac_compile) 2>&5
6326 ac_status=$?
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }; then
6329 if test "$lt_cv_prog_gnu_ld" = yes; then
6330 case `/usr/bin/file conftest.$ac_objext` in
6331 *32-bit*)
6332 LD="${LD-ld} -melf32bsmip"
6334 *N32*)
6335 LD="${LD-ld} -melf32bmipn32"
6337 *64-bit*)
6338 LD="${LD-ld} -melf64bmip"
6340 esac
6341 else
6342 case `/usr/bin/file conftest.$ac_objext` in
6343 *32-bit*)
6344 LD="${LD-ld} -32"
6346 *N32*)
6347 LD="${LD-ld} -n32"
6349 *64-bit*)
6350 LD="${LD-ld} -64"
6352 esac
6355 rm -rf conftest*
6358 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6359 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6360 # Find out which ABI we are using.
6361 echo 'int i;' > conftest.$ac_ext
6362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363 (eval $ac_compile) 2>&5
6364 ac_status=$?
6365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366 test $ac_status = 0; }; then
6367 case `/usr/bin/file conftest.o` in
6368 *32-bit*)
6369 case $host in
6370 x86_64-*kfreebsd*-gnu)
6371 LD="${LD-ld} -m elf_i386_fbsd"
6373 x86_64-*linux*)
6374 LD="${LD-ld} -m elf_i386"
6376 ppc64-*linux*|powerpc64-*linux*)
6377 LD="${LD-ld} -m elf32ppclinux"
6379 s390x-*linux*)
6380 LD="${LD-ld} -m elf_s390"
6382 sparc64-*linux*)
6383 LD="${LD-ld} -m elf32_sparc"
6385 esac
6387 *64-bit*)
6388 case $host in
6389 x86_64-*kfreebsd*-gnu)
6390 LD="${LD-ld} -m elf_x86_64_fbsd"
6392 x86_64-*linux*)
6393 LD="${LD-ld} -m elf_x86_64"
6395 ppc*-*linux*|powerpc*-*linux*)
6396 LD="${LD-ld} -m elf64ppc"
6398 s390*-*linux*|s390*-*tpf*)
6399 LD="${LD-ld} -m elf64_s390"
6401 sparc*-*linux*)
6402 LD="${LD-ld} -m elf64_sparc"
6404 esac
6406 esac
6408 rm -rf conftest*
6411 *-*-sco3.2v5*)
6412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6413 SAVE_CFLAGS="$CFLAGS"
6414 CFLAGS="$CFLAGS -belf"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6416 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6417 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 ac_ext=c
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426 if test x$gcc_no_link = xyes; then
6427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6433 main ()
6437 return 0;
6439 _ACEOF
6440 if ac_fn_c_try_link "$LINENO"; then :
6441 lt_cv_cc_needs_belf=yes
6442 else
6443 lt_cv_cc_needs_belf=no
6445 rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6455 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6456 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6457 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6458 CFLAGS="$SAVE_CFLAGS"
6461 sparc*-*solaris*)
6462 # Find out which ABI we are using.
6463 echo 'int i;' > conftest.$ac_ext
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 case `/usr/bin/file conftest.o` in
6470 *64-bit*)
6471 case $lt_cv_prog_gnu_ld in
6472 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6475 LD="${LD-ld} -64"
6478 esac
6480 esac
6482 rm -rf conftest*
6484 esac
6486 need_locks="$enable_libtool_lock"
6489 case $host_os in
6490 rhapsody* | darwin*)
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$DSYMUTIL"; then
6500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6520 if test -n "$DSYMUTIL"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522 $as_echo "$DSYMUTIL" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_DSYMUTIL"; then
6531 ac_ct_DSYMUTIL=$DSYMUTIL
6532 # Extract the first word of "dsymutil", so it can be a program name with args.
6533 set dummy dsymutil; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$ac_ct_DSYMUTIL"; then
6540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6553 done
6554 done
6555 IFS=$as_save_IFS
6559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560 if test -n "$ac_ct_DSYMUTIL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_DSYMUTIL" = x; then
6569 DSYMUTIL=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577 DSYMUTIL=$ac_ct_DSYMUTIL
6579 else
6580 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$NMEDIT"; then
6592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6611 NMEDIT=$ac_cv_prog_NMEDIT
6612 if test -n "$NMEDIT"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614 $as_echo "$NMEDIT" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_NMEDIT"; then
6623 ac_ct_NMEDIT=$NMEDIT
6624 # Extract the first word of "nmedit", so it can be a program name with args.
6625 set dummy nmedit; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 if test -n "$ac_ct_NMEDIT"; then
6632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6645 done
6646 done
6647 IFS=$as_save_IFS
6651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652 if test -n "$ac_ct_NMEDIT"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654 $as_echo "$ac_ct_NMEDIT" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_NMEDIT" = x; then
6661 NMEDIT=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669 NMEDIT=$ac_ct_NMEDIT
6671 else
6672 NMEDIT="$ac_cv_prog_NMEDIT"
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_LIPO+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$LIPO"; then
6684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6699 IFS=$as_save_IFS
6703 LIPO=$ac_cv_prog_LIPO
6704 if test -n "$LIPO"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706 $as_echo "$LIPO" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_LIPO"; then
6715 ac_ct_LIPO=$LIPO
6716 # Extract the first word of "lipo", so it can be a program name with args.
6717 set dummy lipo; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$ac_ct_LIPO"; then
6724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_ac_ct_LIPO="lipo"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6737 done
6738 done
6739 IFS=$as_save_IFS
6743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744 if test -n "$ac_ct_LIPO"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746 $as_echo "$ac_ct_LIPO" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_LIPO" = x; then
6753 LIPO=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 LIPO=$ac_ct_LIPO
6763 else
6764 LIPO="$ac_cv_prog_LIPO"
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}otool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$OTOOL"; then
6776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 OTOOL=$ac_cv_prog_OTOOL
6796 if test -n "$OTOOL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798 $as_echo "$OTOOL" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OTOOL"; then
6807 ac_ct_OTOOL=$OTOOL
6808 # Extract the first word of "otool", so it can be a program name with args.
6809 set dummy otool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_OTOOL"; then
6816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_ac_ct_OTOOL="otool"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836 if test -n "$ac_ct_OTOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838 $as_echo "$ac_ct_OTOOL" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OTOOL" = x; then
6845 OTOOL=":"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 OTOOL=$ac_ct_OTOOL
6855 else
6856 OTOOL="$ac_cv_prog_OTOOL"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 if test -n "$OTOOL64"; then
6868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6887 OTOOL64=$ac_cv_prog_OTOOL64
6888 if test -n "$OTOOL64"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890 $as_echo "$OTOOL64" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6898 if test -z "$ac_cv_prog_OTOOL64"; then
6899 ac_ct_OTOOL64=$OTOOL64
6900 # Extract the first word of "otool64", so it can be a program name with args.
6901 set dummy otool64; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$ac_ct_OTOOL64"; then
6908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_OTOOL64="otool64"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928 if test -n "$ac_ct_OTOOL64"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930 $as_echo "$ac_ct_OTOOL64" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$ac_ct_OTOOL64" = x; then
6937 OTOOL64=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 OTOOL64=$ac_ct_OTOOL64
6947 else
6948 OTOOL64="$ac_cv_prog_OTOOL64"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6978 $as_echo_n "checking for -single_module linker flag... " >&6; }
6979 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 lt_cv_apple_cc_single_mod=no
6983 if test -z "${LT_MULTI_MODULE}"; then
6984 # By default we will add the -single_module flag. You can override
6985 # by either setting the environment variable LT_MULTI_MODULE
6986 # non-empty at configure time, or by adding -multi_module to the
6987 # link flags.
6988 rm -rf libconftest.dylib*
6989 echo "int foo(void){return 1;}" > conftest.c
6990 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991 -dynamiclib -Wl,-single_module conftest.c" >&5
6992 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6993 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6994 _lt_result=$?
6995 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6996 lt_cv_apple_cc_single_mod=yes
6997 else
6998 cat conftest.err >&5
7000 rm -rf libconftest.dylib*
7001 rm -f conftest.*
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7007 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7008 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 lt_cv_ld_exported_symbols_list=no
7012 save_LDFLAGS=$LDFLAGS
7013 echo "_main" > conftest.sym
7014 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7015 if test x$gcc_no_link = xyes; then
7016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 lt_cv_ld_exported_symbols_list=yes
7031 else
7032 lt_cv_ld_exported_symbols_list=no
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 LDFLAGS="$save_LDFLAGS"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7040 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7041 case $host_os in
7042 rhapsody* | darwin1.[012])
7043 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7044 darwin1.*)
7045 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7046 darwin*) # darwin 5.x on
7047 # if running on 10.5 or later, the deployment target defaults
7048 # to the OS version, if on x86, and 10.4, the deployment
7049 # target defaults to 10.4. Don't you love it?
7050 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7051 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7052 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7053 10.[012]*)
7054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7055 10.*)
7056 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7057 esac
7059 esac
7060 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7061 _lt_dar_single_mod='$single_module'
7063 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7064 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7065 else
7066 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7068 if test "$DSYMUTIL" != ":"; then
7069 _lt_dsymutil='~$DSYMUTIL $lib || :'
7070 else
7071 _lt_dsymutil=
7074 esac
7076 for ac_header in dlfcn.h
7077 do :
7078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7080 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7081 cat >>confdefs.h <<_ACEOF
7082 #define HAVE_DLFCN_H 1
7083 _ACEOF
7087 done
7091 # Set options
7095 enable_dlopen=no
7098 enable_win32_dll=no
7101 # Check whether --enable-shared was given.
7102 if test "${enable_shared+set}" = set; then :
7103 enableval=$enable_shared; p=${PACKAGE-default}
7104 case $enableval in
7105 yes) enable_shared=yes ;;
7106 no) enable_shared=no ;;
7108 enable_shared=no
7109 # Look at the argument we got. We use all the common list separators.
7110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7111 for pkg in $enableval; do
7112 IFS="$lt_save_ifs"
7113 if test "X$pkg" = "X$p"; then
7114 enable_shared=yes
7116 done
7117 IFS="$lt_save_ifs"
7119 esac
7120 else
7121 enable_shared=yes
7132 # Check whether --enable-static was given.
7133 if test "${enable_static+set}" = set; then :
7134 enableval=$enable_static; p=${PACKAGE-default}
7135 case $enableval in
7136 yes) enable_static=yes ;;
7137 no) enable_static=no ;;
7139 enable_static=no
7140 # Look at the argument we got. We use all the common list separators.
7141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7142 for pkg in $enableval; do
7143 IFS="$lt_save_ifs"
7144 if test "X$pkg" = "X$p"; then
7145 enable_static=yes
7147 done
7148 IFS="$lt_save_ifs"
7150 esac
7151 else
7152 enable_static=yes
7164 # Check whether --with-pic was given.
7165 if test "${with_pic+set}" = set; then :
7166 withval=$with_pic; pic_mode="$withval"
7167 else
7168 pic_mode=default
7172 test -z "$pic_mode" && pic_mode=default
7180 # Check whether --enable-fast-install was given.
7181 if test "${enable_fast_install+set}" = set; then :
7182 enableval=$enable_fast_install; p=${PACKAGE-default}
7183 case $enableval in
7184 yes) enable_fast_install=yes ;;
7185 no) enable_fast_install=no ;;
7187 enable_fast_install=no
7188 # Look at the argument we got. We use all the common list separators.
7189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7190 for pkg in $enableval; do
7191 IFS="$lt_save_ifs"
7192 if test "X$pkg" = "X$p"; then
7193 enable_fast_install=yes
7195 done
7196 IFS="$lt_save_ifs"
7198 esac
7199 else
7200 enable_fast_install=yes
7213 # This can be used to rebuild libtool when needed
7214 LIBTOOL_DEPS="$ltmain"
7216 # Always use our own libtool.
7217 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7243 test -z "$LN_S" && LN_S="ln -s"
7258 if test -n "${ZSH_VERSION+set}" ; then
7259 setopt NO_GLOB_SUBST
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7263 $as_echo_n "checking for objdir... " >&6; }
7264 if test "${lt_cv_objdir+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 rm -f .libs 2>/dev/null
7268 mkdir .libs 2>/dev/null
7269 if test -d .libs; then
7270 lt_cv_objdir=.libs
7271 else
7272 # MS-DOS does not allow filenames that begin with a dot.
7273 lt_cv_objdir=_libs
7275 rmdir .libs 2>/dev/null
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7278 $as_echo "$lt_cv_objdir" >&6; }
7279 objdir=$lt_cv_objdir
7285 cat >>confdefs.h <<_ACEOF
7286 #define LT_OBJDIR "$lt_cv_objdir/"
7287 _ACEOF
7305 case $host_os in
7306 aix3*)
7307 # AIX sometimes has problems with the GCC collect2 program. For some
7308 # reason, if we set the COLLECT_NAMES environment variable, the problems
7309 # vanish in a puff of smoke.
7310 if test "X${COLLECT_NAMES+set}" != Xset; then
7311 COLLECT_NAMES=
7312 export COLLECT_NAMES
7315 esac
7317 # Sed substitution that helps us do robust quoting. It backslashifies
7318 # metacharacters that are still active within double-quoted strings.
7319 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7321 # Same as above, but do not quote variable references.
7322 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7324 # Sed substitution to delay expansion of an escaped shell variable in a
7325 # double_quote_subst'ed string.
7326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7328 # Sed substitution to delay expansion of an escaped single quote.
7329 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7331 # Sed substitution to avoid accidental globbing in evaled expressions
7332 no_glob_subst='s/\*/\\\*/g'
7334 # Global variables:
7335 ofile=libtool
7336 can_build_shared=yes
7338 # All known linkers require a `.a' archive for static linking (except MSVC,
7339 # which needs '.lib').
7340 libext=a
7342 with_gnu_ld="$lt_cv_prog_gnu_ld"
7344 old_CC="$CC"
7345 old_CFLAGS="$CFLAGS"
7347 # Set sane defaults for various variables
7348 test -z "$CC" && CC=cc
7349 test -z "$LTCC" && LTCC=$CC
7350 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7351 test -z "$LD" && LD=ld
7352 test -z "$ac_objext" && ac_objext=o
7354 for cc_temp in $compiler""; do
7355 case $cc_temp in
7356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7358 \-*) ;;
7359 *) break;;
7360 esac
7361 done
7362 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7365 # Only perform the check for file, if the check method requires it
7366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7367 case $deplibs_check_method in
7368 file_magic*)
7369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7371 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 case $MAGIC_CMD in
7376 [\\/*] | ?:[\\/]*)
7377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7380 lt_save_MAGIC_CMD="$MAGIC_CMD"
7381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7383 for ac_dir in $ac_dummy; do
7384 IFS="$lt_save_ifs"
7385 test -z "$ac_dir" && ac_dir=.
7386 if test -f $ac_dir/${ac_tool_prefix}file; then
7387 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7388 if test -n "$file_magic_test_file"; then
7389 case $deplibs_check_method in
7390 "file_magic "*)
7391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7394 $EGREP "$file_magic_regex" > /dev/null; then
7396 else
7397 cat <<_LT_EOF 1>&2
7399 *** Warning: the command libtool uses to detect shared libraries,
7400 *** $file_magic_cmd, produces output that libtool cannot recognize.
7401 *** The result is that libtool may fail to recognize shared libraries
7402 *** as such. This will affect the creation of libtool libraries that
7403 *** depend on shared libraries, but programs linked with such libtool
7404 *** libraries will work regardless of this problem. Nevertheless, you
7405 *** may want to report the problem to your system manager and/or to
7406 *** bug-libtool@gnu.org
7408 _LT_EOF
7409 fi ;;
7410 esac
7412 break
7414 done
7415 IFS="$lt_save_ifs"
7416 MAGIC_CMD="$lt_save_MAGIC_CMD"
7418 esac
7421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422 if test -n "$MAGIC_CMD"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7424 $as_echo "$MAGIC_CMD" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7434 if test -z "$lt_cv_path_MAGIC_CMD"; then
7435 if test -n "$ac_tool_prefix"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7437 $as_echo_n "checking for file... " >&6; }
7438 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 case $MAGIC_CMD in
7442 [\\/*] | ?:[\\/]*)
7443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7446 lt_save_MAGIC_CMD="$MAGIC_CMD"
7447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449 for ac_dir in $ac_dummy; do
7450 IFS="$lt_save_ifs"
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/file; then
7453 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7454 if test -n "$file_magic_test_file"; then
7455 case $deplibs_check_method in
7456 "file_magic "*)
7457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460 $EGREP "$file_magic_regex" > /dev/null; then
7462 else
7463 cat <<_LT_EOF 1>&2
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such. This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem. Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7474 _LT_EOF
7475 fi ;;
7476 esac
7478 break
7480 done
7481 IFS="$lt_save_ifs"
7482 MAGIC_CMD="$lt_save_MAGIC_CMD"
7484 esac
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7490 $as_echo "$MAGIC_CMD" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7497 else
7498 MAGIC_CMD=:
7504 esac
7506 # Use C for the default configuration in the libtool script
7508 lt_save_CC="$CC"
7509 ac_ext=c
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516 # Source file extension for C test sources.
7517 ac_ext=c
7519 # Object file extension for compiled C test sources.
7520 objext=o
7521 objext=$objext
7523 # Code to be used in simple compile tests
7524 lt_simple_compile_test_code="int some_variable = 0;"
7526 # Code to be used in simple link tests
7527 lt_simple_link_test_code='int main(){return(0);}'
7535 # If no C compiler was specified, use CC.
7536 LTCC=${LTCC-"$CC"}
7538 # If no C compiler flags were specified, use CFLAGS.
7539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7541 # Allow CC to be a program name with arguments.
7542 compiler=$CC
7544 # Save the default compiler, since it gets overwritten when the other
7545 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7546 compiler_DEFAULT=$CC
7548 # save warnings/boilerplate of simple test code
7549 ac_outfile=conftest.$ac_objext
7550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7552 _lt_compiler_boilerplate=`cat conftest.err`
7553 $RM conftest*
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558 _lt_linker_boilerplate=`cat conftest.err`
7559 $RM -r conftest*
7562 ## CAVEAT EMPTOR:
7563 ## There is no encapsulation within the following macros, do not change
7564 ## the running order or otherwise move them around unless you know exactly
7565 ## what you are doing...
7566 if test -n "$compiler"; then
7568 lt_prog_compiler_no_builtin_flag=
7570 if test "$GCC" = yes; then
7571 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7574 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 lt_cv_prog_compiler_rtti_exceptions=no
7579 ac_outfile=conftest.$ac_objext
7580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7581 lt_compiler_flag="-fno-rtti -fno-exceptions"
7582 # Insert the option either (1) after the last *FLAGS variable, or
7583 # (2) before a word containing "conftest.", or (3) at the end.
7584 # Note that $ac_compile itself does not contain backslashes and begins
7585 # with a dollar sign (not a hyphen), so the echo should work correctly.
7586 # The option is referenced via a variable to avoid confusing sed.
7587 lt_compile=`echo "$ac_compile" | $SED \
7588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590 -e 's:$: $lt_compiler_flag:'`
7591 (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592 (eval "$lt_compile" 2>conftest.err)
7593 ac_status=$?
7594 cat conftest.err >&5
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 if (exit $ac_status) && test -s "$ac_outfile"; then
7597 # The compiler can only warn and ignore the option if not recognized
7598 # So say no if there are warnings other than the usual output.
7599 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602 lt_cv_prog_compiler_rtti_exceptions=yes
7605 $RM conftest*
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7609 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7612 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7613 else
7624 lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7629 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7631 if test "$GCC" = yes; then
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_static='-static'
7635 case $host_os in
7636 aix*)
7637 # All AIX code is PIC.
7638 if test "$host_cpu" = ia64; then
7639 # AIX 5 now supports IA64 processor
7640 lt_prog_compiler_static='-Bstatic'
7644 amigaos*)
7645 case $host_cpu in
7646 powerpc)
7647 # see comment about AmigaOS4 .so support
7648 lt_prog_compiler_pic='-fPIC'
7650 m68k)
7651 # FIXME: we need at least 68020 code to build shared libraries, but
7652 # adding the `-m68020' flag to GCC prevents building anything better,
7653 # like `-m68040'.
7654 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7656 esac
7659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7660 # PIC is the default for these OSes.
7663 mingw* | cygwin* | pw32* | os2* | cegcc*)
7664 # This hack is so that the source file can tell whether it is being
7665 # built for inclusion in a dll (and should export symbols for example).
7666 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7667 # (--disable-auto-import) libraries
7668 lt_prog_compiler_pic='-DDLL_EXPORT'
7671 darwin* | rhapsody*)
7672 # PIC is the default on this platform
7673 # Common symbols not allowed in MH_DYLIB files
7674 lt_prog_compiler_pic='-fno-common'
7677 hpux*)
7678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7680 # sets the default TLS model and affects inlining.
7681 case $host_cpu in
7682 hppa*64*)
7683 # +Z the default
7686 lt_prog_compiler_pic='-fPIC'
7688 esac
7691 interix[3-9]*)
7692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7693 # Instead, we relocate shared libraries at runtime.
7696 msdosdjgpp*)
7697 # Just because we use GCC doesn't mean we suddenly get shared libraries
7698 # on systems that don't support them.
7699 lt_prog_compiler_can_build_shared=no
7700 enable_shared=no
7703 *nto* | *qnx*)
7704 # QNX uses GNU C++, but need to define -shared option too, otherwise
7705 # it will coredump.
7706 lt_prog_compiler_pic='-fPIC -shared'
7709 sysv4*MP*)
7710 if test -d /usr/nec; then
7711 lt_prog_compiler_pic=-Kconform_pic
7716 lt_prog_compiler_pic='-fPIC'
7718 esac
7719 else
7720 # PORTME Check for flag to pass linker flags through the system compiler.
7721 case $host_os in
7722 aix*)
7723 lt_prog_compiler_wl='-Wl,'
7724 if test "$host_cpu" = ia64; then
7725 # AIX 5 now supports IA64 processor
7726 lt_prog_compiler_static='-Bstatic'
7727 else
7728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7732 mingw* | cygwin* | pw32* | os2* | cegcc*)
7733 # This hack is so that the source file can tell whether it is being
7734 # built for inclusion in a dll (and should export symbols for example).
7735 lt_prog_compiler_pic='-DDLL_EXPORT'
7738 hpux9* | hpux10* | hpux11*)
7739 lt_prog_compiler_wl='-Wl,'
7740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7741 # not for PA HP-UX.
7742 case $host_cpu in
7743 hppa*64*|ia64*)
7744 # +Z the default
7747 lt_prog_compiler_pic='+Z'
7749 esac
7750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7751 lt_prog_compiler_static='${wl}-a ${wl}archive'
7754 irix5* | irix6* | nonstopux*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # PIC (with -KPIC) is the default.
7757 lt_prog_compiler_static='-non_shared'
7760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7761 case $cc_basename in
7762 # old Intel for x86_64 which still supported -KPIC.
7763 ecc*)
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-static'
7768 # icc used to be incompatible with GCC.
7769 # ICC 10 doesn't accept -KPIC any more.
7770 icc* | ifort*)
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_pic='-fPIC'
7773 lt_prog_compiler_static='-static'
7775 # Lahey Fortran 8.1.
7776 lf95*)
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='--shared'
7779 lt_prog_compiler_static='--static'
7781 pgcc* | pgf77* | pgf90* | pgf95*)
7782 # Portland Group compilers (*not* the Pentium gcc compiler,
7783 # which looks to be a dead project)
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-fpic'
7786 lt_prog_compiler_static='-Bstatic'
7788 ccc*)
7789 lt_prog_compiler_wl='-Wl,'
7790 # All Alpha code is PIC.
7791 lt_prog_compiler_static='-non_shared'
7793 xl*)
7794 # IBM XL C 8.0/Fortran 10.1 on PPC
7795 lt_prog_compiler_wl='-Wl,'
7796 lt_prog_compiler_pic='-qpic'
7797 lt_prog_compiler_static='-qstaticlink'
7800 case `$CC -V 2>&1 | sed 5q` in
7801 *Sun\ C*)
7802 # Sun C 5.9
7803 lt_prog_compiler_pic='-KPIC'
7804 lt_prog_compiler_static='-Bstatic'
7805 lt_prog_compiler_wl='-Wl,'
7807 *Sun\ F*)
7808 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 lt_prog_compiler_wl=''
7813 esac
7815 esac
7818 newsos6)
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7823 *nto* | *qnx*)
7824 # QNX uses GNU C++, but need to define -shared option too, otherwise
7825 # it will coredump.
7826 lt_prog_compiler_pic='-fPIC -shared'
7829 osf3* | osf4* | osf5*)
7830 lt_prog_compiler_wl='-Wl,'
7831 # All OSF/1 code is PIC.
7832 lt_prog_compiler_static='-non_shared'
7835 rdos*)
7836 lt_prog_compiler_static='-non_shared'
7839 solaris*)
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7842 case $cc_basename in
7843 f77* | f90* | f95*)
7844 lt_prog_compiler_wl='-Qoption ld ';;
7846 lt_prog_compiler_wl='-Wl,';;
7847 esac
7850 sunos4*)
7851 lt_prog_compiler_wl='-Qoption ld '
7852 lt_prog_compiler_pic='-PIC'
7853 lt_prog_compiler_static='-Bstatic'
7856 sysv4 | sysv4.2uw2* | sysv4.3*)
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_pic='-KPIC'
7859 lt_prog_compiler_static='-Bstatic'
7862 sysv4*MP*)
7863 if test -d /usr/nec ;then
7864 lt_prog_compiler_pic='-Kconform_pic'
7865 lt_prog_compiler_static='-Bstatic'
7869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-KPIC'
7872 lt_prog_compiler_static='-Bstatic'
7875 unicos*)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_can_build_shared=no
7880 uts4*)
7881 lt_prog_compiler_pic='-pic'
7882 lt_prog_compiler_static='-Bstatic'
7886 lt_prog_compiler_can_build_shared=no
7888 esac
7891 case $host_os in
7892 # For platforms which do not support PIC, -DPIC is meaningless:
7893 *djgpp*)
7894 lt_prog_compiler_pic=
7897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7899 esac
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7901 $as_echo "$lt_prog_compiler_pic" >&6; }
7909 # Check to make sure the PIC flag actually works.
7911 if test -n "$lt_prog_compiler_pic"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7914 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 lt_cv_prog_compiler_pic_works=no
7918 ac_outfile=conftest.$ac_objext
7919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7921 # Insert the option either (1) after the last *FLAGS variable, or
7922 # (2) before a word containing "conftest.", or (3) at the end.
7923 # Note that $ac_compile itself does not contain backslashes and begins
7924 # with a dollar sign (not a hyphen), so the echo should work correctly.
7925 # The option is referenced via a variable to avoid confusing sed.
7926 lt_compile=`echo "$ac_compile" | $SED \
7927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929 -e 's:$: $lt_compiler_flag:'`
7930 (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931 (eval "$lt_compile" 2>conftest.err)
7932 ac_status=$?
7933 cat conftest.err >&5
7934 echo "$as_me:7934: \$? = $ac_status" >&5
7935 if (exit $ac_status) && test -s "$ac_outfile"; then
7936 # The compiler can only warn and ignore the option if not recognized
7937 # So say no if there are warnings other than the usual output.
7938 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7941 lt_cv_prog_compiler_pic_works=yes
7944 $RM conftest*
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7948 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7950 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7951 case $lt_prog_compiler_pic in
7952 "" | " "*) ;;
7953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7954 esac
7955 else
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_can_build_shared=no
7968 # Check to make sure the static flag actually works.
7970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7973 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 lt_cv_prog_compiler_static_works=no
7977 save_LDFLAGS="$LDFLAGS"
7978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7981 # The linker can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 if test -s conftest.err; then
7984 # Append any errors to the config.log.
7985 cat conftest.err 1>&5
7986 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988 if diff conftest.exp conftest.er2 >/dev/null; then
7989 lt_cv_prog_compiler_static_works=yes
7991 else
7992 lt_cv_prog_compiler_static_works=yes
7995 $RM -r conftest*
7996 LDFLAGS="$save_LDFLAGS"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8000 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8002 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8004 else
8005 lt_prog_compiler_static=
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8016 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 lt_cv_prog_compiler_c_o=no
8020 $RM -r conftest 2>/dev/null
8021 mkdir conftest
8022 cd conftest
8023 mkdir out
8024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8026 lt_compiler_flag="-o out/conftest2.$ac_objext"
8027 # Insert the option either (1) after the last *FLAGS variable, or
8028 # (2) before a word containing "conftest.", or (3) at the end.
8029 # Note that $ac_compile itself does not contain backslashes and begins
8030 # with a dollar sign (not a hyphen), so the echo should work correctly.
8031 lt_compile=`echo "$ac_compile" | $SED \
8032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034 -e 's:$: $lt_compiler_flag:'`
8035 (eval echo "\"\$as_me:8035: $lt_compile\"" >&5)
8036 (eval "$lt_compile" 2>out/conftest.err)
8037 ac_status=$?
8038 cat out/conftest.err >&5
8039 echo "$as_me:8039: \$? = $ac_status" >&5
8040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8041 then
8042 # The compiler can only warn and ignore the option if not recognized
8043 # So say no if there are warnings
8044 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8047 lt_cv_prog_compiler_c_o=yes
8050 chmod u+w . 2>&5
8051 $RM conftest*
8052 # SGI C++ compiler will create directory out/ii_files/ for
8053 # template instantiation
8054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8055 $RM out/* && rmdir out
8056 cd ..
8057 $RM -r conftest
8058 $RM conftest*
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8071 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 lt_cv_prog_compiler_c_o=no
8075 $RM -r conftest 2>/dev/null
8076 mkdir conftest
8077 cd conftest
8078 mkdir out
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8081 lt_compiler_flag="-o out/conftest2.$ac_objext"
8082 # Insert the option either (1) after the last *FLAGS variable, or
8083 # (2) before a word containing "conftest.", or (3) at the end.
8084 # Note that $ac_compile itself does not contain backslashes and begins
8085 # with a dollar sign (not a hyphen), so the echo should work correctly.
8086 lt_compile=`echo "$ac_compile" | $SED \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
8090 (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>out/conftest.err)
8092 ac_status=$?
8093 cat out/conftest.err >&5
8094 echo "$as_me:8094: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8096 then
8097 # The compiler can only warn and ignore the option if not recognized
8098 # So say no if there are warnings
8099 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8102 lt_cv_prog_compiler_c_o=yes
8105 chmod u+w . 2>&5
8106 $RM conftest*
8107 # SGI C++ compiler will create directory out/ii_files/ for
8108 # template instantiation
8109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8110 $RM out/* && rmdir out
8111 cd ..
8112 $RM -r conftest
8113 $RM conftest*
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8122 hard_links="nottested"
8123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8124 # do not overwrite the value of need_locks provided by the user
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8126 $as_echo_n "checking if we can lock with hard links... " >&6; }
8127 hard_links=yes
8128 $RM conftest*
8129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8130 touch conftest.a
8131 ln conftest.a conftest.b 2>&5 || hard_links=no
8132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8134 $as_echo "$hard_links" >&6; }
8135 if test "$hard_links" = no; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8138 need_locks=warn
8140 else
8141 need_locks=no
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8152 runpath_var=
8153 allow_undefined_flag=
8154 always_export_symbols=no
8155 archive_cmds=
8156 archive_expsym_cmds=
8157 compiler_needs_object=no
8158 enable_shared_with_static_runtimes=no
8159 export_dynamic_flag_spec=
8160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8161 hardcode_automatic=no
8162 hardcode_direct=no
8163 hardcode_direct_absolute=no
8164 hardcode_libdir_flag_spec=
8165 hardcode_libdir_flag_spec_ld=
8166 hardcode_libdir_separator=
8167 hardcode_minus_L=no
8168 hardcode_shlibpath_var=unsupported
8169 inherit_rpath=no
8170 link_all_deplibs=unknown
8171 module_cmds=
8172 module_expsym_cmds=
8173 old_archive_from_new_cmds=
8174 old_archive_from_expsyms_cmds=
8175 thread_safe_flag_spec=
8176 whole_archive_flag_spec=
8177 # include_expsyms should be a list of space-separated symbols to be *always*
8178 # included in the symbol list
8179 include_expsyms=
8180 # exclude_expsyms can be an extended regexp of symbols to exclude
8181 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8183 # as well as any symbol that contains `d'.
8184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8186 # platforms (ab)use it in PIC code, but their linkers get confused if
8187 # the symbol is explicitly referenced. Since portable code cannot
8188 # rely on this symbol name, it's probably fine to never include it in
8189 # preloaded symbol tables.
8190 # Exclude shared library initialization/finalization symbols.
8191 extract_expsyms_cmds=
8193 case $host_os in
8194 cygwin* | mingw* | pw32* | cegcc*)
8195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 if test "$GCC" != yes; then
8199 with_gnu_ld=no
8202 interix*)
8203 # we just hope/assume this is gcc and not c89 (= MSVC++)
8204 with_gnu_ld=yes
8206 openbsd*)
8207 with_gnu_ld=no
8209 esac
8211 ld_shlibs=yes
8212 if test "$with_gnu_ld" = yes; then
8213 # If archive_cmds runs LD, not CC, wlarc should be empty
8214 wlarc='${wl}'
8216 # Set some defaults for GNU ld with shared library support. These
8217 # are reset later if shared libraries are not supported. Putting them
8218 # here allows them to be overridden if necessary.
8219 runpath_var=LD_RUN_PATH
8220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8221 export_dynamic_flag_spec='${wl}--export-dynamic'
8222 # ancient GNU ld didn't support --whole-archive et. al.
8223 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8224 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8225 else
8226 whole_archive_flag_spec=
8228 supports_anon_versioning=no
8229 case `$LD -v 2>&1` in
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<_LT_EOF 1>&2
8245 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support. If you
8248 *** really care for shared libraries, you may want to modify your PATH
8249 *** so that a non-GNU linker is found, and then restart.
8251 _LT_EOF
8255 amigaos*)
8256 case $host_cpu in
8257 powerpc)
8258 # see comment about AmigaOS4 .so support
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds=''
8262 m68k)
8263 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)'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8267 esac
8270 beos*)
8271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 allow_undefined_flag=unsupported
8273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274 # support --undefined. This deserves some investigation. FIXME
8275 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 else
8277 ld_shlibs=no
8281 cygwin* | mingw* | pw32* | cegcc*)
8282 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283 # as there is no search path for DLLs.
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 allow_undefined_flag=unsupported
8286 always_export_symbols=no
8287 enable_shared_with_static_runtimes=yes
8288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8290 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8292 # If the export-symbols file already is a .def file (1st line
8293 # is EXPORTS), use it as is; otherwise, prepend...
8294 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8295 cp $export_symbols $output_objdir/$soname.def;
8296 else
8297 echo EXPORTS > $output_objdir/$soname.def;
8298 cat $export_symbols >> $output_objdir/$soname.def;
8300 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8301 else
8302 ld_shlibs=no
8306 interix[3-9]*)
8307 hardcode_direct=no
8308 hardcode_shlibpath_var=no
8309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8310 export_dynamic_flag_spec='${wl}-E'
8311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8312 # Instead, shared libraries are loaded at an image base (0x10000000 by
8313 # default) and relocated if they conflict, which is a slow very memory
8314 # consuming and fragmenting process. To avoid this, we pick a random,
8315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8318 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'
8321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8322 tmp_diet=no
8323 if test "$host_os" = linux-dietlibc; then
8324 case $cc_basename in
8325 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8326 esac
8328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8329 && test "$tmp_diet" = no
8330 then
8331 tmp_addflag=
8332 tmp_sharedflag='-shared'
8333 case $cc_basename,$host_cpu in
8334 pgcc*) # Portland Group C compiler
8335 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'
8336 tmp_addflag=' $pic_flag'
8338 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8339 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'
8340 tmp_addflag=' $pic_flag -Mnomain' ;;
8341 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8342 tmp_addflag=' -i_dynamic' ;;
8343 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8344 tmp_addflag=' -i_dynamic -nofor_main' ;;
8345 ifc* | ifort*) # Intel Fortran compiler
8346 tmp_addflag=' -nofor_main' ;;
8347 lf95*) # Lahey Fortran 8.1
8348 whole_archive_flag_spec=
8349 tmp_sharedflag='--shared' ;;
8350 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8351 tmp_sharedflag='-qmkshrobj'
8352 tmp_addflag= ;;
8353 esac
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ C*) # Sun C 5.9
8356 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'
8357 compiler_needs_object=yes
8358 tmp_sharedflag='-G' ;;
8359 *Sun\ F*) # Sun Fortran 8.3
8360 tmp_sharedflag='-G' ;;
8361 esac
8362 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 if test "x$supports_anon_versioning" = xyes; then
8365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367 echo "local: *; };" >> $output_objdir/$libname.ver~
8368 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8371 case $cc_basename in
8372 xlf*)
8373 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8374 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8375 hardcode_libdir_flag_spec=
8376 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8378 if test "x$supports_anon_versioning" = xyes; then
8379 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381 echo "local: *; };" >> $output_objdir/$libname.ver~
8382 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8385 esac
8386 else
8387 ld_shlibs=no
8391 netbsd*)
8392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8393 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8394 wlarc=
8395 else
8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401 solaris*)
8402 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8403 ld_shlibs=no
8404 cat <<_LT_EOF 1>&2
8406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8407 *** create shared libraries on Solaris systems. Therefore, libtool
8408 *** is disabling shared libraries support. We urge you to upgrade GNU
8409 *** binutils to release 2.9.1 or newer. Another option is to modify
8410 *** your PATH or compiler configuration so that the native linker is
8411 *** used, and then restart.
8413 _LT_EOF
8414 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 else
8418 ld_shlibs=no
8422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8423 case `$LD -v 2>&1` in
8424 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8425 ld_shlibs=no
8426 cat <<_LT_EOF 1>&2
8428 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8429 *** reliably create shared libraries on SCO systems. Therefore, libtool
8430 *** is disabling shared libraries support. We urge you to upgrade GNU
8431 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8432 *** your PATH or compiler configuration so that the native linker is
8433 *** used, and then restart.
8435 _LT_EOF
8438 # For security reasons, it is highly recommended that you always
8439 # use absolute paths for naming shared libraries, and exclude the
8440 # DT_RUNPATH tag from executables and libraries. But doing so
8441 # requires that you compile everything twice, which is a pain.
8442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446 else
8447 ld_shlibs=no
8450 esac
8453 sunos4*)
8454 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455 wlarc=
8456 hardcode_direct=yes
8457 hardcode_shlibpath_var=no
8461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464 else
8465 ld_shlibs=no
8468 esac
8470 if test "$ld_shlibs" = no; then
8471 runpath_var=
8472 hardcode_libdir_flag_spec=
8473 export_dynamic_flag_spec=
8474 whole_archive_flag_spec=
8476 else
8477 # PORTME fill in a description of your system's linker (not GNU ld)
8478 case $host_os in
8479 aix3*)
8480 allow_undefined_flag=unsupported
8481 always_export_symbols=yes
8482 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'
8483 # Note: this linker hardcodes the directories in LIBPATH if there
8484 # are no directories specified by -L.
8485 hardcode_minus_L=yes
8486 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8487 # Neither direct hardcoding nor static linking is supported with a
8488 # broken collect2.
8489 hardcode_direct=unsupported
8493 aix[4-9]*)
8494 if test "$host_cpu" = ia64; then
8495 # On IA64, the linker does run time linking by default, so we don't
8496 # have to do anything special.
8497 aix_use_runtimelinking=no
8498 exp_sym_flag='-Bexport'
8499 no_entry_flag=""
8500 else
8501 # If we're using GNU nm, then we don't want the "-C" option.
8502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8504 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'
8505 else
8506 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'
8508 aix_use_runtimelinking=no
8510 # Test if we are trying to use run time linking or normal
8511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8512 # need to do runtime linking.
8513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8514 for ld_flag in $LDFLAGS; do
8515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8516 aix_use_runtimelinking=yes
8517 break
8519 done
8521 esac
8523 exp_sym_flag='-bexport'
8524 no_entry_flag='-bnoentry'
8527 # When large executables or shared objects are built, AIX ld can
8528 # have problems creating the table of contents. If linking a library
8529 # or program results in "error TOC overflow" add -mminimal-toc to
8530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8533 archive_cmds=''
8534 hardcode_direct=yes
8535 hardcode_direct_absolute=yes
8536 hardcode_libdir_separator=':'
8537 link_all_deplibs=yes
8538 file_list_spec='${wl}-f,'
8540 if test "$GCC" = yes; then
8541 case $host_os in aix4.[012]|aix4.[012].*)
8542 # We only want to do this on AIX 4.2 and lower, the check
8543 # below for broken collect2 doesn't work under 4.3+
8544 collect2name=`${CC} -print-prog-name=collect2`
8545 if test -f "$collect2name" &&
8546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8547 then
8548 # We have reworked collect2
8550 else
8551 # We have old collect2
8552 hardcode_direct=unsupported
8553 # It fails to find uninstalled libraries when the uninstalled
8554 # path is not listed in the libpath. Setting hardcode_minus_L
8555 # to unsupported forces relinking
8556 hardcode_minus_L=yes
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_libdir_separator=
8561 esac
8562 shared_flag='-shared'
8563 if test "$aix_use_runtimelinking" = yes; then
8564 shared_flag="$shared_flag "'${wl}-G'
8566 else
8567 # not using gcc
8568 if test "$host_cpu" = ia64; then
8569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8570 # chokes on -Wl,-G. The following line is correct:
8571 shared_flag='-G'
8572 else
8573 if test "$aix_use_runtimelinking" = yes; then
8574 shared_flag='${wl}-G'
8575 else
8576 shared_flag='${wl}-bM:SRE'
8581 export_dynamic_flag_spec='${wl}-bexpall'
8582 # It seems that -bexpall does not export symbols beginning with
8583 # underscore (_), so it is better to generate a list of symbols to export.
8584 always_export_symbols=yes
8585 if test "$aix_use_runtimelinking" = yes; then
8586 # Warning - without using the other runtime loading flags (-brtl),
8587 # -berok will link without error, but may produce a broken library.
8588 allow_undefined_flag='-berok'
8589 # Determine the default libpath from the value encoded in an
8590 # empty executable.
8591 if test x$gcc_no_link = xyes; then
8592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8598 main ()
8602 return 0;
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8607 lt_aix_libpath_sed='
8608 /Import File Strings/,/^$/ {
8609 /^0/ {
8610 s/^0 *\(.*\)$/\1/
8614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615 # Check for a 64-bit object if we didn't find anything.
8616 if test -z "$aix_libpath"; then
8617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8625 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"
8626 else
8627 if test "$host_cpu" = ia64; then
8628 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8629 allow_undefined_flag="-z nodefs"
8630 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"
8631 else
8632 # Determine the default libpath from the value encoded in an
8633 # empty executable.
8634 if test x$gcc_no_link = xyes; then
8635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8641 main ()
8645 return 0;
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8650 lt_aix_libpath_sed='
8651 /Import File Strings/,/^$/ {
8652 /^0/ {
8653 s/^0 *\(.*\)$/\1/
8657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8658 # Check for a 64-bit object if we didn't find anything.
8659 if test -z "$aix_libpath"; then
8660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8668 # Warning - without using the other run time loading flags,
8669 # -berok will link without error, but may produce a broken library.
8670 no_undefined_flag=' ${wl}-bernotok'
8671 allow_undefined_flag=' ${wl}-berok'
8672 # Exported symbols can be pulled into shared objects from archives
8673 whole_archive_flag_spec='$convenience'
8674 archive_cmds_need_lc=yes
8675 # This is similar to how AIX traditionally builds its shared libraries.
8676 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'
8681 amigaos*)
8682 case $host_cpu in
8683 powerpc)
8684 # see comment about AmigaOS4 .so support
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686 archive_expsym_cmds=''
8688 m68k)
8689 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)'
8690 hardcode_libdir_flag_spec='-L$libdir'
8691 hardcode_minus_L=yes
8693 esac
8696 bsdi[45]*)
8697 export_dynamic_flag_spec=-rdynamic
8700 cygwin* | mingw* | pw32* | cegcc*)
8701 # When not using gcc, we currently assume that we are using
8702 # Microsoft Visual C++.
8703 # hardcode_libdir_flag_spec is actually meaningless, as there is
8704 # no search path for DLLs.
8705 hardcode_libdir_flag_spec=' '
8706 allow_undefined_flag=unsupported
8707 # Tell ltmain to make .lib files, not .a files.
8708 libext=lib
8709 # Tell ltmain to make .dll files, not .so files.
8710 shrext_cmds=".dll"
8711 # FIXME: Setting linknames here is a bad hack.
8712 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8713 # The linker will automatically build a .lib file if we build a DLL.
8714 old_archive_from_new_cmds='true'
8715 # FIXME: Should let the user specify the lib program.
8716 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8717 fix_srcfile_path='`cygpath -w "$srcfile"`'
8718 enable_shared_with_static_runtimes=yes
8721 darwin* | rhapsody*)
8724 archive_cmds_need_lc=no
8725 hardcode_direct=no
8726 hardcode_automatic=yes
8727 hardcode_shlibpath_var=unsupported
8728 whole_archive_flag_spec=''
8729 link_all_deplibs=yes
8730 allow_undefined_flag="$_lt_dar_allow_undefined"
8731 case $cc_basename in
8732 ifort*) _lt_dar_can_shared=yes ;;
8733 *) _lt_dar_can_shared=$GCC ;;
8734 esac
8735 if test "$_lt_dar_can_shared" = "yes"; then
8736 output_verbose_link_cmd=echo
8737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8739 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}"
8740 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}"
8742 else
8743 ld_shlibs=no
8748 dgux*)
8749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750 hardcode_libdir_flag_spec='-L$libdir'
8751 hardcode_shlibpath_var=no
8754 freebsd1*)
8755 ld_shlibs=no
8758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8759 # support. Future versions do this automatically, but an explicit c++rt0.o
8760 # does not break anything, and helps significantly (at the cost of a little
8761 # extra space).
8762 freebsd2.2*)
8763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8764 hardcode_libdir_flag_spec='-R$libdir'
8765 hardcode_direct=yes
8766 hardcode_shlibpath_var=no
8769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8770 freebsd2*)
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=yes
8773 hardcode_minus_L=yes
8774 hardcode_shlibpath_var=no
8777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8778 freebsd* | dragonfly*)
8779 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8780 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_direct=yes
8782 hardcode_shlibpath_var=no
8785 hpux9*)
8786 if test "$GCC" = yes; then
8787 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'
8788 else
8789 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'
8791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8792 hardcode_libdir_separator=:
8793 hardcode_direct=yes
8795 # hardcode_minus_L: Not really in the search PATH,
8796 # but as the default location of the library.
8797 hardcode_minus_L=yes
8798 export_dynamic_flag_spec='${wl}-E'
8801 hpux10*)
8802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8803 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8804 else
8805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8807 if test "$with_gnu_ld" = no; then
8808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8809 hardcode_libdir_flag_spec_ld='+b $libdir'
8810 hardcode_libdir_separator=:
8811 hardcode_direct=yes
8812 hardcode_direct_absolute=yes
8813 export_dynamic_flag_spec='${wl}-E'
8814 # hardcode_minus_L: Not really in the search PATH,
8815 # but as the default location of the library.
8816 hardcode_minus_L=yes
8820 hpux11*)
8821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8822 case $host_cpu in
8823 hppa*64*)
8824 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 ia64*)
8827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8832 esac
8833 else
8834 case $host_cpu in
8835 hppa*64*)
8836 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 ia64*)
8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844 esac
8846 if test "$with_gnu_ld" = no; then
8847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8848 hardcode_libdir_separator=:
8850 case $host_cpu in
8851 hppa*64*|ia64*)
8852 hardcode_direct=no
8853 hardcode_shlibpath_var=no
8856 hardcode_direct=yes
8857 hardcode_direct_absolute=yes
8858 export_dynamic_flag_spec='${wl}-E'
8860 # hardcode_minus_L: Not really in the search PATH,
8861 # but as the default location of the library.
8862 hardcode_minus_L=yes
8864 esac
8868 irix5* | irix6* | nonstopux*)
8869 if test "$GCC" = yes; then
8870 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'
8871 # Try to use the -exported_symbol ld option, if it does not
8872 # work, assume that -exports_file does not work either and
8873 # implicitly export all symbols.
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8876 if test x$gcc_no_link = xyes; then
8877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int foo(void) {}
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 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'
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 LDFLAGS="$save_LDFLAGS"
8890 else
8891 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'
8892 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'
8894 archive_cmds_need_lc='no'
8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8896 hardcode_libdir_separator=:
8897 inherit_rpath=yes
8898 link_all_deplibs=yes
8901 netbsd*)
8902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8904 else
8905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8907 hardcode_libdir_flag_spec='-R$libdir'
8908 hardcode_direct=yes
8909 hardcode_shlibpath_var=no
8912 newsos6)
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_direct=yes
8915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8916 hardcode_libdir_separator=:
8917 hardcode_shlibpath_var=no
8920 *nto* | *qnx*)
8923 openbsd*)
8924 if test -f /usr/libexec/ld.so; then
8925 hardcode_direct=yes
8926 hardcode_shlibpath_var=no
8927 hardcode_direct_absolute=yes
8928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8932 export_dynamic_flag_spec='${wl}-E'
8933 else
8934 case $host_os in
8935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_libdir_flag_spec='-R$libdir'
8940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8943 esac
8945 else
8946 ld_shlibs=no
8950 os2*)
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_minus_L=yes
8953 allow_undefined_flag=unsupported
8954 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'
8955 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8958 osf3*)
8959 if test "$GCC" = yes; then
8960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961 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'
8962 else
8963 allow_undefined_flag=' -expect_unresolved \*'
8964 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'
8966 archive_cmds_need_lc='no'
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 hardcode_libdir_separator=:
8971 osf4* | osf5*) # as osf3* with the addition of -msym flag
8972 if test "$GCC" = yes; then
8973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8974 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'
8975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8976 else
8977 allow_undefined_flag=' -expect_unresolved \*'
8978 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'
8979 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~
8980 $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'
8982 # Both c and cxx compiler support -rpath directly
8983 hardcode_libdir_flag_spec='-rpath $libdir'
8985 archive_cmds_need_lc='no'
8986 hardcode_libdir_separator=:
8989 solaris*)
8990 no_undefined_flag=' -z defs'
8991 if test "$GCC" = yes; then
8992 wlarc='${wl}'
8993 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8995 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8996 else
8997 case `$CC -V 2>&1` in
8998 *"Compilers 5.0"*)
8999 wlarc=''
9000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9005 wlarc='${wl}'
9006 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9010 esac
9012 hardcode_libdir_flag_spec='-R$libdir'
9013 hardcode_shlibpath_var=no
9014 case $host_os in
9015 solaris2.[0-5] | solaris2.[0-5].*) ;;
9017 # The compiler driver will combine and reorder linker options,
9018 # but understands `-z linker_flag'. GCC discards it without `$wl',
9019 # but is careful enough not to reorder.
9020 # Supported since Solaris 2.6 (maybe 2.5.1?)
9021 if test "$GCC" = yes; then
9022 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9023 else
9024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9027 esac
9028 link_all_deplibs=yes
9031 sunos4*)
9032 if test "x$host_vendor" = xsequent; then
9033 # Use $CC to link under sequent, because it throws in some extra .o
9034 # files that make .init and .fini sections work.
9035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9036 else
9037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9039 hardcode_libdir_flag_spec='-L$libdir'
9040 hardcode_direct=yes
9041 hardcode_minus_L=yes
9042 hardcode_shlibpath_var=no
9045 sysv4)
9046 case $host_vendor in
9047 sni)
9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 hardcode_direct=yes # is this really true???
9051 siemens)
9052 ## LD is ld it makes a PLAMLIB
9053 ## CC just makes a GrossModule.
9054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9055 reload_cmds='$CC -r -o $output$reload_objs'
9056 hardcode_direct=no
9058 motorola)
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9062 esac
9063 runpath_var='LD_RUN_PATH'
9064 hardcode_shlibpath_var=no
9067 sysv4.3*)
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_shlibpath_var=no
9070 export_dynamic_flag_spec='-Bexport'
9073 sysv4*MP*)
9074 if test -d /usr/nec; then
9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076 hardcode_shlibpath_var=no
9077 runpath_var=LD_RUN_PATH
9078 hardcode_runpath_var=yes
9079 ld_shlibs=yes
9083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9084 no_undefined_flag='${wl}-z,text'
9085 archive_cmds_need_lc=no
9086 hardcode_shlibpath_var=no
9087 runpath_var='LD_RUN_PATH'
9089 if test "$GCC" = yes; then
9090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 else
9093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 sysv5* | sco3.2v5* | sco5v6*)
9099 # Note: We can NOT use -z defs as we might desire, because we do not
9100 # link with -lc, and that would cause any symbols used from libc to
9101 # always be unresolved, which means just about no library would
9102 # ever link correctly. If we're not using GNU ld we use -z text
9103 # though, which does catch some bad symbols but isn't as heavy-handed
9104 # as -z defs.
9105 no_undefined_flag='${wl}-z,text'
9106 allow_undefined_flag='${wl}-z,nodefs'
9107 archive_cmds_need_lc=no
9108 hardcode_shlibpath_var=no
9109 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9110 hardcode_libdir_separator=':'
9111 link_all_deplibs=yes
9112 export_dynamic_flag_spec='${wl}-Bexport'
9113 runpath_var='LD_RUN_PATH'
9115 if test "$GCC" = yes; then
9116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 else
9119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 uts4*)
9125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_shlibpath_var=no
9131 ld_shlibs=no
9133 esac
9135 if test x$host_vendor = xsni; then
9136 case $host in
9137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9138 export_dynamic_flag_spec='${wl}-Blargedynsym'
9140 esac
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9145 $as_echo "$ld_shlibs" >&6; }
9146 test "$ld_shlibs" = no && can_build_shared=no
9148 with_gnu_ld=$with_gnu_ld
9165 # Do we need to explicitly link libc?
9167 case "x$archive_cmds_need_lc" in
9168 x|xyes)
9169 # Assume -lc should be added
9170 archive_cmds_need_lc=yes
9172 if test "$enable_shared" = yes && test "$GCC" = yes; then
9173 case $archive_cmds in
9174 *'~'*)
9175 # FIXME: we may have to deal with multi-command sequences.
9177 '$CC '*)
9178 # Test whether the compiler implicitly links with -lc since on some
9179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9180 # to ld, don't add -lc before -lgcc.
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9183 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9190 (eval $ac_compile) 2>&5
9191 ac_status=$?
9192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9193 test $ac_status = 0; } 2>conftest.err; then
9194 soname=conftest
9195 lib=conftest
9196 libobjs=conftest.$ac_objext
9197 deplibs=
9198 wl=$lt_prog_compiler_wl
9199 pic_flag=$lt_prog_compiler_pic
9200 compiler_flags=-v
9201 linker_flags=-v
9202 verstring=
9203 output_objdir=.
9204 libname=conftest
9205 lt_save_allow_undefined_flag=$allow_undefined_flag
9206 allow_undefined_flag=
9207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
9210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9211 test $ac_status = 0; }
9212 then
9213 lt_cv_archive_cmds_need_lc=no
9214 else
9215 lt_cv_archive_cmds_need_lc=yes
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9221 $RM conftest*
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9225 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9228 esac
9231 esac
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9392 if test "$GCC" = yes; then
9393 case $host_os in
9394 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9395 *) lt_awk_arg="/^libraries:/" ;;
9396 esac
9397 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9399 # if the path contains ";" then we assume it to be the separator
9400 # otherwise default to the standard path separator (i.e. ":") - it is
9401 # assumed that no part of a normal pathname contains ";" but that should
9402 # okay in the real world where ";" in dirpaths is itself problematic.
9403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9404 else
9405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9407 # Ok, now we have the path, separated by spaces, we can step through it
9408 # and add multilib dir if necessary.
9409 lt_tmp_lt_search_path_spec=
9410 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9411 for lt_sys_path in $lt_search_path_spec; do
9412 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9414 else
9415 test -d "$lt_sys_path" && \
9416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9418 done
9419 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9420 BEGIN {RS=" "; FS="/|\n";} {
9421 lt_foo="";
9422 lt_count=0;
9423 for (lt_i = NF; lt_i > 0; lt_i--) {
9424 if ($lt_i != "" && $lt_i != ".") {
9425 if ($lt_i == "..") {
9426 lt_count++;
9427 } else {
9428 if (lt_count == 0) {
9429 lt_foo="/" $lt_i lt_foo;
9430 } else {
9431 lt_count--;
9436 if (lt_foo != "") { lt_freq[lt_foo]++; }
9437 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9439 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9440 else
9441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9443 library_names_spec=
9444 libname_spec='lib$name'
9445 soname_spec=
9446 shrext_cmds=".so"
9447 postinstall_cmds=
9448 postuninstall_cmds=
9449 finish_cmds=
9450 finish_eval=
9451 shlibpath_var=
9452 shlibpath_overrides_runpath=unknown
9453 version_type=none
9454 dynamic_linker="$host_os ld.so"
9455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9456 need_lib_prefix=unknown
9457 hardcode_into_libs=no
9459 # when you set need_version to no, make sure it does not cause -set_version
9460 # flags to be left without arguments
9461 need_version=unknown
9463 case $host_os in
9464 aix3*)
9465 version_type=linux
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9467 shlibpath_var=LIBPATH
9469 # AIX 3 has no versioning support, so we append a major version to the name.
9470 soname_spec='${libname}${release}${shared_ext}$major'
9473 aix[4-9]*)
9474 version_type=linux
9475 need_lib_prefix=no
9476 need_version=no
9477 hardcode_into_libs=yes
9478 if test "$host_cpu" = ia64; then
9479 # AIX 5 supports IA64
9480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 else
9483 # With GCC up to 2.95.x, collect2 would create an import file
9484 # for dependence libraries. The import file would start with
9485 # the line `#! .'. This would cause the generated library to
9486 # depend on `.', always an invalid library. This was fixed in
9487 # development snapshots of GCC prior to 3.0.
9488 case $host_os in
9489 aix4 | aix4.[01] | aix4.[01].*)
9490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9491 echo ' yes '
9492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9494 else
9495 can_build_shared=no
9498 esac
9499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9500 # soname into executable. Probably we can add versioning support to
9501 # collect2, so additional links can be useful in future.
9502 if test "$aix_use_runtimelinking" = yes; then
9503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9504 # instead of lib<name>.a to let people know that these are not
9505 # typical AIX shared libraries.
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 else
9508 # We preserve .a as extension for shared libraries through AIX4.2
9509 # and later when we are not doing run time linking.
9510 library_names_spec='${libname}${release}.a $libname.a'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9513 shlibpath_var=LIBPATH
9517 amigaos*)
9518 case $host_cpu in
9519 powerpc)
9520 # Since July 2007 AmigaOS4 officially supports .so libraries.
9521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 m68k)
9525 library_names_spec='$libname.ixlibrary $libname.a'
9526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9527 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'
9529 esac
9532 beos*)
9533 library_names_spec='${libname}${shared_ext}'
9534 dynamic_linker="$host_os ld.so"
9535 shlibpath_var=LIBRARY_PATH
9538 bsdi[45]*)
9539 version_type=linux
9540 need_version=no
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9547 # the default ld.so.conf also contains /usr/contrib/lib and
9548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9549 # libtool to hard-code these into programs
9552 cygwin* | mingw* | pw32* | cegcc*)
9553 version_type=windows
9554 shrext_cmds=".dll"
9555 need_version=no
9556 need_lib_prefix=no
9558 case $GCC,$host_os in
9559 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9560 library_names_spec='$libname.dll.a'
9561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9562 postinstall_cmds='base_file=`basename \${file}`~
9563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9564 dldir=$destdir/`dirname \$dlpath`~
9565 test -d \$dldir || mkdir -p \$dldir~
9566 $install_prog $dir/$dlname \$dldir/$dlname~
9567 chmod a+x \$dldir/$dlname~
9568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9572 dlpath=$dir/\$dldll~
9573 $RM \$dlpath'
9574 shlibpath_overrides_runpath=yes
9576 case $host_os in
9577 cygwin*)
9578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9582 mingw* | cegcc*)
9583 # MinGW DLLs use traditional 'lib' prefix
9584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9585 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9587 # It is most probably a Windows format PATH printed by
9588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9589 # path with ; separators, and with drive letters. We can handle the
9590 # drive letters (cygwin fileutils understands them), so leave them,
9591 # especially as we might pass files found there to a mingw objdump,
9592 # which wouldn't understand a cygwinified path. Ahh.
9593 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9594 else
9595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9598 pw32*)
9599 # pw32 DLLs use 'pw' prefix rather than 'lib'
9600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9602 esac
9606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9608 esac
9609 dynamic_linker='Win32 ld.exe'
9610 # FIXME: first we should search . and the directory the executable is in
9611 shlibpath_var=PATH
9614 darwin* | rhapsody*)
9615 dynamic_linker="$host_os dyld"
9616 version_type=darwin
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9620 soname_spec='${libname}${release}${major}$shared_ext'
9621 shlibpath_overrides_runpath=yes
9622 shlibpath_var=DYLD_LIBRARY_PATH
9623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9629 dgux*)
9630 version_type=linux
9631 need_lib_prefix=no
9632 need_version=no
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9638 freebsd1*)
9639 dynamic_linker=no
9642 freebsd* | dragonfly*)
9643 # DragonFly does not have aout. When/if they implement a new
9644 # versioning mechanism, adjust this.
9645 if test -x /usr/bin/objformat; then
9646 objformat=`/usr/bin/objformat`
9647 else
9648 case $host_os in
9649 freebsd[123]*) objformat=aout ;;
9650 *) objformat=elf ;;
9651 esac
9653 version_type=freebsd-$objformat
9654 case $version_type in
9655 freebsd-elf*)
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657 need_version=no
9658 need_lib_prefix=no
9660 freebsd-*)
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9662 need_version=yes
9664 esac
9665 shlibpath_var=LD_LIBRARY_PATH
9666 case $host_os in
9667 freebsd2*)
9668 shlibpath_overrides_runpath=yes
9670 freebsd3.[01]* | freebsdelf3.[01]*)
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9676 shlibpath_overrides_runpath=no
9677 hardcode_into_libs=yes
9679 *) # from 4.6 on, and DragonFly
9680 shlibpath_overrides_runpath=yes
9681 hardcode_into_libs=yes
9683 esac
9686 gnu*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 hardcode_into_libs=yes
9696 hpux9* | hpux10* | hpux11*)
9697 # Give a soname corresponding to the major version so that dld.sl refuses to
9698 # link against other versions.
9699 version_type=sunos
9700 need_lib_prefix=no
9701 need_version=no
9702 case $host_cpu in
9703 ia64*)
9704 shrext_cmds='.so'
9705 hardcode_into_libs=yes
9706 dynamic_linker="$host_os dld.so"
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 if test "X$HPUX_IA64_MODE" = X32; then
9712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9713 else
9714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9718 hppa*64*)
9719 shrext_cmds='.sl'
9720 hardcode_into_libs=yes
9721 dynamic_linker="$host_os dld.sl"
9722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9730 shrext_cmds='.sl'
9731 dynamic_linker="$host_os dld.sl"
9732 shlibpath_var=SHLIB_PATH
9733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 soname_spec='${libname}${release}${shared_ext}$major'
9737 esac
9738 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9739 postinstall_cmds='chmod 555 $lib'
9742 interix[3-9]*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 shlibpath_overrides_runpath=no
9751 hardcode_into_libs=yes
9754 irix5* | irix6* | nonstopux*)
9755 case $host_os in
9756 nonstopux*) version_type=nonstopux ;;
9758 if test "$lt_cv_prog_gnu_ld" = yes; then
9759 version_type=linux
9760 else
9761 version_type=irix
9762 fi ;;
9763 esac
9764 need_lib_prefix=no
9765 need_version=no
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9768 case $host_os in
9769 irix5* | nonstopux*)
9770 libsuff= shlibsuff=
9773 case $LD in # libtool.m4 will add one of these switches to LD
9774 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9775 libsuff= shlibsuff= libmagic=32-bit;;
9776 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9777 libsuff=32 shlibsuff=N32 libmagic=N32;;
9778 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9779 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9780 *) libsuff= shlibsuff= libmagic=never-match;;
9781 esac
9783 esac
9784 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9785 shlibpath_overrides_runpath=no
9786 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9787 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9788 hardcode_into_libs=yes
9791 # No shared lib support for Linux oldld, aout, or coff.
9792 linux*oldld* | linux*aout* | linux*coff*)
9793 dynamic_linker=no
9796 # This must be Linux ELF.
9797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9798 version_type=linux
9799 need_lib_prefix=no
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=no
9807 # Some binutils ld are patched to set DT_RUNPATH
9808 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 lt_cv_shlibpath_overrides_runpath=no
9812 save_LDFLAGS=$LDFLAGS
9813 save_libdir=$libdir
9814 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9815 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9816 if test x$gcc_no_link = xyes; then
9817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9823 main ()
9827 return 0;
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9832 lt_cv_shlibpath_overrides_runpath=yes
9835 rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LDFLAGS=$save_LDFLAGS
9838 libdir=$save_libdir
9842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9844 # This implies no fast_install, which is unacceptable.
9845 # Some rework will be needed to allow for fast_install
9846 # before this can be enabled.
9847 hardcode_into_libs=yes
9849 # Append ld.so.conf contents to the search path
9850 if test -f /etc/ld.so.conf; then
9851 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' ' '`
9852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9855 # We used to test for /lib/ld.so.1 and disable shared libraries on
9856 # powerpc, because MkLinux only supported shared libraries with the
9857 # GNU dynamic linker. Since this was broken with cross compilers,
9858 # most powerpc-linux boxes support dynamic linking these days and
9859 # people can always --disable-shared, the test was removed, and we
9860 # assume the GNU/Linux dynamic linker is in use.
9861 dynamic_linker='GNU/Linux ld.so'
9864 netbsd*)
9865 version_type=sunos
9866 need_lib_prefix=no
9867 need_version=no
9868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9871 dynamic_linker='NetBSD (a.out) ld.so'
9872 else
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 dynamic_linker='NetBSD ld.elf_so'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 shlibpath_overrides_runpath=yes
9879 hardcode_into_libs=yes
9882 newsos6)
9883 version_type=linux
9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 shlibpath_overrides_runpath=yes
9889 *nto* | *qnx*)
9890 version_type=qnx
9891 need_lib_prefix=no
9892 need_version=no
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9898 dynamic_linker='ldqnx.so'
9901 openbsd*)
9902 version_type=sunos
9903 sys_lib_dlsearch_path_spec="/usr/lib"
9904 need_lib_prefix=no
9905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9906 case $host_os in
9907 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9908 *) need_version=no ;;
9909 esac
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9914 case $host_os in
9915 openbsd2.[89] | openbsd2.[89].*)
9916 shlibpath_overrides_runpath=no
9919 shlibpath_overrides_runpath=yes
9921 esac
9922 else
9923 shlibpath_overrides_runpath=yes
9927 os2*)
9928 libname_spec='$name'
9929 shrext_cmds=".dll"
9930 need_lib_prefix=no
9931 library_names_spec='$libname${shared_ext} $libname.a'
9932 dynamic_linker='OS/2 ld.exe'
9933 shlibpath_var=LIBPATH
9936 osf3* | osf4* | osf5*)
9937 version_type=osf
9938 need_lib_prefix=no
9939 need_version=no
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9947 rdos*)
9948 dynamic_linker=no
9951 solaris*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 shlibpath_overrides_runpath=yes
9959 hardcode_into_libs=yes
9960 # ldd complains unless libraries are executable
9961 postinstall_cmds='chmod +x $lib'
9964 sunos4*)
9965 version_type=sunos
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 shlibpath_overrides_runpath=yes
9970 if test "$with_gnu_ld" = yes; then
9971 need_lib_prefix=no
9973 need_version=yes
9976 sysv4 | sysv4.3*)
9977 version_type=linux
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 case $host_vendor in
9982 sni)
9983 shlibpath_overrides_runpath=no
9984 need_lib_prefix=no
9985 runpath_var=LD_RUN_PATH
9987 siemens)
9988 need_lib_prefix=no
9990 motorola)
9991 need_lib_prefix=no
9992 need_version=no
9993 shlibpath_overrides_runpath=no
9994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9996 esac
9999 sysv4*MP*)
10000 if test -d /usr/nec ;then
10001 version_type=linux
10002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10003 soname_spec='$libname${shared_ext}.$major'
10004 shlibpath_var=LD_LIBRARY_PATH
10008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10009 version_type=freebsd-elf
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10017 if test "$with_gnu_ld" = yes; then
10018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10019 else
10020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10021 case $host_os in
10022 sco3.2v5*)
10023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10025 esac
10027 sys_lib_dlsearch_path_spec='/usr/lib'
10030 tpf*)
10031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10041 uts4*)
10042 version_type=linux
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10049 dynamic_linker=no
10051 esac
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10053 $as_echo "$dynamic_linker" >&6; }
10054 test "$dynamic_linker" = no && can_build_shared=no
10056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10057 if test "$GCC" = yes; then
10058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10155 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10156 hardcode_action=
10157 if test -n "$hardcode_libdir_flag_spec" ||
10158 test -n "$runpath_var" ||
10159 test "X$hardcode_automatic" = "Xyes" ; then
10161 # We can hardcode non-existent directories.
10162 if test "$hardcode_direct" != no &&
10163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10164 # have to relink, otherwise we might link with an installed library
10165 # when we should be linking with a yet-to-be-installed one
10166 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10167 test "$hardcode_minus_L" != no; then
10168 # Linking always hardcodes the temporary library directory.
10169 hardcode_action=relink
10170 else
10171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10172 hardcode_action=immediate
10174 else
10175 # We cannot hardcode anything, or else we can only hardcode existing
10176 # directories.
10177 hardcode_action=unsupported
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10180 $as_echo "$hardcode_action" >&6; }
10182 if test "$hardcode_action" = relink ||
10183 test "$inherit_rpath" = yes; then
10184 # Fast installation is not supported
10185 enable_fast_install=no
10186 elif test "$shlibpath_overrides_runpath" = yes ||
10187 test "$enable_shared" = no; then
10188 # Fast installation is not necessary
10189 enable_fast_install=needless
10197 if test "x$enable_dlopen" != xyes; then
10198 enable_dlopen=unknown
10199 enable_dlopen_self=unknown
10200 enable_dlopen_self_static=unknown
10201 else
10202 lt_cv_dlopen=no
10203 lt_cv_dlopen_libs=
10205 case $host_os in
10206 beos*)
10207 lt_cv_dlopen="load_add_on"
10208 lt_cv_dlopen_libs=
10209 lt_cv_dlopen_self=yes
10212 mingw* | pw32* | cegcc*)
10213 lt_cv_dlopen="LoadLibrary"
10214 lt_cv_dlopen_libs=
10217 cygwin*)
10218 lt_cv_dlopen="dlopen"
10219 lt_cv_dlopen_libs=
10222 darwin*)
10223 # if libdl is installed we need to link against it
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10229 ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-ldl $LIBS"
10231 if test x$gcc_no_link = xyes; then
10232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char dlopen ();
10245 main ()
10247 return dlopen ();
10249 return 0;
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 ac_cv_lib_dl_dlopen=yes
10254 else
10255 ac_cv_lib_dl_dlopen=no
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265 else
10267 lt_cv_dlopen="dyld"
10268 lt_cv_dlopen_libs=
10269 lt_cv_dlopen_self=yes
10276 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10277 if test "x$ac_cv_func_shl_load" = x""yes; then :
10278 lt_cv_dlopen="shl_load"
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10281 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10282 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-ldld $LIBS"
10287 if test x$gcc_no_link = xyes; then
10288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char shl_load ();
10301 main ()
10303 return shl_load ();
10305 return 0;
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_dld_shl_load=yes
10310 else
10311 ac_cv_lib_dld_shl_load=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10318 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10319 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10321 else
10322 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323 if test "x$ac_cv_func_dlopen" = x""yes; then :
10324 lt_cv_dlopen="dlopen"
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-ldl $LIBS"
10333 if test x$gcc_no_link = xyes; then
10334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dlopen ();
10347 main ()
10349 return dlopen ();
10351 return 0;
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 ac_cv_lib_dl_dlopen=yes
10356 else
10357 ac_cv_lib_dl_dlopen=no
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10369 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10370 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-lsvld $LIBS"
10375 if test x$gcc_no_link = xyes; then
10376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char dlopen ();
10389 main ()
10391 return dlopen ();
10393 return 0;
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397 ac_cv_lib_svld_dlopen=yes
10398 else
10399 ac_cv_lib_svld_dlopen=no
10401 rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10406 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10407 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10409 else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10411 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10412 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-ldld $LIBS"
10417 if test x$gcc_no_link = xyes; then
10418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dld_link ();
10431 main ()
10433 return dld_link ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 ac_cv_lib_dld_dld_link=yes
10440 else
10441 ac_cv_lib_dld_dld_link=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10448 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10449 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10469 esac
10471 if test "x$lt_cv_dlopen" != xno; then
10472 enable_dlopen=yes
10473 else
10474 enable_dlopen=no
10477 case $lt_cv_dlopen in
10478 dlopen)
10479 save_CPPFLAGS="$CPPFLAGS"
10480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10482 save_LDFLAGS="$LDFLAGS"
10483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10485 save_LIBS="$LIBS"
10486 LIBS="$lt_cv_dlopen_libs $LIBS"
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10489 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10490 if test "${lt_cv_dlopen_self+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test "$cross_compiling" = yes; then :
10494 lt_cv_dlopen_self=cross
10495 else
10496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497 lt_status=$lt_dlunknown
10498 cat > conftest.$ac_ext <<_LT_EOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10502 #if HAVE_DLFCN_H
10503 #include <dlfcn.h>
10504 #endif
10506 #include <stdio.h>
10508 #ifdef RTLD_GLOBAL
10509 # define LT_DLGLOBAL RTLD_GLOBAL
10510 #else
10511 # ifdef DL_GLOBAL
10512 # define LT_DLGLOBAL DL_GLOBAL
10513 # else
10514 # define LT_DLGLOBAL 0
10515 # endif
10516 #endif
10518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519 find out it does not work in some platform. */
10520 #ifndef LT_DLLAZY_OR_NOW
10521 # ifdef RTLD_LAZY
10522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10523 # else
10524 # ifdef DL_LAZY
10525 # define LT_DLLAZY_OR_NOW DL_LAZY
10526 # else
10527 # ifdef RTLD_NOW
10528 # define LT_DLLAZY_OR_NOW RTLD_NOW
10529 # else
10530 # ifdef DL_NOW
10531 # define LT_DLLAZY_OR_NOW DL_NOW
10532 # else
10533 # define LT_DLLAZY_OR_NOW 0
10534 # endif
10535 # endif
10536 # endif
10537 # endif
10538 #endif
10540 void fnord() { int i=42;}
10541 int main ()
10543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10544 int status = $lt_dlunknown;
10546 if (self)
10548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10549 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10550 /* dlclose (self); */
10552 else
10553 puts (dlerror ());
10555 return status;
10557 _LT_EOF
10558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10559 (eval $ac_link) 2>&5
10560 ac_status=$?
10561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10563 (./conftest; exit; ) >&5 2>/dev/null
10564 lt_status=$?
10565 case x$lt_status in
10566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10568 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10569 esac
10570 else :
10571 # compilation failed
10572 lt_cv_dlopen_self=no
10575 rm -fr conftest*
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10580 $as_echo "$lt_cv_dlopen_self" >&6; }
10582 if test "x$lt_cv_dlopen_self" = xyes; then
10583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10586 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test "$cross_compiling" = yes; then :
10590 lt_cv_dlopen_self_static=cross
10591 else
10592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10593 lt_status=$lt_dlunknown
10594 cat > conftest.$ac_ext <<_LT_EOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10598 #if HAVE_DLFCN_H
10599 #include <dlfcn.h>
10600 #endif
10602 #include <stdio.h>
10604 #ifdef RTLD_GLOBAL
10605 # define LT_DLGLOBAL RTLD_GLOBAL
10606 #else
10607 # ifdef DL_GLOBAL
10608 # define LT_DLGLOBAL DL_GLOBAL
10609 # else
10610 # define LT_DLGLOBAL 0
10611 # endif
10612 #endif
10614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10615 find out it does not work in some platform. */
10616 #ifndef LT_DLLAZY_OR_NOW
10617 # ifdef RTLD_LAZY
10618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10619 # else
10620 # ifdef DL_LAZY
10621 # define LT_DLLAZY_OR_NOW DL_LAZY
10622 # else
10623 # ifdef RTLD_NOW
10624 # define LT_DLLAZY_OR_NOW RTLD_NOW
10625 # else
10626 # ifdef DL_NOW
10627 # define LT_DLLAZY_OR_NOW DL_NOW
10628 # else
10629 # define LT_DLLAZY_OR_NOW 0
10630 # endif
10631 # endif
10632 # endif
10633 # endif
10634 #endif
10636 void fnord() { int i=42;}
10637 int main ()
10639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640 int status = $lt_dlunknown;
10642 if (self)
10644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10646 /* dlclose (self); */
10648 else
10649 puts (dlerror ());
10651 return status;
10653 _LT_EOF
10654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10655 (eval $ac_link) 2>&5
10656 ac_status=$?
10657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10659 (./conftest; exit; ) >&5 2>/dev/null
10660 lt_status=$?
10661 case x$lt_status in
10662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10664 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10665 esac
10666 else :
10667 # compilation failed
10668 lt_cv_dlopen_self_static=no
10671 rm -fr conftest*
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10679 CPPFLAGS="$save_CPPFLAGS"
10680 LDFLAGS="$save_LDFLAGS"
10681 LIBS="$save_LIBS"
10683 esac
10685 case $lt_cv_dlopen_self in
10686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10687 *) enable_dlopen_self=unknown ;;
10688 esac
10690 case $lt_cv_dlopen_self_static in
10691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10692 *) enable_dlopen_self_static=unknown ;;
10693 esac
10712 striplib=
10713 old_striplib=
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10721 else
10722 # FIXME - insert some real tests, host_os isn't really good enough
10723 case $host_os in
10724 darwin*)
10725 if test -n "$STRIP" ; then
10726 striplib="$STRIP -x"
10727 old_striplib="$STRIP -S"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10739 esac
10753 # Report which library types will actually be built
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10757 $as_echo "$can_build_shared" >&6; }
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10760 $as_echo_n "checking whether to build shared libraries... " >&6; }
10761 test "$can_build_shared" = "no" && enable_shared=no
10763 # On AIX, shared libraries and static libraries use the same namespace, and
10764 # are all built from PIC.
10765 case $host_os in
10766 aix3*)
10767 test "$enable_shared" = yes && enable_static=no
10768 if test -n "$RANLIB"; then
10769 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10770 postinstall_cmds='$RANLIB $lib'
10774 aix[4-9]*)
10775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10776 test "$enable_shared" = yes && enable_static=no
10779 esac
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10781 $as_echo "$enable_shared" >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10784 $as_echo_n "checking whether to build static libraries... " >&6; }
10785 # Make sure either enable_shared or enable_static is yes.
10786 test "$enable_shared" = yes || enable_static=yes
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10788 $as_echo "$enable_static" >&6; }
10794 ac_ext=c
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10800 CC="$lt_save_CC"
10814 ac_config_commands="$ac_config_commands libtool"
10819 # Only expand once:
10825 # Calculate toolexeclibdir
10826 # Also toolexecdir, though it's only used in toolexeclibdir
10827 case ${version_specific_libs} in
10828 yes)
10829 # Need the gcc compiler version to know where to install libraries
10830 # and header files if --enable-version-specific-runtime-libs option
10831 # is selected.
10832 toolexecdir='$(libdir)/gcc/$(target_alias)'
10833 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10836 if test -n "$with_cross_host" &&
10837 test x"$with_cross_host" != x"no"; then
10838 # Install a library built with a cross compiler in tooldir, not libdir.
10839 toolexecdir='$(exec_prefix)/$(target_alias)'
10840 toolexeclibdir='$(toolexecdir)/lib'
10841 else
10842 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10843 toolexeclibdir='$(libdir)'
10845 multi_os_directory=`$CC -print-multi-os-directory`
10846 case $multi_os_directory in
10847 .) ;; # Avoid trailing /.
10848 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10849 esac
10851 esac
10855 if test ${multilib} = yes; then
10856 multilib_arg="--enable-multilib"
10857 else
10858 multilib_arg=
10861 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10863 cat >confcache <<\_ACEOF
10864 # This file is a shell script that caches the results of configure
10865 # tests run on this system so they can be shared between configure
10866 # scripts and configure runs, see configure's option --config-cache.
10867 # It is not useful on other systems. If it contains results you don't
10868 # want to keep, you may remove or edit it.
10870 # config.status only pays attention to the cache file if you give it
10871 # the --recheck option to rerun configure.
10873 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10874 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10875 # following values.
10877 _ACEOF
10879 # The following way of writing the cache mishandles newlines in values,
10880 # but we know of no workaround that is simple, portable, and efficient.
10881 # So, we kill variables containing newlines.
10882 # Ultrix sh set writes to stderr and can't be redirected directly,
10883 # and sets the high bit in the cache file unless we assign to the vars.
10885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10886 eval ac_val=\$$ac_var
10887 case $ac_val in #(
10888 *${as_nl}*)
10889 case $ac_var in #(
10890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10892 esac
10893 case $ac_var in #(
10894 _ | IFS | as_nl) ;; #(
10895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10896 *) { eval $ac_var=; unset $ac_var;} ;;
10897 esac ;;
10898 esac
10899 done
10901 (set) 2>&1 |
10902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10903 *${as_nl}ac_space=\ *)
10904 # `set' does not quote correctly, so add quotes: double-quote
10905 # substitution turns \\\\ into \\, and sed turns \\ into \.
10906 sed -n \
10907 "s/'/'\\\\''/g;
10908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10909 ;; #(
10911 # `set' quotes correctly as required by POSIX, so do not add quotes.
10912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10914 esac |
10915 sort
10917 sed '
10918 /^ac_cv_env_/b end
10919 t clear
10920 :clear
10921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10922 t end
10923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10924 :end' >>confcache
10925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10926 if test -w "$cache_file"; then
10927 test "x$cache_file" != "x/dev/null" &&
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10929 $as_echo "$as_me: updating cache $cache_file" >&6;}
10930 cat confcache >$cache_file
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10936 rm -f confcache
10938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10939 # Let make expand exec_prefix.
10940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10942 DEFS=-DHAVE_CONFIG_H
10944 ac_libobjs=
10945 ac_ltlibobjs=
10946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10947 # 1. Remove the extension, and $U if already installed.
10948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10949 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10951 # will be set to the directory where LIBOBJS objects are built.
10952 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10953 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10954 done
10955 LIBOBJS=$ac_libobjs
10957 LTLIBOBJS=$ac_ltlibobjs
10960 if test -n "$EXEEXT"; then
10961 am__EXEEXT_TRUE=
10962 am__EXEEXT_FALSE='#'
10963 else
10964 am__EXEEXT_TRUE='#'
10965 am__EXEEXT_FALSE=
10968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10969 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10973 as_fn_error "conditional \"AMDEP\" was never defined.
10974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10977 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10980 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10981 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
10982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10985 : ${CONFIG_STATUS=./config.status}
10986 ac_write_fail=0
10987 ac_clean_files_save=$ac_clean_files
10988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10990 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10991 as_write_fail=0
10992 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10993 #! $SHELL
10994 # Generated by $as_me.
10995 # Run this file to recreate the current configuration.
10996 # Compiler output produced by configure, useful for debugging
10997 # configure, is in config.log if it exists.
10999 debug=false
11000 ac_cs_recheck=false
11001 ac_cs_silent=false
11003 SHELL=\${CONFIG_SHELL-$SHELL}
11004 export SHELL
11005 _ASEOF
11006 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11007 ## -------------------- ##
11008 ## M4sh Initialization. ##
11009 ## -------------------- ##
11011 # Be more Bourne compatible
11012 DUALCASE=1; export DUALCASE # for MKS sh
11013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11014 emulate sh
11015 NULLCMD=:
11016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11017 # is contrary to our usage. Disable this feature.
11018 alias -g '${1+"$@"}'='"$@"'
11019 setopt NO_GLOB_SUBST
11020 else
11021 case `(set -o) 2>/dev/null` in #(
11022 *posix*) :
11023 set -o posix ;; #(
11024 *) :
11026 esac
11030 as_nl='
11032 export as_nl
11033 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11034 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11037 # Prefer a ksh shell builtin over an external printf program on Solaris,
11038 # but without wasting forks for bash or zsh.
11039 if test -z "$BASH_VERSION$ZSH_VERSION" \
11040 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11041 as_echo='print -r --'
11042 as_echo_n='print -rn --'
11043 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11044 as_echo='printf %s\n'
11045 as_echo_n='printf %s'
11046 else
11047 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11048 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11049 as_echo_n='/usr/ucb/echo -n'
11050 else
11051 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11052 as_echo_n_body='eval
11053 arg=$1;
11054 case $arg in #(
11055 *"$as_nl"*)
11056 expr "X$arg" : "X\\(.*\\)$as_nl";
11057 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11058 esac;
11059 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11061 export as_echo_n_body
11062 as_echo_n='sh -c $as_echo_n_body as_echo'
11064 export as_echo_body
11065 as_echo='sh -c $as_echo_body as_echo'
11068 # The user is always right.
11069 if test "${PATH_SEPARATOR+set}" != set; then
11070 PATH_SEPARATOR=:
11071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11073 PATH_SEPARATOR=';'
11078 # IFS
11079 # We need space, tab and new line, in precisely that order. Quoting is
11080 # there to prevent editors from complaining about space-tab.
11081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11082 # splitting by setting IFS to empty value.)
11083 IFS=" "" $as_nl"
11085 # Find who we are. Look in the path if we contain no directory separator.
11086 case $0 in #((
11087 *[\\/]* ) as_myself=$0 ;;
11088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11094 done
11095 IFS=$as_save_IFS
11098 esac
11099 # We did not find ourselves, most probably we were run as `sh COMMAND'
11100 # in which case we are not to be found in the path.
11101 if test "x$as_myself" = x; then
11102 as_myself=$0
11104 if test ! -f "$as_myself"; then
11105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11106 exit 1
11109 # Unset variables that we do not need and which cause bugs (e.g. in
11110 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11111 # suppresses any "Segmentation fault" message there. '((' could
11112 # trigger a bug in pdksh 5.2.14.
11113 for as_var in BASH_ENV ENV MAIL MAILPATH
11114 do eval test x\${$as_var+set} = xset \
11115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11116 done
11117 PS1='$ '
11118 PS2='> '
11119 PS4='+ '
11121 # NLS nuisances.
11122 LC_ALL=C
11123 export LC_ALL
11124 LANGUAGE=C
11125 export LANGUAGE
11127 # CDPATH.
11128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11131 # as_fn_error ERROR [LINENO LOG_FD]
11132 # ---------------------------------
11133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11135 # script with status $?, using 1 if that was 0.
11136 as_fn_error ()
11138 as_status=$?; test $as_status -eq 0 && as_status=1
11139 if test "$3"; then
11140 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11143 $as_echo "$as_me: error: $1" >&2
11144 as_fn_exit $as_status
11145 } # as_fn_error
11148 # as_fn_set_status STATUS
11149 # -----------------------
11150 # Set $? to STATUS, without forking.
11151 as_fn_set_status ()
11153 return $1
11154 } # as_fn_set_status
11156 # as_fn_exit STATUS
11157 # -----------------
11158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11159 as_fn_exit ()
11161 set +e
11162 as_fn_set_status $1
11163 exit $1
11164 } # as_fn_exit
11166 # as_fn_unset VAR
11167 # ---------------
11168 # Portably unset VAR.
11169 as_fn_unset ()
11171 { eval $1=; unset $1;}
11173 as_unset=as_fn_unset
11174 # as_fn_append VAR VALUE
11175 # ----------------------
11176 # Append the text in VALUE to the end of the definition contained in VAR. Take
11177 # advantage of any shell optimizations that allow amortized linear growth over
11178 # repeated appends, instead of the typical quadratic growth present in naive
11179 # implementations.
11180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11181 eval 'as_fn_append ()
11183 eval $1+=\$2
11185 else
11186 as_fn_append ()
11188 eval $1=\$$1\$2
11190 fi # as_fn_append
11192 # as_fn_arith ARG...
11193 # ------------------
11194 # Perform arithmetic evaluation on the ARGs, and store the result in the
11195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11196 # must be portable across $(()) and expr.
11197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11198 eval 'as_fn_arith ()
11200 as_val=$(( $* ))
11202 else
11203 as_fn_arith ()
11205 as_val=`expr "$@" || test $? -eq 1`
11207 fi # as_fn_arith
11210 if expr a : '\(a\)' >/dev/null 2>&1 &&
11211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11212 as_expr=expr
11213 else
11214 as_expr=false
11217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11218 as_basename=basename
11219 else
11220 as_basename=false
11223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11224 as_dirname=dirname
11225 else
11226 as_dirname=false
11229 as_me=`$as_basename -- "$0" ||
11230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11231 X"$0" : 'X\(//\)$' \| \
11232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11233 $as_echo X/"$0" |
11234 sed '/^.*\/\([^/][^/]*\)\/*$/{
11235 s//\1/
11238 /^X\/\(\/\/\)$/{
11239 s//\1/
11242 /^X\/\(\/\).*/{
11243 s//\1/
11246 s/.*/./; q'`
11248 # Avoid depending upon Character Ranges.
11249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11252 as_cr_digits='0123456789'
11253 as_cr_alnum=$as_cr_Letters$as_cr_digits
11255 ECHO_C= ECHO_N= ECHO_T=
11256 case `echo -n x` in #(((((
11257 -n*)
11258 case `echo 'xy\c'` in
11259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11260 xy) ECHO_C='\c';;
11261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11262 ECHO_T=' ';;
11263 esac;;
11265 ECHO_N='-n';;
11266 esac
11268 rm -f conf$$ conf$$.exe conf$$.file
11269 if test -d conf$$.dir; then
11270 rm -f conf$$.dir/conf$$.file
11271 else
11272 rm -f conf$$.dir
11273 mkdir conf$$.dir 2>/dev/null
11275 if (echo >conf$$.file) 2>/dev/null; then
11276 if ln -s conf$$.file conf$$ 2>/dev/null; then
11277 as_ln_s='ln -s'
11278 # ... but there are two gotchas:
11279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11281 # In both cases, we have to default to `cp -p'.
11282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11283 as_ln_s='cp -p'
11284 elif ln conf$$.file conf$$ 2>/dev/null; then
11285 as_ln_s=ln
11286 else
11287 as_ln_s='cp -p'
11289 else
11290 as_ln_s='cp -p'
11292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11293 rmdir conf$$.dir 2>/dev/null
11296 # as_fn_mkdir_p
11297 # -------------
11298 # Create "$as_dir" as a directory, including parents if necessary.
11299 as_fn_mkdir_p ()
11302 case $as_dir in #(
11303 -*) as_dir=./$as_dir;;
11304 esac
11305 test -d "$as_dir" || eval $as_mkdir_p || {
11306 as_dirs=
11307 while :; do
11308 case $as_dir in #(
11309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11310 *) as_qdir=$as_dir;;
11311 esac
11312 as_dirs="'$as_qdir' $as_dirs"
11313 as_dir=`$as_dirname -- "$as_dir" ||
11314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11315 X"$as_dir" : 'X\(//\)[^/]' \| \
11316 X"$as_dir" : 'X\(//\)$' \| \
11317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11318 $as_echo X"$as_dir" |
11319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11320 s//\1/
11323 /^X\(\/\/\)[^/].*/{
11324 s//\1/
11327 /^X\(\/\/\)$/{
11328 s//\1/
11331 /^X\(\/\).*/{
11332 s//\1/
11335 s/.*/./; q'`
11336 test -d "$as_dir" && break
11337 done
11338 test -z "$as_dirs" || eval "mkdir $as_dirs"
11339 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11342 } # as_fn_mkdir_p
11343 if mkdir -p . 2>/dev/null; then
11344 as_mkdir_p='mkdir -p "$as_dir"'
11345 else
11346 test -d ./-p && rmdir ./-p
11347 as_mkdir_p=false
11350 if test -x / >/dev/null 2>&1; then
11351 as_test_x='test -x'
11352 else
11353 if ls -dL / >/dev/null 2>&1; then
11354 as_ls_L_option=L
11355 else
11356 as_ls_L_option=
11358 as_test_x='
11359 eval sh -c '\''
11360 if test -d "$1"; then
11361 test -d "$1/.";
11362 else
11363 case $1 in #(
11364 -*)set "./$1";;
11365 esac;
11366 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11367 ???[sx]*):;;*)false;;esac;fi
11368 '\'' sh
11371 as_executable_p=$as_test_x
11373 # Sed expression to map a string onto a valid CPP name.
11374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11376 # Sed expression to map a string onto a valid variable name.
11377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11380 exec 6>&1
11381 ## ----------------------------------- ##
11382 ## Main body of $CONFIG_STATUS script. ##
11383 ## ----------------------------------- ##
11384 _ASEOF
11385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11388 # Save the log message, to keep $0 and so on meaningful, and to
11389 # report actual input values of CONFIG_FILES etc. instead of their
11390 # values after options handling.
11391 ac_log="
11392 This file was extended by libssp $as_me 1.0, which was
11393 generated by GNU Autoconf 2.64. Invocation command line was
11395 CONFIG_FILES = $CONFIG_FILES
11396 CONFIG_HEADERS = $CONFIG_HEADERS
11397 CONFIG_LINKS = $CONFIG_LINKS
11398 CONFIG_COMMANDS = $CONFIG_COMMANDS
11399 $ $0 $@
11401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11404 _ACEOF
11406 case $ac_config_files in *"
11407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11408 esac
11410 case $ac_config_headers in *"
11411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11412 esac
11415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11416 # Files that config.status was made for.
11417 config_files="$ac_config_files"
11418 config_headers="$ac_config_headers"
11419 config_commands="$ac_config_commands"
11421 _ACEOF
11423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11424 ac_cs_usage="\
11425 \`$as_me' instantiates files and other configuration actions
11426 from templates according to the current configuration. Unless the files
11427 and actions are specified as TAGs, all are instantiated by default.
11429 Usage: $0 [OPTION]... [TAG]...
11431 -h, --help print this help, then exit
11432 -V, --version print version number and configuration settings, then exit
11433 -q, --quiet, --silent
11434 do not print progress messages
11435 -d, --debug don't remove temporary files
11436 --recheck update $as_me by reconfiguring in the same conditions
11437 --file=FILE[:TEMPLATE]
11438 instantiate the configuration file FILE
11439 --header=FILE[:TEMPLATE]
11440 instantiate the configuration header FILE
11442 Configuration files:
11443 $config_files
11445 Configuration headers:
11446 $config_headers
11448 Configuration commands:
11449 $config_commands
11451 Report bugs to the package provider."
11453 _ACEOF
11454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11455 ac_cs_version="\\
11456 libssp config.status 1.0
11457 configured by $0, generated by GNU Autoconf 2.64,
11458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11460 Copyright (C) 2009 Free Software Foundation, Inc.
11461 This config.status script is free software; the Free Software Foundation
11462 gives unlimited permission to copy, distribute and modify it."
11464 ac_pwd='$ac_pwd'
11465 srcdir='$srcdir'
11466 INSTALL='$INSTALL'
11467 MKDIR_P='$MKDIR_P'
11468 AWK='$AWK'
11469 test -n "\$AWK" || AWK=awk
11470 _ACEOF
11472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11473 # The default lists apply if the user does not specify any file.
11474 ac_need_defaults=:
11475 while test $# != 0
11477 case $1 in
11478 --*=*)
11479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11481 ac_shift=:
11484 ac_option=$1
11485 ac_optarg=$2
11486 ac_shift=shift
11488 esac
11490 case $ac_option in
11491 # Handling of the options.
11492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11493 ac_cs_recheck=: ;;
11494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11495 $as_echo "$ac_cs_version"; exit ;;
11496 --debug | --debu | --deb | --de | --d | -d )
11497 debug=: ;;
11498 --file | --fil | --fi | --f )
11499 $ac_shift
11500 case $ac_optarg in
11501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11502 esac
11503 as_fn_append CONFIG_FILES " '$ac_optarg'"
11504 ac_need_defaults=false;;
11505 --header | --heade | --head | --hea )
11506 $ac_shift
11507 case $ac_optarg in
11508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11509 esac
11510 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11511 ac_need_defaults=false;;
11512 --he | --h)
11513 # Conflict between --help and --header
11514 as_fn_error "ambiguous option: \`$1'
11515 Try \`$0 --help' for more information.";;
11516 --help | --hel | -h )
11517 $as_echo "$ac_cs_usage"; exit ;;
11518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11520 ac_cs_silent=: ;;
11522 # This is an error.
11523 -*) as_fn_error "unrecognized option: \`$1'
11524 Try \`$0 --help' for more information." ;;
11526 *) as_fn_append ac_config_targets " $1"
11527 ac_need_defaults=false ;;
11529 esac
11530 shift
11531 done
11533 ac_configure_extra_args=
11535 if $ac_cs_silent; then
11536 exec 6>/dev/null
11537 ac_configure_extra_args="$ac_configure_extra_args --silent"
11540 _ACEOF
11541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11542 if \$ac_cs_recheck; then
11543 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11544 shift
11545 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11546 CONFIG_SHELL='$SHELL'
11547 export CONFIG_SHELL
11548 exec "\$@"
11551 _ACEOF
11552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553 exec 5>>config.log
11555 echo
11556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11557 ## Running $as_me. ##
11558 _ASBOX
11559 $as_echo "$ac_log"
11560 } >&5
11562 _ACEOF
11563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11565 # INIT-COMMANDS
11568 srcdir="$srcdir"
11569 host="$host"
11570 target="$target"
11571 with_multisubdir="$with_multisubdir"
11572 with_multisrctop="$with_multisrctop"
11573 with_target_subdir="$with_target_subdir"
11574 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11575 multi_basedir="$multi_basedir"
11576 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11577 CC="$CC"
11578 CXX="$CXX"
11579 GFORTRAN="$GFORTRAN"
11580 GCJ="$GCJ"
11581 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11584 # The HP-UX ksh and POSIX shell print the target directory to stdout
11585 # if CDPATH is set.
11586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11588 sed_quote_subst='$sed_quote_subst'
11589 double_quote_subst='$double_quote_subst'
11590 delay_variable_subst='$delay_variable_subst'
11591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11594 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11595 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11596 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11597 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11598 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11599 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11600 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11601 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11602 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11603 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11604 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11605 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11606 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11607 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11608 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11609 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11610 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11611 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11612 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11613 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11614 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11615 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11616 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11617 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11618 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11619 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11620 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11621 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11622 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11623 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11624 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11625 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11626 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11627 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11628 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11629 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11630 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11631 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11632 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11633 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11635 lt_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"`'
11636 lt_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"`'
11637 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11638 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11639 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11640 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11641 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11642 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11643 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11644 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11645 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11646 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11647 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11648 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11649 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11650 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11651 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11652 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11653 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11654 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11655 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11656 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11657 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11658 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11659 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11660 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11661 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11662 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11663 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11664 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11665 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11666 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11667 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11668 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11669 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11670 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11671 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11672 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11673 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11674 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11675 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11676 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11677 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11678 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11679 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11680 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11681 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11683 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11684 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11685 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11686 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11687 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11688 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11689 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11690 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11691 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11692 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11693 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11694 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11695 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11696 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11697 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11699 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11700 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11701 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11703 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11704 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11705 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11706 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11707 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11708 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11710 LTCC='$LTCC'
11711 LTCFLAGS='$LTCFLAGS'
11712 compiler='$compiler_DEFAULT'
11714 # Quote evaled strings.
11715 for var in SED \
11716 GREP \
11717 EGREP \
11718 FGREP \
11719 LD \
11720 NM \
11721 LN_S \
11722 lt_SP2NL \
11723 lt_NL2SP \
11724 reload_flag \
11725 OBJDUMP \
11726 deplibs_check_method \
11727 file_magic_cmd \
11728 AR \
11729 AR_FLAGS \
11730 STRIP \
11731 RANLIB \
11732 CC \
11733 CFLAGS \
11734 compiler \
11735 lt_cv_sys_global_symbol_pipe \
11736 lt_cv_sys_global_symbol_to_cdecl \
11737 lt_cv_sys_global_symbol_to_c_name_address \
11738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11739 SHELL \
11740 ECHO \
11741 lt_prog_compiler_no_builtin_flag \
11742 lt_prog_compiler_wl \
11743 lt_prog_compiler_pic \
11744 lt_prog_compiler_static \
11745 lt_cv_prog_compiler_c_o \
11746 need_locks \
11747 DSYMUTIL \
11748 NMEDIT \
11749 LIPO \
11750 OTOOL \
11751 OTOOL64 \
11752 shrext_cmds \
11753 export_dynamic_flag_spec \
11754 whole_archive_flag_spec \
11755 compiler_needs_object \
11756 with_gnu_ld \
11757 allow_undefined_flag \
11758 no_undefined_flag \
11759 hardcode_libdir_flag_spec \
11760 hardcode_libdir_flag_spec_ld \
11761 hardcode_libdir_separator \
11762 fix_srcfile_path \
11763 exclude_expsyms \
11764 include_expsyms \
11765 file_list_spec \
11766 variables_saved_for_relink \
11767 libname_spec \
11768 library_names_spec \
11769 soname_spec \
11770 finish_eval \
11771 old_striplib \
11772 striplib; do
11773 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11774 *[\\\\\\\`\\"\\\$]*)
11775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11780 esac
11781 done
11783 # Double-quote double-evaled strings.
11784 for var in reload_cmds \
11785 old_postinstall_cmds \
11786 old_postuninstall_cmds \
11787 old_archive_cmds \
11788 extract_expsyms_cmds \
11789 old_archive_from_new_cmds \
11790 old_archive_from_expsyms_cmds \
11791 archive_cmds \
11792 archive_expsym_cmds \
11793 module_cmds \
11794 module_expsym_cmds \
11795 export_symbols_cmds \
11796 prelink_cmds \
11797 postinstall_cmds \
11798 postuninstall_cmds \
11799 finish_cmds \
11800 sys_lib_search_path_spec \
11801 sys_lib_dlsearch_path_spec; do
11802 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11803 *[\\\\\\\`\\"\\\$]*)
11804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11809 esac
11810 done
11812 # Fix-up fallback echo if it was mangled by the above quoting rules.
11813 case \$lt_ECHO in
11814 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11816 esac
11818 ac_aux_dir='$ac_aux_dir'
11819 xsi_shell='$xsi_shell'
11820 lt_shell_append='$lt_shell_append'
11822 # See if we are running on zsh, and set the options which allow our
11823 # commands through without removal of \ escapes INIT.
11824 if test -n "\${ZSH_VERSION+set}" ; then
11825 setopt NO_GLOB_SUBST
11829 PACKAGE='$PACKAGE'
11830 VERSION='$VERSION'
11831 TIMESTAMP='$TIMESTAMP'
11832 RM='$RM'
11833 ofile='$ofile'
11838 _ACEOF
11840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11842 # Handling of arguments.
11843 for ac_config_target in $ac_config_targets
11845 case $ac_config_target in
11846 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11847 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11848 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11849 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11851 "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11853 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11854 esac
11855 done
11858 # If the user did not use the arguments to specify the items to instantiate,
11859 # then the envvar interface is used. Set only those that are not.
11860 # We use the long form for the default assignment because of an extremely
11861 # bizarre bug on SunOS 4.1.3.
11862 if $ac_need_defaults; then
11863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11864 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11865 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11868 # Have a temporary directory for convenience. Make it in the build tree
11869 # simply because there is no reason against having it here, and in addition,
11870 # creating and moving files from /tmp can sometimes cause problems.
11871 # Hook for its removal unless debugging.
11872 # Note that there is a small window in which the directory will not be cleaned:
11873 # after its creation but before its name has been assigned to `$tmp'.
11874 $debug ||
11876 tmp=
11877 trap 'exit_status=$?
11878 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11880 trap 'as_fn_exit 1' 1 2 13 15
11882 # Create a (secure) tmp directory for tmp files.
11885 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11886 test -n "$tmp" && test -d "$tmp"
11887 } ||
11889 tmp=./conf$$-$RANDOM
11890 (umask 077 && mkdir "$tmp")
11891 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11893 # Set up the scripts for CONFIG_FILES section.
11894 # No need to generate them if there are no CONFIG_FILES.
11895 # This happens for instance with `./config.status config.h'.
11896 if test -n "$CONFIG_FILES"; then
11899 ac_cr=`echo X | tr X '\015'`
11900 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11901 # But we know of no other shell where ac_cr would be empty at this
11902 # point, so we can use a bashism as a fallback.
11903 if test "x$ac_cr" = x; then
11904 eval ac_cr=\$\'\\r\'
11906 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11907 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11908 ac_cs_awk_cr='\r'
11909 else
11910 ac_cs_awk_cr=$ac_cr
11913 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11914 _ACEOF
11918 echo "cat >conf$$subs.awk <<_ACEOF" &&
11919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11920 echo "_ACEOF"
11921 } >conf$$subs.sh ||
11922 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11924 ac_delim='%!_!# '
11925 for ac_last_try in false false false false false :; do
11926 . ./conf$$subs.sh ||
11927 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11930 if test $ac_delim_n = $ac_delim_num; then
11931 break
11932 elif $ac_last_try; then
11933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11934 else
11935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11937 done
11938 rm -f conf$$subs.sh
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11942 _ACEOF
11943 sed -n '
11945 s/^/S["/; s/!.*/"]=/
11948 s/^[^!]*!//
11949 :repl
11950 t repl
11951 s/'"$ac_delim"'$//
11952 t delim
11955 s/\(.\{148\}\).*/\1/
11956 t more1
11957 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11960 b repl
11961 :more1
11962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11965 s/.\{148\}//
11966 t nl
11967 :delim
11969 s/\(.\{148\}\).*/\1/
11970 t more2
11971 s/["\\]/\\&/g; s/^/"/; s/$/"/
11974 :more2
11975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11978 s/.\{148\}//
11979 t delim
11980 ' <conf$$subs.awk | sed '
11981 /^[^""]/{
11983 s/\n//
11985 ' >>$CONFIG_STATUS || ac_write_fail=1
11986 rm -f conf$$subs.awk
11987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988 _ACAWK
11989 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11990 for (key in S) S_is_set[key] = 1
11991 FS = "\a"
11995 line = $ 0
11996 nfields = split(line, field, "@")
11997 substed = 0
11998 len = length(field[1])
11999 for (i = 2; i < nfields; i++) {
12000 key = field[i]
12001 keylen = length(key)
12002 if (S_is_set[key]) {
12003 value = S[key]
12004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12005 len += length(value) + length(field[++i])
12006 substed = 1
12007 } else
12008 len += 1 + keylen
12011 print line
12014 _ACAWK
12015 _ACEOF
12016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12017 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12019 else
12021 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12022 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12023 _ACEOF
12025 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12026 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12027 # trailing colons and then remove the whole line if VPATH becomes empty
12028 # (actually we leave an empty line to preserve line numbers).
12029 if test "x$srcdir" = x.; then
12030 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12031 s/:*\$(srcdir):*/:/
12032 s/:*\${srcdir}:*/:/
12033 s/:*@srcdir@:*/:/
12034 s/^\([^=]*=[ ]*\):*/\1/
12035 s/:*$//
12036 s/^[^=]*=[ ]*$//
12040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041 fi # test -n "$CONFIG_FILES"
12043 # Set up the scripts for CONFIG_HEADERS section.
12044 # No need to generate them if there are no CONFIG_HEADERS.
12045 # This happens for instance with `./config.status Makefile'.
12046 if test -n "$CONFIG_HEADERS"; then
12047 cat >"$tmp/defines.awk" <<\_ACAWK ||
12048 BEGIN {
12049 _ACEOF
12051 # Transform confdefs.h into an awk script `defines.awk', embedded as
12052 # here-document in config.status, that substitutes the proper values into
12053 # config.h.in to produce config.h.
12055 # Create a delimiter string that does not exist in confdefs.h, to ease
12056 # handling of long lines.
12057 ac_delim='%!_!# '
12058 for ac_last_try in false false :; do
12059 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12060 if test -z "$ac_t"; then
12061 break
12062 elif $ac_last_try; then
12063 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12064 else
12065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12067 done
12069 # For the awk script, D is an array of macro values keyed by name,
12070 # likewise P contains macro parameters if any. Preserve backslash
12071 # newline sequences.
12073 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12074 sed -n '
12075 s/.\{148\}/&'"$ac_delim"'/g
12076 t rset
12077 :rset
12078 s/^[ ]*#[ ]*define[ ][ ]*/ /
12079 t def
12081 :def
12082 s/\\$//
12083 t bsnl
12084 s/["\\]/\\&/g
12085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12086 D["\1"]=" \3"/p
12087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12089 :bsnl
12090 s/["\\]/\\&/g
12091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12092 D["\1"]=" \3\\\\\\n"\\/p
12093 t cont
12094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12095 t cont
12097 :cont
12099 s/.\{148\}/&'"$ac_delim"'/g
12100 t clear
12101 :clear
12102 s/\\$//
12103 t bsnlc
12104 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12106 :bsnlc
12107 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12108 b cont
12109 ' <confdefs.h | sed '
12110 s/'"$ac_delim"'/"\\\
12111 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12114 for (key in D) D_is_set[key] = 1
12115 FS = "\a"
12117 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12118 line = \$ 0
12119 split(line, arg, " ")
12120 if (arg[1] == "#") {
12121 defundef = arg[2]
12122 mac1 = arg[3]
12123 } else {
12124 defundef = substr(arg[1], 2)
12125 mac1 = arg[2]
12127 split(mac1, mac2, "(") #)
12128 macro = mac2[1]
12129 prefix = substr(line, 1, index(line, defundef) - 1)
12130 if (D_is_set[macro]) {
12131 # Preserve the white space surrounding the "#".
12132 print prefix "define", macro P[macro] D[macro]
12133 next
12134 } else {
12135 # Replace #undef with comments. This is necessary, for example,
12136 # in the case of _POSIX_SOURCE, which is predefined and required
12137 # on some systems where configure will not decide to define it.
12138 if (defundef == "undef") {
12139 print "/*", prefix defundef, macro, "*/"
12140 next
12144 { print }
12145 _ACAWK
12146 _ACEOF
12147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12149 fi # test -n "$CONFIG_HEADERS"
12152 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12153 shift
12154 for ac_tag
12156 case $ac_tag in
12157 :[FHLC]) ac_mode=$ac_tag; continue;;
12158 esac
12159 case $ac_mode$ac_tag in
12160 :[FHL]*:*);;
12161 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12162 :[FH]-) ac_tag=-:-;;
12163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12164 esac
12165 ac_save_IFS=$IFS
12166 IFS=:
12167 set x $ac_tag
12168 IFS=$ac_save_IFS
12169 shift
12170 ac_file=$1
12171 shift
12173 case $ac_mode in
12174 :L) ac_source=$1;;
12175 :[FH])
12176 ac_file_inputs=
12177 for ac_f
12179 case $ac_f in
12180 -) ac_f="$tmp/stdin";;
12181 *) # Look for the file first in the build tree, then in the source tree
12182 # (if the path is not absolute). The absolute path cannot be DOS-style,
12183 # because $ac_f cannot contain `:'.
12184 test -f "$ac_f" ||
12185 case $ac_f in
12186 [\\/$]*) false;;
12187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12188 esac ||
12189 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12190 esac
12191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12192 as_fn_append ac_file_inputs " '$ac_f'"
12193 done
12195 # Let's still pretend it is `configure' which instantiates (i.e., don't
12196 # use $as_me), people would be surprised to read:
12197 # /* config.h. Generated by config.status. */
12198 configure_input='Generated from '`
12199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12200 `' by configure.'
12201 if test x"$ac_file" != x-; then
12202 configure_input="$ac_file. $configure_input"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12204 $as_echo "$as_me: creating $ac_file" >&6;}
12206 # Neutralize special characters interpreted by sed in replacement strings.
12207 case $configure_input in #(
12208 *\&* | *\|* | *\\* )
12209 ac_sed_conf_input=`$as_echo "$configure_input" |
12210 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12211 *) ac_sed_conf_input=$configure_input;;
12212 esac
12214 case $ac_tag in
12215 *:-:* | *:-) cat >"$tmp/stdin" \
12216 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12217 esac
12219 esac
12221 ac_dir=`$as_dirname -- "$ac_file" ||
12222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223 X"$ac_file" : 'X\(//\)[^/]' \| \
12224 X"$ac_file" : 'X\(//\)$' \| \
12225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12226 $as_echo X"$ac_file" |
12227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228 s//\1/
12231 /^X\(\/\/\)[^/].*/{
12232 s//\1/
12235 /^X\(\/\/\)$/{
12236 s//\1/
12239 /^X\(\/\).*/{
12240 s//\1/
12243 s/.*/./; q'`
12244 as_dir="$ac_dir"; as_fn_mkdir_p
12245 ac_builddir=.
12247 case "$ac_dir" in
12248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12250 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12251 # A ".." for each directory in $ac_dir_suffix.
12252 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12253 case $ac_top_builddir_sub in
12254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12256 esac ;;
12257 esac
12258 ac_abs_top_builddir=$ac_pwd
12259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12260 # for backward compatibility:
12261 ac_top_builddir=$ac_top_build_prefix
12263 case $srcdir in
12264 .) # We are building in place.
12265 ac_srcdir=.
12266 ac_top_srcdir=$ac_top_builddir_sub
12267 ac_abs_top_srcdir=$ac_pwd ;;
12268 [\\/]* | ?:[\\/]* ) # Absolute name.
12269 ac_srcdir=$srcdir$ac_dir_suffix;
12270 ac_top_srcdir=$srcdir
12271 ac_abs_top_srcdir=$srcdir ;;
12272 *) # Relative name.
12273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12274 ac_top_srcdir=$ac_top_build_prefix$srcdir
12275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12276 esac
12277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12280 case $ac_mode in
12283 # CONFIG_FILE
12286 case $INSTALL in
12287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12289 esac
12290 ac_MKDIR_P=$MKDIR_P
12291 case $MKDIR_P in
12292 [\\/$]* | ?:[\\/]* ) ;;
12293 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12294 esac
12295 _ACEOF
12297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298 # If the template does not know about datarootdir, expand it.
12299 # FIXME: This hack should be removed a few years after 2.60.
12300 ac_datarootdir_hack=; ac_datarootdir_seen=
12301 ac_sed_dataroot='
12302 /datarootdir/ {
12306 /@datadir@/p
12307 /@docdir@/p
12308 /@infodir@/p
12309 /@localedir@/p
12310 /@mandir@/p'
12311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12312 *datarootdir*) ac_datarootdir_seen=yes;;
12313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 ac_datarootdir_hack='
12319 s&@datadir@&$datadir&g
12320 s&@docdir@&$docdir&g
12321 s&@infodir@&$infodir&g
12322 s&@localedir@&$localedir&g
12323 s&@mandir@&$mandir&g
12324 s&\\\${datarootdir}&$datarootdir&g' ;;
12325 esac
12326 _ACEOF
12328 # Neutralize VPATH when `$srcdir' = `.'.
12329 # Shell code in configure.ac might set extrasub.
12330 # FIXME: do we really want to maintain this feature?
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332 ac_sed_extra="$ac_vpsub
12333 $extrasub
12334 _ACEOF
12335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12338 s|@configure_input@|$ac_sed_conf_input|;t t
12339 s&@top_builddir@&$ac_top_builddir_sub&;t t
12340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12341 s&@srcdir@&$ac_srcdir&;t t
12342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12343 s&@top_srcdir@&$ac_top_srcdir&;t t
12344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12345 s&@builddir@&$ac_builddir&;t t
12346 s&@abs_builddir@&$ac_abs_builddir&;t t
12347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12348 s&@INSTALL@&$ac_INSTALL&;t t
12349 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12350 $ac_datarootdir_hack
12352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12353 || as_fn_error "could not create $ac_file" "$LINENO" 5
12355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12356 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12359 which seems to be undefined. Please make sure it is defined." >&5
12360 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12361 which seems to be undefined. Please make sure it is defined." >&2;}
12363 rm -f "$tmp/stdin"
12364 case $ac_file in
12365 -) cat "$tmp/out" && rm -f "$tmp/out";;
12366 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12367 esac \
12368 || as_fn_error "could not create $ac_file" "$LINENO" 5
12372 # CONFIG_HEADER
12374 if test x"$ac_file" != x-; then
12376 $as_echo "/* $configure_input */" \
12377 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12378 } >"$tmp/config.h" \
12379 || as_fn_error "could not create $ac_file" "$LINENO" 5
12380 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12382 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12383 else
12384 rm -f "$ac_file"
12385 mv "$tmp/config.h" "$ac_file" \
12386 || as_fn_error "could not create $ac_file" "$LINENO" 5
12388 else
12389 $as_echo "/* $configure_input */" \
12390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12391 || as_fn_error "could not create -" "$LINENO" 5
12393 # Compute "$ac_file"'s index in $config_headers.
12394 _am_arg="$ac_file"
12395 _am_stamp_count=1
12396 for _am_header in $config_headers :; do
12397 case $_am_header in
12398 $_am_arg | $_am_arg:* )
12399 break ;;
12401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12402 esac
12403 done
12404 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12405 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406 X"$_am_arg" : 'X\(//\)[^/]' \| \
12407 X"$_am_arg" : 'X\(//\)$' \| \
12408 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12409 $as_echo X"$_am_arg" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411 s//\1/
12414 /^X\(\/\/\)[^/].*/{
12415 s//\1/
12418 /^X\(\/\/\)$/{
12419 s//\1/
12422 /^X\(\/\).*/{
12423 s//\1/
12426 s/.*/./; q'`/stamp-h$_am_stamp_count
12429 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12430 $as_echo "$as_me: executing $ac_file commands" >&6;}
12432 esac
12435 case $ac_file$ac_mode in
12436 "default-1":C)
12437 # Only add multilib support code if we just rebuilt the top-level
12438 # Makefile.
12439 case " $CONFIG_FILES " in
12440 *" Makefile "*)
12441 ac_file=Makefile . ${multi_basedir}/config-ml.in
12443 esac ;;
12444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12445 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12446 # are listed without --file. Let's play safe and only enable the eval
12447 # if we detect the quoting.
12448 case $CONFIG_FILES in
12449 *\'*) eval set x "$CONFIG_FILES" ;;
12450 *) set x $CONFIG_FILES ;;
12451 esac
12452 shift
12453 for mf
12455 # Strip MF so we end up with the name of the file.
12456 mf=`echo "$mf" | sed -e 's/:.*$//'`
12457 # Check whether this is an Automake generated Makefile or not.
12458 # We used to match only the files named `Makefile.in', but
12459 # some people rename them; so instead we look at the file content.
12460 # Grep'ing the first line is not enough: some people post-process
12461 # each Makefile.in and add a new line on top of each file to say so.
12462 # Grep'ing the whole file is not good either: AIX grep has a line
12463 # limit of 2048, but all sed's we know have understand at least 4000.
12464 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12465 dirpart=`$as_dirname -- "$mf" ||
12466 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12467 X"$mf" : 'X\(//\)[^/]' \| \
12468 X"$mf" : 'X\(//\)$' \| \
12469 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12470 $as_echo X"$mf" |
12471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12472 s//\1/
12475 /^X\(\/\/\)[^/].*/{
12476 s//\1/
12479 /^X\(\/\/\)$/{
12480 s//\1/
12483 /^X\(\/\).*/{
12484 s//\1/
12487 s/.*/./; q'`
12488 else
12489 continue
12491 # Extract the definition of DEPDIR, am__include, and am__quote
12492 # from the Makefile without running `make'.
12493 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12494 test -z "$DEPDIR" && continue
12495 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12496 test -z "am__include" && continue
12497 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12498 # When using ansi2knr, U may be empty or an underscore; expand it
12499 U=`sed -n 's/^U = //p' < "$mf"`
12500 # Find all dependency output files, they are included files with
12501 # $(DEPDIR) in their names. We invoke sed twice because it is the
12502 # simplest approach to changing $(DEPDIR) to its actual value in the
12503 # expansion.
12504 for file in `sed -n "
12505 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12506 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12507 # Make sure the directory exists.
12508 test -f "$dirpart/$file" && continue
12509 fdir=`$as_dirname -- "$file" ||
12510 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12511 X"$file" : 'X\(//\)[^/]' \| \
12512 X"$file" : 'X\(//\)$' \| \
12513 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12514 $as_echo X"$file" |
12515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12516 s//\1/
12519 /^X\(\/\/\)[^/].*/{
12520 s//\1/
12523 /^X\(\/\/\)$/{
12524 s//\1/
12527 /^X\(\/\).*/{
12528 s//\1/
12531 s/.*/./; q'`
12532 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12533 # echo "creating $dirpart/$file"
12534 echo '# dummy' > "$dirpart/$file"
12535 done
12536 done
12539 "libtool":C)
12541 # See if we are running on zsh, and set the options which allow our
12542 # commands through without removal of \ escapes.
12543 if test -n "${ZSH_VERSION+set}" ; then
12544 setopt NO_GLOB_SUBST
12547 cfgfile="${ofile}T"
12548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12549 $RM "$cfgfile"
12551 cat <<_LT_EOF >> "$cfgfile"
12552 #! $SHELL
12554 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12555 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12559 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12560 # 2006, 2007, 2008 Free Software Foundation, Inc.
12561 # Written by Gordon Matzigkeit, 1996
12563 # This file is part of GNU Libtool.
12565 # GNU Libtool is free software; you can redistribute it and/or
12566 # modify it under the terms of the GNU General Public License as
12567 # published by the Free Software Foundation; either version 2 of
12568 # the License, or (at your option) any later version.
12570 # As a special exception to the GNU General Public License,
12571 # if you distribute this file as part of a program or library that
12572 # is built using GNU Libtool, you may include this file under the
12573 # same distribution terms that you use for the rest of that program.
12575 # GNU Libtool is distributed in the hope that it will be useful,
12576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12578 # GNU General Public License for more details.
12580 # You should have received a copy of the GNU General Public License
12581 # along with GNU Libtool; see the file COPYING. If not, a copy
12582 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12583 # obtained by writing to the Free Software Foundation, Inc.,
12584 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12587 # The names of the tagged configurations supported by this script.
12588 available_tags=""
12590 # ### BEGIN LIBTOOL CONFIG
12592 # Which release of libtool.m4 was used?
12593 macro_version=$macro_version
12594 macro_revision=$macro_revision
12596 # Whether or not to build shared libraries.
12597 build_libtool_libs=$enable_shared
12599 # Whether or not to build static libraries.
12600 build_old_libs=$enable_static
12602 # What type of objects to build.
12603 pic_mode=$pic_mode
12605 # Whether or not to optimize for fast installation.
12606 fast_install=$enable_fast_install
12608 # The host system.
12609 host_alias=$host_alias
12610 host=$host
12611 host_os=$host_os
12613 # The build system.
12614 build_alias=$build_alias
12615 build=$build
12616 build_os=$build_os
12618 # A sed program that does not truncate output.
12619 SED=$lt_SED
12621 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12622 Xsed="\$SED -e 1s/^X//"
12624 # A grep program that handles long lines.
12625 GREP=$lt_GREP
12627 # An ERE matcher.
12628 EGREP=$lt_EGREP
12630 # A literal string matcher.
12631 FGREP=$lt_FGREP
12633 # A BSD- or MS-compatible name lister.
12634 NM=$lt_NM
12636 # Whether we need soft or hard links.
12637 LN_S=$lt_LN_S
12639 # What is the maximum length of a command?
12640 max_cmd_len=$max_cmd_len
12642 # Object file suffix (normally "o").
12643 objext=$ac_objext
12645 # Executable file suffix (normally "").
12646 exeext=$exeext
12648 # whether the shell understands "unset".
12649 lt_unset=$lt_unset
12651 # turn spaces into newlines.
12652 SP2NL=$lt_lt_SP2NL
12654 # turn newlines into spaces.
12655 NL2SP=$lt_lt_NL2SP
12657 # How to create reloadable object files.
12658 reload_flag=$lt_reload_flag
12659 reload_cmds=$lt_reload_cmds
12661 # An object symbol dumper.
12662 OBJDUMP=$lt_OBJDUMP
12664 # Method to check whether dependent libraries are shared objects.
12665 deplibs_check_method=$lt_deplibs_check_method
12667 # Command to use when deplibs_check_method == "file_magic".
12668 file_magic_cmd=$lt_file_magic_cmd
12670 # The archiver.
12671 AR=$lt_AR
12672 AR_FLAGS=$lt_AR_FLAGS
12674 # A symbol stripping program.
12675 STRIP=$lt_STRIP
12677 # Commands used to install an old-style archive.
12678 RANLIB=$lt_RANLIB
12679 old_postinstall_cmds=$lt_old_postinstall_cmds
12680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12682 # A C compiler.
12683 LTCC=$lt_CC
12685 # LTCC compiler flags.
12686 LTCFLAGS=$lt_CFLAGS
12688 # Take the output of nm and produce a listing of raw symbols and C names.
12689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12691 # Transform the output of nm in a proper C declaration.
12692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12694 # Transform the output of nm in a C name address pair.
12695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12697 # Transform the output of nm in a C name address pair when lib prefix is needed.
12698 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12700 # The name of the directory that contains temporary libtool files.
12701 objdir=$objdir
12703 # Shell to use when invoking shell scripts.
12704 SHELL=$lt_SHELL
12706 # An echo program that does not interpret backslashes.
12707 ECHO=$lt_ECHO
12709 # Used to examine libraries when file_magic_cmd begins with "file".
12710 MAGIC_CMD=$MAGIC_CMD
12712 # Must we lock files when doing compilation?
12713 need_locks=$lt_need_locks
12715 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12716 DSYMUTIL=$lt_DSYMUTIL
12718 # Tool to change global to local symbols on Mac OS X.
12719 NMEDIT=$lt_NMEDIT
12721 # Tool to manipulate fat objects and archives on Mac OS X.
12722 LIPO=$lt_LIPO
12724 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12725 OTOOL=$lt_OTOOL
12727 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12728 OTOOL64=$lt_OTOOL64
12730 # Old archive suffix (normally "a").
12731 libext=$libext
12733 # Shared library suffix (normally ".so").
12734 shrext_cmds=$lt_shrext_cmds
12736 # The commands to extract the exported symbol list from a shared archive.
12737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12739 # Variables whose values should be saved in libtool wrapper scripts and
12740 # restored at link time.
12741 variables_saved_for_relink=$lt_variables_saved_for_relink
12743 # Do we need the "lib" prefix for modules?
12744 need_lib_prefix=$need_lib_prefix
12746 # Do we need a version for libraries?
12747 need_version=$need_version
12749 # Library versioning type.
12750 version_type=$version_type
12752 # Shared library runtime path variable.
12753 runpath_var=$runpath_var
12755 # Shared library path variable.
12756 shlibpath_var=$shlibpath_var
12758 # Is shlibpath searched before the hard-coded library search path?
12759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12761 # Format of library name prefix.
12762 libname_spec=$lt_libname_spec
12764 # List of archive names. First name is the real one, the rest are links.
12765 # The last name is the one that the linker finds with -lNAME
12766 library_names_spec=$lt_library_names_spec
12768 # The coded name of the library, if different from the real name.
12769 soname_spec=$lt_soname_spec
12771 # Command to use after installation of a shared archive.
12772 postinstall_cmds=$lt_postinstall_cmds
12774 # Command to use after uninstallation of a shared archive.
12775 postuninstall_cmds=$lt_postuninstall_cmds
12777 # Commands used to finish a libtool library installation in a directory.
12778 finish_cmds=$lt_finish_cmds
12780 # As "finish_cmds", except a single script fragment to be evaled but
12781 # not shown.
12782 finish_eval=$lt_finish_eval
12784 # Whether we should hardcode library paths into libraries.
12785 hardcode_into_libs=$hardcode_into_libs
12787 # Compile-time system search path for libraries.
12788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12790 # Run-time system search path for libraries.
12791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12793 # Whether dlopen is supported.
12794 dlopen_support=$enable_dlopen
12796 # Whether dlopen of programs is supported.
12797 dlopen_self=$enable_dlopen_self
12799 # Whether dlopen of statically linked programs is supported.
12800 dlopen_self_static=$enable_dlopen_self_static
12802 # Commands to strip libraries.
12803 old_striplib=$lt_old_striplib
12804 striplib=$lt_striplib
12807 # The linker used to build libraries.
12808 LD=$lt_LD
12810 # Commands used to build an old-style archive.
12811 old_archive_cmds=$lt_old_archive_cmds
12813 # A language specific compiler.
12814 CC=$lt_compiler
12816 # Is the compiler the GNU compiler?
12817 with_gcc=$GCC
12819 # Compiler flag to turn off builtin functions.
12820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12822 # How to pass a linker flag through the compiler.
12823 wl=$lt_lt_prog_compiler_wl
12825 # Additional compiler flags for building library objects.
12826 pic_flag=$lt_lt_prog_compiler_pic
12828 # Compiler flag to prevent dynamic linking.
12829 link_static_flag=$lt_lt_prog_compiler_static
12831 # Does compiler simultaneously support -c and -o options?
12832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12834 # Whether or not to add -lc for building shared libraries.
12835 build_libtool_need_lc=$archive_cmds_need_lc
12837 # Whether or not to disallow shared libs when runtime libs are static.
12838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12840 # Compiler flag to allow reflexive dlopens.
12841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12843 # Compiler flag to generate shared objects directly from archives.
12844 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12846 # Whether the compiler copes with passing no objects directly.
12847 compiler_needs_object=$lt_compiler_needs_object
12849 # Create an old-style archive from a shared archive.
12850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12852 # Create a temporary old-style archive to link instead of a shared archive.
12853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12855 # Commands used to build a shared archive.
12856 archive_cmds=$lt_archive_cmds
12857 archive_expsym_cmds=$lt_archive_expsym_cmds
12859 # Commands used to build a loadable module if different from building
12860 # a shared archive.
12861 module_cmds=$lt_module_cmds
12862 module_expsym_cmds=$lt_module_expsym_cmds
12864 # Whether we are building with GNU ld or not.
12865 with_gnu_ld=$lt_with_gnu_ld
12867 # Flag that allows shared libraries with undefined symbols to be built.
12868 allow_undefined_flag=$lt_allow_undefined_flag
12870 # Flag that enforces no undefined symbols.
12871 no_undefined_flag=$lt_no_undefined_flag
12873 # Flag to hardcode \$libdir into a binary during linking.
12874 # This must work even if \$libdir does not exist
12875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12877 # If ld is used when linking, flag to hardcode \$libdir into a binary
12878 # during linking. This must work even if \$libdir does not exist.
12879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12881 # Whether we need a single "-rpath" flag with a separated argument.
12882 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12884 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12885 # DIR into the resulting binary.
12886 hardcode_direct=$hardcode_direct
12888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12889 # DIR into the resulting binary and the resulting library dependency is
12890 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12891 # library is relocated.
12892 hardcode_direct_absolute=$hardcode_direct_absolute
12894 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12895 # into the resulting binary.
12896 hardcode_minus_L=$hardcode_minus_L
12898 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12899 # into the resulting binary.
12900 hardcode_shlibpath_var=$hardcode_shlibpath_var
12902 # Set to "yes" if building a shared library automatically hardcodes DIR
12903 # into the library and all subsequent libraries and executables linked
12904 # against it.
12905 hardcode_automatic=$hardcode_automatic
12907 # Set to yes if linker adds runtime paths of dependent libraries
12908 # to runtime path list.
12909 inherit_rpath=$inherit_rpath
12911 # Whether libtool must link a program against all its dependency libraries.
12912 link_all_deplibs=$link_all_deplibs
12914 # Fix the shell variable \$srcfile for the compiler.
12915 fix_srcfile_path=$lt_fix_srcfile_path
12917 # Set to "yes" if exported symbols are required.
12918 always_export_symbols=$always_export_symbols
12920 # The commands to list exported symbols.
12921 export_symbols_cmds=$lt_export_symbols_cmds
12923 # Symbols that should not be listed in the preloaded symbols.
12924 exclude_expsyms=$lt_exclude_expsyms
12926 # Symbols that must always be exported.
12927 include_expsyms=$lt_include_expsyms
12929 # Commands necessary for linking programs (against libraries) with templates.
12930 prelink_cmds=$lt_prelink_cmds
12932 # Specify filename containing input files.
12933 file_list_spec=$lt_file_list_spec
12935 # How to hardcode a shared library path into an executable.
12936 hardcode_action=$hardcode_action
12938 # ### END LIBTOOL CONFIG
12940 _LT_EOF
12942 case $host_os in
12943 aix3*)
12944 cat <<\_LT_EOF >> "$cfgfile"
12945 # AIX sometimes has problems with the GCC collect2 program. For some
12946 # reason, if we set the COLLECT_NAMES environment variable, the problems
12947 # vanish in a puff of smoke.
12948 if test "X${COLLECT_NAMES+set}" != Xset; then
12949 COLLECT_NAMES=
12950 export COLLECT_NAMES
12952 _LT_EOF
12954 esac
12957 ltmain="$ac_aux_dir/ltmain.sh"
12960 # We use sed instead of cat because bash on DJGPP gets confused if
12961 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12962 # text mode, it properly converts lines to CR/LF. This bash problem
12963 # is reportedly fixed, but why not run on old versions too?
12964 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12965 || (rm -f "$cfgfile"; exit 1)
12967 case $xsi_shell in
12968 yes)
12969 cat << \_LT_EOF >> "$cfgfile"
12971 # func_dirname file append nondir_replacement
12972 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12973 # otherwise set result to NONDIR_REPLACEMENT.
12974 func_dirname ()
12976 case ${1} in
12977 */*) func_dirname_result="${1%/*}${2}" ;;
12978 * ) func_dirname_result="${3}" ;;
12979 esac
12982 # func_basename file
12983 func_basename ()
12985 func_basename_result="${1##*/}"
12988 # func_dirname_and_basename file append nondir_replacement
12989 # perform func_basename and func_dirname in a single function
12990 # call:
12991 # dirname: Compute the dirname of FILE. If nonempty,
12992 # add APPEND to the result, otherwise set result
12993 # to NONDIR_REPLACEMENT.
12994 # value returned in "$func_dirname_result"
12995 # basename: Compute filename of FILE.
12996 # value retuned in "$func_basename_result"
12997 # Implementation must be kept synchronized with func_dirname
12998 # and func_basename. For efficiency, we do not delegate to
12999 # those functions but instead duplicate the functionality here.
13000 func_dirname_and_basename ()
13002 case ${1} in
13003 */*) func_dirname_result="${1%/*}${2}" ;;
13004 * ) func_dirname_result="${3}" ;;
13005 esac
13006 func_basename_result="${1##*/}"
13009 # func_stripname prefix suffix name
13010 # strip PREFIX and SUFFIX off of NAME.
13011 # PREFIX and SUFFIX must not contain globbing or regex special
13012 # characters, hashes, percent signs, but SUFFIX may contain a leading
13013 # dot (in which case that matches only a dot).
13014 func_stripname ()
13016 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13017 # positional parameters, so assign one to ordinary parameter first.
13018 func_stripname_result=${3}
13019 func_stripname_result=${func_stripname_result#"${1}"}
13020 func_stripname_result=${func_stripname_result%"${2}"}
13023 # func_opt_split
13024 func_opt_split ()
13026 func_opt_split_opt=${1%%=*}
13027 func_opt_split_arg=${1#*=}
13030 # func_lo2o object
13031 func_lo2o ()
13033 case ${1} in
13034 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13035 *) func_lo2o_result=${1} ;;
13036 esac
13039 # func_xform libobj-or-source
13040 func_xform ()
13042 func_xform_result=${1%.*}.lo
13045 # func_arith arithmetic-term...
13046 func_arith ()
13048 func_arith_result=$(( $* ))
13051 # func_len string
13052 # STRING may not start with a hyphen.
13053 func_len ()
13055 func_len_result=${#1}
13058 _LT_EOF
13060 *) # Bourne compatible functions.
13061 cat << \_LT_EOF >> "$cfgfile"
13063 # func_dirname file append nondir_replacement
13064 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13065 # otherwise set result to NONDIR_REPLACEMENT.
13066 func_dirname ()
13068 # Extract subdirectory from the argument.
13069 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13070 if test "X$func_dirname_result" = "X${1}"; then
13071 func_dirname_result="${3}"
13072 else
13073 func_dirname_result="$func_dirname_result${2}"
13077 # func_basename file
13078 func_basename ()
13080 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13084 # func_stripname prefix suffix name
13085 # strip PREFIX and SUFFIX off of NAME.
13086 # PREFIX and SUFFIX must not contain globbing or regex special
13087 # characters, hashes, percent signs, but SUFFIX may contain a leading
13088 # dot (in which case that matches only a dot).
13089 # func_strip_suffix prefix name
13090 func_stripname ()
13092 case ${2} in
13093 .*) func_stripname_result=`$ECHO "X${3}" \
13094 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13095 *) func_stripname_result=`$ECHO "X${3}" \
13096 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13097 esac
13100 # sed scripts:
13101 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13102 my_sed_long_arg='1s/^-[^=]*=//'
13104 # func_opt_split
13105 func_opt_split ()
13107 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13108 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13111 # func_lo2o object
13112 func_lo2o ()
13114 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13117 # func_xform libobj-or-source
13118 func_xform ()
13120 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13123 # func_arith arithmetic-term...
13124 func_arith ()
13126 func_arith_result=`expr "$@"`
13129 # func_len string
13130 # STRING may not start with a hyphen.
13131 func_len ()
13133 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13136 _LT_EOF
13137 esac
13139 case $lt_shell_append in
13140 yes)
13141 cat << \_LT_EOF >> "$cfgfile"
13143 # func_append var value
13144 # Append VALUE to the end of shell variable VAR.
13145 func_append ()
13147 eval "$1+=\$2"
13149 _LT_EOF
13152 cat << \_LT_EOF >> "$cfgfile"
13154 # func_append var value
13155 # Append VALUE to the end of shell variable VAR.
13156 func_append ()
13158 eval "$1=\$$1\$2"
13161 _LT_EOF
13163 esac
13166 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13167 || (rm -f "$cfgfile"; exit 1)
13169 mv -f "$cfgfile" "$ofile" ||
13170 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13171 chmod +x "$ofile"
13175 esac
13176 done # for ac_tag
13179 as_fn_exit 0
13180 _ACEOF
13181 ac_clean_files=$ac_clean_files_save
13183 test $ac_write_fail = 0 ||
13184 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13187 # configure is writing to config.log, and then calls config.status.
13188 # config.status does its own redirection, appending to config.log.
13189 # Unfortunately, on DOS this fails, as config.log is still kept open
13190 # by configure, so config.status won't be able to write to it; its
13191 # output is simply discarded. So we exec the FD to /dev/null,
13192 # effectively closing config.log, so it can be properly (re)opened and
13193 # appended to by config.status. When coming back to configure, we
13194 # need to make the FD available again.
13195 if test "$no_create" != yes; then
13196 ac_cs_success=:
13197 ac_config_status_args=
13198 test "$silent" = yes &&
13199 ac_config_status_args="$ac_config_status_args --quiet"
13200 exec 5>/dev/null
13201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13202 exec 5>>config.log
13203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13204 # would make configure fail if this is the last instruction.
13205 $ac_cs_success || as_fn_exit $?
13207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}