]> git.ipfire.org Git - thirdparty/gcc.git/blame - libssp/configure
thumb2.md (thumb2_mulsi_short_compare0): Use a low-register for the scratch.
[thirdparty/gcc.git] / libssp / configure
CommitLineData
77008252
JJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for libssp 1.0.
4#
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.
77008252 8#
77008252
JJ
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
77008252 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
77008252
JJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
77008252
JJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
77008252 31fi
77008252 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
77008252
JJ
79fi
80
81
5213506e
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
77008252
JJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
77008252 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$as_save_IFS
209
210
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+"$@"}
220fi
221
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."
77008252 228 else
5213506e
RW
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."
77008252 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
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/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
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"
318
319
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.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
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.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
77008252 355
5213506e
RW
356
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.
362as_fn_error ()
363{
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
77008252
JJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
77008252
JJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
77008252 391
5213506e 392as_me=`$as_basename -- "$0" ||
77008252
JJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
77008252 410
77008252
JJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
77008252 418
5213506e
RW
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 '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
77008252 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
77008252 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
77008252 436 t loop
5213506e 437 s/-\n.*//
77008252 438 ' >$as_me.lineno &&
5213506e
RW
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; }
77008252
JJ
441
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
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
77008252
JJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `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;;
459*)
460 ECHO_N='-n';;
77008252
JJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
77008252 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
77008252 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
77008252 472 as_ln_s='ln -s'
5213506e
RW
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'
77008252 483 fi
77008252
JJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
77008252
JJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
77008252
JJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
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
516 '
517fi
518as_executable_p=$as_test_x
77008252
JJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
1cf3d07d
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
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
565
566if 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
575 fi
576 done
577 fi
578
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
582 :
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'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
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
599 fi
600 done
601 IFS="$lt_save_ifs"
602
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
625 :
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=:
643
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
648 fi
649 prev="$cmd"
650 done
651
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
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
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.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
5213506e
RW
676exec 7<&0 </dev/null 6>&1
677
77008252
JJ
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
77008252
JJ
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
5213506e 687ac_clean_files=
77008252 688ac_config_libobj_dir=.
5213506e 689LIBOBJS=
77008252
JJ
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
77008252
JJ
694
695# Identity of this package.
696PACKAGE_NAME='libssp'
697PACKAGE_TARNAME='libssp'
698PACKAGE_VERSION='1.0'
699PACKAGE_STRING='libssp 1.0'
700PACKAGE_BUGREPORT=''
5213506e 701PACKAGE_URL=''
77008252
JJ
702
703ac_unique_file="ssp.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
5213506e 707#ifdef HAVE_SYS_TYPES_H
77008252
JJ
708# include <sys/types.h>
709#endif
5213506e 710#ifdef HAVE_SYS_STAT_H
77008252
JJ
711# include <sys/stat.h>
712#endif
5213506e 713#ifdef STDC_HEADERS
77008252
JJ
714# include <stdlib.h>
715# include <stddef.h>
716#else
5213506e 717# ifdef HAVE_STDLIB_H
77008252
JJ
718# include <stdlib.h>
719# endif
720#endif
5213506e
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
77008252
JJ
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
5213506e 727#ifdef HAVE_STRINGS_H
77008252
JJ
728# include <strings.h>
729#endif
5213506e 730#ifdef HAVE_INTTYPES_H
77008252 731# include <inttypes.h>
77008252 732#endif
5213506e
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
77008252
JJ
737# include <unistd.h>
738#endif"
739
5213506e
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744toolexeclibdir
745toolexecdir
746enable_static
747enable_shared
748OTOOL64
749OTOOL
750LIPO
751NMEDIT
752DSYMUTIL
753lt_ECHO
754RANLIB
755AR
756OBJDUMP
757LN_S
758NM
759ac_ct_DUMPBIN
760DUMPBIN
761LD
762FGREP
763SED
764LIBTOOL
765ssp_have_usable_vsnprintf
766EGREP
767GREP
768LIBSSP_USE_SYMVER_FALSE
769LIBSSP_USE_SYMVER_TRUE
770CPP
771am__fastdepCC_FALSE
772am__fastdepCC_TRUE
773CCDEPMODE
774AMDEPBACKSLASH
775AMDEP_FALSE
776AMDEP_TRUE
777am__quote
778am__include
779DEPDIR
780OBJEXT
781EXEEXT
782ac_ct_CC
783CPPFLAGS
784LDFLAGS
785CFLAGS
786CC
787multi_basedir
788MAINT
789MAINTAINER_MODE_FALSE
790MAINTAINER_MODE_TRUE
791am__untar
792am__tar
793AMTAR
794am__leading_dot
795SET_MAKE
796AWK
797mkdir_p
798MKDIR_P
799INSTALL_STRIP_PROGRAM
800STRIP
801install_sh
802MAKEINFO
803AUTOHEADER
804AUTOMAKE
805AUTOCONF
806ACLOCAL
807VERSION
808PACKAGE
809CYGPATH_W
810am__isrc
811INSTALL_DATA
812INSTALL_SCRIPT
813INSTALL_PROGRAM
814target_noncanonical
815target_os
816target_vendor
817target_cpu
818target
819host_os
820host_vendor
821host_cpu
822host
823build_os
824build_vendor
825build_cpu
826build
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846localstatedir
847sharedstatedir
848sysconfdir
849datadir
850datarootdir
851libexecdir
852sbindir
853bindir
854program_transform_name
855prefix
856exec_prefix
857PACKAGE_URL
858PACKAGE_BUGREPORT
859PACKAGE_STRING
860PACKAGE_VERSION
861PACKAGE_TARNAME
862PACKAGE_NAME
863PATH_SEPARATOR
864SHELL'
77008252 865ac_subst_files=''
5213506e
RW
866ac_user_opts='
867enable_option_checking
868enable_version_specific_runtime_libs
869enable_maintainer_mode
870enable_multilib
871enable_dependency_tracking
872enable_shared
873enable_static
874with_pic
875enable_fast_install
876with_gnu_ld
877enable_libtool_lock
878'
879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CPP
883CPPFLAGS'
884
77008252
JJ
885
886# Initialize some variables set by options.
887ac_init_help=
888ac_init_version=false
5213506e
RW
889ac_unrecognized_opts=
890ac_unrecognized_sep=
77008252
JJ
891# The variables have the same names as the options, with
892# dashes changed to underlines.
893cache_file=/dev/null
894exec_prefix=NONE
895no_create=
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
904verbose=
905x_includes=NONE
906x_libraries=NONE
907
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.
5213506e 913# (The list follows the same order as the GNU Coding Standards.)
77008252
JJ
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
5213506e
RW
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
77008252
JJ
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
77008252
JJ
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
5213506e
RW
924docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
77008252
JJ
933
934ac_prev=
5213506e 935ac_dashdash=
77008252
JJ
936for ac_option
937do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
5213506e 940 eval $ac_prev=\$ac_option
77008252
JJ
941 ac_prev=
942 continue
943 fi
944
5213506e
RW
945 case $ac_option in
946 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *) ac_optarg=yes ;;
948 esac
77008252
JJ
949
950 # Accept the important Cygnus configure options, so we can diagnose typos.
951
5213506e
RW
952 case $ac_dashdash$ac_option in
953 --)
954 ac_dashdash=yes ;;
77008252
JJ
955
956 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 ac_prev=bindir ;;
958 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 bindir=$ac_optarg ;;
960
961 -build | --build | --buil | --bui | --bu)
962 ac_prev=build_alias ;;
963 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964 build_alias=$ac_optarg ;;
965
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 ;;
972
973 --config-cache | -C)
974 cache_file=config.cache ;;
975
5213506e 976 -datadir | --datadir | --datadi | --datad)
77008252 977 ac_prev=datadir ;;
5213506e 978 -datadir=* | --datadir=* | --datadi=* | --datad=*)
77008252
JJ
979 datadir=$ac_optarg ;;
980
5213506e
RW
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 ;;
987
77008252 988 -disable-* | --disable-*)
5213506e 989 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
77008252 990 # Reject names that are not valid shell variable names.
5213506e
RW
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
996 *"
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 ;;
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
77008252
JJ
1013
1014 -enable-* | --enable-*)
5213506e 1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
77008252 1016 # Reject names that are not valid shell variable names.
5213506e
RW
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
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
77008252 1027 esac
5213506e 1028 eval enable_$ac_useropt=\$ac_optarg ;;
77008252
JJ
1029
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 ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
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 ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
5213506e
RW
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 ;;
1060
77008252
JJ
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 ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
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 ;;
1084
5213506e
RW
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
77008252 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1091 | --localstate | --localstat | --localsta | --localst | --locals)
77008252
JJ
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
77008252
JJ
1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
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 ;;
1113
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 ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
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 ;;
1134
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 ;;
1141
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 ;;
1158
5213506e
RW
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
77008252
JJ
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
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 ;;
1178
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 ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
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 ;;
1206
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 ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
5213506e 1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
77008252 1220 # Reject names that are not valid shell variable names.
5213506e
RW
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
1226 *"
1227"with_$ac_useropt"
1228"*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
77008252 1231 esac
5213506e 1232 eval with_$ac_useropt=\$ac_optarg ;;
77008252
JJ
1233
1234 -without-* | --without-*)
5213506e 1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
77008252 1236 # Reject names that are not valid shell variable names.
5213506e
RW
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
1242 *"
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 ;;
77008252
JJ
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
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 ;;
1260
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 ;;
1267
5213506e
RW
1268 -*) as_fn_error "unrecognized option: \`$ac_option'
1269Try \`$0 --help' for more information."
77008252
JJ
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
5213506e
RW
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
77008252
JJ
1280 export $ac_envvar ;;
1281
1282 *)
1283 # FIXME: should be removed in autoconf 3.0.
5213506e 1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
77008252 1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
77008252
JJ
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 ;;
1289
1290 esac
1291done
1292
1293if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1295 as_fn_error "missing argument to $ac_option"
77008252
JJ
1296fi
1297
5213506e
RW
1298if 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 ;;
77008252 1303 esac
5213506e 1304fi
77008252 1305
5213506e
RW
1306# Check all directory arguments for consistency.
1307for 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
77008252 1311do
5213506e
RW
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.
77008252 1320 case $ac_val in
5213506e
RW
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
77008252 1323 esac
5213506e 1324 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
77008252
JJ
1325done
1326
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.
1330build=$build_alias
1331host=$host_alias
1332target=$target_alias
1333
1334# FIXME: To remove some day.
1335if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
5213506e 1338 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
77008252
JJ
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
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
1349
1350
5213506e
RW
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error "working directory cannot be determined"
1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error "pwd does not report name of working directory"
1357
1358
77008252
JJ
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
5213506e
RW
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/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
77008252 1386 srcdir=$ac_confdir
5213506e 1387 if test ! -r "$srcdir/$ac_unique_file"; then
77008252
JJ
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
5213506e
RW
1393if 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"
1396fi
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
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.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
1411for 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}
1416done
77008252
JJ
1417
1418#
1419# Report the --help message.
1420#
1421if 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.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
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 \`..']
1444
77008252
JJ
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1447 [$ac_default_prefix]
77008252 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1449 [PREFIX]
77008252
JJ
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
5213506e
RW
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]
77008252
JJ
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program 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
1486
1487System 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
1492fi
1493
1494if 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
1499
1500Optional Features:
5213506e 1501 --disable-option-checking ignore unrecognized --enable/--with options
77008252
JJ
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
5213506e
RW
1510 --enable-shared[=PKGS] build shared libraries [default=yes]
1511 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
77008252
JJ
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
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]
77008252
JJ
1522
1523Some 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>
5213506e
RW
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>
77008252
JJ
1531 CPP C preprocessor
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
5213506e 1536Report bugs to the package provider.
77008252 1537_ACEOF
5213506e 1538ac_status=$?
77008252
JJ
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
77008252 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
77008252
JJ
1547 ac_builddir=.
1548
5213506e
RW
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
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 ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
77008252
JJ
1564
1565case $srcdir in
5213506e 1566 .) # We are building in place.
77008252 1567 ac_srcdir=.
5213506e
RW
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
77008252 1571 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
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 ;;
77008252 1578esac
5213506e
RW
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
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
77008252 1589 else
5213506e
RW
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; }
77008252
JJ
1593 done
1594fi
1595
5213506e 1596test -n "$ac_init_help" && exit $ac_status
77008252
JJ
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599libssp configure 1.0
5213506e 1600generated by GNU Autoconf 2.64
77008252 1601
5213506e 1602Copyright (C) 2009 Free Software Foundation, Inc.
77008252
JJ
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
5213506e 1606 exit
77008252 1607fi
77008252 1608
5213506e
RW
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
77008252 1612
5213506e
RW
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
77008252 1617{
5213506e
RW
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"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval 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
1633 fi
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
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
77008252 1643
5213506e
RW
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 return $ac_retval
77008252 1648
5213506e 1649} # ac_fn_c_try_compile
77008252 1650
5213506e
RW
1651# ac_fn_c_try_cpp LINENO
1652# ----------------------
1653# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_cpp ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval 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
1670 fi
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
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
77008252 1680
5213506e
RW
1681 ac_retval=1
1682fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
77008252 1685
5213506e
RW
1686} # ac_fn_c_try_cpp
1687
1688# ac_fn_c_try_link LINENO
1689# -----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_link ()
1692{
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"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval 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
1708 fi
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
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
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
1731
1732} # ac_fn_c_try_link
1733
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.
1739ac_fn_c_check_header_mongrel ()
1740{
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; }
1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747fi
1748eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751else
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; }
1755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761 ac_header_compiler=yes
1762else
1763 ac_header_compiler=no
1764fi
1765rm -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; }
1768
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; }
1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774#include <$2>
1775_ACEOF
1776if ac_fn_c_try_cpp "$LINENO"; then :
1777 ac_header_preproc=yes
1778else
1779 ac_header_preproc=no
1780fi
1781rm -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; }
1784
1785# So? What about this header?
1786case $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;}
1792 ;;
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;}
1804 ;;
1805esac
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810else
1811 eval "$3=\$ac_header_compiler"
1812fi
1813eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816fi
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_header_mongrel
1820
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.
1825ac_fn_c_try_run ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval 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;;
1842esac
1843eval 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
1850else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=$ac_status
1856fi
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
1860
1861} # ac_fn_c_try_run
1862
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.
1867ac_fn_c_check_header_compile ()
1868{
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; }
1872if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h. */
1877$4
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882else
1883 eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval 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;}
1891
1892} # ac_fn_c_check_header_compile
1893
1894# ac_fn_c_check_func LINENO FUNC VAR
1895# ----------------------------------
1896# Tests whether FUNC exists, setting the cache variable VAR accordingly
1897ac_fn_c_check_func ()
1898{
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; }
1902if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904else
1905 if test x$gcc_no_link = xyes; then
1906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1907fi
1908cat 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
1913
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. */
1918
1919#ifdef __STDC__
1920# include <limits.h>
1921#else
1922# include <assert.h>
1923#endif
1924
1925#undef $2
1926
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
1931extern "C"
1932#endif
1933char $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
1938choke me
1939#endif
1940
1941int
1942main ()
1943{
1944return $2 ();
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951else
1952 eval "$3=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956fi
1957eval 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;}
1961
1962} # ac_fn_c_check_func
1963cat >config.log <<_ACEOF
1964This file contains any messages produced by compilers while
1965running configure, to aid debugging if configure makes a mistake.
1966
1967It was created by libssp $as_me 1.0, which was
1968generated by GNU Autoconf 2.64. Invocation command line was
1969
1970 $ $0 $@
1971
1972_ACEOF
1973exec 5>>config.log
1974{
1975cat <<_ASUNAME
1976## --------- ##
1977## Platform. ##
1978## --------- ##
1979
1980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
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`
1988
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`
1996
1997_ASUNAME
1998
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002 IFS=$as_save_IFS
77008252 2003 test -z "$as_dir" && as_dir=.
5213506e
RW
2004 $as_echo "PATH: $as_dir"
2005 done
2006IFS=$as_save_IFS
77008252
JJ
2007
2008} >&5
2009
2010cat >&5 <<_ACEOF
2011
2012
2013## ----------- ##
2014## Core tests. ##
2015## ----------- ##
2016
2017_ACEOF
2018
2019
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.
2025ac_configure_args=
2026ac_configure_args0=
2027ac_configure_args1=
77008252
JJ
2028ac_must_keep_next=false
2029for ac_pass in 1 2
2030do
2031 for ac_arg
2032 do
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 ;;
5213506e
RW
2038 *\'*)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
77008252
JJ
2040 esac
2041 case $ac_pass in
5213506e 2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
77008252 2043 2)
5213506e 2044 as_fn_append ac_configure_args1 " '$ac_arg'"
77008252
JJ
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
2056 ;;
2057 -* ) ac_must_keep_next=true ;;
2058 esac
2059 fi
5213506e 2060 as_fn_append ac_configure_args " '$ac_arg'"
77008252
JJ
2061 ;;
2062 esac
2063 done
2064done
5213506e
RW
2065{ ac_configure_args0=; unset ac_configure_args0;}
2066{ ac_configure_args1=; unset ac_configure_args1;}
77008252
JJ
2067
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.
5213506e
RW
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.
77008252
JJ
2073trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2075 {
2076 echo
2077
2078 cat <<\_ASBOX
2079## ---------------- ##
2080## Cache variables. ##
2081## ---------------- ##
2082_ASBOX
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2085(
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
77008252 2101 (set) 2>&1 |
5213506e
RW
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
77008252 2104 sed -n \
5213506e
RW
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
77008252 2108 *)
5213506e 2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
77008252 2110 ;;
5213506e
RW
2111 esac |
2112 sort
2113)
77008252
JJ
2114 echo
2115
2116 cat <<\_ASBOX
2117## ----------------- ##
2118## Output variables. ##
2119## ----------------- ##
2120_ASBOX
2121 echo
2122 for ac_var in $ac_subst_vars
2123 do
5213506e
RW
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'\''"
77008252
JJ
2129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
2133 cat <<\_ASBOX
5213506e
RW
2134## ------------------- ##
2135## File substitutions. ##
2136## ------------------- ##
77008252
JJ
2137_ASBOX
2138 echo
2139 for ac_var in $ac_subst_files
2140 do
5213506e
RW
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'\''"
77008252
JJ
2146 done | sort
2147 echo
2148 fi
2149
2150 if test -s confdefs.h; then
2151 cat <<\_ASBOX
2152## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##
2155_ASBOX
2156 echo
5213506e 2157 cat confdefs.h
77008252
JJ
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
5213506e
RW
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
77008252 2163 } >&5
5213506e
RW
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
77008252 2166 exit $exit_status
5213506e 2167' 0
77008252 2168for ac_signal in 1 2 13 15; do
5213506e 2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
77008252
JJ
2170done
2171ac_signal=0
2172
2173# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2174rm -f -r conftest* confdefs.h
2175
2176$as_echo "/* confdefs.h */" > confdefs.h
77008252
JJ
2177
2178# Predefined preprocessor variables.
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_NAME "$PACKAGE_NAME"
2182_ACEOF
2183
77008252
JJ
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186_ACEOF
2187
77008252
JJ
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_VERSION "$PACKAGE_VERSION"
2190_ACEOF
2191
77008252
JJ
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_STRING "$PACKAGE_STRING"
2194_ACEOF
2195
77008252
JJ
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198_ACEOF
2199
5213506e
RW
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_URL "$PACKAGE_URL"
2202_ACEOF
2203
77008252
JJ
2204
2205# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2206# Prefer an explicitly selected file to automatically selected ones.
2207ac_site_file1=NONE
2208ac_site_file2=NONE
2209if test -n "$CONFIG_SITE"; then
2210 ac_site_file1=$CONFIG_SITE
2211elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2217fi
2218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219do
2220 test "x$ac_site_file" = xNONE && continue
77008252 2221 if test -r "$ac_site_file"; then
5213506e
RW
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;}
77008252
JJ
2224 sed 's/^/| /' "$ac_site_file" >&5
2225 . "$ac_site_file"
2226 fi
2227done
2228
2229if 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
5213506e
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234$as_echo "$as_me: loading cache $cache_file" >&6;}
77008252 2235 case $cache_file in
5213506e
RW
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
77008252
JJ
2238 esac
2239 fi
2240else
5213506e
RW
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242$as_echo "$as_me: creating cache $cache_file" >&6;}
77008252
JJ
2243 >$cache_file
2244fi
2245
2246# Check that the precious variables saved in the cache have kept the same
2247# value.
2248ac_cache_corrupted=false
5213506e 2249for ac_var in $ac_precious_vars; do
77008252
JJ
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
77008252
JJ
2254 case $ac_old_set,$ac_new_set in
2255 set,)
5213506e
RW
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;}
77008252
JJ
2258 ac_cache_corrupted=: ;;
2259 ,set)
5213506e
RW
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;}
77008252
JJ
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
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
2277 fi
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;}
77008252
JJ
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
5213506e 2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
77008252
JJ
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.
5213506e 2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
77008252
JJ
2293 esac
2294 fi
2295done
2296if $ac_cache_corrupted; then
5213506e
RW
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
77008252 2302fi
5213506e
RW
2303## -------------------- ##
2304## Main body of script. ##
2305## -------------------- ##
77008252
JJ
2306
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314
2315
2316
2317
77008252 2318ac_aux_dir=
5213506e
RW
2319for 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
2325 fi
2326 done
77008252
JJ
2327done
2328if test -z "$ac_aux_dir"; then
5213506e 2329 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
77008252 2330fi
5213506e
RW
2331
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.
2336ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2339
77008252
JJ
2340
2341# Make sure we can run config.sub.
5213506e
RW
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
2344
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346$as_echo_n "checking build system type... " >&6; }
2347if test "${ac_cv_build+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349else
2350 ac_build_alias=$build_alias
2351test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353test "x$ac_build_alias" = x &&
2354 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355ac_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
2357
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360$as_echo "$ac_cv_build" >&6; }
2361case $ac_cv_build in
2362*-*-*) ;;
2363*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364esac
77008252 2365build=$ac_cv_build
5213506e
RW
2366ac_save_IFS=$IFS; IFS='-'
2367set x $ac_cv_build
2368shift
2369build_cpu=$1
2370build_vendor=$2
2371shift; shift
2372# Remember, the first character of IFS is used to create $*,
2373# except with old shells:
2374build_os=$*
2375IFS=$ac_save_IFS
2376case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
77008252
JJ
2377
2378
5213506e
RW
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380$as_echo_n "checking host system type... " >&6; }
2381if test "${ac_cv_host+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
77008252 2383else
5213506e
RW
2384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386else
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
2389fi
77008252
JJ
2390
2391fi
5213506e
RW
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393$as_echo "$ac_cv_host" >&6; }
2394case $ac_cv_host in
2395*-*-*) ;;
2396*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397esac
77008252 2398host=$ac_cv_host
5213506e
RW
2399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_host
2401shift
2402host_cpu=$1
2403host_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407host_os=$*
2408IFS=$ac_save_IFS
2409case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
77008252
JJ
2410
2411
5213506e
RW
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413$as_echo_n "checking target system type... " >&6; }
2414if test "${ac_cv_target+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416else
2417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
77008252 2419else
5213506e
RW
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
2422fi
77008252
JJ
2423
2424fi
5213506e
RW
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426$as_echo "$ac_cv_target" >&6; }
2427case $ac_cv_target in
2428*-*-*) ;;
2429*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430esac
77008252 2431target=$ac_cv_target
5213506e
RW
2432ac_save_IFS=$IFS; IFS='-'
2433set x $ac_cv_target
2434shift
2435target_cpu=$1
2436target_vendor=$2
2437shift; shift
2438# Remember, the first character of IFS is used to create $*,
2439# except with old shells:
2440target_os=$*
2441IFS=$ac_save_IFS
2442case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
77008252
JJ
2443
2444
2445# The aliases save the names the user supplied, while $host etc.
2446# will get canonicalized.
2447test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
5213506e 2451
f2b5129c
MM
2452 case ${build_alias} in
2453 "") build_noncanonical=${build} ;;
2454 *) build_noncanonical=${build_alias} ;;
2455esac
2456
2457 case ${host_alias} in
2458 "") host_noncanonical=${build_noncanonical} ;;
2459 *) host_noncanonical=${host_alias} ;;
2460esac
2461
2462 case ${target_alias} in
2463 "") target_noncanonical=${host_noncanonical} ;;
2464 *) target_noncanonical=${target_alias} ;;
2465esac
2466
2467
2468
77008252 2469
5213506e
RW
2470am__api_version='1.11'
2471
77008252
JJ
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.
38d24731 2485# Reject install programs that cannot install multiple files.
5213506e
RW
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; }
77008252 2488if test -z "$INSTALL"; then
5213506e
RW
2489if test "${ac_cv_path_install+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
77008252
JJ
2491else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
5213506e
RW
2497 # Account for people who put trailing slashes in PATH elements.
2498case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
77008252 2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
77008252
JJ
2502 /usr/ucb/* ) ;;
2503 *)
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
5213506e 2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
77008252
JJ
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.
2513 :
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.
2517 :
2518 else
38d24731
RW
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
2530 fi
77008252
JJ
2531 fi
2532 fi
2533 done
2534 done
2535 ;;
2536esac
5213506e
RW
2537
2538 done
2539IFS=$as_save_IFS
77008252 2540
38d24731 2541rm -rf conftest.one conftest.two conftest.dir
77008252
JJ
2542
2543fi
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2546 else
38d24731
RW
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
77008252 2549 # break other packages using the cache if that directory is
38d24731 2550 # removed, or if the value is a relative name.
77008252
JJ
2551 INSTALL=$ac_install_sh
2552 fi
2553fi
5213506e
RW
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555$as_echo "$INSTALL" >&6; }
77008252
JJ
2556
2557# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558# It thinks the first close brace ends the variable substitution.
2559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
5213506e
RW
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; }
77008252
JJ
2567# Just in case
2568sleep 1
2569echo timestamp > conftest.file
5213506e
RW
2570# Reject unsafe characters in $srcdir or the absolute working directory
2571# name. Accept space and tab only in the latter.
2572am_lf='
2573'
2574case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2577esac
2578case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581esac
2582
77008252
JJ
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).
2588if (
5213506e 2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
77008252
JJ
2590 if test "$*" = "X"; then
2591 # -L didn't work.
5213506e 2592 set X `ls -t "$srcdir/configure" conftest.file`
77008252
JJ
2593 fi
2594 rm -f conftest.file
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2597
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".
5213506e
RW
2602 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2603alias in your environment" "$LINENO" 5
77008252
JJ
2604 fi
2605
2606 test "$2" = conftest.file
2607 )
2608then
2609 # Ok.
2610 :
2611else
5213506e
RW
2612 as_fn_error "newly created file is older than distributed files!
2613Check your system clock" "$LINENO" 5
77008252 2614fi
5213506e
RW
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
77008252 2617test "$program_prefix" != NONE &&
5213506e 2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
77008252
JJ
2619# Use a double $ so make ignores it.
2620test "$program_suffix" != NONE &&
5213506e
RW
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622# Double any \ or $.
77008252 2623# By default was `s,x,x', remove it if useless.
5213506e
RW
2624ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
77008252
JJ
2626
2627# expand $ac_aux_dir to an absolute path
2628am_aux_dir=`cd $ac_aux_dir && pwd`
2629
5213506e
RW
2630if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 *)
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2637fi
77008252
JJ
2638# Use eval to expand $SHELL
2639if eval "$MISSING --run true"; then
2640 am_missing_run="$MISSING --run "
2641else
2642 am_missing_run=
5213506e
RW
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;}
2645fi
2646
2647if test x"${install_sh}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 *)
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2654fi
2655
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.
2660if 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.
2663set 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; }
2666if test "${ac_cv_prog_STRIP+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
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
2682 fi
2683done
2684 done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689STRIP=$ac_cv_prog_STRIP
2690if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692$as_echo "$STRIP" >&6; }
2693else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698
2699fi
2700if 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.
2703set 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; }
2706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
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
2722 fi
2723done
77008252 2724 done
5213506e
RW
2725IFS=$as_save_IFS
2726
2727fi
2728fi
2729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730if 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; }
2733else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
2736fi
2737
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
77008252 2740 else
5213506e
RW
2741 case $cross_compiling:$ac_tool_warned in
2742yes:)
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;}
2745ac_tool_warned=yes ;;
2746esac
2747 STRIP=$ac_ct_STRIP
77008252 2748 fi
5213506e
RW
2749else
2750 STRIP="$ac_cv_prog_STRIP"
2751fi
2752
77008252 2753fi
5213506e
RW
2754INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
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; }
2758if test -z "$MKDIR_P"; then
2759 if test "${ac_cv_path_mkdir+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764do
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
2780IFS=$as_save_IFS
2781
2782fi
2783
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"
2793 fi
2794fi
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796$as_echo "$MKDIR_P" >&6; }
2797
2798mkdir_p="$MKDIR_P"
2799case $mkdir_p in
2800 [\\/$]* | ?:[\\/]*) ;;
2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802esac
77008252
JJ
2803
2804for ac_prog in gawk mawk nawk awk
2805do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807set dummy $ac_prog; ac_word=$2
5213506e
RW
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if test "${ac_cv_prog_AWK+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
77008252
JJ
2812else
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 2823 ac_cv_prog_AWK="$ac_prog"
5213506e 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
2825 break 2
2826 fi
2827done
5213506e
RW
2828 done
2829IFS=$as_save_IFS
77008252
JJ
2830
2831fi
2832fi
2833AWK=$ac_cv_prog_AWK
2834if test -n "$AWK"; then
5213506e
RW
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836$as_echo "$AWK" >&6; }
77008252 2837else
5213506e
RW
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
77008252
JJ
2840fi
2841
5213506e 2842
77008252
JJ
2843 test -n "$AWK" && break
2844done
2845
5213506e
RW
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; }
2848set x ${MAKE-make}
2849ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
77008252
JJ
2852else
2853 cat >conftest.make <<\_ACEOF
5213506e 2854SHELL = /bin/sh
77008252 2855all:
5213506e 2856 @echo '@@@%%%=$(MAKE)=@@@%%%'
77008252
JJ
2857_ACEOF
2858# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
2859case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 *@@@%%%=?*=@@@%%%*)
2861 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 *)
2863 eval ac_cv_prog_make_${ac_make}_set=no;;
2864esac
77008252
JJ
2865rm -f conftest.make
2866fi
5213506e
RW
2867if 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; }
77008252
JJ
2870 SET_MAKE=
2871else
5213506e
RW
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
77008252
JJ
2874 SET_MAKE="MAKE=${MAKE-make}"
2875fi
2876
2877rm -rf .tst 2>/dev/null
2878mkdir .tst 2>/dev/null
2879if test -d .tst; then
2880 am__leading_dot=.
2881else
2882 am__leading_dot=_
2883fi
2884rmdir .tst 2>/dev/null
2885
5213506e
RW
2886if 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
2893 fi
77008252
JJ
2894fi
2895
2896# test whether we have cygpath
2897if 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
2902 fi
2903fi
2904
2905
2906# Define the identity of the package.
2907 PACKAGE='libssp'
2908 VERSION='1.0'
2909
2910
2911cat >>confdefs.h <<_ACEOF
2912#define PACKAGE "$PACKAGE"
2913_ACEOF
2914
2915
2916cat >>confdefs.h <<_ACEOF
2917#define VERSION "$VERSION"
2918_ACEOF
2919
2920# Some tools Automake needs.
2921
2922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
77008252
JJ
2936# We need awk for the "check" target. The system "awk" is bad on
2937# some platforms.
2938# Always define AMTAR for backward compatibility.
2939
2940AMTAR=${AMTAR-"${am_missing_run}tar"}
2941
2942am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943
2944
2945
2946
2947
2948
5213506e
RW
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.
2952if test "${enable_version_specific_runtime_libs+set}" = set; then :
2953 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
77008252
JJ
2954 yes) version_specific_libs=yes ;;
2955 no) version_specific_libs=no ;;
5213506e 2956 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
77008252
JJ
2957 esac
2958else
2959 version_specific_libs=no
5213506e
RW
2960fi
2961
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2963$as_echo "$version_specific_libs" >&6; }
77008252 2964
5213506e
RW
2965
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.
2969if test "${enable_maintainer_mode+set}" = set; then :
2970 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
77008252
JJ
2971else
2972 USE_MAINTAINER_MODE=no
5213506e 2973fi
77008252 2974
5213506e
RW
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
77008252
JJ
2978 MAINTAINER_MODE_TRUE=
2979 MAINTAINER_MODE_FALSE='#'
2980else
2981 MAINTAINER_MODE_TRUE='#'
2982 MAINTAINER_MODE_FALSE=
2983fi
2984
2985 MAINT=$MAINTAINER_MODE_TRUE
2986
2987
2988
2989
be14fe72 2990
77008252 2991# Default to --enable-multilib
5213506e
RW
2992# Check whether --enable-multilib was given.
2993if test "${enable_multilib+set}" = set; then :
2994 enableval=$enable_multilib; case "$enableval" in
77008252
JJ
2995 yes) multilib=yes ;;
2996 no) multilib=no ;;
5213506e 2997 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
77008252
JJ
2998 esac
2999else
3000 multilib=yes
5213506e
RW
3001fi
3002
77008252
JJ
3003
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.
3007
3008if test "$srcdir" = "."; then
3009 if test "$with_target_subdir" != "."; then
3010 multi_basedir="$srcdir/$with_multisrctop../.."
3011 else
3012 multi_basedir="$srcdir/$with_multisrctop.."
3013 fi
3014else
3015 multi_basedir="$srcdir/.."
3016fi
3017
3018
5b043f08
GK
3019# Even if the default multilib is not a cross compilation,
3020# it may be that some of the other multilibs are.
3021if test $cross_compiling = no && test $multilib = yes \
3022 && test "x${with_multisubdir}" != x ; then
3023 cross_compiling=maybe
3024fi
3025
5213506e 3026ac_config_commands="$ac_config_commands default-1"
77008252
JJ
3027
3028
3029target_alias=${target_alias-$host_alias}
3030
3031
5213506e 3032ac_config_headers="$ac_config_headers config.h"
77008252
JJ
3033
3034
3035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040
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.
3045
3046
3047
3048ac_ext=c
3049ac_cpp='$CPP $CPPFLAGS'
3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053if 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.
3055set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if test "${ac_cv_prog_CC+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
77008252
JJ
3060else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 3071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3073 break 2
3074 fi
3075done
5213506e
RW
3076 done
3077IFS=$as_save_IFS
77008252
JJ
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
5213506e
RW
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
77008252 3085else
5213506e
RW
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
77008252
JJ
3088fi
3089
5213506e 3090
77008252
JJ
3091fi
3092if 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.
3095set dummy gcc; ac_word=$2
5213506e
RW
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
77008252
JJ
3100else
3101 if test -n "$ac_ct_CC"; then
3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 3111 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3113 break 2
3114 fi
3115done
5213506e
RW
3116 done
3117IFS=$as_save_IFS
77008252
JJ
3118
3119fi
3120fi
3121ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122if test -n "$ac_ct_CC"; then
5213506e
RW
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124$as_echo "$ac_ct_CC" >&6; }
77008252 3125else
5213506e
RW
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
77008252
JJ
3128fi
3129
5213506e
RW
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134yes:)
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;}
3137ac_tool_warned=yes ;;
3138esac
3139 CC=$ac_ct_CC
3140 fi
77008252
JJ
3141else
3142 CC="$ac_cv_prog_CC"
3143fi
3144
3145if test -z "$CC"; then
5213506e
RW
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.
77008252 3148set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
77008252
JJ
3153else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 3164 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3166 break 2
3167 fi
3168done
5213506e
RW
3169 done
3170IFS=$as_save_IFS
77008252
JJ
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
5213506e
RW
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
77008252 3178else
5213506e
RW
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
77008252
JJ
3181fi
3182
77008252 3183
5213506e 3184 fi
77008252
JJ
3185fi
3186if test -z "$CC"; then
3187 # Extract the first word of "cc", so it can be a program name with args.
3188set dummy cc; ac_word=$2
5213506e
RW
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if test "${ac_cv_prog_CC+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
77008252
JJ
3193else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197 ac_prog_rejected=no
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252
JJ
3205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206 ac_prog_rejected=yes
3207 continue
3208 fi
3209 ac_cv_prog_CC="cc"
5213506e 3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3211 break 2
3212 fi
3213done
5213506e
RW
3214 done
3215IFS=$as_save_IFS
77008252
JJ
3216
3217if 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+' '}$@"
3227 fi
3228fi
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
5213506e
RW
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
77008252 3235else
5213506e
RW
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
77008252
JJ
3238fi
3239
5213506e 3240
77008252
JJ
3241fi
3242if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
5213506e 3244 for ac_prog in cl.exe
77008252
JJ
3245 do
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if test "${ac_cv_prog_CC+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
77008252
JJ
3252else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3265 break 2
3266 fi
3267done
5213506e
RW
3268 done
3269IFS=$as_save_IFS
77008252
JJ
3270
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
5213506e
RW
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276$as_echo "$CC" >&6; }
77008252 3277else
5213506e
RW
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
77008252
JJ
3280fi
3281
5213506e 3282
77008252
JJ
3283 test -n "$CC" && break
3284 done
3285fi
3286if test -z "$CC"; then
3287 ac_ct_CC=$CC
5213506e 3288 for ac_prog in cl.exe
77008252
JJ
3289do
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291set dummy $ac_prog; ac_word=$2
5213506e
RW
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
3294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
77008252
JJ
3296else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 3307 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
3309 break 2
3310 fi
3311done
5213506e
RW
3312 done
3313IFS=$as_save_IFS
77008252
JJ
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
5213506e
RW
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320$as_echo "$ac_ct_CC" >&6; }
77008252 3321else
5213506e
RW
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
77008252
JJ
3324fi
3325
5213506e 3326
77008252
JJ
3327 test -n "$ac_ct_CC" && break
3328done
3329
5213506e
RW
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334yes:)
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;}
3337ac_tool_warned=yes ;;
3338esac
3339 CC=$ac_ct_CC
3340 fi
77008252
JJ
3341fi
3342
3343fi
3344
3345
5213506e
RW
3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error "no acceptable C compiler found in \$PATH
3349See \`config.log' for more details." "$LINENO" 5; }
77008252
JJ
3350
3351# Provide some information about the compiler.
5213506e
RW
3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353set X $ac_compile
3354ac_compiler=$2
3355for ac_option in --version -v -V -qversion; do
3356 { { ac_try="$ac_compiler $ac_option >&5"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval 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
77008252 3364 ac_status=$?
5213506e
RW
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
3371 fi
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374done
77008252 3375
5213506e 3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
3377/* end confdefs.h. */
3378
be14fe72
JM
3379int
3380main ()
3381{
3382
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387# FIXME: Cleanup?
5213506e 3388if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
be14fe72
JM
3389 (eval $ac_link) 2>&5
3390 ac_status=$?
5213506e
RW
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
be14fe72
JM
3393 gcc_no_link=no
3394else
3395 gcc_no_link=yes
3396fi
be14fe72
JM
3397if 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=
3403else
5213506e 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be14fe72
JM
3405/* end confdefs.h. */
3406
77008252
JJ
3407int
3408main ()
3409{
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415ac_clean_files_save=$ac_clean_files
5213506e 3416ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
77008252
JJ
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.
5213506e
RW
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; }
3422ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424# The possible output files:
3425ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427ac_rmfiles=
3428for ac_file in $ac_files
3429do
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
3434done
3435rm -f $ac_rmfiles
3436
3437if { { ac_try="$ac_link_default"
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval 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
77008252 3445 ac_status=$?
5213506e
RW
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.
3453for ac_file in $ac_files ''
77008252
JJ
3454do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
5213506e 3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
77008252
JJ
3458 ;;
3459 [ab].out )
3460 # We found the default executable, but exeext='' is most
3461 # certainly right.
3462 break;;
3463 *.* )
5213506e
RW
3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465 then :; else
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 fi
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.
77008252
JJ
3473 break;;
3474 * )
3475 break;;
3476 esac
3477done
5213506e
RW
3478test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
77008252 3480else
5213506e
RW
3481 ac_file=''
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484$as_echo "$ac_file" >&6; }
3485if test -z "$ac_file"; then :
3486 $as_echo "$as_me: failed program was:" >&5
77008252
JJ
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
5213506e
RW
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
3492as_fn_error "C compiler cannot create executables
3493See \`config.log' for more details." "$LINENO" 5; }; }
77008252 3494fi
77008252 3495ac_exeext=$ac_cv_exeext
77008252 3496
5213506e 3497# Check that the compiler produces executables we can run. If not, either
77008252 3498# the compiler is broken, or we cross compile.
5213506e
RW
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; }
77008252
JJ
3501# If not cross compiling, check that we can run a simple program.
3502if test "$cross_compiling" != yes; then
3503 if { ac_try='./$ac_file'
5213506e
RW
3504 { { case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_try") 2>&5
77008252 3511 ac_status=$?
5213506e
RW
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; }; then
77008252
JJ
3514 cross_compiling=no
3515 else
3516 if test "$cross_compiling" = maybe; then
3517 cross_compiling=yes
3518 else
5213506e
RW
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error "cannot run C compiled programs.
77008252 3522If you meant to cross compile, use \`--host'.
5213506e 3523See \`config.log' for more details." "$LINENO" 5; }
77008252
JJ
3524 fi
3525 fi
3526fi
5213506e
RW
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528$as_echo "yes" >&6; }
77008252 3529
5213506e 3530rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
77008252 3531ac_clean_files=$ac_clean_files_save
5213506e 3532# Check that the compiler produces executables we can run. If not, either
77008252 3533# the compiler is broken, or we cross compile.
5213506e
RW
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; }
3538
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540$as_echo_n "checking for suffix of executables... " >&6; }
3541if { { ac_try="$ac_link"
3542case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547$as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
77008252 3549 ac_status=$?
5213506e
RW
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
77008252
JJ
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'.
3556for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
5213506e 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
77008252 3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
77008252
JJ
3561 break;;
3562 * ) break;;
3563 esac
3564done
3565else
5213506e
RW
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error "cannot compute suffix of executables: cannot compile and link
3569See \`config.log' for more details." "$LINENO" 5; }
77008252 3570fi
77008252 3571rm -f conftest$ac_cv_exeext
5213506e
RW
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573$as_echo "$ac_cv_exeext" >&6; }
77008252
JJ
3574
3575rm -f conftest.$ac_ext
3576EXEEXT=$ac_cv_exeext
3577ac_exeext=$EXEEXT
be14fe72 3578fi
5213506e
RW
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; }
3581if test "${ac_cv_objext+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
77008252 3583else
5213506e 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.o conftest.obj
5213506e
RW
3596if { { ac_try="$ac_compile"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602$as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_compile") 2>&5
77008252 3604 ac_status=$?
5213506e
RW
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;
77008252 3609 case $ac_file in
5213506e 3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
77008252
JJ
3611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3612 break;;
3613 esac
3614done
3615else
5213506e 3616 $as_echo "$as_me: failed program was:" >&5
77008252
JJ
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
5213506e
RW
3619{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621as_fn_error "cannot compute suffix of object files: cannot compile
3622See \`config.log' for more details." "$LINENO" 5; }
77008252 3623fi
77008252
JJ
3624rm -f conftest.$ac_cv_objext conftest.$ac_ext
3625fi
5213506e
RW
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3627$as_echo "$ac_cv_objext" >&6; }
77008252
JJ
3628OBJEXT=$ac_cv_objext
3629ac_objext=$OBJEXT
5213506e
RW
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; }
3632if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
77008252 3634else
5213506e 3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
3636/* end confdefs.h. */
3637
3638int
3639main ()
3640{
3641#ifndef __GNUC__
3642 choke me
3643#endif
3644
3645 ;
3646 return 0;
3647}
3648_ACEOF
5213506e 3649if ac_fn_c_try_compile "$LINENO"; then :
77008252
JJ
3650 ac_compiler_gnu=yes
3651else
5213506e 3652 ac_compiler_gnu=no
77008252 3653fi
5213506e 3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77008252
JJ
3655ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656
3657fi
5213506e
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3659$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3660if test $ac_compiler_gnu = yes; then
3661 GCC=yes
3662else
3663 GCC=
3664fi
77008252
JJ
3665ac_test_CFLAGS=${CFLAGS+set}
3666ac_save_CFLAGS=$CFLAGS
5213506e
RW
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3668$as_echo_n "checking whether $CC accepts -g... " >&6; }
3669if test "${ac_cv_prog_cc_g+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671else
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
77008252
JJ
3677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682
3683 ;
3684 return 0;
3685}
3686_ACEOF
5213506e 3687if ac_fn_c_try_compile "$LINENO"; then :
77008252
JJ
3688 ac_cv_prog_cc_g=yes
3689else
5213506e
RW
3690 CFLAGS=""
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */
77008252 3693
5213506e
RW
3694int
3695main ()
3696{
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702if ac_fn_c_try_compile "$LINENO"; then :
3703
3704else
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. */
3709
3710int
3711main ()
3712{
3713
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_g=yes
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77008252 3722fi
5213506e 3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77008252 3724fi
5213506e
RW
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3729$as_echo "$ac_cv_prog_cc_g" >&6; }
77008252
JJ
3730if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3734 CFLAGS="-g -O2"
3735 else
3736 CFLAGS="-g"
3737 fi
3738else
3739 if test "$GCC" = yes; then
3740 CFLAGS="-O2"
3741 else
3742 CFLAGS=
3743 fi
3744fi
5213506e
RW
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; }
3747if test "${ac_cv_prog_cc_c89+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
77008252 3749else
5213506e 3750 ac_cv_prog_cc_c89=no
77008252 3751ac_save_CC=$CC
5213506e 3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
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. */
3759struct buf { int x; };
3760FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761static char *e (p, i)
3762 char **p;
3763 int i;
3764{
3765 return p[i];
3766}
3767static char *f (char * (*g) (char **, int), char **p, ...)
3768{
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;
3775}
3776
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
5213506e 3780 as 'x'. The following induces an error, until -std is added to get
77008252
JJ
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
5213506e 3783 that's true only with -std. */
77008252
JJ
3784int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785
5213506e
RW
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'
3789int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790
77008252
JJ
3791int test (int i, double x);
3792struct s1 {int (*f) (int a);};
3793struct s2 {int (*f) (double a);};
3794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3795int argc;
3796char **argv;
3797int
3798main ()
3799{
3800return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3801 ;
3802 return 0;
3803}
3804_ACEOF
5213506e
RW
3805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
77008252
JJ
3807do
3808 CC="$ac_save_CC $ac_arg"
5213506e
RW
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_c89=$ac_arg
77008252 3811fi
5213506e
RW
3812rm -f core conftest.err conftest.$ac_objext
3813 test "x$ac_cv_prog_cc_c89" != "xno" && break
77008252 3814done
5213506e 3815rm -f conftest.$ac_ext
77008252
JJ
3816CC=$ac_save_CC
3817
3818fi
5213506e
RW
3819# AC_CACHE_VAL
3820case "x$ac_cv_prog_cc_c89" in
3821 x)
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; } ;;
77008252 3827 *)
5213506e
RW
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; } ;;
77008252 3831esac
5213506e 3832if test "x$ac_cv_prog_cc_c89" != xno; then :
77008252
JJ
3833
3834fi
77008252 3835
77008252
JJ
3836ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841DEPDIR="${am__leading_dot}deps"
3842
5213506e 3843ac_config_commands="$ac_config_commands depfiles"
77008252
JJ
3844
3845
3846am_make=${MAKE-make}
3847cat > confinc << 'END'
3848am__doit:
5213506e 3849 @echo this is the am__doit target
77008252
JJ
3850.PHONY: am__doit
3851END
3852# If we don't find an include directive, just comment out the code.
5213506e
RW
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; }
77008252
JJ
3855am__include="#"
3856am__quote=
3857_am_result=none
3858# First try GNU make style include.
3859echo "include confinc" > confmf
5213506e
RW
3860# Ignore all kinds of additional output from `make'.
3861case `$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
3866 ;;
3867esac
77008252
JJ
3868# Now try BSD make style include.
3869if test "$am__include" = "#"; then
3870 echo '.include "confinc"' > confmf
5213506e
RW
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
3876 ;;
3877 esac
77008252
JJ
3878fi
3879
3880
5213506e
RW
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3882$as_echo "$_am_result" >&6; }
77008252
JJ
3883rm -f confinc confmf
3884
5213506e
RW
3885# Check whether --enable-dependency-tracking was given.
3886if test "${enable_dependency_tracking+set}" = set; then :
3887 enableval=$enable_dependency_tracking;
3888fi
77008252 3889
77008252
JJ
3890if test "x$enable_dependency_tracking" != xno; then
3891 am_depcomp="$ac_aux_dir/depcomp"
3892 AMDEPBACKSLASH='\'
3893fi
5213506e 3894 if test "x$enable_dependency_tracking" != xno; then
77008252
JJ
3895 AMDEP_TRUE=
3896 AMDEP_FALSE='#'
3897else
3898 AMDEP_TRUE='#'
3899 AMDEP_FALSE=
3900fi
3901
3902
3903
77008252
JJ
3904depcc="$CC" am_compiler_list=
3905
5213506e
RW
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907$as_echo_n "checking dependency style of $depcc... " >&6; }
3908if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
77008252
JJ
3910else
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
3929
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`
3933 fi
5213506e
RW
3934 am__universal=false
3935 case " $depcc " in #(
3936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937 esac
3938
77008252
JJ
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.
3943 #
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
3955
5213506e
RW
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"
77008252 3962 case $depmode in
5213506e
RW
3963 gcc)
3964 # This depmode causes a compiler race in universal mode.
3965 test "$am__universal" = false || continue
3966 ;;
77008252
JJ
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
3974 fi
3975 ;;
5213506e
RW
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=
3982 ;;
77008252
JJ
3983 none) break ;;
3984 esac
77008252 3985 if depmode=$depmode \
5213506e 3986 source=sub/conftest.c object=$am__obj \
77008252 3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
77008252 3989 >/dev/null 2>conftest.err &&
5213506e 3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
77008252 3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
77008252
JJ
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
4005 fi
4006 fi
4007 done
4008
4009 cd ..
4010 rm -rf conftest.dir
4011else
4012 am_cv_CC_dependencies_compiler_type=none
4013fi
4014
4015fi
5213506e
RW
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; }
77008252
JJ
4018CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
5213506e 4020 if
77008252
JJ
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='#'
4025else
4026 am__fastdepCC_TRUE='#'
4027 am__fastdepCC_FALSE=
4028fi
4029
4030
4031
4032
4033
4034
4035if test "x$GCC" != "xyes"; then
5213506e 4036 as_fn_error "libssp must be built with GCC" "$LINENO" 5
77008252
JJ
4037fi
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
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; }
77008252
JJ
4045# On Suns, sometimes $CPP names a directory.
4046if test -n "$CPP" && test -d "$CPP"; then
4047 CPP=
4048fi
4049if test -z "$CPP"; then
5213506e
RW
4050 if test "${ac_cv_prog_CPP+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
77008252
JJ
4052else
4053 # Double quotes because CPP needs to be expanded
4054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055 do
4056 ac_preproc_ok=false
4057for ac_c_preproc_warn_flag in '' yes
4058do
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.
5213506e 4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4066/* end confdefs.h. */
4067#ifdef __STDC__
4068# include <limits.h>
4069#else
4070# include <assert.h>
4071#endif
4072 Syntax error
4073_ACEOF
5213506e 4074if ac_fn_c_try_cpp "$LINENO"; then :
77008252 4075
5213506e 4076else
77008252
JJ
4077 # Broken: fails on valid input.
4078continue
4079fi
4080rm -f conftest.err conftest.$ac_ext
4081
5213506e 4082 # OK, works on sane cases. Now check whether nonexistent headers
77008252 4083 # can be detected and how.
5213506e 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4085/* end confdefs.h. */
4086#include <ac_nonexistent.h>
4087_ACEOF
5213506e 4088if ac_fn_c_try_cpp "$LINENO"; then :
77008252
JJ
4089 # Broken: success on invalid input.
4090continue
4091else
77008252
JJ
4092 # Passes both tests.
4093ac_preproc_ok=:
4094break
4095fi
4096rm -f conftest.err conftest.$ac_ext
4097
4098done
4099# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100rm -f conftest.err conftest.$ac_ext
5213506e 4101if $ac_preproc_ok; then :
77008252
JJ
4102 break
4103fi
4104
4105 done
4106 ac_cv_prog_CPP=$CPP
4107
4108fi
4109 CPP=$ac_cv_prog_CPP
4110else
4111 ac_cv_prog_CPP=$CPP
4112fi
5213506e
RW
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4114$as_echo "$CPP" >&6; }
77008252
JJ
4115ac_preproc_ok=false
4116for ac_c_preproc_warn_flag in '' yes
4117do
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.
5213506e 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4125/* end confdefs.h. */
4126#ifdef __STDC__
4127# include <limits.h>
4128#else
4129# include <assert.h>
4130#endif
4131 Syntax error
4132_ACEOF
5213506e 4133if ac_fn_c_try_cpp "$LINENO"; then :
77008252 4134
5213506e 4135else
77008252
JJ
4136 # Broken: fails on valid input.
4137continue
4138fi
4139rm -f conftest.err conftest.$ac_ext
4140
5213506e 4141 # OK, works on sane cases. Now check whether nonexistent headers
77008252 4142 # can be detected and how.
5213506e 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4144/* end confdefs.h. */
4145#include <ac_nonexistent.h>
4146_ACEOF
5213506e 4147if ac_fn_c_try_cpp "$LINENO"; then :
77008252
JJ
4148 # Broken: success on invalid input.
4149continue
4150else
77008252
JJ
4151 # Passes both tests.
4152ac_preproc_ok=:
4153break
4154fi
4155rm -f conftest.err conftest.$ac_ext
4156
4157done
4158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159rm -f conftest.err conftest.$ac_ext
5213506e
RW
4160if $ac_preproc_ok; then :
4161
77008252 4162else
5213506e
RW
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165as_fn_error "C preprocessor \"$CPP\" fails sanity check
4166See \`config.log' for more details." "$LINENO" 5; }
77008252
JJ
4167fi
4168
4169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175
5213506e
RW
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4177$as_echo_n "checking whether -fstack-protector works... " >&6; }
77008252
JJ
4178save_CFLAGS="$CFLAGS"
4179CFLAGS="$CFLAGS -fstack-protector -Werror"
4180
5213506e 4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4182/* end confdefs.h. */
4183
4184void __attribute__((noinline)) bar (char *x)
4185{
4186 __builtin_memset (x, 0, 64);
4187}
4188int
4189main ()
4190{
4191char buf[64]; bar (buf);
4192 ;
4193 return 0;
4194}
4195_ACEOF
5213506e
RW
4196if ac_fn_c_try_compile "$LINENO"; then :
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198$as_echo "yes" >&6; }
77008252 4199else
5213506e
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
77008252 4202fi
5213506e 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77008252
JJ
4204CFLAGS="$save_CFLAGS"
4205
5213506e
RW
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; }
4208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4209/* end confdefs.h. */
4210
4211void __attribute__((visibility ("hidden"))) bar (void) {}
4212int
4213main ()
4214{
4215
4216 ;
4217 return 0;
4218}
4219_ACEOF
5213506e 4220if ac_fn_c_try_compile "$LINENO"; then :
77008252
JJ
4221 ssp_hidden=yes
4222else
5213506e 4223 ssp_hidden=no
77008252 4224fi
5213506e
RW
4225rm -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; }
77008252
JJ
4228if test x$ssp_hidden = xyes; then
4229
5213506e 4230$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
77008252
JJ
4231
4232fi
4233
5213506e
RW
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; }
77008252
JJ
4236cat > conftest.map <<EOF
4237FOO_1.0 {
4238 global: *foo*; bar; local: *;
4239};
4240EOF
4241save_LDFLAGS="$LDFLAGS"
b615db81 4242LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
be14fe72
JM
4243if 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
4247else
4248 if test x$gcc_no_link = xyes; then
5213506e 4249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
be14fe72 4250fi
5213506e 4251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4252/* end confdefs.h. */
4253int foo;
4254int
4255main ()
4256{
4257
4258 ;
4259 return 0;
4260}
4261_ACEOF
5213506e 4262if ac_fn_c_try_link "$LINENO"; then :
77008252
JJ
4263 ssp_use_symver=yes
4264else
5213506e 4265 ssp_use_symver=no
77008252 4266fi
5213506e
RW
4267rm -f core conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
be14fe72 4269fi
77008252 4270LDFLAGS="$save_LDFLAGS"
5213506e
RW
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
77008252
JJ
4274 LIBSSP_USE_SYMVER_TRUE=
4275 LIBSSP_USE_SYMVER_FALSE='#'
4276else
5213506e
RW
4277 LIBSSP_USE_SYMVER_TRUE='#'
4278 LIBSSP_USE_SYMVER_FALSE=
4279fi
4280
4281
4282
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; }
4285if test "${ac_cv_path_GREP+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287else
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
4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293do
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
4302case `"$ac_path_GREP" --version 2>&1` in
4303*GNU*)
4304 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4305*)
4306 ac_count=0
4307 $as_echo_n 0123456789 >"conftest.in"
4308 while :
4309 do
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
4321 fi
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;;
4326esac
4327
4328 $ac_path_GREP_found && break 3
4329 done
4330 done
4331 done
4332IFS=$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
4335 fi
4336else
4337 ac_cv_path_GREP=$GREP
4338fi
4339
4340fi
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"
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4347$as_echo_n "checking for egrep... " >&6; }
4348if test "${ac_cv_path_EGREP+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350else
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
4358for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359do
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
4368case `"$ac_path_EGREP" --version 2>&1` in
4369*GNU*)
4370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371*)
4372 ac_count=0
4373 $as_echo_n 0123456789 >"conftest.in"
4374 while :
4375 do
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
4387 fi
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;;
4392esac
4393
4394 $ac_path_EGREP_found && break 3
4395 done
4396 done
4397 done
4398IFS=$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
4401 fi
4402else
4403 ac_cv_path_EGREP=$EGREP
77008252
JJ
4404fi
4405
5213506e 4406 fi
77008252 4407fi
5213506e
RW
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"
77008252
JJ
4411
4412
5213506e
RW
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; }
4415if test "${ac_cv_header_stdc+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
77008252 4417else
5213506e 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4419/* end confdefs.h. */
4420#include <stdlib.h>
4421#include <stdarg.h>
4422#include <string.h>
4423#include <float.h>
4424
4425int
4426main ()
4427{
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
5213506e 4433if ac_fn_c_try_compile "$LINENO"; then :
77008252
JJ
4434 ac_cv_header_stdc=yes
4435else
5213506e 4436 ac_cv_header_stdc=no
77008252 4437fi
5213506e 4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77008252
JJ
4439
4440if test $ac_cv_header_stdc = yes; then
4441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4443/* end confdefs.h. */
4444#include <string.h>
4445
4446_ACEOF
4447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
4448 $EGREP "memchr" >/dev/null 2>&1; then :
4449
77008252
JJ
4450else
4451 ac_cv_header_stdc=no
4452fi
4453rm -f conftest*
4454
4455fi
4456
4457if test $ac_cv_header_stdc = yes; then
4458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4460/* end confdefs.h. */
4461#include <stdlib.h>
4462
4463_ACEOF
4464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
4465 $EGREP "free" >/dev/null 2>&1; then :
4466
77008252
JJ
4467else
4468 ac_cv_header_stdc=no
4469fi
4470rm -f conftest*
4471
4472fi
4473
4474if test $ac_cv_header_stdc = yes; then
4475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 4476 if test "$cross_compiling" = yes; then :
77008252
JJ
4477 :
4478else
5213506e 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4480/* end confdefs.h. */
4481#include <ctype.h>
5213506e 4482#include <stdlib.h>
77008252
JJ
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
4493
4494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4495int
4496main ()
4497{
4498 int i;
4499 for (i = 0; i < 256; i++)
4500 if (XOR (islower (i), ISLOWER (i))
4501 || toupper (i) != TOUPPER (i))
5213506e
RW
4502 return 2;
4503 return 0;
77008252
JJ
4504}
4505_ACEOF
5213506e 4506if ac_fn_c_try_run "$LINENO"; then :
77008252 4507
5213506e
RW
4508else
4509 ac_cv_header_stdc=no
77008252 4510fi
5213506e
RW
4511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4512 conftest.$ac_objext conftest.beam conftest.$ac_ext
77008252 4513fi
5213506e 4514
77008252
JJ
4515fi
4516fi
5213506e
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4518$as_echo "$ac_cv_header_stdc" >&6; }
77008252
JJ
4519if test $ac_cv_header_stdc = yes; then
4520
5213506e 4521$as_echo "#define STDC_HEADERS 1" >>confdefs.h
77008252
JJ
4522
4523fi
4524
4525# On IRIX 5.3, sys/types and inttypes.h are conflicting.
77008252
JJ
4526for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527 inttypes.h stdint.h unistd.h
5213506e
RW
4528do :
4529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4530ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4531"
4532eval as_val=\$$as_ac_Header
4533 if test "x$as_val" = x""yes; then :
77008252 4534 cat >>confdefs.h <<_ACEOF
5213506e 4535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
77008252
JJ
4536_ACEOF
4537
4538fi
4539
4540done
4541
4542
266aa805 4543for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
5213506e
RW
4544do :
4545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4547eval as_val=\$$as_ac_Header
4548 if test "x$as_val" = x""yes; then :
77008252 4549 cat >>confdefs.h <<_ACEOF
5213506e 4550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
77008252
JJ
4551_ACEOF
4552
4553fi
4554
4555done
4556
4557
be14fe72
JM
4558if test x$gcc_no_link = xyes; then
4559 # Presume the ISO C functions are available; add target-specific
4560 # configuration here if required.
5213506e 4561 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
77008252 4562
5213506e 4563 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
77008252 4564
77008252 4565else
5213506e
RW
4566 for ac_func in mempcpy strncpy strncat
4567do :
4568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4570eval as_val=\$$as_ac_var
4571 if test "x$as_val" = x""yes; then :
77008252 4572 cat >>confdefs.h <<_ACEOF
5213506e 4573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
77008252
JJ
4574_ACEOF
4575
4576fi
4577done
4578
be14fe72 4579fi
77008252 4580
5213506e
RW
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4582$as_echo_n "checking whether vsnprintf is usable... " >&6; }
4583if test "$cross_compiling" = yes; then :
77008252
JJ
4584 ssp_have_usable_vsnprintf=undef
4585else
5213506e 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
4587/* end confdefs.h. */
4588
4589#include <stdarg.h>
4590#include <string.h>
4591#include <stdio.h>
4592int foo (char *buf, size_t n, const char *fmt, ...)
4593{
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;
4600}
4601int
4602main ()
4603{
4604char 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;
4608 ;
4609 return 0;
4610}
4611_ACEOF
5213506e 4612if ac_fn_c_try_run "$LINENO"; then :
77008252
JJ
4613 ssp_have_usable_vsnprintf=define
4614else
5213506e 4615 ssp_have_usable_vsnprintf=undef
77008252 4616fi
5213506e
RW
4617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4618 conftest.$ac_objext conftest.beam conftest.$ac_ext
77008252 4619fi
5213506e 4620
77008252 4621if test "x$ssp_have_usable_vsnprintf" = xdefine; then
5213506e
RW
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623$as_echo "yes" >&6; }
77008252 4624
5213506e 4625$as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
77008252
JJ
4626
4627else
5213506e
RW
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
77008252
JJ
4630fi
4631
4632
77a3eb61
PG
4633case `pwd` in
4634 *\ * | *\ *)
5213506e
RW
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;} ;;
77a3eb61 4637esac
1cf3d07d
SE
4638
4639
1cf3d07d 4640
77a3eb61
PG
4641macro_version='2.2.6'
4642macro_revision='1.3012'
1cf3d07d
SE
4643
4644
4645
4646
4647
4648
77008252 4649
1cf3d07d
SE
4650
4651
4652
4653
4654
4655
77a3eb61 4656ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4657
5213506e
RW
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; }
4660if test "${ac_cv_path_SED+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662else
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
1cf3d07d
SE
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
5213506e 4677 for ac_prog in sed gsed; do
1cf3d07d 4678 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
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
4683case `"$ac_path_SED" --version 2>&1` in
4684*GNU*)
4685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4686*)
4687 ac_count=0
4688 $as_echo_n 0123456789 >"conftest.in"
4689 while :
4690 do
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
4702 fi
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;;
4707esac
4708
4709 $ac_path_SED_found && break 3
1cf3d07d
SE
4710 done
4711 done
5213506e 4712 done
1cf3d07d 4713IFS=$as_save_IFS
5213506e
RW
4714 if test -z "$ac_cv_path_SED"; then
4715 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4716 fi
5213506e
RW
4717else
4718 ac_cv_path_SED=$SED
1cf3d07d
SE
4719fi
4720
5213506e
RW
4721fi
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
1cf3d07d
SE
4726
4727test -z "$SED" && SED=sed
4728Xsed="$SED -e 1s/^X//"
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
5213506e
RW
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4741$as_echo_n "checking for fgrep... " >&6; }
4742if test "${ac_cv_path_FGREP+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
1cf3d07d 4744else
5213506e
RW
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
4752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753do
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
4762case `"$ac_path_FGREP" --version 2>&1` in
4763*GNU*)
4764 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4765*)
4766 ac_count=0
4767 $as_echo_n 0123456789 >"conftest.in"
4768 while :
4769 do
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
1cf3d07d 4781 fi
5213506e
RW
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;;
4786esac
4787
4788 $ac_path_FGREP_found && break 3
4789 done
4790 done
4791 done
4792IFS=$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
4795 fi
4796else
4797 ac_cv_path_FGREP=$FGREP
4798fi
4799
4800 fi
1cf3d07d 4801fi
5213506e
RW
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"
1cf3d07d
SE
4805
4806
4807test -z "$GREP" && GREP=grep
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
5213506e
RW
4827# Check whether --with-gnu-ld was given.
4828if test "${with_gnu_ld+set}" = set; then :
4829 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
77008252
JJ
4830else
4831 with_gnu_ld=no
5213506e
RW
4832fi
4833
77008252
JJ
4834ac_prog=ld
4835if test "$GCC" = yes; then
4836 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
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; }
77008252
JJ
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'` ;;
4843 *)
4844 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4845 esac
4846 case $ac_prog in
4847 # Accept absolute paths.
1cf3d07d 4848 [\\/]* | ?:[\\/]*)
77008252 4849 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
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%/%"`
77008252
JJ
4854 done
4855 test -z "$LD" && LD="$ac_prog"
4856 ;;
4857 "")
4858 # If it fails, then pretend we aren't using GCC.
4859 ac_prog=ld
4860 ;;
4861 *)
4862 # If it is relative, then search for the first ld in PATH.
4863 with_gnu_ld=unknown
4864 ;;
4865 esac
4866elif test "$with_gnu_ld" = yes; then
5213506e
RW
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4868$as_echo_n "checking for GNU ld... " >&6; }
77008252 4869else
5213506e
RW
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4871$as_echo_n "checking for non-GNU ld... " >&6; }
77008252 4872fi
5213506e
RW
4873if test "${lt_cv_path_LD+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
77008252
JJ
4875else
4876 if test -z "$LD"; then
1cf3d07d 4877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
77008252 4878 for ac_dir in $PATH; do
1cf3d07d 4879 IFS="$lt_save_ifs"
77008252
JJ
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,
1cf3d07d 4884 # but apparently some variants of GNU ld only accept -v.
77008252 4885 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4886 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4887 *GNU* | *'with BFD'*)
77008252 4888 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4889 ;;
4890 *)
77008252 4891 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4892 ;;
4893 esac
77008252
JJ
4894 fi
4895 done
1cf3d07d 4896 IFS="$lt_save_ifs"
77008252
JJ
4897else
4898 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4899fi
4900fi
4901
4902LD="$lt_cv_path_LD"
4903if test -n "$LD"; then
5213506e
RW
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4905$as_echo "$LD" >&6; }
77008252 4906else
5213506e
RW
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
77008252 4909fi
5213506e
RW
4910test -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; }
4913if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
77008252 4915else
1cf3d07d
SE
4916 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4917case `$LD -v 2>&1 </dev/null` in
4918*GNU* | *'with BFD'*)
77008252 4919 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4920 ;;
4921*)
77008252 4922 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4923 ;;
4924esac
77008252 4925fi
5213506e
RW
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4927$as_echo "$lt_cv_prog_gnu_ld" >&6; }
77008252
JJ
4928with_gnu_ld=$lt_cv_prog_gnu_ld
4929
4930
77008252 4931
1cf3d07d
SE
4932
4933
4934
4935
4936
4937
5213506e
RW
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; }
4940if test "${lt_cv_path_NM+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
77008252
JJ
4942else
4943 if test -n "$NM"; then
4944 # Let the user override the test.
4945 lt_cv_path_NM="$NM"
4946else
1cf3d07d
SE
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"
4950 fi
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
4966 ;;
4967 *)
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
4972 ;;
4973 *)
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
4976 ;;
4977 esac
4978 ;;
4979 esac
77008252 4980 fi
1cf3d07d
SE
4981 done
4982 IFS="$lt_save_ifs"
77008252 4983 done
1cf3d07d 4984 : ${lt_cv_path_NM=no}
77008252
JJ
4985fi
4986fi
5213506e
RW
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4988$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4989if test "$lt_cv_path_NM" != "no"; then
4990 NM="$lt_cv_path_NM"
77008252 4991else
1cf3d07d
SE
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"
4995 do
4996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999$as_echo_n "checking for $ac_word... " >&6; }
5000if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
77008252 5002else
1cf3d07d
SE
5003 if test -n "$DUMPBIN"; then
5004 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5013 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5015 break 2
5016 fi
5017done
5213506e
RW
5018 done
5019IFS=$as_save_IFS
77008252 5020
1cf3d07d
SE
5021fi
5022fi
5023DUMPBIN=$ac_cv_prog_DUMPBIN
5024if test -n "$DUMPBIN"; then
5213506e
RW
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5026$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5027else
5213506e
RW
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
1cf3d07d 5030fi
77008252 5031
5213506e 5032
1cf3d07d
SE
5033 test -n "$DUMPBIN" && break
5034 done
5035fi
5036if test -z "$DUMPBIN"; then
5037 ac_ct_DUMPBIN=$DUMPBIN
5038 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5039do
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041set dummy $ac_prog; ac_word=$2
5213506e
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5046else
5047 if test -n "$ac_ct_DUMPBIN"; then
5048 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5057 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5059 break 2
77008252 5060 fi
1cf3d07d 5061done
5213506e
RW
5062 done
5063IFS=$as_save_IFS
77008252 5064
1cf3d07d
SE
5065fi
5066fi
5067ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5068if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5070$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5071else
5213506e
RW
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
1cf3d07d 5074fi
77008252 5075
5213506e 5076
1cf3d07d
SE
5077 test -n "$ac_ct_DUMPBIN" && break
5078done
77008252 5079
5213506e
RW
5080 if test "x$ac_ct_DUMPBIN" = x; then
5081 DUMPBIN=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084yes:)
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;}
5087ac_tool_warned=yes ;;
5088esac
5089 DUMPBIN=$ac_ct_DUMPBIN
5090 fi
1cf3d07d 5091fi
77008252 5092
77008252 5093
1cf3d07d
SE
5094 if test "$DUMPBIN" != ":"; then
5095 NM="$DUMPBIN"
77008252 5096 fi
1cf3d07d
SE
5097fi
5098test -z "$NM" && NM=nm
77008252 5099
77008252 5100
77008252 5101
77008252 5102
77008252 5103
77008252 5104
5213506e
RW
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; }
5107if test "${lt_cv_nm_interface+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5109else
5110 lt_cv_nm_interface="BSD nm"
5111 echo "int some_variable = 0;" > conftest.$ac_ext
5213506e 5112 (eval echo "\"\$as_me:5112: $ac_compile\"" >&5)
1cf3d07d
SE
5113 (eval "$ac_compile" 2>conftest.err)
5114 cat conftest.err >&5
5213506e 5115 (eval echo "\"\$as_me:5115: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5117 cat conftest.err >&5
5213506e 5118 (eval echo "\"\$as_me:5118: output\"" >&5)
1cf3d07d
SE
5119 cat conftest.out >&5
5120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5121 lt_cv_nm_interface="MS dumpbin"
5122 fi
5123 rm -f conftest*
77008252 5124fi
5213506e
RW
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5126$as_echo "$lt_cv_nm_interface" >&6; }
77008252 5127
5213506e
RW
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5130LN_S=$as_ln_s
5131if test "$LN_S" = "ln -s"; then
5213506e
RW
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133$as_echo "yes" >&6; }
1cf3d07d 5134else
5213506e
RW
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5137fi
77008252
JJ
5138
5139# find the maximum length of command line arguments
5213506e
RW
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; }
5142if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
77008252
JJ
5144else
5145 i=0
5146 teststring="ABCD"
5147
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
5155 ;;
5156
1cf3d07d
SE
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;
5162 ;;
5163
77a3eb61 5164 cygwin* | mingw* | cegcc*)
77008252
JJ
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;
5173 ;;
5174
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;
5179 ;;
5180
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
1cf3d07d 5188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
77008252
JJ
5189 fi
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`
5193 ;;
1cf3d07d
SE
5194
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
5198 ;;
5199
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
5206 #
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
5211 fi
5212 ;;
5213 sco3.2v5*)
5214 lt_cv_sys_max_cmd_len=102400
5215 ;;
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
5222 fi
5223 ;;
5224 *)
77a3eb61
PG
5225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5226 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
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
5242 do
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`
5253 fi
1cf3d07d 5254 ;;
77008252
JJ
5255 esac
5256
5257fi
5258
1cf3d07d 5259if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
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; }
77008252 5262else
5213506e
RW
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5264$as_echo "none" >&6; }
77008252 5265fi
1cf3d07d 5266max_cmd_len=$lt_cv_sys_max_cmd_len
77008252
JJ
5267
5268
1cf3d07d
SE
5269
5270
5271
5272
1cf3d07d
SE
5273: ${CP="cp -f"}
5274: ${MV="mv -f"}
5275: ${RM="rm -f"}
5276
5213506e
RW
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; }
1cf3d07d
SE
5279# Try some XSI features
5280xsi_shell=no
5281( _lt_dummy="a/b/c"
5282 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
77a3eb61
PG
5283 = c,a/b,, \
5284 && eval 'test $(( 1 + 1 )) -eq 2 \
5285 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5286 && xsi_shell=yes
5213506e
RW
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5288$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5289
5290
5213506e
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5292$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5293lt_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
5213506e
RW
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5298$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5299
5300
5301if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302 lt_unset=unset
77008252 5303else
1cf3d07d
SE
5304 lt_unset=false
5305fi
77008252 5306
77008252 5307
1cf3d07d
SE
5308
5309
5310
5311# test EBCDIC or ASCII
5312case `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'
5317 ;;
5318 *) # EBCDIC based system
5319 lt_SP2NL='tr \100 \n'
5320 lt_NL2SP='tr \r\n \100\100'
77008252
JJ
5321 ;;
5322esac
77008252 5323
77008252 5324
1cf3d07d
SE
5325
5326
5327
5328
5329
5330
5331
5213506e
RW
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; }
5334if test "${lt_cv_ld_reload_flag+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
77008252 5336else
1cf3d07d
SE
5337 lt_cv_ld_reload_flag='-r'
5338fi
5213506e
RW
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5340$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5341reload_flag=$lt_cv_ld_reload_flag
5342case $reload_flag in
5343"" | " "*) ;;
5344*) reload_flag=" $reload_flag" ;;
5345esac
5346reload_cmds='$LD$reload_flag -o $output$reload_objs'
5347case $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'
5353 fi
5354 ;;
5355esac
5356
5357
5358
5359
5360
5361
5362
5363
5364
77a3eb61
PG
5365if 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.
5367set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369$as_echo_n "checking for $ac_word... " >&6; }
5370if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
77a3eb61
PG
5372else
5373 if test -n "$OBJDUMP"; then
5374 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 5383 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
5385 break 2
5386 fi
5387done
5213506e
RW
5388 done
5389IFS=$as_save_IFS
77a3eb61
PG
5390
5391fi
5392fi
5393OBJDUMP=$ac_cv_prog_OBJDUMP
5394if test -n "$OBJDUMP"; then
5213506e
RW
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5396$as_echo "$OBJDUMP" >&6; }
77a3eb61 5397else
5213506e
RW
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }
77a3eb61
PG
5400fi
5401
5213506e 5402
77a3eb61
PG
5403fi
5404if 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.
5407set dummy objdump; ac_word=$2
5213506e
RW
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409$as_echo_n "checking for $ac_word... " >&6; }
5410if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
77a3eb61
PG
5412else
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5415else
5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 5423 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
5425 break 2
5426 fi
5427done
5213506e
RW
5428 done
5429IFS=$as_save_IFS
77a3eb61 5430
77a3eb61
PG
5431fi
5432fi
5433ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5434if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5436$as_echo "$ac_ct_OBJDUMP" >&6; }
77a3eb61 5437else
5213506e
RW
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439$as_echo "no" >&6; }
77a3eb61
PG
5440fi
5441
5213506e
RW
5442 if test "x$ac_ct_OBJDUMP" = x; then
5443 OBJDUMP="false"
5444 else
5445 case $cross_compiling:$ac_tool_warned in
5446yes:)
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;}
5449ac_tool_warned=yes ;;
5450esac
5451 OBJDUMP=$ac_ct_OBJDUMP
5452 fi
77a3eb61
PG
5453else
5454 OBJDUMP="$ac_cv_prog_OBJDUMP"
5455fi
5456
5457test -z "$OBJDUMP" && OBJDUMP=objdump
5458
5459
5460
5461
5462
5463
5464
5465
1cf3d07d 5466
5213506e
RW
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; }
5469if test "${lt_cv_deplibs_check_method+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5471else
5472 lt_cv_file_magic_cmd='$MAGIC_CMD'
5473lt_cv_file_magic_test_file=
5474lt_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.
5485
5486case $host_os in
445bad9b 5487aix[4-9]*)
1cf3d07d
SE
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490
5491beos*)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495bsdi[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
5499 ;;
5500
5501cygwin*)
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'
5505 ;;
5506
5507mingw* | 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'
5517 fi
5518 ;;
5519
77a3eb61
PG
5520cegcc)
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'
5524 ;;
5525
1cf3d07d
SE
5526darwin* | rhapsody*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530freebsd* | 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.*`
5539 ;;
5540 esac
5541 else
5542 lt_cv_deplibs_check_method=pass_all
5543 fi
77008252 5544 ;;
1cf3d07d
SE
5545
5546gnu*)
5547 lt_cv_deplibs_check_method=pass_all
77008252 5548 ;;
1cf3d07d
SE
5549
5550hpux10.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
5556 ;;
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
5560 ;;
77008252 5561 *)
1cf3d07d
SE
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
5564 ;;
5565 esac
5566 ;;
77008252 5567
1cf3d07d
SE
5568interix[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)$'
5571 ;;
77008252 5572
1cf3d07d
SE
5573irix5* | 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
77008252 5581 ;;
77008252 5582
1cf3d07d 5583# This must be Linux ELF.
7a9d3fe8 5584linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5585 lt_cv_deplibs_check_method=pass_all
5586 ;;
77008252 5587
1cf3d07d
SE
5588netbsd*)
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)$'
77008252 5591 else
1cf3d07d 5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
77008252 5593 fi
1cf3d07d
SE
5594 ;;
5595
5596newos6*)
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
5600 ;;
5601
5602*nto* | *qnx*)
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
77008252 5605
1cf3d07d
SE
5606openbsd*)
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)$'
77008252
JJ
5611 fi
5612 ;;
1cf3d07d
SE
5613
5614osf3* | osf4* | osf5*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618rdos*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622solaris*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625
5626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630sysv4 | 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*`
5635 ;;
5636 ncr)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
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 )'
5642 ;;
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
5647 ;;
5648 siemens)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651 pc)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654 esac
5655 ;;
5656
5657tpf*)
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
77008252
JJ
5660esac
5661
1cf3d07d 5662fi
5213506e
RW
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5665file_magic_cmd=$lt_cv_file_magic_cmd
5666deplibs_check_method=$lt_cv_deplibs_check_method
5667test -z "$deplibs_check_method" && deplibs_check_method=unknown
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
77008252 5680if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5682set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if test "${ac_cv_prog_AR+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
77008252 5687else
1cf3d07d
SE
5688 if test -n "$AR"; then
5689 ac_cv_prog_AR="$AR" # Let the user override the test.
77008252
JJ
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5698 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
5700 break 2
5701 fi
5702done
5213506e
RW
5703 done
5704IFS=$as_save_IFS
77008252
JJ
5705
5706fi
5707fi
1cf3d07d
SE
5708AR=$ac_cv_prog_AR
5709if test -n "$AR"; then
5213506e
RW
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5711$as_echo "$AR" >&6; }
77008252 5712else
5213506e
RW
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
77008252
JJ
5715fi
5716
5213506e 5717
77008252 5718fi
1cf3d07d
SE
5719if 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.
5722set dummy ar; ac_word=$2
5213506e
RW
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
77008252 5727else
1cf3d07d
SE
5728 if test -n "$ac_ct_AR"; then
5729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
77008252
JJ
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5738 ac_cv_prog_ac_ct_AR="ar"
5213506e 5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
5740 break 2
5741 fi
5742done
5213506e
RW
5743 done
5744IFS=$as_save_IFS
77008252 5745
77008252
JJ
5746fi
5747fi
1cf3d07d
SE
5748ac_ct_AR=$ac_cv_prog_ac_ct_AR
5749if test -n "$ac_ct_AR"; then
5213506e
RW
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5751$as_echo "$ac_ct_AR" >&6; }
77008252 5752else
5213506e
RW
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
77008252
JJ
5755fi
5756
5213506e
RW
5757 if test "x$ac_ct_AR" = x; then
5758 AR="false"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
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;}
5764ac_tool_warned=yes ;;
5765esac
5766 AR=$ac_ct_AR
5767 fi
77008252 5768else
1cf3d07d 5769 AR="$ac_cv_prog_AR"
77008252
JJ
5770fi
5771
1cf3d07d
SE
5772test -z "$AR" && AR=ar
5773test -z "$AR_FLAGS" && AR_FLAGS=cru
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
77008252
JJ
5785if 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.
5787set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789$as_echo_n "checking for $ac_word... " >&6; }
5790if test "${ac_cv_prog_STRIP+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
77008252
JJ
5792else
5793 if test -n "$STRIP"; then
5794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 5803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
5805 break 2
5806 fi
5807done
5213506e
RW
5808 done
5809IFS=$as_save_IFS
77008252
JJ
5810
5811fi
5812fi
5813STRIP=$ac_cv_prog_STRIP
5814if test -n "$STRIP"; then
5213506e
RW
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5816$as_echo "$STRIP" >&6; }
77008252 5817else
5213506e
RW
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819$as_echo "no" >&6; }
77008252
JJ
5820fi
5821
5213506e 5822
77008252
JJ
5823fi
5824if 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.
5827set dummy strip; ac_word=$2
5213506e
RW
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
5830if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
77008252
JJ
5832else
5833 if test -n "$ac_ct_STRIP"; then
5834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77008252 5843 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77008252
JJ
5845 break 2
5846 fi
5847done
5213506e
RW
5848 done
5849IFS=$as_save_IFS
77008252 5850
77008252
JJ
5851fi
5852fi
5853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854if test -n "$ac_ct_STRIP"; then
5213506e
RW
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5856$as_echo "$ac_ct_STRIP" >&6; }
77008252 5857else
5213506e
RW
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
77008252
JJ
5860fi
5861
5213506e
RW
5862 if test "x$ac_ct_STRIP" = x; then
5863 STRIP=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866yes:)
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;}
5869ac_tool_warned=yes ;;
5870esac
5871 STRIP=$ac_ct_STRIP
5872 fi
77008252
JJ
5873else
5874 STRIP="$ac_cv_prog_STRIP"
5875fi
5876
1cf3d07d 5877test -z "$STRIP" && STRIP=:
77008252 5878
77008252
JJ
5879
5880
77008252 5881
77008252
JJ
5882
5883
1cf3d07d
SE
5884if 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.
5886set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if test "${ac_cv_prog_RANLIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
77008252 5891else
1cf3d07d
SE
5892 if test -n "$RANLIB"; then
5893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5904 break 2
77008252 5905 fi
1cf3d07d 5906done
5213506e
RW
5907 done
5908IFS=$as_save_IFS
1cf3d07d
SE
5909
5910fi
5911fi
5912RANLIB=$ac_cv_prog_RANLIB
5913if test -n "$RANLIB"; then
5213506e
RW
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915$as_echo "$RANLIB" >&6; }
1cf3d07d 5916else
5213506e
RW
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
1cf3d07d
SE
5919fi
5920
5213506e 5921
1cf3d07d
SE
5922fi
5923if 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.
5926set dummy ranlib; ac_word=$2
5213506e
RW
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5931else
5932 if test -n "$ac_ct_RANLIB"; then
5933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5213506e
RW
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
1cf3d07d 5942 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5944 break 2
5945 fi
5946done
5213506e
RW
5947 done
5948IFS=$as_save_IFS
1cf3d07d 5949
1cf3d07d
SE
5950fi
5951fi
5952ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5956else
5213506e
RW
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
1cf3d07d
SE
5959fi
5960
5213506e
RW
5961 if test "x$ac_ct_RANLIB" = x; then
5962 RANLIB=":"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965yes:)
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;}
5968ac_tool_warned=yes ;;
5969esac
5970 RANLIB=$ac_ct_RANLIB
5971 fi
1cf3d07d
SE
5972else
5973 RANLIB="$ac_cv_prog_RANLIB"
5974fi
5975
5976test -z "$RANLIB" && RANLIB=:
5977
5978
5979
5980
5981
5982
5983# Determine commands to create old-style static archives.
77a3eb61 5984old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5985old_postinstall_cmds='chmod 644 $oldlib'
5986old_postuninstall_cmds=
5987
5988if test -n "$RANLIB"; then
5989 case $host_os in
5990 openbsd*)
5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992 ;;
5993 *)
5994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5995 ;;
5996 esac
5997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998fi
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033# If no C compiler was specified, use CC.
6034LTCC=${LTCC-"$CC"}
6035
6036# If no C compiler flags were specified, use CFLAGS.
6037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038
6039# Allow CC to be a program name with arguments.
6040compiler=$CC
6041
6042
6043# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
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; }
6046if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6048else
6049
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?!! ;)]
6052
6053# Character class describing NM global symbol codes.
6054symcode='[BCDEGRST]'
6055
6056# Regexp to match symbols that can be accessed directly from C.
6057sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059# Define system-specific variables.
6060case $host_os in
6061aix*)
6062 symcode='[BCDT]'
6063 ;;
77a3eb61 6064cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6065 symcode='[ABCDGISTW]'
6066 ;;
6067hpux*)
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDEGRST]'
6070 fi
6071 ;;
6072irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6074 ;;
6075osf*)
6076 symcode='[BCDEGQRST]'
6077 ;;
6078solaris*)
6079 symcode='[BDRT]'
6080 ;;
6081sco3.2v5*)
6082 symcode='[DT]'
6083 ;;
6084sysv4.2uw2*)
6085 symcode='[DT]'
6086 ;;
6087sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6089 ;;
6090sysv4)
6091 symcode='[DFNSTU]'
6092 ;;
6093esac
6094
6095# If we're using GNU nm, then use its standard symbol codes.
6096case `$NM -V 2>&1` in
6097*GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099esac
6100
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.
6104lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105
6106# Transform an extracted symbol line into symbol name and symbol address
6107lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
77a3eb61 6108lt_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'"
1cf3d07d
SE
6109
6110# Handle CRLF in mingw tool chain
6111opt_cr=
6112case $build_os in
6113mingw*)
6114 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
77008252 6115 ;;
1cf3d07d
SE
6116esac
6117
6118# Try without a prefix underscore, then with it.
6119for ac_symprfx in "" "_"; do
6120
6121 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6122 symxfrm="\\1 $ac_symprfx\\2 \\2"
6123
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'"
6143 fi
6144
6145 # Check to see that the pipe works correctly.
6146 pipe_works=no
6147
6148 rm -f conftest*
6149 cat > conftest.$ac_ext <<_LT_EOF
6150#ifdef __cplusplus
6151extern "C" {
6152#endif
6153char nm_test_var;
6154void nm_test_func(void);
6155void nm_test_func(void){}
6156#ifdef __cplusplus
6157}
6158#endif
6159int main(){nm_test_var='a';nm_test_func();return(0);}
6160_LT_EOF
6161
5213506e 6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6163 (eval $ac_compile) 2>&5
6164 ac_status=$?
5213506e
RW
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }; then
1cf3d07d
SE
6167 # Now try to grab the symbols.
6168 nlist=conftest.nm
5213506e 6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1cf3d07d
SE
6170 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6171 ac_status=$?
5213506e
RW
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
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
6179 fi
6180
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
6186extern "C" {
6187#endif
6188
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'
6192
6193 cat <<_LT_EOF >> conftest.$ac_ext
6194
6195/* The mapping between symbol names and symbols. */
6196const struct {
6197 const char *name;
6198 void *address;
6199}
6200lt__PROGRAM__LTX_preloaded_symbols[] =
6201{
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}
6207};
6208
6209/* This works around a problem in FreeBSD linker */
6210#ifdef FREEBSD_WORKAROUND
6211static const void *lt_preloaded_setup() {
6212 return lt__PROGRAM__LTX_preloaded_symbols;
6213}
6214#endif
6215
6216#ifdef __cplusplus
6217}
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"
5213506e 6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6227 (eval $ac_link) 2>&5
6228 ac_status=$?
5213506e
RW
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6231 pipe_works=yes
6232 fi
6233 LIBS="$lt_save_LIBS"
6234 CFLAGS="$lt_save_CFLAGS"
6235 else
6236 echo "cannot find nm_test_func in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot find nm_test_var in $nlist" >&5
6240 fi
6241 else
6242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243 fi
6244 else
6245 echo "$progname: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 fi
77a3eb61 6248 rm -rf conftest* conftst*
1cf3d07d
SE
6249
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=
6255 fi
6256done
6257
6258fi
6259
6260if test -z "$lt_cv_sys_global_symbol_pipe"; then
6261 lt_cv_sys_global_symbol_to_cdecl=
6262fi
6263if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6265$as_echo "failed" >&6; }
1cf3d07d 6266else
5213506e
RW
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6268$as_echo "ok" >&6; }
1cf3d07d 6269fi
77008252 6270
1cf3d07d
SE
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
77a3eb61
PG
6285
6286
6287
6288
6289
1cf3d07d
SE
6290
6291
5213506e
RW
6292# Check whether --enable-libtool-lock was given.
6293if test "${enable_libtool_lock+set}" = set; then :
6294 enableval=$enable_libtool_lock;
6295fi
1cf3d07d 6296
1cf3d07d
SE
6297test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6298
6299# Some flags need to be propagated to the compiler or linker for good
6300# libtool support.
6301case $host in
77008252
JJ
6302ia64-*-hpux*)
6303 # Find out which ABI we are using.
6304 echo 'int i;' > conftest.$ac_ext
5213506e 6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
77008252
JJ
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
5213506e
RW
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
1cf3d07d
SE
6310 case `/usr/bin/file conftest.$ac_objext` in
6311 *ELF-32*)
6312 HPUX_IA64_MODE="32"
6313 ;;
6314 *ELF-64*)
6315 HPUX_IA64_MODE="64"
6316 ;;
6317 esac
6318 fi
6319 rm -rf conftest*
6320 ;;
6321*-*-irix6*)
6322 # Find out which ABI we are using.
5213506e
RW
6323 echo '#line 6323 "configure"' > conftest.$ac_ext
6324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6325 (eval $ac_compile) 2>&5
6326 ac_status=$?
5213506e
RW
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }; then
1cf3d07d
SE
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"
6333 ;;
6334 *N32*)
6335 LD="${LD-ld} -melf32bmipn32"
6336 ;;
6337 *64-bit*)
6338 LD="${LD-ld} -melf64bmip"
6339 ;;
6340 esac
6341 else
6342 case `/usr/bin/file conftest.$ac_objext` in
6343 *32-bit*)
6344 LD="${LD-ld} -32"
6345 ;;
6346 *N32*)
6347 LD="${LD-ld} -n32"
6348 ;;
6349 *64-bit*)
6350 LD="${LD-ld} -64"
6351 ;;
6352 esac
6353 fi
6354 fi
6355 rm -rf conftest*
6356 ;;
6357
6358x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6359s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6360 # Find out which ABI we are using.
6361 echo 'int i;' > conftest.$ac_ext
5213506e 6362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6363 (eval $ac_compile) 2>&5
6364 ac_status=$?
5213506e
RW
6365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366 test $ac_status = 0; }; then
1cf3d07d
SE
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"
6372 ;;
6373 x86_64-*linux*)
6374 LD="${LD-ld} -m elf_i386"
6375 ;;
6376 ppc64-*linux*|powerpc64-*linux*)
6377 LD="${LD-ld} -m elf32ppclinux"
6378 ;;
6379 s390x-*linux*)
6380 LD="${LD-ld} -m elf_s390"
6381 ;;
6382 sparc64-*linux*)
6383 LD="${LD-ld} -m elf32_sparc"
6384 ;;
6385 esac
6386 ;;
6387 *64-bit*)
6388 case $host in
6389 x86_64-*kfreebsd*-gnu)
6390 LD="${LD-ld} -m elf_x86_64_fbsd"
6391 ;;
6392 x86_64-*linux*)
6393 LD="${LD-ld} -m elf_x86_64"
6394 ;;
6395 ppc*-*linux*|powerpc*-*linux*)
6396 LD="${LD-ld} -m elf64ppc"
6397 ;;
6398 s390*-*linux*|s390*-*tpf*)
6399 LD="${LD-ld} -m elf64_s390"
6400 ;;
6401 sparc*-*linux*)
6402 LD="${LD-ld} -m elf64_sparc"
6403 ;;
6404 esac
6405 ;;
6406 esac
6407 fi
6408 rm -rf conftest*
6409 ;;
6410
6411*-*-sco3.2v5*)
6412 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6413 SAVE_CFLAGS="$CFLAGS"
6414 CFLAGS="$CFLAGS -belf"
5213506e
RW
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; }
6417if test "${lt_cv_cc_needs_belf+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6419else
6420 ac_ext=c
6421ac_cpp='$CPP $CPPFLAGS'
6422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426 if test x$gcc_no_link = xyes; then
5213506e 6427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6428fi
5213506e 6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6430/* end confdefs.h. */
6431
6432int
6433main ()
6434{
6435
6436 ;
6437 return 0;
6438}
6439_ACEOF
5213506e 6440if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6441 lt_cv_cc_needs_belf=yes
6442else
5213506e 6443 lt_cv_cc_needs_belf=no
1cf3d07d 6444fi
5213506e
RW
6445rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6447 ac_ext=c
6448ac_cpp='$CPP $CPPFLAGS'
6449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452
77a3eb61 6453fi
5213506e
RW
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6455$as_echo "$lt_cv_cc_needs_belf" >&6; }
77a3eb61
PG
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"
6459 fi
6460 ;;
6461sparc*-*solaris*)
6462 # Find out which ABI we are using.
6463 echo 'int i;' > conftest.$ac_ext
5213506e 6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
77a3eb61
PG
6465 (eval $ac_compile) 2>&5
6466 ac_status=$?
5213506e
RW
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
77a3eb61
PG
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" ;;
6473 *)
6474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6475 LD="${LD-ld} -64"
6476 fi
6477 ;;
6478 esac
6479 ;;
6480 esac
6481 fi
6482 rm -rf conftest*
6483 ;;
6484esac
6485
6486need_locks="$enable_libtool_lock"
6487
6488
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.
6493set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
77a3eb61
PG
6498else
6499 if test -n "$DSYMUTIL"; then
6500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6511 break 2
6512 fi
6513done
5213506e
RW
6514 done
6515IFS=$as_save_IFS
77a3eb61
PG
6516
6517fi
6518fi
6519DSYMUTIL=$ac_cv_prog_DSYMUTIL
6520if test -n "$DSYMUTIL"; then
5213506e
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522$as_echo "$DSYMUTIL" >&6; }
77a3eb61 6523else
5213506e
RW
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
77a3eb61
PG
6526fi
6527
5213506e 6528
77a3eb61
PG
6529fi
6530if 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.
6533set dummy dsymutil; ac_word=$2
5213506e
RW
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
77a3eb61
PG
6538else
6539 if test -n "$ac_ct_DSYMUTIL"; then
6540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6551 break 2
6552 fi
6553done
5213506e
RW
6554 done
6555IFS=$as_save_IFS
77a3eb61 6556
77a3eb61
PG
6557fi
6558fi
6559ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562$as_echo "$ac_ct_DSYMUTIL" >&6; }
77a3eb61 6563else
5213506e
RW
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
77a3eb61
PG
6566fi
6567
5213506e
RW
6568 if test "x$ac_ct_DSYMUTIL" = x; then
6569 DSYMUTIL=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
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;}
6575ac_tool_warned=yes ;;
6576esac
6577 DSYMUTIL=$ac_ct_DSYMUTIL
6578 fi
77a3eb61
PG
6579else
6580 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6581fi
6582
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.
6585set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587$as_echo_n "checking for $ac_word... " >&6; }
6588if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
77a3eb61
PG
6590else
6591 if test -n "$NMEDIT"; then
6592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6603 break 2
6604 fi
6605done
5213506e
RW
6606 done
6607IFS=$as_save_IFS
77a3eb61
PG
6608
6609fi
6610fi
6611NMEDIT=$ac_cv_prog_NMEDIT
6612if test -n "$NMEDIT"; then
5213506e
RW
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614$as_echo "$NMEDIT" >&6; }
77a3eb61 6615else
5213506e
RW
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
77a3eb61
PG
6618fi
6619
5213506e 6620
77a3eb61
PG
6621fi
6622if 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.
6625set dummy nmedit; ac_word=$2
5213506e
RW
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
77a3eb61
PG
6630else
6631 if test -n "$ac_ct_NMEDIT"; then
6632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6641 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6643 break 2
6644 fi
6645done
5213506e
RW
6646 done
6647IFS=$as_save_IFS
77a3eb61 6648
77a3eb61
PG
6649fi
6650fi
6651ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654$as_echo "$ac_ct_NMEDIT" >&6; }
77a3eb61 6655else
5213506e
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
77a3eb61
PG
6658fi
6659
5213506e
RW
6660 if test "x$ac_ct_NMEDIT" = x; then
6661 NMEDIT=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664yes:)
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;}
6667ac_tool_warned=yes ;;
6668esac
6669 NMEDIT=$ac_ct_NMEDIT
6670 fi
77a3eb61
PG
6671else
6672 NMEDIT="$ac_cv_prog_NMEDIT"
6673fi
6674
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.
6677set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if test "${ac_cv_prog_LIPO+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
77a3eb61
PG
6682else
6683 if test -n "$LIPO"; then
6684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6695 break 2
6696 fi
6697done
5213506e
RW
6698 done
6699IFS=$as_save_IFS
77a3eb61
PG
6700
6701fi
6702fi
6703LIPO=$ac_cv_prog_LIPO
6704if test -n "$LIPO"; then
5213506e
RW
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706$as_echo "$LIPO" >&6; }
77a3eb61 6707else
5213506e
RW
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
77a3eb61
PG
6710fi
6711
5213506e 6712
77a3eb61
PG
6713fi
6714if 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.
6717set dummy lipo; ac_word=$2
5213506e
RW
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
77a3eb61
PG
6722else
6723 if test -n "$ac_ct_LIPO"; then
6724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6733 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6735 break 2
6736 fi
6737done
5213506e
RW
6738 done
6739IFS=$as_save_IFS
77a3eb61 6740
77a3eb61
PG
6741fi
6742fi
6743ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744if test -n "$ac_ct_LIPO"; then
5213506e
RW
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746$as_echo "$ac_ct_LIPO" >&6; }
77a3eb61 6747else
5213506e
RW
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
77a3eb61
PG
6750fi
6751
5213506e
RW
6752 if test "x$ac_ct_LIPO" = x; then
6753 LIPO=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
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;}
6759ac_tool_warned=yes ;;
6760esac
6761 LIPO=$ac_ct_LIPO
6762 fi
77a3eb61
PG
6763else
6764 LIPO="$ac_cv_prog_LIPO"
6765fi
6766
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.
6769set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if test "${ac_cv_prog_OTOOL+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
77a3eb61
PG
6774else
6775 if test -n "$OTOOL"; then
6776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6787 break 2
6788 fi
6789done
5213506e
RW
6790 done
6791IFS=$as_save_IFS
77a3eb61
PG
6792
6793fi
6794fi
6795OTOOL=$ac_cv_prog_OTOOL
6796if test -n "$OTOOL"; then
5213506e
RW
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798$as_echo "$OTOOL" >&6; }
77a3eb61 6799else
5213506e
RW
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
77a3eb61
PG
6802fi
6803
5213506e 6804
77a3eb61
PG
6805fi
6806if 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.
6809set dummy otool; ac_word=$2
5213506e
RW
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
77a3eb61
PG
6814else
6815 if test -n "$ac_ct_OTOOL"; then
6816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6825 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6827 break 2
6828 fi
6829done
5213506e
RW
6830 done
6831IFS=$as_save_IFS
77a3eb61 6832
77a3eb61
PG
6833fi
6834fi
6835ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838$as_echo "$ac_ct_OTOOL" >&6; }
77a3eb61 6839else
5213506e
RW
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
77a3eb61
PG
6842fi
6843
5213506e
RW
6844 if test "x$ac_ct_OTOOL" = x; then
6845 OTOOL=":"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848yes:)
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;}
6851ac_tool_warned=yes ;;
6852esac
6853 OTOOL=$ac_ct_OTOOL
6854 fi
77a3eb61
PG
6855else
6856 OTOOL="$ac_cv_prog_OTOOL"
6857fi
6858
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.
6861set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
6864if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
77a3eb61
PG
6866else
6867 if test -n "$OTOOL64"; then
6868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6879 break 2
6880 fi
6881done
5213506e
RW
6882 done
6883IFS=$as_save_IFS
77a3eb61
PG
6884
6885fi
6886fi
6887OTOOL64=$ac_cv_prog_OTOOL64
6888if test -n "$OTOOL64"; then
5213506e
RW
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890$as_echo "$OTOOL64" >&6; }
77a3eb61 6891else
5213506e
RW
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
77a3eb61
PG
6894fi
6895
5213506e 6896
77a3eb61
PG
6897fi
6898if 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.
6901set dummy otool64; ac_word=$2
5213506e
RW
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
77a3eb61
PG
6906else
6907 if test -n "$ac_ct_OTOOL64"; then
6908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
5213506e
RW
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
77a3eb61 6917 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77a3eb61
PG
6919 break 2
6920 fi
6921done
5213506e
RW
6922 done
6923IFS=$as_save_IFS
77a3eb61 6924
77a3eb61
PG
6925fi
6926fi
6927ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930$as_echo "$ac_ct_OTOOL64" >&6; }
77a3eb61 6931else
5213506e
RW
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
77a3eb61
PG
6934fi
6935
5213506e
RW
6936 if test "x$ac_ct_OTOOL64" = x; then
6937 OTOOL64=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940yes:)
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;}
6943ac_tool_warned=yes ;;
6944esac
6945 OTOOL64=$ac_ct_OTOOL64
6946 fi
77a3eb61
PG
6947else
6948 OTOOL64="$ac_cv_prog_OTOOL64"
6949fi
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
5213506e
RW
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; }
6979if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
77a3eb61
PG
6981else
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
6999 fi
7000 rm -rf libconftest.dylib*
7001 rm -f conftest.*
7002 fi
7003fi
5213506e
RW
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; }
7008if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
77a3eb61
PG
7010else
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
5213506e 7016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
77a3eb61 7017fi
5213506e 7018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77a3eb61
PG
7019/* end confdefs.h. */
7020
7021int
7022main ()
7023{
7024
7025 ;
7026 return 0;
7027}
7028_ACEOF
5213506e 7029if ac_fn_c_try_link "$LINENO"; then :
77a3eb61
PG
7030 lt_cv_ld_exported_symbols_list=yes
7031else
5213506e 7032 lt_cv_ld_exported_symbols_list=no
77a3eb61 7033fi
5213506e
RW
7034rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
77a3eb61
PG
7036 LDFLAGS="$save_LDFLAGS"
7037
7038fi
5213506e
RW
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; }
77a3eb61
PG
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
7058 ;;
7059 esac
7060 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7061 _lt_dar_single_mod='$single_module'
7062 fi
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}'
7067 fi
7068 if test "$DSYMUTIL" != ":"; then
7069 _lt_dsymutil='~$DSYMUTIL $lib || :'
7070 else
7071 _lt_dsymutil=
7072 fi
7073 ;;
7074 esac
7075
77a3eb61 7076for ac_header in dlfcn.h
5213506e
RW
7077do :
7078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7079"
7080if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
77a3eb61 7081 cat >>confdefs.h <<_ACEOF
5213506e 7082#define HAVE_DLFCN_H 1
77a3eb61
PG
7083_ACEOF
7084
7085fi
7086
7087done
7088
7089
7090
7091# Set options
7092
7093
7094
7095 enable_dlopen=no
7096
7097
7098 enable_win32_dll=no
7099
7100
5213506e
RW
7101 # Check whether --enable-shared was given.
7102if test "${enable_shared+set}" = set; then :
7103 enableval=$enable_shared; p=${PACKAGE-default}
77a3eb61
PG
7104 case $enableval in
7105 yes) enable_shared=yes ;;
7106 no) enable_shared=no ;;
7107 *)
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
7115 fi
7116 done
7117 IFS="$lt_save_ifs"
7118 ;;
7119 esac
7120else
7121 enable_shared=yes
5213506e 7122fi
77a3eb61
PG
7123
7124
7125
7126
7127
7128
7129
7130
5213506e
RW
7131
7132 # Check whether --enable-static was given.
7133if test "${enable_static+set}" = set; then :
7134 enableval=$enable_static; p=${PACKAGE-default}
77a3eb61
PG
7135 case $enableval in
7136 yes) enable_static=yes ;;
7137 no) enable_static=no ;;
7138 *)
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
7146 fi
7147 done
7148 IFS="$lt_save_ifs"
7149 ;;
7150 esac
7151else
7152 enable_static=yes
5213506e 7153fi
77a3eb61
PG
7154
7155
7156
7157
7158
7159
7160
7161
7162
5213506e
RW
7163
7164# Check whether --with-pic was given.
7165if test "${with_pic+set}" = set; then :
7166 withval=$with_pic; pic_mode="$withval"
77a3eb61
PG
7167else
7168 pic_mode=default
5213506e
RW
7169fi
7170
77a3eb61
PG
7171
7172test -z "$pic_mode" && pic_mode=default
7173
7174
7175
7176
7177
7178
7179
5213506e
RW
7180 # Check whether --enable-fast-install was given.
7181if test "${enable_fast_install+set}" = set; then :
7182 enableval=$enable_fast_install; p=${PACKAGE-default}
77a3eb61
PG
7183 case $enableval in
7184 yes) enable_fast_install=yes ;;
7185 no) enable_fast_install=no ;;
7186 *)
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
7194 fi
7195 done
7196 IFS="$lt_save_ifs"
1cf3d07d
SE
7197 ;;
7198 esac
77a3eb61
PG
7199else
7200 enable_fast_install=yes
5213506e
RW
7201fi
7202
1cf3d07d 7203
1cf3d07d
SE
7204
7205
1cf3d07d 7206
1cf3d07d 7207
1cf3d07d 7208
1cf3d07d 7209
1cf3d07d
SE
7210
7211
7212
7213# This can be used to rebuild libtool when needed
7214LIBTOOL_DEPS="$ltmain"
7215
7216# Always use our own libtool.
7217LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243test -z "$LN_S" && LN_S="ln -s"
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258if test -n "${ZSH_VERSION+set}" ; then
7259 setopt NO_GLOB_SUBST
7260fi
7261
5213506e
RW
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7263$as_echo_n "checking for objdir... " >&6; }
7264if test "${lt_cv_objdir+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7266else
7267 rm -f .libs 2>/dev/null
7268mkdir .libs 2>/dev/null
7269if test -d .libs; then
7270 lt_cv_objdir=.libs
7271else
7272 # MS-DOS does not allow filenames that begin with a dot.
7273 lt_cv_objdir=_libs
7274fi
7275rmdir .libs 2>/dev/null
7276fi
5213506e
RW
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7278$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7279objdir=$lt_cv_objdir
7280
7281
7282
7283
7284
7285cat >>confdefs.h <<_ACEOF
7286#define LT_OBJDIR "$lt_cv_objdir/"
7287_ACEOF
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305case $host_os in
7306aix3*)
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
7313 fi
7314 ;;
7315esac
7316
7317# Sed substitution that helps us do robust quoting. It backslashifies
7318# metacharacters that are still active within double-quoted strings.
7319sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7320
7321# Same as above, but do not quote variable references.
7322double_quote_subst='s/\(["`\\]\)/\\\1/g'
7323
7324# Sed substitution to delay expansion of an escaped shell variable in a
7325# double_quote_subst'ed string.
7326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7327
7328# Sed substitution to delay expansion of an escaped single quote.
7329delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7330
7331# Sed substitution to avoid accidental globbing in evaled expressions
7332no_glob_subst='s/\*/\\\*/g'
7333
7334# Global variables:
7335ofile=libtool
7336can_build_shared=yes
7337
7338# All known linkers require a `.a' archive for static linking (except MSVC,
7339# which needs '.lib').
7340libext=a
7341
7342with_gnu_ld="$lt_cv_prog_gnu_ld"
7343
7344old_CC="$CC"
7345old_CFLAGS="$CFLAGS"
7346
7347# Set sane defaults for various variables
7348test -z "$CC" && CC=cc
7349test -z "$LTCC" && LTCC=$CC
7350test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7351test -z "$LD" && LD=ld
7352test -z "$ac_objext" && ac_objext=o
7353
7354for 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
7361done
7362cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7363
7364
7365# Only perform the check for file, if the check method requires it
7366test -z "$MAGIC_CMD" && MAGIC_CMD=file
7367case $deplibs_check_method in
7368file_magic*)
7369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
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; }
7372if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7374else
7375 case $MAGIC_CMD in
7376[\\/*] | ?:[\\/]*)
7377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7378 ;;
7379*)
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
7395 :
7396 else
7397 cat <<_LT_EOF 1>&2
7398
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
7407
7408_LT_EOF
7409 fi ;;
7410 esac
7411 fi
7412 break
7413 fi
7414 done
7415 IFS="$lt_save_ifs"
7416 MAGIC_CMD="$lt_save_MAGIC_CMD"
7417 ;;
7418esac
7419fi
7420
7421MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422if test -n "$MAGIC_CMD"; then
5213506e
RW
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7424$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7425else
5213506e
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
1cf3d07d
SE
7428fi
7429
7430
7431
7432
7433
7434if test -z "$lt_cv_path_MAGIC_CMD"; then
7435 if test -n "$ac_tool_prefix"; then
5213506e
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7437$as_echo_n "checking for file... " >&6; }
7438if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7440else
7441 case $MAGIC_CMD in
7442[\\/*] | ?:[\\/]*)
7443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444 ;;
7445*)
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
7461 :
7462 else
7463 cat <<_LT_EOF 1>&2
7464
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
7473
7474_LT_EOF
7475 fi ;;
7476 esac
7477 fi
7478 break
7479 fi
7480 done
7481 IFS="$lt_save_ifs"
7482 MAGIC_CMD="$lt_save_MAGIC_CMD"
7483 ;;
7484esac
7485fi
7486
7487MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488if test -n "$MAGIC_CMD"; then
5213506e
RW
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7490$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7491else
5213506e
RW
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
1cf3d07d
SE
7494fi
7495
7496
7497 else
7498 MAGIC_CMD=:
7499 fi
7500fi
7501
7502 fi
7503 ;;
7504esac
7505
7506# Use C for the default configuration in the libtool script
7507
7508lt_save_CC="$CC"
7509ac_ext=c
7510ac_cpp='$CPP $CPPFLAGS'
7511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514
7515
7516# Source file extension for C test sources.
7517ac_ext=c
7518
7519# Object file extension for compiled C test sources.
7520objext=o
7521objext=$objext
7522
7523# Code to be used in simple compile tests
7524lt_simple_compile_test_code="int some_variable = 0;"
7525
7526# Code to be used in simple link tests
7527lt_simple_link_test_code='int main(){return(0);}'
7528
7529
7530
7531
7532
7533
7534
7535# If no C compiler was specified, use CC.
7536LTCC=${LTCC-"$CC"}
7537
7538# If no C compiler flags were specified, use CFLAGS.
7539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7540
7541# Allow CC to be a program name with arguments.
7542compiler=$CC
7543
7544# Save the default compiler, since it gets overwritten when the other
7545# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7546compiler_DEFAULT=$CC
7547
7548# save warnings/boilerplate of simple test code
7549ac_outfile=conftest.$ac_objext
7550echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7552_lt_compiler_boilerplate=`cat conftest.err`
7553$RM conftest*
7554
7555ac_outfile=conftest.$ac_objext
7556echo "$lt_simple_link_test_code" >conftest.$ac_ext
7557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558_lt_linker_boilerplate=`cat conftest.err`
77a3eb61 7559$RM -r conftest*
1cf3d07d
SE
7560
7561
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...
7566if test -n "$compiler"; then
7567
7568lt_prog_compiler_no_builtin_flag=
7569
7570if test "$GCC" = yes; then
7571 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7572
5213506e
RW
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; }
7575if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7577else
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:'`
5213506e 7591 (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
1cf3d07d
SE
7592 (eval "$lt_compile" 2>conftest.err)
7593 ac_status=$?
7594 cat conftest.err >&5
5213506e 7595 echo "$as_me:7595: \$? = $ac_status" >&5
1cf3d07d
SE
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
7603 fi
7604 fi
7605 $RM conftest*
7606
7607fi
5213506e
RW
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; }
1cf3d07d
SE
7610
7611if 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"
7613else
7614 :
7615fi
7616
7617fi
7618
7619
7620
7621
7622
7623
7624 lt_prog_compiler_wl=
7625lt_prog_compiler_pic=
7626lt_prog_compiler_static=
7627
5213506e
RW
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; }
1cf3d07d
SE
7630
7631 if test "$GCC" = yes; then
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_static='-static'
7634
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'
7641 fi
7642 ;;
7643
7644 amigaos*)
77a3eb61
PG
7645 case $host_cpu in
7646 powerpc)
7647 # see comment about AmigaOS4 .so support
7648 lt_prog_compiler_pic='-fPIC'
7649 ;;
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'
7655 ;;
7656 esac
1cf3d07d
SE
7657 ;;
7658
7659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7660 # PIC is the default for these OSes.
7661 ;;
7662
77a3eb61 7663 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
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'
7669 ;;
7670
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'
7675 ;;
7676
7677 hpux*)
77a3eb61
PG
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.
1cf3d07d 7681 case $host_cpu in
77a3eb61 7682 hppa*64*)
1cf3d07d
SE
7683 # +Z the default
7684 ;;
7685 *)
7686 lt_prog_compiler_pic='-fPIC'
7687 ;;
7688 esac
7689 ;;
7690
7691 interix[3-9]*)
7692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7693 # Instead, we relocate shared libraries at runtime.
7694 ;;
7695
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
7701 ;;
7702
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'
7707 ;;
7708
7709 sysv4*MP*)
7710 if test -d /usr/nec; then
7711 lt_prog_compiler_pic=-Kconform_pic
7712 fi
7713 ;;
7714
7715 *)
7716 lt_prog_compiler_pic='-fPIC'
7717 ;;
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'
7729 fi
7730 ;;
1cf3d07d 7731
77a3eb61 7732 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
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'
7736 ;;
7737
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
7745 ;;
7746 *)
7747 lt_prog_compiler_pic='+Z'
7748 ;;
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'
7752 ;;
7753
7754 irix5* | irix6* | nonstopux*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # PIC (with -KPIC) is the default.
7757 lt_prog_compiler_static='-non_shared'
7758 ;;
7759
7a9d3fe8 7760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7761 case $cc_basename in
77a3eb61
PG
7762 # old Intel for x86_64 which still supported -KPIC.
7763 ecc*)
1cf3d07d
SE
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-static'
7767 ;;
77a3eb61
PG
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'
7774 ;;
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'
7780 ;;
1cf3d07d
SE
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'
7787 ;;
7788 ccc*)
7789 lt_prog_compiler_wl='-Wl,'
7790 # All Alpha code is PIC.
7791 lt_prog_compiler_static='-non_shared'
7792 ;;
77a3eb61
PG
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'
7798 ;;
1cf3d07d
SE
7799 *)
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,'
7806 ;;
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=''
7812 ;;
7813 esac
7814 ;;
7815 esac
7816 ;;
7817
7818 newsos6)
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7821 ;;
7822
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'
7827 ;;
7828
7829 osf3* | osf4* | osf5*)
7830 lt_prog_compiler_wl='-Wl,'
7831 # All OSF/1 code is PIC.
7832 lt_prog_compiler_static='-non_shared'
7833 ;;
7834
7835 rdos*)
7836 lt_prog_compiler_static='-non_shared'
7837 ;;
7838
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 ';;
7845 *)
7846 lt_prog_compiler_wl='-Wl,';;
7847 esac
7848 ;;
7849
7850 sunos4*)
7851 lt_prog_compiler_wl='-Qoption ld '
7852 lt_prog_compiler_pic='-PIC'
7853 lt_prog_compiler_static='-Bstatic'
7854 ;;
7855
7856 sysv4 | sysv4.2uw2* | sysv4.3*)
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_pic='-KPIC'
7859 lt_prog_compiler_static='-Bstatic'
7860 ;;
7861
7862 sysv4*MP*)
7863 if test -d /usr/nec ;then
7864 lt_prog_compiler_pic='-Kconform_pic'
7865 lt_prog_compiler_static='-Bstatic'
7866 fi
7867 ;;
7868
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'
7873 ;;
7874
7875 unicos*)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_can_build_shared=no
7878 ;;
7879
7880 uts4*)
7881 lt_prog_compiler_pic='-pic'
7882 lt_prog_compiler_static='-Bstatic'
7883 ;;
7884
7885 *)
7886 lt_prog_compiler_can_build_shared=no
7887 ;;
7888 esac
7889 fi
7890
7891case $host_os in
7892 # For platforms which do not support PIC, -DPIC is meaningless:
7893 *djgpp*)
7894 lt_prog_compiler_pic=
7895 ;;
7896 *)
7897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7898 ;;
7899esac
5213506e
RW
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7901$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
7902
7903
7904
7905
7906
7907
7908#
7909# Check to make sure the PIC flag actually works.
7910#
7911if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
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; }
7914if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
1cf3d07d 7916else
77a3eb61 7917 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
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:'`
5213506e 7930 (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
1cf3d07d
SE
7931 (eval "$lt_compile" 2>conftest.err)
7932 ac_status=$?
7933 cat conftest.err >&5
5213506e 7934 echo "$as_me:7934: \$? = $ac_status" >&5
1cf3d07d
SE
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
77a3eb61 7941 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7942 fi
7943 fi
7944 $RM conftest*
7945
7946fi
5213506e
RW
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; }
1cf3d07d 7949
77a3eb61 7950if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7951 case $lt_prog_compiler_pic in
7952 "" | " "*) ;;
7953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7954 esac
7955else
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_can_build_shared=no
7958fi
7959
7960fi
7961
7962
7963
7964
7965
7966
7967#
7968# Check to make sure the static flag actually works.
7969#
7970wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
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; }
7973if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
1cf3d07d 7975else
77a3eb61 7976 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
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
77a3eb61 7989 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7990 fi
7991 else
77a3eb61 7992 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7993 fi
7994 fi
77a3eb61 7995 $RM -r conftest*
1cf3d07d
SE
7996 LDFLAGS="$save_LDFLAGS"
7997
7998fi
5213506e
RW
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; }
1cf3d07d 8001
77a3eb61 8002if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8003 :
8004else
8005 lt_prog_compiler_static=
8006fi
8007
8008
8009
8010
8011
8012
8013
5213506e
RW
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; }
8016if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8018else
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
8025
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:'`
5213506e 8035 (eval echo "\"\$as_me:8035: $lt_compile\"" >&5)
1cf3d07d
SE
8036 (eval "$lt_compile" 2>out/conftest.err)
8037 ac_status=$?
8038 cat out/conftest.err >&5
5213506e 8039 echo "$as_me:8039: \$? = $ac_status" >&5
1cf3d07d
SE
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
8048 fi
8049 fi
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*
8059
8060fi
5213506e
RW
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; }
1cf3d07d
SE
8063
8064
8065
8066
8067
8068
5213506e
RW
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; }
8071if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8073else
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
8080
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:'`
5213506e 8090 (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
1cf3d07d
SE
8091 (eval "$lt_compile" 2>out/conftest.err)
8092 ac_status=$?
8093 cat out/conftest.err >&5
5213506e 8094 echo "$as_me:8094: \$? = $ac_status" >&5
1cf3d07d
SE
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
8103 fi
8104 fi
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*
8114
8115fi
5213506e
RW
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; }
1cf3d07d
SE
8118
8119
8120
8121
8122hard_links="nottested"
8123if 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
5213506e
RW
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; }
1cf3d07d
SE
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
5213506e
RW
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8134$as_echo "$hard_links" >&6; }
1cf3d07d 8135 if test "$hard_links" = no; then
5213506e
RW
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;}
1cf3d07d
SE
8138 need_locks=warn
8139 fi
8140else
8141 need_locks=no
8142fi
8143
8144
8145
8146
8147
8148
5213506e
RW
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; }
1cf3d07d
SE
8151
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'.
77a3eb61 8184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
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.
77a3eb61 8190 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8191 extract_expsyms_cmds=
8192
8193 case $host_os in
77a3eb61 8194 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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
8200 fi
8201 ;;
8202 interix*)
8203 # we just hope/assume this is gcc and not c89 (= MSVC++)
8204 with_gnu_ld=yes
8205 ;;
8206 openbsd*)
8207 with_gnu_ld=no
8208 ;;
8209 esac
8210
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}'
8215
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=
8227 fi
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
8236
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
445bad9b 8239 aix[3-9]*)
1cf3d07d
SE
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
8244
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.
8250
8251_LT_EOF
8252 fi
8253 ;;
8254
8255 amigaos*)
77a3eb61
PG
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=''
8261 ;;
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
8266 ;;
8267 esac
1cf3d07d
SE
8268 ;;
8269
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
8278 fi
8279 ;;
8280
77a3eb61 8281 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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'
8289
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;
8299 fi~
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
8303 fi
8304 ;;
8305
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'
8319 ;;
8320
7a9d3fe8 8321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
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
8327 fi
8328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8329 && test "$tmp_diet" = no
8330 then
8331 tmp_addflag=
77a3eb61 8332 tmp_sharedflag='-shared'
1cf3d07d
SE
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'
8337 ;;
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' ;;
77a3eb61
PG
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= ;;
1cf3d07d
SE
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' ;;
1cf3d07d
SE
8361 esac
8362 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363
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'
8369 fi
77a3eb61
PG
8370
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'
8383 fi
8384 ;;
8385 esac
1cf3d07d
SE
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
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'
8398 fi
8399 ;;
8400
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
8405
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.
8412
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
8419 fi
8420 ;;
8421
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
8427
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.
8434
8435_LT_EOF
8436 ;;
8437 *)
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
8448 fi
8449 ;;
8450 esac
8451 ;;
8452
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
8458 ;;
8459
8460 *)
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
8466 fi
8467 ;;
8468 esac
8469
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=
8475 fi
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
8490 fi
8491 ;;
8492
445bad9b 8493 aix[4-9]*)
1cf3d07d
SE
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'
8507 fi
8508 aix_use_runtimelinking=no
8509
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.
445bad9b 8513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
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
8518 fi
8519 done
8520 ;;
8521 esac
8522
8523 exp_sym_flag='-bexport'
8524 no_entry_flag='-bnoentry'
8525 fi
8526
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.
8532
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,'
8539
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
8549 :
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=
8559 fi
8560 ;;
8561 esac
8562 shared_flag='-shared'
8563 if test "$aix_use_runtimelinking" = yes; then
8564 shared_flag="$shared_flag "'${wl}-G'
8565 fi
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'
8577 fi
8578 fi
8579 fi
8580
77a3eb61 8581 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
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
5213506e 8592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8593fi
5213506e 8594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8595/* end confdefs.h. */
8596
8597int
8598main ()
8599{
8600
8601 ;
8602 return 0;
8603}
8604_ACEOF
5213506e 8605if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8606
8607lt_aix_libpath_sed='
8608 /Import File Strings/,/^$/ {
8609 /^0/ {
8610 s/^0 *\(.*\)$/\1/
8611 p
8612 }
8613 }'
8614aix_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.
8616if test -z "$aix_libpath"; then
8617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618fi
1cf3d07d 8619fi
5213506e
RW
8620rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8623
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
5213506e 8635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8636fi
5213506e 8637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8638/* end confdefs.h. */
8639
8640int
8641main ()
8642{
8643
8644 ;
8645 return 0;
8646}
8647_ACEOF
5213506e 8648if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8649
8650lt_aix_libpath_sed='
8651 /Import File Strings/,/^$/ {
8652 /^0/ {
8653 s/^0 *\(.*\)$/\1/
8654 p
8655 }
8656 }'
8657aix_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.
8659if test -z "$aix_libpath"; then
8660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8661fi
1cf3d07d 8662fi
5213506e
RW
8663rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8666
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'
8677 fi
8678 fi
8679 ;;
8680
8681 amigaos*)
77a3eb61
PG
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=''
8687 ;;
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
8692 ;;
8693 esac
1cf3d07d
SE
8694 ;;
8695
8696 bsdi[45]*)
8697 export_dynamic_flag_spec=-rdynamic
8698 ;;
8699
77a3eb61 8700 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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
8719 ;;
8720
8721 darwin* | rhapsody*)
1cf3d07d 8722
77a3eb61
PG
8723
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}"
8741
8742 else
8743 ld_shlibs=no
8744 fi
8745
1cf3d07d
SE
8746 ;;
8747
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
8752 ;;
8753
8754 freebsd1*)
8755 ld_shlibs=no
8756 ;;
8757
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
8767 ;;
8768
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
8775 ;;
8776
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
8783 ;;
8784
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'
8790 fi
8791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8792 hardcode_libdir_separator=:
8793 hardcode_direct=yes
8794
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'
8799 ;;
8800
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'
8806 fi
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
8817 fi
8818 ;;
8819
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'
8825 ;;
8826 ia64*)
77a3eb61 8827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
8828 ;;
8829 *)
8830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831 ;;
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'
8837 ;;
8838 ia64*)
8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 *)
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 esac
8845 fi
8846 if test "$with_gnu_ld" = no; then
8847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8848 hardcode_libdir_separator=:
8849
8850 case $host_cpu in
8851 hppa*64*|ia64*)
8852 hardcode_direct=no
8853 hardcode_shlibpath_var=no
8854 ;;
8855 *)
8856 hardcode_direct=yes
8857 hardcode_direct_absolute=yes
8858 export_dynamic_flag_spec='${wl}-E'
8859
8860 # hardcode_minus_L: Not really in the search PATH,
8861 # but as the default location of the library.
8862 hardcode_minus_L=yes
8863 ;;
8864 esac
8865 fi
8866 ;;
8867
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
5213506e 8877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8878fi
5213506e
RW
8879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h. */
1cf3d07d
SE
8881int foo(void) {}
8882_ACEOF
5213506e 8883if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
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'
8885
1cf3d07d 8886fi
5213506e
RW
8887rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
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'
8893 fi
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
8899 ;;
8900
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
8906 fi
8907 hardcode_libdir_flag_spec='-R$libdir'
8908 hardcode_direct=yes
8909 hardcode_shlibpath_var=no
8910 ;;
8911
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
8918 ;;
8919
8920 *nto* | *qnx*)
8921 ;;
8922
8923 openbsd*)
77a3eb61
PG
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
1cf3d07d 8929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
77a3eb61 8930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
77a3eb61
PG
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'
8938 ;;
8939 *)
8940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8942 ;;
8943 esac
8944 fi
8945 else
8946 ld_shlibs=no
1cf3d07d
SE
8947 fi
8948 ;;
8949
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'
8956 ;;
8957
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'
8965 fi
8966 archive_cmds_need_lc='no'
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 hardcode_libdir_separator=:
8969 ;;
8970
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'
8981
8982 # Both c and cxx compiler support -rpath directly
8983 hardcode_libdir_flag_spec='-rpath $libdir'
8984 fi
8985 archive_cmds_need_lc='no'
8986 hardcode_libdir_separator=:
8987 ;;
8988
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'
9003 ;;
9004 *)
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'
9009 ;;
9010 esac
9011 fi
9012 hardcode_libdir_flag_spec='-R$libdir'
9013 hardcode_shlibpath_var=no
9014 case $host_os in
9015 solaris2.[0-5] | solaris2.[0-5].*) ;;
9016 *)
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'
9025 fi
9026 ;;
9027 esac
9028 link_all_deplibs=yes
9029 ;;
9030
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'
9038 fi
9039 hardcode_libdir_flag_spec='-L$libdir'
9040 hardcode_direct=yes
9041 hardcode_minus_L=yes
9042 hardcode_shlibpath_var=no
9043 ;;
9044
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???
9050 ;;
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
9057 ;;
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
9061 ;;
9062 esac
9063 runpath_var='LD_RUN_PATH'
9064 hardcode_shlibpath_var=no
9065 ;;
9066
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'
9071 ;;
9072
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
9080 fi
9081 ;;
9082
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'
9088
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'
9095 fi
9096 ;;
9097
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'
9114
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'
9121 fi
9122 ;;
9123
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
9128 ;;
9129
9130 *)
9131 ld_shlibs=no
9132 ;;
9133 esac
9134
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'
9139 ;;
9140 esac
9141 fi
9142 fi
9143
5213506e
RW
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9145$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9146test "$ld_shlibs" = no && can_build_shared=no
9147
9148with_gnu_ld=$with_gnu_ld
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164#
9165# Do we need to explicitly link libc?
9166#
9167case "x$archive_cmds_need_lc" in
9168x|xyes)
9169 # Assume -lc should be added
9170 archive_cmds_need_lc=yes
9171
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.
9176 ;;
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.
5213506e
RW
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; }
9183if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
baafc534
RW
9185else
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9188
5213506e 9189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9190 (eval $ac_compile) 2>&5
9191 ac_status=$?
5213506e
RW
9192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9193 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
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=
5213506e 9207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
5213506e
RW
9210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9211 test $ac_status = 0; }
baafc534
RW
9212 then
9213 lt_cv_archive_cmds_need_lc=no
9214 else
9215 lt_cv_archive_cmds_need_lc=yes
9216 fi
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9220 fi
9221 $RM conftest*
9222
9223fi
5213506e
RW
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; }
baafc534 9226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9227 ;;
9228 esac
9229 fi
9230 ;;
9231esac
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
5213506e
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9390$as_echo_n "checking dynamic linker characteristics... " >&6; }
77a3eb61
PG
9391
9392if test "$GCC" = yes; then
1cf3d07d
SE
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"`
9406 fi
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"
9417 fi
9418 done
9419 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9420BEGIN {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--;
9432 }
9433 }
9434 }
9435 }
9436 if (lt_foo != "") { lt_freq[lt_foo]++; }
9437 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9438}'`
9439 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9440else
9441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9442fi
9443library_names_spec=
9444libname_spec='lib$name'
9445soname_spec=
9446shrext_cmds=".so"
9447postinstall_cmds=
9448postuninstall_cmds=
9449finish_cmds=
9450finish_eval=
9451shlibpath_var=
9452shlibpath_overrides_runpath=unknown
9453version_type=none
9454dynamic_linker="$host_os ld.so"
9455sys_lib_dlsearch_path_spec="/lib /usr/lib"
9456need_lib_prefix=unknown
9457hardcode_into_libs=no
9458
9459# when you set need_version to no, make sure it does not cause -set_version
9460# flags to be left without arguments
9461need_version=unknown
9462
9463case $host_os in
9464aix3*)
9465 version_type=linux
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9467 shlibpath_var=LIBPATH
9468
9469 # AIX 3 has no versioning support, so we append a major version to the name.
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 ;;
9472
445bad9b 9473aix[4-9]*)
1cf3d07d
SE
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
9493 :
9494 else
9495 can_build_shared=no
9496 fi
9497 ;;
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'
9512 fi
9513 shlibpath_var=LIBPATH
9514 fi
9515 ;;
9516
9517amigaos*)
77a3eb61
PG
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}'
9523 ;;
9524 m68k)
1cf3d07d
SE
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'
77a3eb61
PG
9528 ;;
9529 esac
1cf3d07d
SE
9530 ;;
9531
9532beos*)
9533 library_names_spec='${libname}${shared_ext}'
9534 dynamic_linker="$host_os ld.so"
9535 shlibpath_var=LIBRARY_PATH
9536 ;;
9537
9538bsdi[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
9550 ;;
9551
77a3eb61 9552cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9553 version_type=windows
9554 shrext_cmds=".dll"
9555 need_version=no
9556 need_lib_prefix=no
9557
77a3eb61
PG
9558 case $GCC,$host_os in
9559 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
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 \$?;
9570 fi'
9571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9572 dlpath=$dir/\$dldll~
9573 $RM \$dlpath'
9574 shlibpath_overrides_runpath=yes
9575
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"
9581 ;;
77a3eb61 9582 mingw* | cegcc*)
1cf3d07d
SE
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"`
9596 fi
9597 ;;
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}'
9601 ;;
9602 esac
9603 ;;
9604
9605 *)
9606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9607 ;;
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
9612 ;;
9613
9614darwin* | 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`'
9624
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'
9627 ;;
9628
9629dgux*)
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
9636 ;;
9637
9638freebsd1*)
9639 dynamic_linker=no
9640 ;;
9641
9642freebsd* | 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
9652 fi
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
9659 ;;
9660 freebsd-*)
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9662 need_version=yes
9663 ;;
9664 esac
9665 shlibpath_var=LD_LIBRARY_PATH
9666 case $host_os in
9667 freebsd2*)
9668 shlibpath_overrides_runpath=yes
9669 ;;
9670 freebsd3.[01]* | freebsdelf3.[01]*)
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9673 ;;
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
9678 ;;
9679 *) # from 4.6 on, and DragonFly
9680 shlibpath_overrides_runpath=yes
9681 hardcode_into_libs=yes
9682 ;;
9683 esac
9684 ;;
9685
9686gnu*)
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
9694 ;;
9695
9696hpux9* | 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"
9715 fi
9716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9717 ;;
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
9728 ;;
9729 *)
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'
9736 ;;
9737 esac
9738 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9739 postinstall_cmds='chmod 555 $lib'
9740 ;;
9741
9742interix[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
9752 ;;
9753
9754irix5* | irix6* | nonstopux*)
9755 case $host_os in
9756 nonstopux*) version_type=nonstopux ;;
9757 *)
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=
9771 ;;
9772 *)
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
9782 ;;
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
9789 ;;
9790
9791# No shared lib support for Linux oldld, aout, or coff.
9792linux*oldld* | linux*aout* | linux*coff*)
9793 dynamic_linker=no
9794 ;;
9795
9796# This must be Linux ELF.
7a9d3fe8 9797linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
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
baafc534 9806
1cf3d07d 9807 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
9808 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
baafc534
RW
9810else
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
5213506e 9817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9818fi
5213506e 9819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9820/* end confdefs.h. */
9821
9822int
9823main ()
9824{
9825
9826 ;
9827 return 0;
9828}
9829_ACEOF
5213506e
RW
9830if ac_fn_c_try_link "$LINENO"; then :
9831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 9832 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 9833fi
1cf3d07d 9834fi
5213506e
RW
9835rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9837 LDFLAGS=$save_LDFLAGS
9838 libdir=$save_libdir
9839
9840fi
9841
9842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9843
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
9848
9849 # Append ld.so.conf contents to the search path
9850 if test -f /etc/ld.so.conf; then
77a3eb61 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' ' '`
1cf3d07d
SE
9852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9853 fi
9854
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'
9862 ;;
9863
9864netbsd*)
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'
9876 fi
9877 shlibpath_var=LD_LIBRARY_PATH
9878 shlibpath_overrides_runpath=yes
9879 hardcode_into_libs=yes
9880 ;;
9881
9882newsos6)
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
9887 ;;
9888
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'
9899 ;;
9900
9901openbsd*)
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
9917 ;;
9918 *)
9919 shlibpath_overrides_runpath=yes
9920 ;;
9921 esac
9922 else
9923 shlibpath_overrides_runpath=yes
9924 fi
9925 ;;
9926
9927os2*)
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
9934 ;;
9935
9936osf3* | 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"
9945 ;;
9946
9947rdos*)
9948 dynamic_linker=no
9949 ;;
9950
9951solaris*)
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'
9962 ;;
9963
9964sunos4*)
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
9972 fi
9973 need_version=yes
9974 ;;
9975
9976sysv4 | 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
9986 ;;
9987 siemens)
9988 need_lib_prefix=no
9989 ;;
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'
9995 ;;
9996 esac
9997 ;;
9998
9999sysv4*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
10005 fi
10006 ;;
10007
10008sysv5* | 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"
10024 ;;
10025 esac
10026 fi
10027 sys_lib_dlsearch_path_spec='/usr/lib'
10028 ;;
10029
10030tpf*)
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
77a3eb61 10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10039 ;;
10040
10041uts4*)
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
10046 ;;
10047
10048*)
10049 dynamic_linker=no
10050 ;;
10051esac
5213506e
RW
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10053$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10054test "$dynamic_linker" = no && can_build_shared=no
10055
10056variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10057if test "$GCC" = yes; then
10058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10059fi
10060
77a3eb61
PG
10061if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10063fi
10064if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10066fi
10067
1cf3d07d
SE
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
5213506e
RW
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; }
1cf3d07d
SE
10156hardcode_action=
10157if test -n "$hardcode_libdir_flag_spec" ||
10158 test -n "$runpath_var" ||
10159 test "X$hardcode_automatic" = "Xyes" ; then
10160
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
10173 fi
10174else
10175 # We cannot hardcode anything, or else we can only hardcode existing
10176 # directories.
10177 hardcode_action=unsupported
10178fi
5213506e
RW
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10180$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
10181
10182if test "$hardcode_action" = relink ||
10183 test "$inherit_rpath" = yes; then
10184 # Fast installation is not supported
10185 enable_fast_install=no
10186elif test "$shlibpath_overrides_runpath" = yes ||
10187 test "$enable_shared" = no; then
10188 # Fast installation is not necessary
10189 enable_fast_install=needless
10190fi
10191
10192
10193
10194
10195
10196
10197 if test "x$enable_dlopen" != xyes; then
10198 enable_dlopen=unknown
10199 enable_dlopen_self=unknown
10200 enable_dlopen_self_static=unknown
10201else
10202 lt_cv_dlopen=no
10203 lt_cv_dlopen_libs=
10204
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
10210 ;;
10211
77a3eb61 10212 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10213 lt_cv_dlopen="LoadLibrary"
10214 lt_cv_dlopen_libs=
10215 ;;
10216
10217 cygwin*)
10218 lt_cv_dlopen="dlopen"
5213506e
RW
10219 lt_cv_dlopen_libs=
10220 ;;
10221
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; }
10226if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10228else
10229 ac_check_lib_save_LIBS=$LIBS
5213506e 10230LIBS="-ldl $LIBS"
1cf3d07d 10231if test x$gcc_no_link = xyes; then
5213506e 10232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10233fi
5213506e 10234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10235/* end confdefs.h. */
10236
5213506e
RW
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. */
1cf3d07d
SE
10240#ifdef __cplusplus
10241extern "C"
10242#endif
5213506e 10243char dlopen ();
1cf3d07d
SE
10244int
10245main ()
10246{
5213506e 10247return dlopen ();
1cf3d07d
SE
10248 ;
10249 return 0;
10250}
10251_ACEOF
5213506e
RW
10252if ac_fn_c_try_link "$LINENO"; then :
10253 ac_cv_lib_dl_dlopen=yes
1cf3d07d 10254else
5213506e 10255 ac_cv_lib_dl_dlopen=no
1cf3d07d 10256fi
5213506e
RW
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10259LIBS=$ac_check_lib_save_LIBS
10260fi
5213506e
RW
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10262$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10263if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1cf3d07d 10265else
1cf3d07d 10266
5213506e
RW
10267 lt_cv_dlopen="dyld"
10268 lt_cv_dlopen_libs=
10269 lt_cv_dlopen_self=yes
1cf3d07d 10270
5213506e 10271fi
1cf3d07d 10272
5213506e 10273 ;;
1cf3d07d 10274
5213506e
RW
10275 *)
10276 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10277if test "x$ac_cv_func_shl_load" = x""yes; then :
10278 lt_cv_dlopen="shl_load"
10279else
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; }
10282if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284else
10285 ac_check_lib_save_LIBS=$LIBS
10286LIBS="-ldld $LIBS"
10287if test x$gcc_no_link = xyes; then
10288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10289fi
10290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h. */
10292
10293/* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
1cf3d07d 10295 builtin and then its argument prototype would still apply. */
1cf3d07d 10296#ifdef __cplusplus
5213506e 10297extern "C"
1cf3d07d 10298#endif
5213506e 10299char shl_load ();
1cf3d07d
SE
10300int
10301main ()
10302{
5213506e 10303return shl_load ();
1cf3d07d
SE
10304 ;
10305 return 0;
10306}
10307_ACEOF
5213506e
RW
10308if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_dld_shl_load=yes
1cf3d07d 10310else
5213506e 10311 ac_cv_lib_dld_shl_load=no
1cf3d07d 10312fi
5213506e
RW
10313rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315LIBS=$ac_check_lib_save_LIBS
1cf3d07d 10316fi
5213506e
RW
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; }
10319if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10321else
10322 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10324 lt_cv_dlopen="dlopen"
10325else
5213506e
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327$as_echo_n "checking for dlopen in -ldl... " >&6; }
10328if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10330else
10331 ac_check_lib_save_LIBS=$LIBS
10332LIBS="-ldl $LIBS"
10333if test x$gcc_no_link = xyes; then
5213506e 10334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10335fi
5213506e 10336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10337/* end confdefs.h. */
10338
5213506e
RW
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. */
1cf3d07d
SE
10342#ifdef __cplusplus
10343extern "C"
10344#endif
1cf3d07d
SE
10345char dlopen ();
10346int
10347main ()
10348{
5213506e 10349return dlopen ();
1cf3d07d
SE
10350 ;
10351 return 0;
10352}
10353_ACEOF
5213506e 10354if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10355 ac_cv_lib_dl_dlopen=yes
10356else
5213506e 10357 ac_cv_lib_dl_dlopen=no
1cf3d07d 10358fi
5213506e
RW
10359rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10361LIBS=$ac_check_lib_save_LIBS
10362fi
5213506e
RW
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367else
5213506e
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10369$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10370if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10372else
10373 ac_check_lib_save_LIBS=$LIBS
10374LIBS="-lsvld $LIBS"
10375if test x$gcc_no_link = xyes; then
5213506e 10376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10377fi
5213506e 10378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10379/* end confdefs.h. */
10380
5213506e
RW
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. */
1cf3d07d
SE
10384#ifdef __cplusplus
10385extern "C"
10386#endif
1cf3d07d
SE
10387char dlopen ();
10388int
10389main ()
10390{
5213506e 10391return dlopen ();
1cf3d07d
SE
10392 ;
10393 return 0;
10394}
10395_ACEOF
5213506e 10396if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10397 ac_cv_lib_svld_dlopen=yes
10398else
5213506e 10399 ac_cv_lib_svld_dlopen=no
1cf3d07d 10400fi
5213506e
RW
10401rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10403LIBS=$ac_check_lib_save_LIBS
10404fi
5213506e
RW
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10406$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10407if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
10408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10409else
5213506e
RW
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; }
10412if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
77008252 10414else
1cf3d07d
SE
10415 ac_check_lib_save_LIBS=$LIBS
10416LIBS="-ldld $LIBS"
10417if test x$gcc_no_link = xyes; then
5213506e 10418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
be14fe72 10419fi
5213506e 10420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77008252
JJ
10421/* end confdefs.h. */
10422
5213506e
RW
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. */
1cf3d07d
SE
10426#ifdef __cplusplus
10427extern "C"
10428#endif
1cf3d07d 10429char dld_link ();
77008252
JJ
10430int
10431main ()
10432{
5213506e 10433return dld_link ();
77008252
JJ
10434 ;
10435 return 0;
10436}
10437_ACEOF
5213506e 10438if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10439 ac_cv_lib_dld_dld_link=yes
77008252 10440else
5213506e 10441 ac_cv_lib_dld_dld_link=no
77008252 10442fi
5213506e
RW
10443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10445LIBS=$ac_check_lib_save_LIBS
10446fi
5213506e
RW
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; }
10449if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
77a3eb61 10450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10451fi
10452
77008252
JJ
10453
10454fi
1cf3d07d
SE
10455
10456
10457fi
10458
10459
10460fi
10461
10462
10463fi
10464
10465
10466fi
10467
10468 ;;
10469 esac
10470
10471 if test "x$lt_cv_dlopen" != xno; then
10472 enable_dlopen=yes
10473 else
10474 enable_dlopen=no
77008252 10475 fi
77008252 10476
1cf3d07d
SE
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"
77008252 10481
1cf3d07d
SE
10482 save_LDFLAGS="$LDFLAGS"
10483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
77008252 10484
1cf3d07d
SE
10485 save_LIBS="$LIBS"
10486 LIBS="$lt_cv_dlopen_libs $LIBS"
77008252 10487
5213506e
RW
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; }
10490if test "${lt_cv_dlopen_self+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10492else
10493 if test "$cross_compiling" = yes; then :
10494 lt_cv_dlopen_self=cross
10495else
10496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497 lt_status=$lt_dlunknown
10498 cat > conftest.$ac_ext <<_LT_EOF
5213506e 10499#line 10499 "configure"
1cf3d07d 10500#include "confdefs.h"
77008252 10501
1cf3d07d
SE
10502#if HAVE_DLFCN_H
10503#include <dlfcn.h>
10504#endif
77008252 10505
1cf3d07d
SE
10506#include <stdio.h>
10507
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
10517
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
10539
1cf3d07d
SE
10540void fnord() { int i=42;}
10541int main ()
77008252 10542{
1cf3d07d
SE
10543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10544 int status = $lt_dlunknown;
10545
10546 if (self)
10547 {
10548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10549 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10550 /* dlclose (self); */
10551 }
77008252 10552 else
1cf3d07d
SE
10553 puts (dlerror ());
10554
77a3eb61 10555 return status;
1cf3d07d
SE
10556}
10557_LT_EOF
5213506e 10558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
10559 (eval $ac_link) 2>&5
10560 ac_status=$?
5213506e
RW
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
1cf3d07d
SE
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
77008252
JJ
10573 fi
10574fi
1cf3d07d
SE
10575rm -fr conftest*
10576
10577
10578fi
5213506e
RW
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10580$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
10581
10582 if test "x$lt_cv_dlopen_self" = xyes; then
10583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
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; }
10586if test "${lt_cv_dlopen_self_static+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10588else
10589 if test "$cross_compiling" = yes; then :
10590 lt_cv_dlopen_self_static=cross
10591else
10592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10593 lt_status=$lt_dlunknown
10594 cat > conftest.$ac_ext <<_LT_EOF
5213506e 10595#line 10595 "configure"
1cf3d07d
SE
10596#include "confdefs.h"
10597
10598#if HAVE_DLFCN_H
10599#include <dlfcn.h>
10600#endif
10601
10602#include <stdio.h>
10603
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
10613
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
10635
1cf3d07d
SE
10636void fnord() { int i=42;}
10637int main ()
10638{
10639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640 int status = $lt_dlunknown;
10641
10642 if (self)
10643 {
10644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10646 /* dlclose (self); */
10647 }
10648 else
10649 puts (dlerror ());
10650
77a3eb61 10651 return status;
1cf3d07d
SE
10652}
10653_LT_EOF
5213506e 10654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
10655 (eval $ac_link) 2>&5
10656 ac_status=$?
5213506e
RW
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
1cf3d07d
SE
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
10669 fi
10670fi
10671rm -fr conftest*
10672
10673
10674fi
5213506e
RW
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10676$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
10677 fi
10678
10679 CPPFLAGS="$save_CPPFLAGS"
10680 LDFLAGS="$save_LDFLAGS"
10681 LIBS="$save_LIBS"
10682 ;;
10683 esac
10684
10685 case $lt_cv_dlopen_self in
10686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10687 *) enable_dlopen_self=unknown ;;
10688 esac
10689
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
10694fi
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712striplib=
10713old_striplib=
5213506e
RW
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; }
1cf3d07d
SE
10716if 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"
5213506e
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720$as_echo "yes" >&6; }
1cf3d07d
SE
10721else
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"
5213506e
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729$as_echo "yes" >&6; }
1cf3d07d 10730 else
5213506e
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
1cf3d07d
SE
10733 fi
10734 ;;
10735 *)
5213506e
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }
1cf3d07d
SE
10738 ;;
10739 esac
10740fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 # Report which library types will actually be built
5213506e
RW
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; }
1cf3d07d 10758
5213506e
RW
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; }
1cf3d07d
SE
10761 test "$can_build_shared" = "no" && enable_shared=no
10762
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'
10771 fi
10772 ;;
10773
445bad9b 10774 aix[4-9]*)
1cf3d07d
SE
10775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10776 test "$enable_shared" = yes && enable_static=no
10777 fi
10778 ;;
10779 esac
5213506e
RW
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10781$as_echo "$enable_shared" >&6; }
1cf3d07d 10782
5213506e
RW
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; }
1cf3d07d
SE
10785 # Make sure either enable_shared or enable_static is yes.
10786 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10788$as_echo "$enable_static" >&6; }
1cf3d07d
SE
10789
10790
77008252 10791
77008252 10792
77008252 10793fi
1cf3d07d
SE
10794ac_ext=c
10795ac_cpp='$CPP $CPPFLAGS'
10796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800CC="$lt_save_CC"
10801
10802
10803
10804
10805
10806
10807
77008252
JJ
10808
10809
77008252 10810
77008252 10811
77008252
JJ
10812
10813
5213506e 10814 ac_config_commands="$ac_config_commands libtool"
77008252
JJ
10815
10816
10817
10818
1cf3d07d
SE
10819# Only expand once:
10820
10821
77008252
JJ
10822
10823
10824
10825# Calculate toolexeclibdir
10826# Also toolexecdir, though it's only used in toolexeclibdir
10827case ${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)'
10834 ;;
10835 no)
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)'
10844 fi
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
10850 ;;
10851esac
10852
10853
10854
10855if test ${multilib} = yes; then
10856 multilib_arg="--enable-multilib"
10857else
10858 multilib_arg=
10859fi
10860
5213506e 10861ac_config_files="$ac_config_files Makefile ssp/ssp.h"
77008252
JJ
10862
10863cat >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.
10869#
10870# config.status only pays attention to the cache file if you give it
10871# the --recheck option to rerun configure.
10872#
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.
10876
10877_ACEOF
10878
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.
5213506e 10881# So, we kill variables containing newlines.
77008252
JJ
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.
5213506e
RW
10884(
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
10900
77008252 10901 (set) 2>&1 |
5213506e
RW
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 \.
77008252
JJ
10906 sed -n \
10907 "s/'/'\\\\''/g;
10908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 10909 ;; #(
77008252
JJ
10910 *)
10911 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 10912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
77008252 10913 ;;
5213506e
RW
10914 esac |
10915 sort
10916) |
77008252 10917 sed '
5213506e 10918 /^ac_cv_env_/b end
77008252 10919 t clear
5213506e 10920 :clear
77008252
JJ
10921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10922 t end
5213506e
RW
10923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10924 :end' >>confcache
10925if 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;}
77008252
JJ
10930 cat confcache >$cache_file
10931 else
5213506e
RW
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;}
77008252
JJ
10934 fi
10935fi
10936rm -f confcache
10937
10938test "x$prefix" = xNONE && prefix=$ac_default_prefix
10939# Let make expand exec_prefix.
10940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10941
77008252
JJ
10942DEFS=-DHAVE_CONFIG_H
10943
10944ac_libobjs=
10945ac_ltlibobjs=
10946for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10947 # 1. Remove the extension, and $U if already installed.
5213506e
RW
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'
77008252
JJ
10954done
10955LIBOBJS=$ac_libobjs
10956
10957LTLIBOBJS=$ac_ltlibobjs
10958
10959
5213506e
RW
10960 if test -n "$EXEEXT"; then
10961 am__EXEEXT_TRUE=
10962 am__EXEEXT_FALSE='#'
10963else
10964 am__EXEEXT_TRUE='#'
10965 am__EXEEXT_FALSE=
10966fi
10967
77008252 10968if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
10969 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10970Usually this means the macro was only invoked conditionally." "$LINENO" 5
77008252
JJ
10971fi
10972if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
10973 as_fn_error "conditional \"AMDEP\" was never defined.
10974Usually this means the macro was only invoked conditionally." "$LINENO" 5
77008252
JJ
10975fi
10976if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
10977 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10978Usually this means the macro was only invoked conditionally." "$LINENO" 5
77008252
JJ
10979fi
10980if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
5213506e
RW
10981 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
10982Usually this means the macro was only invoked conditionally." "$LINENO" 5
77008252
JJ
10983fi
10984
10985: ${CONFIG_STATUS=./config.status}
5213506e 10986ac_write_fail=0
77008252
JJ
10987ac_clean_files_save=$ac_clean_files
10988ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10990$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10991as_write_fail=0
10992cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
77008252
JJ
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.
10998
10999debug=false
11000ac_cs_recheck=false
11001ac_cs_silent=false
77008252 11002
5213506e
RW
11003SHELL=\${CONFIG_SHELL-$SHELL}
11004export SHELL
11005_ASEOF
11006cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11007## -------------------- ##
11008## M4sh Initialization. ##
11009## -------------------- ##
11010
11011# Be more Bourne compatible
11012DUALCASE=1; export DUALCASE # for MKS sh
11013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
77008252
JJ
11014 emulate sh
11015 NULLCMD=:
5213506e 11016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
77008252
JJ
11017 # is contrary to our usage. Disable this feature.
11018 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
11019 setopt NO_GLOB_SUBST
11020else
11021 case `(set -o) 2>/dev/null` in #(
11022 *posix*) :
11023 set -o posix ;; #(
11024 *) :
11025 ;;
11026esac
77008252 11027fi
77008252 11028
5213506e
RW
11029
11030as_nl='
11031'
11032export as_nl
11033# Printing a long string crashes Solaris 7 /usr/bin/printf.
11034as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11036as_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.
11039if 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 --'
11043elif (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'
11046else
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"
11060 '
11061 export as_echo_n_body
11062 as_echo_n='sh -c $as_echo_n_body as_echo'
11063 fi
11064 export as_echo_body
11065 as_echo='sh -c $as_echo_body as_echo'
11066fi
11067
11068# The user is always right.
11069if 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=';'
11074 }
77008252
JJ
11075fi
11076
11077
5213506e
RW
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.)
11083IFS=" "" $as_nl"
11084
11085# Find who we are. Look in the path if we contain no directory separator.
11086case $0 in #((
11087 *[\\/]* ) as_myself=$0 ;;
11088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
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
11095IFS=$as_save_IFS
11096
11097 ;;
11098esac
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.
11101if test "x$as_myself" = x; then
11102 as_myself=$0
11103fi
11104if test ! -f "$as_myself"; then
11105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11106 exit 1
11107fi
11108
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.
11113for as_var in BASH_ENV ENV MAIL MAILPATH
11114do eval test x\${$as_var+set} = xset \
11115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11116done
77008252
JJ
11117PS1='$ '
11118PS2='> '
11119PS4='+ '
11120
11121# NLS nuisances.
5213506e
RW
11122LC_ALL=C
11123export LC_ALL
11124LANGUAGE=C
11125export LANGUAGE
11126
11127# CDPATH.
11128(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11129
11130
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.
11136as_fn_error ()
11137{
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
77008252 11142 fi
5213506e
RW
11143 $as_echo "$as_me: error: $1" >&2
11144 as_fn_exit $as_status
11145} # as_fn_error
11146
11147
11148# as_fn_set_status STATUS
11149# -----------------------
11150# Set $? to STATUS, without forking.
11151as_fn_set_status ()
11152{
11153 return $1
11154} # as_fn_set_status
11155
11156# as_fn_exit STATUS
11157# -----------------
11158# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11159as_fn_exit ()
11160{
11161 set +e
11162 as_fn_set_status $1
11163 exit $1
11164} # as_fn_exit
11165
11166# as_fn_unset VAR
11167# ---------------
11168# Portably unset VAR.
11169as_fn_unset ()
11170{
11171 { eval $1=; unset $1;}
11172}
11173as_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.
11180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11181 eval 'as_fn_append ()
11182 {
11183 eval $1+=\$2
11184 }'
11185else
11186 as_fn_append ()
11187 {
11188 eval $1=\$$1\$2
11189 }
11190fi # as_fn_append
11191
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.
11197if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11198 eval 'as_fn_arith ()
11199 {
11200 as_val=$(( $* ))
11201 }'
11202else
11203 as_fn_arith ()
11204 {
11205 as_val=`expr "$@" || test $? -eq 1`
11206 }
11207fi # as_fn_arith
77008252 11208
5213506e
RW
11209
11210if expr a : '\(a\)' >/dev/null 2>&1 &&
11211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
77008252
JJ
11212 as_expr=expr
11213else
11214 as_expr=false
11215fi
11216
5213506e 11217if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
77008252
JJ
11218 as_basename=basename
11219else
11220 as_basename=false
11221fi
11222
5213506e
RW
11223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11224 as_dirname=dirname
11225else
11226 as_dirname=false
11227fi
77008252 11228
5213506e 11229as_me=`$as_basename -- "$0" ||
77008252
JJ
11230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11231 X"$0" : 'X\(//\)$' \| \
5213506e
RW
11232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11233$as_echo X/"$0" |
11234 sed '/^.*\/\([^/][^/]*\)\/*$/{
11235 s//\1/
11236 q
11237 }
11238 /^X\/\(\/\/\)$/{
11239 s//\1/
11240 q
11241 }
11242 /^X\/\(\/\).*/{
11243 s//\1/
11244 q
11245 }
11246 s/.*/./; q'`
77008252 11247
77008252
JJ
11248# Avoid depending upon Character Ranges.
11249as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11251as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11252as_cr_digits='0123456789'
11253as_cr_alnum=$as_cr_Letters$as_cr_digits
11254
5213506e
RW
11255ECHO_C= ECHO_N= ECHO_T=
11256case `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;;
11264*)
11265 ECHO_N='-n';;
77008252
JJ
11266esac
11267
5213506e
RW
11268rm -f conf$$ conf$$.exe conf$$.file
11269if test -d conf$$.dir; then
11270 rm -f conf$$.dir/conf$$.file
77008252 11271else
5213506e
RW
11272 rm -f conf$$.dir
11273 mkdir conf$$.dir 2>/dev/null
77008252 11274fi
5213506e
RW
11275if (echo >conf$$.file) 2>/dev/null; then
11276 if ln -s conf$$.file conf$$ 2>/dev/null; then
77008252 11277 as_ln_s='ln -s'
5213506e
RW
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'
77008252 11288 fi
77008252
JJ
11289else
11290 as_ln_s='cp -p'
11291fi
5213506e
RW
11292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11293rmdir conf$$.dir 2>/dev/null
11294
11295
11296# as_fn_mkdir_p
11297# -------------
11298# Create "$as_dir" as a directory, including parents if necessary.
11299as_fn_mkdir_p ()
11300{
11301
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/
11321 q
11322 }
11323 /^X\(\/\/\)[^/].*/{
11324 s//\1/
11325 q
11326 }
11327 /^X\(\/\/\)$/{
11328 s//\1/
11329 q
11330 }
11331 /^X\(\/\).*/{
11332 s//\1/
11333 q
11334 }
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"
77008252 11340
5213506e
RW
11341
11342} # as_fn_mkdir_p
77008252 11343if mkdir -p . 2>/dev/null; then
5213506e 11344 as_mkdir_p='mkdir -p "$as_dir"'
77008252
JJ
11345else
11346 test -d ./-p && rmdir ./-p
11347 as_mkdir_p=false
11348fi
11349
5213506e
RW
11350if test -x / >/dev/null 2>&1; then
11351 as_test_x='test -x'
11352else
11353 if ls -dL / >/dev/null 2>&1; then
11354 as_ls_L_option=L
11355 else
11356 as_ls_L_option=
11357 fi
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
11369 '
11370fi
11371as_executable_p=$as_test_x
77008252
JJ
11372
11373# Sed expression to map a string onto a valid CPP name.
11374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11375
5213506e
RW
11376# Sed expression to map a string onto a valid variable name.
11377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
77008252 11378
77008252 11379
5213506e
RW
11380exec 6>&1
11381## ----------------------------------- ##
11382## Main body of $CONFIG_STATUS script. ##
11383## ----------------------------------- ##
11384_ASEOF
11385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11386
11387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11388# Save the log message, to keep $0 and so on meaningful, and to
77008252 11389# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
11390# values after options handling.
11391ac_log="
77008252 11392This file was extended by libssp $as_me 1.0, which was
5213506e 11393generated by GNU Autoconf 2.64. Invocation command line was
77008252
JJ
11394
11395 CONFIG_FILES = $CONFIG_FILES
11396 CONFIG_HEADERS = $CONFIG_HEADERS
11397 CONFIG_LINKS = $CONFIG_LINKS
11398 CONFIG_COMMANDS = $CONFIG_COMMANDS
11399 $ $0 $@
11400
5213506e
RW
11401on `(hostname || uname -n) 2>/dev/null | sed 1q`
11402"
11403
77008252
JJ
11404_ACEOF
11405
5213506e
RW
11406case $ac_config_files in *"
11407"*) set x $ac_config_files; shift; ac_config_files=$*;;
11408esac
77008252 11409
5213506e
RW
11410case $ac_config_headers in *"
11411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11412esac
77008252 11413
77008252 11414
5213506e
RW
11415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11416# Files that config.status was made for.
11417config_files="$ac_config_files"
11418config_headers="$ac_config_headers"
11419config_commands="$ac_config_commands"
77008252 11420
5213506e 11421_ACEOF
77008252 11422
5213506e 11423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
77008252 11424ac_cs_usage="\
5213506e
RW
11425\`$as_me' instantiates files and other configuration actions
11426from templates according to the current configuration. Unless the files
11427and actions are specified as TAGs, all are instantiated by default.
77008252 11428
5213506e 11429Usage: $0 [OPTION]... [TAG]...
77008252
JJ
11430
11431 -h, --help print this help, then exit
5213506e
RW
11432 -V, --version print version number and configuration settings, then exit
11433 -q, --quiet, --silent
11434 do not print progress messages
77008252
JJ
11435 -d, --debug don't remove temporary files
11436 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
11437 --file=FILE[:TEMPLATE]
11438 instantiate the configuration file FILE
11439 --header=FILE[:TEMPLATE]
11440 instantiate the configuration header FILE
77008252
JJ
11441
11442Configuration files:
11443$config_files
11444
11445Configuration headers:
11446$config_headers
11447
11448Configuration commands:
11449$config_commands
11450
5213506e 11451Report bugs to the package provider."
77008252 11452
5213506e
RW
11453_ACEOF
11454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77008252
JJ
11455ac_cs_version="\\
11456libssp config.status 1.0
5213506e
RW
11457configured by $0, generated by GNU Autoconf 2.64,
11458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
77008252 11459
5213506e 11460Copyright (C) 2009 Free Software Foundation, Inc.
77008252
JJ
11461This config.status script is free software; the Free Software Foundation
11462gives unlimited permission to copy, distribute and modify it."
5213506e
RW
11463
11464ac_pwd='$ac_pwd'
11465srcdir='$srcdir'
11466INSTALL='$INSTALL'
11467MKDIR_P='$MKDIR_P'
11468AWK='$AWK'
11469test -n "\$AWK" || AWK=awk
77008252
JJ
11470_ACEOF
11471
5213506e
RW
11472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11473# The default lists apply if the user does not specify any file.
77008252
JJ
11474ac_need_defaults=:
11475while test $# != 0
11476do
11477 case $1 in
11478 --*=*)
5213506e
RW
11479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
77008252
JJ
11481 ac_shift=:
11482 ;;
5213506e 11483 *)
77008252
JJ
11484 ac_option=$1
11485 ac_optarg=$2
11486 ac_shift=shift
11487 ;;
77008252
JJ
11488 esac
11489
11490 case $ac_option in
11491 # Handling of the options.
77008252
JJ
11492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11493 ac_cs_recheck=: ;;
5213506e
RW
11494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11495 $as_echo "$ac_cs_version"; exit ;;
11496 --debug | --debu | --deb | --de | --d | -d )
77008252
JJ
11497 debug=: ;;
11498 --file | --fil | --fi | --f )
11499 $ac_shift
5213506e
RW
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'"
77008252
JJ
11504 ac_need_defaults=false;;
11505 --header | --heade | --head | --hea )
11506 $ac_shift
5213506e
RW
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'"
77008252 11511 ac_need_defaults=false;;
5213506e
RW
11512 --he | --h)
11513 # Conflict between --help and --header
11514 as_fn_error "ambiguous option: \`$1'
11515Try \`$0 --help' for more information.";;
11516 --help | --hel | -h )
11517 $as_echo "$ac_cs_usage"; exit ;;
77008252
JJ
11518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11520 ac_cs_silent=: ;;
11521
11522 # This is an error.
5213506e
RW
11523 -*) as_fn_error "unrecognized option: \`$1'
11524Try \`$0 --help' for more information." ;;
77008252 11525
5213506e
RW
11526 *) as_fn_append ac_config_targets " $1"
11527 ac_need_defaults=false ;;
77008252
JJ
11528
11529 esac
11530 shift
11531done
11532
11533ac_configure_extra_args=
11534
11535if $ac_cs_silent; then
11536 exec 6>/dev/null
11537 ac_configure_extra_args="$ac_configure_extra_args --silent"
11538fi
11539
11540_ACEOF
5213506e 11541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77008252 11542if \$ac_cs_recheck; then
5213506e
RW
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 "\$@"
77008252
JJ
11549fi
11550
11551_ACEOF
5213506e
RW
11552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553exec 5>>config.log
11554{
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
77008252 11561
5213506e
RW
11562_ACEOF
11563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
77008252 11564#
5213506e 11565# INIT-COMMANDS
77008252
JJ
11566#
11567
77008252
JJ
11568srcdir="$srcdir"
11569host="$host"
11570target="$target"
11571with_multisubdir="$with_multisubdir"
11572with_multisrctop="$with_multisrctop"
11573with_target_subdir="$with_target_subdir"
11574ac_configure_args="${multilib_arg} ${ac_configure_args}"
11575multi_basedir="$multi_basedir"
11576CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11577CC="$CC"
5213506e
RW
11578CXX="$CXX"
11579GFORTRAN="$GFORTRAN"
11580GCJ="$GCJ"
77008252
JJ
11581AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11582
1cf3d07d
SE
11583
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
11587
11588sed_quote_subst='$sed_quote_subst'
11589double_quote_subst='$double_quote_subst'
11590delay_variable_subst='$delay_variable_subst'
11591macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11592macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11593enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11594enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11595pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11596enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11597host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11598host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11599host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11600build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11601build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11602build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11603SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11604Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11605GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11606EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11607FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11608LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11609NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11610LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11611max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11612ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11613exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11614lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11615lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11616lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11617reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11618reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
77a3eb61 11619OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11620deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11621file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11622AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11623AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11624STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11625RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11626old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11627old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11628old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11629CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11630CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11631compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11632GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11633lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11634lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11635lt_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"`'
77a3eb61 11636lt_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"`'
1cf3d07d
SE
11637objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11638SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11639ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11640MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11641lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11642lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11643lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11644lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11645lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11646need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
77a3eb61
PG
11647DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11648NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11649LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11650OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11651OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
11652libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11653shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11654extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11655archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11656enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11657export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11658whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11659compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11660old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11661old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11662archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11663archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11664module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11665module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11666with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11667allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11668no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11669hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11670hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11671hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11672hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11673hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11674hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11675hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11676hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11677inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11678link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11679fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11680always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11681export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11683include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11684prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11685file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11686variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11687need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11688need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11689version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11690runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11691shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11692shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11693libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11694library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11695soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11696postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11697postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11699finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11700hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11701sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11703hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11704enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11705enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11706enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11707old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11708striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11709
11710LTCC='$LTCC'
11711LTCFLAGS='$LTCFLAGS'
11712compiler='$compiler_DEFAULT'
11713
11714# Quote evaled strings.
11715for var in SED \
11716GREP \
11717EGREP \
11718FGREP \
11719LD \
11720NM \
11721LN_S \
11722lt_SP2NL \
11723lt_NL2SP \
11724reload_flag \
77a3eb61 11725OBJDUMP \
1cf3d07d
SE
11726deplibs_check_method \
11727file_magic_cmd \
11728AR \
11729AR_FLAGS \
11730STRIP \
11731RANLIB \
11732CC \
11733CFLAGS \
11734compiler \
11735lt_cv_sys_global_symbol_pipe \
11736lt_cv_sys_global_symbol_to_cdecl \
11737lt_cv_sys_global_symbol_to_c_name_address \
77a3eb61 11738lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
11739SHELL \
11740ECHO \
11741lt_prog_compiler_no_builtin_flag \
11742lt_prog_compiler_wl \
11743lt_prog_compiler_pic \
11744lt_prog_compiler_static \
11745lt_cv_prog_compiler_c_o \
11746need_locks \
77a3eb61
PG
11747DSYMUTIL \
11748NMEDIT \
11749LIPO \
11750OTOOL \
11751OTOOL64 \
1cf3d07d
SE
11752shrext_cmds \
11753export_dynamic_flag_spec \
11754whole_archive_flag_spec \
11755compiler_needs_object \
11756with_gnu_ld \
11757allow_undefined_flag \
11758no_undefined_flag \
11759hardcode_libdir_flag_spec \
11760hardcode_libdir_flag_spec_ld \
11761hardcode_libdir_separator \
11762fix_srcfile_path \
11763exclude_expsyms \
11764include_expsyms \
11765file_list_spec \
11766variables_saved_for_relink \
11767libname_spec \
11768library_names_spec \
11769soname_spec \
11770finish_eval \
11771old_striplib \
11772striplib; do
11773 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11774 *[\\\\\\\`\\"\\\$]*)
11775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11776 ;;
11777 *)
11778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11779 ;;
11780 esac
11781done
11782
11783# Double-quote double-evaled strings.
11784for var in reload_cmds \
11785old_postinstall_cmds \
11786old_postuninstall_cmds \
11787old_archive_cmds \
11788extract_expsyms_cmds \
11789old_archive_from_new_cmds \
11790old_archive_from_expsyms_cmds \
11791archive_cmds \
11792archive_expsym_cmds \
11793module_cmds \
11794module_expsym_cmds \
11795export_symbols_cmds \
11796prelink_cmds \
11797postinstall_cmds \
11798postuninstall_cmds \
11799finish_cmds \
11800sys_lib_search_path_spec \
11801sys_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\\"\\\`\\\\\\""
11805 ;;
11806 *)
11807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11808 ;;
11809 esac
11810done
11811
11812# Fix-up fallback echo if it was mangled by the above quoting rules.
11813case \$lt_ECHO in
11814*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11815 ;;
11816esac
11817
11818ac_aux_dir='$ac_aux_dir'
11819xsi_shell='$xsi_shell'
11820lt_shell_append='$lt_shell_append'
11821
11822# See if we are running on zsh, and set the options which allow our
11823# commands through without removal of \ escapes INIT.
11824if test -n "\${ZSH_VERSION+set}" ; then
11825 setopt NO_GLOB_SUBST
11826fi
11827
11828
11829 PACKAGE='$PACKAGE'
11830 VERSION='$VERSION'
11831 TIMESTAMP='$TIMESTAMP'
11832 RM='$RM'
11833 ofile='$ofile'
11834
11835
11836
11837
77008252
JJ
11838_ACEOF
11839
5213506e 11840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
77008252 11841
5213506e 11842# Handling of arguments.
77008252
JJ
11843for ac_config_target in $ac_config_targets
11844do
5213506e
RW
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" ;;
11852
11853 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
77008252
JJ
11854 esac
11855done
11856
5213506e 11857
77008252
JJ
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.
11862if $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
11866fi
11867
11868# Have a temporary directory for convenience. Make it in the build tree
5213506e 11869# simply because there is no reason against having it here, and in addition,
77008252 11870# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
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'.
77008252
JJ
11874$debug ||
11875{
5213506e
RW
11876 tmp=
11877 trap 'exit_status=$?
11878 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11879' 0
11880 trap 'as_fn_exit 1' 1 2 13 15
77008252 11881}
77008252
JJ
11882# Create a (secure) tmp directory for tmp files.
11883
11884{
5213506e 11885 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
77008252
JJ
11886 test -n "$tmp" && test -d "$tmp"
11887} ||
11888{
5213506e
RW
11889 tmp=./conf$$-$RANDOM
11890 (umask 077 && mkdir "$tmp")
11891} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11892
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'.
11896if test -n "$CONFIG_FILES"; then
11897
11898
11899ac_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.
11903if test "x$ac_cr" = x; then
11904 eval ac_cr=\$\'\\r\'
11905fi
11906ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11907if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11908 ac_cs_awk_cr='\r'
11909else
11910 ac_cs_awk_cr=$ac_cr
11911fi
11912
11913echo 'BEGIN {' >"$tmp/subs1.awk" &&
11914_ACEOF
11915
11916
77008252 11917{
5213506e
RW
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
11923ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11924ac_delim='%!_!# '
11925for 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
11928
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!! "
11936 fi
11937done
11938rm -f conf$$subs.sh
77008252 11939
5213506e
RW
11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
77008252 11942_ACEOF
5213506e
RW
11943sed -n '
11944h
11945s/^/S["/; s/!.*/"]=/
11946p
11947g
11948s/^[^!]*!//
11949:repl
11950t repl
11951s/'"$ac_delim"'$//
11952t delim
11953:nl
11954h
11955s/\(.\{148\}\).*/\1/
11956t more1
11957s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11958p
11959n
11960b repl
11961:more1
11962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11963p
11964g
11965s/.\{148\}//
11966t nl
11967:delim
11968h
11969s/\(.\{148\}\).*/\1/
11970t more2
11971s/["\\]/\\&/g; s/^/"/; s/$/"/
11972p
11973b
11974:more2
11975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11976p
11977g
11978s/.\{148\}//
11979t delim
11980' <conf$$subs.awk | sed '
11981/^[^""]/{
11982 N
11983 s/\n//
11984}
11985' >>$CONFIG_STATUS || ac_write_fail=1
11986rm -f conf$$subs.awk
11987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988_ACAWK
11989cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11990 for (key in S) S_is_set[key] = 1
11991 FS = "\a"
11992
11993}
11994{
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
12009 }
77008252 12010
5213506e
RW
12011 print line
12012}
77008252 12013
5213506e
RW
12014_ACAWK
12015_ACEOF
12016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12017if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12019else
12020 cat
12021fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12022 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12023_ACEOF
12024
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).
12029if test "x$srcdir" = x.; then
12030 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12031s/:*\$(srcdir):*/:/
12032s/:*\${srcdir}:*/:/
12033s/:*@srcdir@:*/:/
12034s/^\([^=]*=[ ]*\):*/\1/
12035s/:*$//
12036s/^[^=]*=[ ]*$//
12037}'
12038fi
77008252 12039
5213506e
RW
12040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041fi # test -n "$CONFIG_FILES"
77008252 12042
5213506e
RW
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'.
12046if test -n "$CONFIG_HEADERS"; then
12047cat >"$tmp/defines.awk" <<\_ACAWK ||
12048BEGIN {
77008252
JJ
12049_ACEOF
12050
5213506e
RW
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.
12054
12055# Create a delimiter string that does not exist in confdefs.h, to ease
12056# handling of long lines.
12057ac_delim='%!_!# '
12058for 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!! "
77008252 12066 fi
5213506e 12067done
77008252 12068
5213506e
RW
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.
12072
12073ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12074sed -n '
12075s/.\{148\}/&'"$ac_delim"'/g
12076t rset
12077:rset
12078s/^[ ]*#[ ]*define[ ][ ]*/ /
12079t def
12080d
12081:def
12082s/\\$//
12083t bsnl
12084s/["\\]/\\&/g
12085s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12086D["\1"]=" \3"/p
12087s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12088d
12089:bsnl
12090s/["\\]/\\&/g
12091s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12092D["\1"]=" \3\\\\\\n"\\/p
12093t cont
12094s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12095t cont
12096d
12097:cont
12098n
12099s/.\{148\}/&'"$ac_delim"'/g
12100t clear
12101:clear
12102s/\\$//
12103t bsnlc
12104s/["\\]/\\&/g; s/^/"/; s/$/"/p
12105d
12106:bsnlc
12107s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12108b cont
12109' <confdefs.h | sed '
12110s/'"$ac_delim"'/"\\\
12111"/g' >>$CONFIG_STATUS || ac_write_fail=1
12112
12113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12114 for (key in D) D_is_set[key] = 1
12115 FS = "\a"
12116}
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]
12126 }
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
12141 }
12142 }
12143}
12144{ print }
12145_ACAWK
77008252 12146_ACEOF
5213506e
RW
12147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12149fi # test -n "$CONFIG_HEADERS"
12150
12151
12152eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12153shift
12154for ac_tag
12155do
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
12172
12173 case $ac_mode in
12174 :L) ac_source=$1;;
12175 :[FH])
12176 ac_file_inputs=
12177 for ac_f
12178 do
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
12194
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;}
12205 fi
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
12213
12214 case $ac_tag in
12215 *:-:* | *:-) cat >"$tmp/stdin" \
12216 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12217 esac
12218 ;;
77008252
JJ
12219 esac
12220
5213506e 12221 ac_dir=`$as_dirname -- "$ac_file" ||
77008252
JJ
12222$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223 X"$ac_file" : 'X\(//\)[^/]' \| \
12224 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
12225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12226$as_echo X"$ac_file" |
12227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228 s//\1/
12229 q
12230 }
12231 /^X\(\/\/\)[^/].*/{
12232 s//\1/
12233 q
12234 }
12235 /^X\(\/\/\)$/{
12236 s//\1/
12237 q
12238 }
12239 /^X\(\/\).*/{
12240 s//\1/
12241 q
12242 }
12243 s/.*/./; q'`
12244 as_dir="$ac_dir"; as_fn_mkdir_p
77008252
JJ
12245 ac_builddir=.
12246
5213506e
RW
12247case "$ac_dir" in
12248.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12249*)
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 ;;
12257esac
12258ac_abs_top_builddir=$ac_pwd
12259ac_abs_builddir=$ac_pwd$ac_dir_suffix
12260# for backward compatibility:
12261ac_top_builddir=$ac_top_build_prefix
77008252
JJ
12262
12263case $srcdir in
5213506e 12264 .) # We are building in place.
77008252 12265 ac_srcdir=.
5213506e
RW
12266 ac_top_srcdir=$ac_top_builddir_sub
12267 ac_abs_top_srcdir=$ac_pwd ;;
12268 [\\/]* | ?:[\\/]* ) # Absolute name.
77008252 12269 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
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 ;;
77008252 12276esac
5213506e 12277ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
77008252 12278
77008252 12279
5213506e
RW
12280 case $ac_mode in
12281 :F)
12282 #
12283 # CONFIG_FILE
12284 #
77008252
JJ
12285
12286 case $INSTALL in
12287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 12288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
77008252 12289 esac
5213506e
RW
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
77008252 12296
5213506e
RW
12297cat >>$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.
12300ac_datarootdir_hack=; ac_datarootdir_seen=
12301ac_sed_dataroot='
12302/datarootdir/ {
12303 p
12304 q
12305}
12306/@datadir@/p
12307/@docdir@/p
12308/@infodir@/p
12309/@localedir@/p
12310/@mandir@/p'
12311case `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
12317cat >>$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' ;;
12325esac
77008252 12326_ACEOF
5213506e
RW
12327
12328# Neutralize VPATH when `$srcdir' = `.'.
12329# Shell code in configure.ac might set extrasub.
12330# FIXME: do we really want to maintain this feature?
12331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332ac_sed_extra="$ac_vpsub
77008252
JJ
12333$extrasub
12334_ACEOF
5213506e 12335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
77008252
JJ
12336:t
12337/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
12338s|@configure_input@|$ac_sed_conf_input|;t t
12339s&@top_builddir@&$ac_top_builddir_sub&;t t
12340s&@top_build_prefix@&$ac_top_build_prefix&;t t
12341s&@srcdir@&$ac_srcdir&;t t
12342s&@abs_srcdir@&$ac_abs_srcdir&;t t
12343s&@top_srcdir@&$ac_top_srcdir&;t t
12344s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12345s&@builddir@&$ac_builddir&;t t
12346s&@abs_builddir@&$ac_abs_builddir&;t t
12347s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12348s&@INSTALL@&$ac_INSTALL&;t t
12349s&@MKDIR_P@&$ac_MKDIR_P&;t t
12350$ac_datarootdir_hack
12351"
12352eval 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
12354
12355test -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'
12359which 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'
12361which seems to be undefined. Please make sure it is defined." >&2;}
12362
12363 rm -f "$tmp/stdin"
77008252 12364 case $ac_file in
5213506e
RW
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
12369 ;;
12370 :H)
12371 #
12372 # CONFIG_HEADER
12373 #
77008252 12374 if test x"$ac_file" != x-; then
5213506e
RW
12375 {
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;}
77008252 12383 else
5213506e
RW
12384 rm -f "$ac_file"
12385 mv "$tmp/config.h" "$ac_file" \
12386 || as_fn_error "could not create $ac_file" "$LINENO" 5
77008252
JJ
12387 fi
12388 else
5213506e
RW
12389 $as_echo "/* $configure_input */" \
12390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12391 || as_fn_error "could not create -" "$LINENO" 5
77008252 12392 fi
5213506e
RW
12393# Compute "$ac_file"'s index in $config_headers.
12394_am_arg="$ac_file"
77008252
JJ
12395_am_stamp_count=1
12396for _am_header in $config_headers :; do
12397 case $_am_header in
5213506e 12398 $_am_arg | $_am_arg:* )
77008252
JJ
12399 break ;;
12400 * )
12401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12402 esac
12403done
5213506e
RW
12404echo "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/
12412 q
12413 }
12414 /^X\(\/\/\)[^/].*/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\/\)$/{
12419 s//\1/
12420 q
12421 }
12422 /^X\(\/\).*/{
12423 s//\1/
12424 q
12425 }
12426 s/.*/./; q'`/stamp-h$_am_stamp_count
12427 ;;
77008252 12428
5213506e
RW
12429 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12430$as_echo "$as_me: executing $ac_file commands" >&6;}
12431 ;;
12432 esac
77008252
JJ
12433
12434
5213506e
RW
12435 case $ac_file$ac_mode in
12436 "default-1":C)
77008252
JJ
12437# Only add multilib support code if we just rebuilt the top-level
12438# Makefile.
12439case " $CONFIG_FILES " in
12440 *" Makefile "*)
12441 ac_file=Makefile . ${multi_basedir}/config-ml.in
12442 ;;
12443esac ;;
5213506e
RW
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
12454 do
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" ||
77008252
JJ
12466$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12467 X"$mf" : 'X\(//\)[^/]' \| \
12468 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
12469 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12470$as_echo X"$mf" |
12471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12472 s//\1/
12473 q
12474 }
12475 /^X\(\/\/\)[^/].*/{
12476 s//\1/
12477 q
12478 }
12479 /^X\(\/\/\)$/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\).*/{
12484 s//\1/
12485 q
12486 }
12487 s/.*/./; q'`
12488 else
12489 continue
12490 fi
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" ||
77008252
JJ
12510$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12511 X"$file" : 'X\(//\)[^/]' \| \
12512 X"$file" : 'X\(//\)$' \| \
5213506e
RW
12513 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12514$as_echo X"$file" |
12515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12516 s//\1/
12517 q
12518 }
12519 /^X\(\/\/\)[^/].*/{
12520 s//\1/
12521 q
12522 }
12523 /^X\(\/\/\)$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\(\/\).*/{
12528 s//\1/
12529 q
12530 }
12531 s/.*/./; q'`
12532 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12533 # echo "creating $dirpart/$file"
12534 echo '# dummy' > "$dirpart/$file"
77008252 12535 done
77008252 12536 done
5213506e 12537}
1cf3d07d 12538 ;;
5213506e 12539 "libtool":C)
1cf3d07d
SE
12540
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
12545 fi
12546
12547 cfgfile="${ofile}T"
12548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12549 $RM "$cfgfile"
12550
12551 cat <<_LT_EOF >> "$cfgfile"
12552#! $SHELL
12553
12554# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
77a3eb61 12555# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
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.
12558#
77a3eb61
PG
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
1cf3d07d 12562#
77a3eb61 12563# This file is part of GNU Libtool.
1cf3d07d 12564#
77a3eb61
PG
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.
1cf3d07d 12569#
77a3eb61
PG
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.
1cf3d07d 12574#
77a3eb61
PG
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.
1cf3d07d 12579#
77a3eb61
PG
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.
1cf3d07d
SE
12585
12586
12587# The names of the tagged configurations supported by this script.
12588available_tags=""
12589
12590# ### BEGIN LIBTOOL CONFIG
12591
12592# Which release of libtool.m4 was used?
12593macro_version=$macro_version
12594macro_revision=$macro_revision
12595
12596# Whether or not to build shared libraries.
12597build_libtool_libs=$enable_shared
12598
12599# Whether or not to build static libraries.
12600build_old_libs=$enable_static
12601
12602# What type of objects to build.
12603pic_mode=$pic_mode
12604
12605# Whether or not to optimize for fast installation.
12606fast_install=$enable_fast_install
12607
12608# The host system.
12609host_alias=$host_alias
12610host=$host
12611host_os=$host_os
12612
12613# The build system.
12614build_alias=$build_alias
12615build=$build
12616build_os=$build_os
12617
12618# A sed program that does not truncate output.
12619SED=$lt_SED
12620
12621# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12622Xsed="\$SED -e 1s/^X//"
12623
12624# A grep program that handles long lines.
12625GREP=$lt_GREP
12626
12627# An ERE matcher.
12628EGREP=$lt_EGREP
12629
12630# A literal string matcher.
12631FGREP=$lt_FGREP
12632
12633# A BSD- or MS-compatible name lister.
12634NM=$lt_NM
12635
12636# Whether we need soft or hard links.
12637LN_S=$lt_LN_S
12638
12639# What is the maximum length of a command?
12640max_cmd_len=$max_cmd_len
12641
12642# Object file suffix (normally "o").
12643objext=$ac_objext
12644
12645# Executable file suffix (normally "").
12646exeext=$exeext
12647
12648# whether the shell understands "unset".
12649lt_unset=$lt_unset
12650
12651# turn spaces into newlines.
12652SP2NL=$lt_lt_SP2NL
12653
12654# turn newlines into spaces.
12655NL2SP=$lt_lt_NL2SP
12656
12657# How to create reloadable object files.
12658reload_flag=$lt_reload_flag
12659reload_cmds=$lt_reload_cmds
12660
77a3eb61
PG
12661# An object symbol dumper.
12662OBJDUMP=$lt_OBJDUMP
12663
1cf3d07d
SE
12664# Method to check whether dependent libraries are shared objects.
12665deplibs_check_method=$lt_deplibs_check_method
12666
12667# Command to use when deplibs_check_method == "file_magic".
12668file_magic_cmd=$lt_file_magic_cmd
12669
12670# The archiver.
12671AR=$lt_AR
12672AR_FLAGS=$lt_AR_FLAGS
12673
12674# A symbol stripping program.
12675STRIP=$lt_STRIP
12676
12677# Commands used to install an old-style archive.
12678RANLIB=$lt_RANLIB
12679old_postinstall_cmds=$lt_old_postinstall_cmds
12680old_postuninstall_cmds=$lt_old_postuninstall_cmds
12681
12682# A C compiler.
12683LTCC=$lt_CC
12684
12685# LTCC compiler flags.
12686LTCFLAGS=$lt_CFLAGS
12687
12688# Take the output of nm and produce a listing of raw symbols and C names.
12689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12690
12691# Transform the output of nm in a proper C declaration.
12692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12693
12694# Transform the output of nm in a C name address pair.
12695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12696
77a3eb61
PG
12697# Transform the output of nm in a C name address pair when lib prefix is needed.
12698global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12699
1cf3d07d
SE
12700# The name of the directory that contains temporary libtool files.
12701objdir=$objdir
12702
12703# Shell to use when invoking shell scripts.
12704SHELL=$lt_SHELL
12705
12706# An echo program that does not interpret backslashes.
12707ECHO=$lt_ECHO
12708
12709# Used to examine libraries when file_magic_cmd begins with "file".
12710MAGIC_CMD=$MAGIC_CMD
12711
12712# Must we lock files when doing compilation?
12713need_locks=$lt_need_locks
12714
77a3eb61
PG
12715# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12716DSYMUTIL=$lt_DSYMUTIL
12717
12718# Tool to change global to local symbols on Mac OS X.
12719NMEDIT=$lt_NMEDIT
12720
12721# Tool to manipulate fat objects and archives on Mac OS X.
12722LIPO=$lt_LIPO
12723
12724# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12725OTOOL=$lt_OTOOL
12726
12727# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12728OTOOL64=$lt_OTOOL64
12729
1cf3d07d
SE
12730# Old archive suffix (normally "a").
12731libext=$libext
12732
12733# Shared library suffix (normally ".so").
12734shrext_cmds=$lt_shrext_cmds
12735
12736# The commands to extract the exported symbol list from a shared archive.
12737extract_expsyms_cmds=$lt_extract_expsyms_cmds
12738
12739# Variables whose values should be saved in libtool wrapper scripts and
12740# restored at link time.
12741variables_saved_for_relink=$lt_variables_saved_for_relink
12742
12743# Do we need the "lib" prefix for modules?
12744need_lib_prefix=$need_lib_prefix
12745
12746# Do we need a version for libraries?
12747need_version=$need_version
12748
12749# Library versioning type.
12750version_type=$version_type
12751
12752# Shared library runtime path variable.
12753runpath_var=$runpath_var
12754
12755# Shared library path variable.
12756shlibpath_var=$shlibpath_var
12757
12758# Is shlibpath searched before the hard-coded library search path?
12759shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12760
12761# Format of library name prefix.
12762libname_spec=$lt_libname_spec
12763
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
12766library_names_spec=$lt_library_names_spec
12767
12768# The coded name of the library, if different from the real name.
12769soname_spec=$lt_soname_spec
12770
12771# Command to use after installation of a shared archive.
12772postinstall_cmds=$lt_postinstall_cmds
12773
12774# Command to use after uninstallation of a shared archive.
12775postuninstall_cmds=$lt_postuninstall_cmds
12776
12777# Commands used to finish a libtool library installation in a directory.
12778finish_cmds=$lt_finish_cmds
12779
12780# As "finish_cmds", except a single script fragment to be evaled but
12781# not shown.
12782finish_eval=$lt_finish_eval
12783
12784# Whether we should hardcode library paths into libraries.
12785hardcode_into_libs=$hardcode_into_libs
12786
12787# Compile-time system search path for libraries.
12788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12789
12790# Run-time system search path for libraries.
12791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12792
12793# Whether dlopen is supported.
12794dlopen_support=$enable_dlopen
12795
12796# Whether dlopen of programs is supported.
12797dlopen_self=$enable_dlopen_self
12798
12799# Whether dlopen of statically linked programs is supported.
12800dlopen_self_static=$enable_dlopen_self_static
12801
12802# Commands to strip libraries.
12803old_striplib=$lt_old_striplib
12804striplib=$lt_striplib
12805
12806
12807# The linker used to build libraries.
12808LD=$lt_LD
12809
12810# Commands used to build an old-style archive.
12811old_archive_cmds=$lt_old_archive_cmds
12812
12813# A language specific compiler.
12814CC=$lt_compiler
12815
12816# Is the compiler the GNU compiler?
12817with_gcc=$GCC
12818
12819# Compiler flag to turn off builtin functions.
12820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12821
12822# How to pass a linker flag through the compiler.
12823wl=$lt_lt_prog_compiler_wl
12824
12825# Additional compiler flags for building library objects.
12826pic_flag=$lt_lt_prog_compiler_pic
12827
12828# Compiler flag to prevent dynamic linking.
12829link_static_flag=$lt_lt_prog_compiler_static
12830
12831# Does compiler simultaneously support -c and -o options?
12832compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12833
12834# Whether or not to add -lc for building shared libraries.
12835build_libtool_need_lc=$archive_cmds_need_lc
12836
12837# Whether or not to disallow shared libs when runtime libs are static.
12838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12839
12840# Compiler flag to allow reflexive dlopens.
12841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12842
12843# Compiler flag to generate shared objects directly from archives.
12844whole_archive_flag_spec=$lt_whole_archive_flag_spec
12845
12846# Whether the compiler copes with passing no objects directly.
12847compiler_needs_object=$lt_compiler_needs_object
12848
12849# Create an old-style archive from a shared archive.
12850old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12851
12852# Create a temporary old-style archive to link instead of a shared archive.
12853old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12854
12855# Commands used to build a shared archive.
12856archive_cmds=$lt_archive_cmds
12857archive_expsym_cmds=$lt_archive_expsym_cmds
12858
12859# Commands used to build a loadable module if different from building
12860# a shared archive.
12861module_cmds=$lt_module_cmds
12862module_expsym_cmds=$lt_module_expsym_cmds
12863
12864# Whether we are building with GNU ld or not.
12865with_gnu_ld=$lt_with_gnu_ld
12866
12867# Flag that allows shared libraries with undefined symbols to be built.
12868allow_undefined_flag=$lt_allow_undefined_flag
12869
12870# Flag that enforces no undefined symbols.
12871no_undefined_flag=$lt_no_undefined_flag
12872
12873# Flag to hardcode \$libdir into a binary during linking.
12874# This must work even if \$libdir does not exist
12875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12876
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.
12879hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12880
12881# Whether we need a single "-rpath" flag with a separated argument.
12882hardcode_libdir_separator=$lt_hardcode_libdir_separator
12883
12884# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12885# DIR into the resulting binary.
12886hardcode_direct=$hardcode_direct
12887
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.
12892hardcode_direct_absolute=$hardcode_direct_absolute
12893
12894# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12895# into the resulting binary.
12896hardcode_minus_L=$hardcode_minus_L
12897
12898# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12899# into the resulting binary.
12900hardcode_shlibpath_var=$hardcode_shlibpath_var
12901
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.
12905hardcode_automatic=$hardcode_automatic
12906
12907# Set to yes if linker adds runtime paths of dependent libraries
12908# to runtime path list.
12909inherit_rpath=$inherit_rpath
12910
12911# Whether libtool must link a program against all its dependency libraries.
12912link_all_deplibs=$link_all_deplibs
12913
12914# Fix the shell variable \$srcfile for the compiler.
12915fix_srcfile_path=$lt_fix_srcfile_path
12916
12917# Set to "yes" if exported symbols are required.
12918always_export_symbols=$always_export_symbols
12919
12920# The commands to list exported symbols.
12921export_symbols_cmds=$lt_export_symbols_cmds
12922
12923# Symbols that should not be listed in the preloaded symbols.
12924exclude_expsyms=$lt_exclude_expsyms
12925
12926# Symbols that must always be exported.
12927include_expsyms=$lt_include_expsyms
12928
12929# Commands necessary for linking programs (against libraries) with templates.
12930prelink_cmds=$lt_prelink_cmds
12931
12932# Specify filename containing input files.
12933file_list_spec=$lt_file_list_spec
12934
12935# How to hardcode a shared library path into an executable.
12936hardcode_action=$hardcode_action
12937
12938# ### END LIBTOOL CONFIG
12939
12940_LT_EOF
12941
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.
12948if test "X${COLLECT_NAMES+set}" != Xset; then
12949 COLLECT_NAMES=
12950 export COLLECT_NAMES
12951fi
12952_LT_EOF
12953 ;;
12954 esac
12955
12956
12957ltmain="$ac_aux_dir/ltmain.sh"
12958
12959
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)
12966
12967 case $xsi_shell in
12968 yes)
12969 cat << \_LT_EOF >> "$cfgfile"
77a3eb61 12970
1cf3d07d
SE
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.
12974func_dirname ()
12975{
12976 case ${1} in
12977 */*) func_dirname_result="${1%/*}${2}" ;;
12978 * ) func_dirname_result="${3}" ;;
12979 esac
12980}
12981
12982# func_basename file
12983func_basename ()
12984{
12985 func_basename_result="${1##*/}"
12986}
12987
77a3eb61
PG
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.
13000func_dirname_and_basename ()
13001{
13002 case ${1} in
13003 */*) func_dirname_result="${1%/*}${2}" ;;
13004 * ) func_dirname_result="${3}" ;;
13005 esac
13006 func_basename_result="${1##*/}"
13007}
13008
1cf3d07d
SE
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).
13014func_stripname ()
13015{
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}"}
13021}
13022
13023# func_opt_split
13024func_opt_split ()
13025{
13026 func_opt_split_opt=${1%%=*}
13027 func_opt_split_arg=${1#*=}
13028}
13029
13030# func_lo2o object
13031func_lo2o ()
13032{
13033 case ${1} in
13034 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13035 *) func_lo2o_result=${1} ;;
13036 esac
13037}
77a3eb61
PG
13038
13039# func_xform libobj-or-source
13040func_xform ()
13041{
13042 func_xform_result=${1%.*}.lo
13043}
13044
13045# func_arith arithmetic-term...
13046func_arith ()
13047{
13048 func_arith_result=$(( $* ))
13049}
13050
13051# func_len string
13052# STRING may not start with a hyphen.
13053func_len ()
13054{
13055 func_len_result=${#1}
13056}
13057
1cf3d07d
SE
13058_LT_EOF
13059 ;;
13060 *) # Bourne compatible functions.
13061 cat << \_LT_EOF >> "$cfgfile"
77a3eb61 13062
1cf3d07d
SE
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.
13066func_dirname ()
13067{
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}"
13074 fi
13075}
13076
13077# func_basename file
13078func_basename ()
13079{
13080 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13081}
13082
77a3eb61 13083
1cf3d07d
SE
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
13090func_stripname ()
13091{
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
13098}
13099
13100# sed scripts:
13101my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13102my_sed_long_arg='1s/^-[^=]*=//'
13103
13104# func_opt_split
13105func_opt_split ()
13106{
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"`
13109}
13110
13111# func_lo2o object
13112func_lo2o ()
13113{
13114 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13115}
77a3eb61
PG
13116
13117# func_xform libobj-or-source
13118func_xform ()
13119{
13120 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13121}
13122
13123# func_arith arithmetic-term...
13124func_arith ()
13125{
13126 func_arith_result=`expr "$@"`
13127}
13128
13129# func_len string
13130# STRING may not start with a hyphen.
13131func_len ()
13132{
13133 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13134}
13135
1cf3d07d
SE
13136_LT_EOF
13137esac
13138
13139case $lt_shell_append in
13140 yes)
13141 cat << \_LT_EOF >> "$cfgfile"
13142
13143# func_append var value
13144# Append VALUE to the end of shell variable VAR.
13145func_append ()
13146{
13147 eval "$1+=\$2"
13148}
13149_LT_EOF
13150 ;;
13151 *)
13152 cat << \_LT_EOF >> "$cfgfile"
13153
13154# func_append var value
13155# Append VALUE to the end of shell variable VAR.
13156func_append ()
13157{
13158 eval "$1=\$$1\$2"
13159}
77a3eb61 13160
1cf3d07d
SE
13161_LT_EOF
13162 ;;
13163 esac
13164
13165
13166 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13167 || (rm -f "$cfgfile"; exit 1)
13168
13169 mv -f "$cfgfile" "$ofile" ||
13170 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13171 chmod +x "$ofile"
13172
77008252 13173 ;;
5213506e 13174
77008252 13175 esac
5213506e 13176done # for ac_tag
77008252 13177
77008252 13178
5213506e 13179as_fn_exit 0
77008252 13180_ACEOF
77008252
JJ
13181ac_clean_files=$ac_clean_files_save
13182
5213506e
RW
13183test $ac_write_fail = 0 ||
13184 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13185
77008252
JJ
13186
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.
13195if 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.
5213506e
RW
13205 $ac_cs_success || as_fn_exit $?
13206fi
13207if 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;}
77008252
JJ
13210fi
13211