]> git.saurik.com Git - cycript.git/blame - configure
Make sure install directories exist.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
9c60689e 3# Generated by GNU Autoconf 2.65 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
c7aa54aa 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9c60689e
DWT
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
c7aa54aa
DWT
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0
DWT
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
9c60689e
DWT
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
6b66678a
DWT
680as_awk_strverscmp='
681 # Use only awk features that work with 7th edition Unix awk (1978).
682 # My, what an old awk you have, Mr. Solaris!
683 END {
684 while (length(v1) && length(v2)) {
685 # Set d1 to be the next thing to compare from v1, and likewise for d2.
686 # Normally this is a single character, but if v1 and v2 contain digits,
687 # compare them as integers and fractions as strverscmp does.
688 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
689 # Split v1 and v2 into their leading digit string components d1 and d2,
690 # and advance v1 and v2 past the leading digit strings.
691 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
692 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
693 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
694 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
695 if (d1 ~ /^0/) {
696 if (d2 ~ /^0/) {
697 # Compare two fractions.
698 while (d1 ~ /^0/ && d2 ~ /^0/) {
699 d1 = substr(d1, 2); len1--
700 d2 = substr(d2, 2); len2--
701 }
702 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
703 # The two components differ in length, and the common prefix
704 # contains only leading zeros. Consider the longer to be less.
705 d1 = -len1
706 d2 = -len2
707 } else {
708 # Otherwise, compare as strings.
709 d1 = "x" d1
710 d2 = "x" d2
711 }
712 } else {
713 # A fraction is less than an integer.
714 exit 1
715 }
716 } else {
717 if (d2 ~ /^0/) {
718 # An integer is greater than a fraction.
719 exit 2
720 } else {
721 # Compare two integers.
722 d1 += 0
723 d2 += 0
724 }
725 }
726 } else {
727 # The normal case, without worrying about digits.
728 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
729 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
730 }
731 if (d1 < d2) exit 1
732 if (d1 > d2) exit 2
733 }
734 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
735 # which mishandles some comparisons of empty strings to integers.
736 if (length(v2)) exit 1
737 if (length(v1)) exit 2
738 }
739'
c7aa54aa 740
9c60689e
DWT
741test -n "$DJDIR" || exec 7<&0 </dev/null
742exec 6>&1
c7aa54aa
DWT
743
744# Name of the host.
745# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
746# so uname gets run too.
747ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749#
750# Initializations.
751#
752ac_default_prefix=/usr/local
753ac_clean_files=
754ac_config_libobj_dir=.
755LIBOBJS=
756cross_compiling=no
757subdirs=
758MFLAGS=
759MAKEFLAGS=
760
761# Identity of this package.
762PACKAGE_NAME='Cycript'
763PACKAGE_TARNAME='cycript'
764PACKAGE_VERSION='0.9'
765PACKAGE_STRING='Cycript 0.9'
766PACKAGE_BUGREPORT='saurik@saurik.com'
767PACKAGE_URL='http://www.cycript.org/'
768
35fa52c0 769ac_unique_file="Console.cpp"
6b66678a
DWT
770# Factoring default headers for most tests.
771ac_includes_default="\
772#include <stdio.h>
773#ifdef HAVE_SYS_TYPES_H
774# include <sys/types.h>
775#endif
776#ifdef HAVE_SYS_STAT_H
777# include <sys/stat.h>
778#endif
779#ifdef STDC_HEADERS
780# include <stdlib.h>
781# include <stddef.h>
782#else
783# ifdef HAVE_STDLIB_H
784# include <stdlib.h>
785# endif
786#endif
787#ifdef HAVE_STRING_H
788# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
789# include <memory.h>
790# endif
791# include <string.h>
792#endif
793#ifdef HAVE_STRINGS_H
794# include <strings.h>
795#endif
796#ifdef HAVE_INTTYPES_H
797# include <inttypes.h>
798#endif
799#ifdef HAVE_STDINT_H
800# include <stdint.h>
801#endif
802#ifdef HAVE_UNISTD_H
803# include <unistd.h>
804#endif"
805
9c60689e
DWT
806ac_subst_vars='LTLIBOBJS
807LIBOBJS
47aaa820
DWT
808ifGNUmake
809CY_OBJECTIVEC
810GNUSTEP_CONFIG
9c60689e
DWT
811ac_ct_OBJCXX
812OBJCXXFLAGS
813OBJCXX
309b0535 814LIBFFI_LIBS
35fa52c0 815LIBFFI_CFLAGS
3fd51f51 816CY_EXECUTE
35fa52c0
DWT
817WEBKIT_LIBS
818WEBKIT_CFLAGS
35fa52c0
DWT
819LTLIBICONV
820LIBICONV
35fa52c0
DWT
821INSTALL_DATA
822INSTALL_SCRIPT
823INSTALL_PROGRAM
549f29b5 824LTLIBAPR
3530897b 825TIME
9c60689e
DWT
826GPERF
827_BASH
35fa52c0
DWT
828FLEX
829LEXLIB
9c60689e
DWT
830LEX_OUTPUT_ROOT
831LEX
832BISON
833AWK
834YFLAGS
835YACC
47aaa820
DWT
836CXXCPP
837ac_ct_CXX
838CXXFLAGS
839CXX
3fd51f51 840PKG_CONFIG
9c60689e
DWT
841CPP
842OTOOL64
843OTOOL
844LIPO
845NMEDIT
846DSYMUTIL
847lt_ECHO
848RANLIB
849STRIP
850AR
851OBJDUMP
852LN_S
853NM
854ac_ct_DUMPBIN
855DUMPBIN
856LD
857FGREP
858EGREP
859GREP
860SED
35fa52c0
DWT
861OBJEXT
862EXEEXT
863ac_ct_CC
864CPPFLAGS
865LDFLAGS
866CFLAGS
867CC
9c60689e
DWT
868host_os
869host_vendor
870host_cpu
871host
872build_os
873build_vendor
874build_cpu
875build
876LIBTOOL
dbadc56a 877target_alias
c7aa54aa
DWT
878host_alias
879build_alias
880LIBS
881ECHO_T
882ECHO_N
883ECHO_C
884DEFS
885mandir
886localedir
887libdir
888psdir
889pdfdir
890dvidir
891htmldir
892infodir
893docdir
894oldincludedir
895includedir
896localstatedir
897sharedstatedir
898sysconfdir
899datadir
900datarootdir
901libexecdir
902sbindir
903bindir
904program_transform_name
905prefix
906exec_prefix
907PACKAGE_URL
908PACKAGE_BUGREPORT
909PACKAGE_STRING
910PACKAGE_VERSION
911PACKAGE_TARNAME
912PACKAGE_NAME
913PATH_SEPARATOR
914SHELL'
915ac_subst_files=''
916ac_user_opts='
917enable_option_checking
9c60689e 918enable_static
549f29b5 919enable_shared
9c60689e
DWT
920with_pic
921enable_fast_install
35fa52c0 922with_gnu_ld
9c60689e
DWT
923enable_libtool_lock
924with_apr
35fa52c0
DWT
925enable_rpath
926with_libiconv_prefix
c7aa54aa
DWT
927'
928 ac_precious_vars='build_alias
929host_alias
dbadc56a 930target_alias
35fa52c0
DWT
931CC
932CFLAGS
dbadc56a
DWT
933LDFLAGS
934LIBS
935CPPFLAGS
9c60689e 936CPP
3fd51f51 937PKG_CONFIG
35fa52c0
DWT
938CXX
939CXXFLAGS
940CCC
9c60689e 941CXXCPP
47aaa820
DWT
942YACC
943YFLAGS
35fa52c0
DWT
944WEBKIT_CFLAGS
945WEBKIT_LIBS
946LIBFFI_CFLAGS
6b66678a 947LIBFFI_LIBS
9c60689e
DWT
948OBJCXX
949OBJCXXFLAGS'
c7aa54aa
DWT
950
951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955ac_unrecognized_opts=
956ac_unrecognized_sep=
957# The variables have the same names as the options, with
958# dashes changed to underlines.
959cache_file=/dev/null
960exec_prefix=NONE
961no_create=
962no_recursion=
963prefix=NONE
964program_prefix=NONE
965program_suffix=NONE
966program_transform_name=s,x,x,
967silent=
968site=
969srcdir=
970verbose=
971x_includes=NONE
972x_libraries=NONE
973
974# Installation directory options.
975# These are left unexpanded so users can "make install exec_prefix=/foo"
976# and all the variables that are supposed to be based on exec_prefix
977# by default will actually change.
978# Use braces instead of parens because sh, perl, etc. also accept them.
979# (The list follows the same order as the GNU Coding Standards.)
980bindir='${exec_prefix}/bin'
981sbindir='${exec_prefix}/sbin'
982libexecdir='${exec_prefix}/libexec'
983datarootdir='${prefix}/share'
984datadir='${datarootdir}'
985sysconfdir='${prefix}/etc'
986sharedstatedir='${prefix}/com'
987localstatedir='${prefix}/var'
988includedir='${prefix}/include'
989oldincludedir='/usr/include'
990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991infodir='${datarootdir}/info'
992htmldir='${docdir}'
993dvidir='${docdir}'
994pdfdir='${docdir}'
995psdir='${docdir}'
996libdir='${exec_prefix}/lib'
997localedir='${datarootdir}/locale'
998mandir='${datarootdir}/man'
999
1000ac_prev=
1001ac_dashdash=
1002for ac_option
1003do
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1009 fi
1010
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1015
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018 case $ac_dashdash$ac_option in
1019 --)
1020 ac_dashdash=yes ;;
1021
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1026
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1031
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1038
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1041
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1046
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1053
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063"enable_$ac_useropt"
1064"*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1079
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089"enable_$ac_useropt"
1090"*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1104
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1108
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1115
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1120
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1126
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1133
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1138
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1143
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1150
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1155
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1162
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1167
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1171
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1175
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1179
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1188
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1193
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1200
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1207
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1224
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1229
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1234
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1238
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1244
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1255
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1260
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1265
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1272
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1277
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1280
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1283
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293"with_$ac_useropt"
1294"*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1299
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309"with_$ac_useropt"
1310"*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=no ;;
1315
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1319
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1326
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1333
1334 -*) as_fn_error "unrecognized option: \`$ac_option'
1335Try \`$0 --help' for more information."
1336 ;;
1337
1338 *=*)
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1344 esac
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1347
1348 *)
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 ;;
1355
1356 esac
1357done
1358
1359if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error "missing argument to $ac_option"
1362fi
1363
1364if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1366 no) ;;
1367 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 esac
1370fi
1371
1372# Check all directory arguments for consistency.
1373for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1377do
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1380 case $ac_val in
1381 */ )
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1384 esac
1385 # Be sure to have absolute directory names.
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1408 fi
1409fi
1410
1411ac_tool_prefix=
1412test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414test "$silent" = yes && exec 6>/dev/null
1415
1416
1417ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418ac_ls_di=`ls -di .` &&
1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error "working directory cannot be determined"
1421test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error "pwd does not report name of working directory"
1423
1424
1425# Find the source files, if location was not specified.
1426if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434$as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\/\)$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\).*/{
1448 s//\1/
1449 q
1450 }
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1455 fi
1456else
1457 ac_srcdir_defaulted=no
1458fi
1459if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1462fi
1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 pwd)`
1467# When building in place, set srcdir=.
1468if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1470fi
1471# Remove unnecessary trailing slashes from srcdir.
1472# Double slashes in file names in object file debugging info
1473# mess up M-x gdb in Emacs.
1474case $srcdir in
1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476esac
1477for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482done
1483
1484#
1485# Report the --help message.
1486#
1487if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1492
1493Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496VAR=VALUE. See below for descriptions of some of the useful variables.
1497
1498Defaults for the options are specified in brackets.
1499
1500Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510
1511Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1516
1517By default, \`make install' will install all the files in
1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520for instance \`--prefix=\$HOME'.
1521
1522For better control, use the options below.
1523
1524Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544_ACEOF
1545
1546 cat <<\_ACEOF
35fa52c0
DWT
1547
1548System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of Cycript 0.9:";;
1557 esac
1558 cat <<\_ACEOF
1559
35fa52c0
DWT
1560Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1564 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1565 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
35fa52c0
DWT
1569 --disable-rpath do not hardcode runtime library paths
1570
1571Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
309b0535
DWT
1577 --with-apr=PATH prefix for installed APR or the full path to
1578 apr-config
35fa52c0
DWT
1579 --with-gnu-ld assume the C compiler uses GNU ld default=no
1580 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1581 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1582
dbadc56a 1583Some influential environment variables:
35fa52c0
DWT
1584 CC C compiler command
1585 CFLAGS C compiler flags
dbadc56a
DWT
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1590 you have headers in a nonstandard directory <include dir>
9c60689e 1591 CPP C preprocessor
3fd51f51 1592 PKG_CONFIG path to pkg-config utility
47aaa820
DWT
1593 CXX C++ compiler command
1594 CXXFLAGS C++ compiler flags
1595 CXXCPP C++ preprocessor
9c60689e
DWT
1596 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1597 the first program found out of: `bison -y', `byacc', `yacc'.
1598 YFLAGS The list of arguments that will be passed by default to $YACC.
1599 This script will default YFLAGS to the empty string to avoid a
1600 default value of `-d' given by some make applications.
35fa52c0
DWT
1601 WEBKIT_CFLAGS
1602 C compiler flags for WEBKIT, overriding pkg-config
1603 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1604 LIBFFI_CFLAGS
1605 C compiler flags for LIBFFI, overriding pkg-config
1606 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
9c60689e
DWT
1607 OBJCXX Objective C++ compiler command
1608 OBJCXXFLAGS Objective C++ compiler flags
dbadc56a
DWT
1609
1610Use these variables to override the choices made by `configure' or to help
1611it to find libraries and programs with nonstandard names/locations.
1612
c7aa54aa
DWT
1613Report bugs to <saurik@saurik.com>.
1614Cycript home page: <http://www.cycript.org/>.
1615_ACEOF
1616ac_status=$?
1617fi
1618
1619if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 continue
1625 ac_builddir=.
1626
1627case "$ac_dir" in
1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629*)
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637esac
1638ac_abs_top_builddir=$ac_pwd
1639ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640# for backward compatibility:
1641ac_top_builddir=$ac_top_build_prefix
1642
1643case $srcdir in
1644 .) # We are building in place.
1645 ac_srcdir=.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656esac
1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1667 else
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1671 done
1672fi
1673
1674test -n "$ac_init_help" && exit $ac_status
1675if $ac_init_version; then
1676 cat <<\_ACEOF
1677Cycript configure 0.9
9c60689e 1678generated by GNU Autoconf 2.65
c7aa54aa
DWT
1679
1680Copyright (C) 2009 Free Software Foundation, Inc.
1681This configure script is free software; the Free Software Foundation
1682gives unlimited permission to copy, distribute and modify it.
1683_ACEOF
1684 exit
1685fi
1686
1687## ------------------------ ##
1688## Autoconf initialization. ##
1689## ------------------------ ##
dbadc56a 1690
35fa52c0
DWT
1691# ac_fn_c_try_compile LINENO
1692# --------------------------
1693# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_compile ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1725 as_fn_set_status $ac_retval
35fa52c0
DWT
1726
1727} # ac_fn_c_try_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1771 as_fn_set_status $ac_retval
35fa52c0
DWT
1772
1773} # ac_fn_c_try_link
1774
9c60689e
DWT
1775# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists and can be compiled using the include files in
1778# INCLUDES, setting the cache variable VAR accordingly.
1779ac_fn_c_check_header_compile ()
dbadc56a
DWT
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804} # ac_fn_c_check_header_compile
1805
1806# ac_fn_c_try_cpp LINENO
1807# ----------------------
1808# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_cpp ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
9c60689e 1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9c60689e
DWT
1827 test $ac_status = 0; } >/dev/null && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1829 test ! -s conftest.err
9c60689e 1830 }; then :
dbadc56a
DWT
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
9c60689e 1836 ac_retval=1
dbadc56a
DWT
1837fi
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1839 as_fn_set_status $ac_retval
dbadc56a 1840
9c60689e 1841} # ac_fn_c_try_cpp
35fa52c0
DWT
1842
1843# ac_fn_c_try_run LINENO
1844# ----------------------
1845# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846# that executables *can* be run.
1847ac_fn_c_try_run ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1881 as_fn_set_status $ac_retval
35fa52c0
DWT
1882
1883} # ac_fn_c_try_run
6b66678a 1884
9c60689e
DWT
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
6b66678a
DWT
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
6b66678a 1895else
9c60689e
DWT
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
6b66678a 1901
9c60689e
DWT
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
6b66678a 1944fi
9c60689e
DWT
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
6b66678a 1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6b66678a 1949
9c60689e 1950} # ac_fn_c_check_func
6b66678a 1951
9c60689e
DWT
1952# ac_fn_cxx_try_compile LINENO
1953# ----------------------------
1954# Try to compile conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_compile ()
6b66678a
DWT
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1960case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1978 ac_retval=0
1979else
1980 $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984fi
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 as_fn_set_status $ac_retval
1987
1988} # ac_fn_cxx_try_compile
1989
1990# ac_fn_cxx_try_cpp LINENO
1991# ------------------------
1992# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_cxx_try_cpp ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_cpp conftest.$ac_ext"
1997case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } >/dev/null && {
2012 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 }; then :
2015 ac_retval=0
2016else
2017 $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021fi
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 as_fn_set_status $ac_retval
2024
2025} # ac_fn_cxx_try_cpp
2026
2027# ac_fn_cxx_try_link LINENO
2028# -------------------------
2029# Try to link conftest.$ac_ext, and return whether this succeeded.
2030ac_fn_cxx_try_link ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext conftest$ac_exeext
2034 if { { ac_try="$ac_link"
2035case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038esac
2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040$as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_link") 2>conftest.err
2042 ac_status=$?
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2047 fi
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_cxx_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest$ac_exeext && {
2053 test "$cross_compiling" = yes ||
2054 $as_test_x conftest$ac_exeext
2055 }; then :
2056 ac_retval=0
2057else
2058 $as_echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 ac_retval=1
2062fi
2063 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2064 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2065 # interfere with the next link command; also delete a directory that is
2066 # left behind by Apple's compiler. We do this before executing the actions.
2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 as_fn_set_status $ac_retval
2070
2071} # ac_fn_cxx_try_link
2072
47aaa820
DWT
2073# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2074# ---------------------------------------------------------
2075# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076# the include files in INCLUDES and setting the cache variable VAR
2077# accordingly.
2078ac_fn_cxx_check_header_mongrel ()
2079{
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083$as_echo_n "checking for $2... " >&6; }
2084if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2086fi
2087eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090else
2091 # Is the header compilable?
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093$as_echo_n "checking $2 usability... " >&6; }
2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097#include <$2>
2098_ACEOF
2099if ac_fn_cxx_try_compile "$LINENO"; then :
2100 ac_header_compiler=yes
2101else
2102 ac_header_compiler=no
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106$as_echo "$ac_header_compiler" >&6; }
2107
2108# Is the header present?
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110$as_echo_n "checking $2 presence... " >&6; }
2111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113#include <$2>
2114_ACEOF
2115if ac_fn_cxx_try_cpp "$LINENO"; then :
2116 ac_header_preproc=yes
2117else
2118 ac_header_preproc=no
2119fi
2120rm -f conftest.err conftest.$ac_ext
2121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122$as_echo "$ac_header_preproc" >&6; }
2123
2124# So? What about this header?
2125case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2126 yes:no: )
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 ;;
2132 no:yes:* )
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2136$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2140$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143( cat <<\_ASBOX
2144## -------------------------------- ##
2145## Report this to saurik@saurik.com ##
2146## -------------------------------- ##
2147_ASBOX
2148 ) | sed "s/^/$as_me: WARNING: /" >&2
2149 ;;
2150esac
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
2153if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2154 $as_echo_n "(cached) " >&6
2155else
2156 eval "$3=\$ac_header_compiler"
2157fi
2158eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161fi
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163
2164} # ac_fn_cxx_check_header_mongrel
2165
9c60689e
DWT
2166# ac_fn_objcxx_try_compile LINENO
2167# -------------------------------
2168# Try to compile conftest.$ac_ext, and return whether this succeeded.
2169ac_fn_objcxx_try_compile ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 rm -f conftest.$ac_objext
2173 if { { ac_try="$ac_compile"
2174case "(($ac_try" in
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2177esac
2178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179$as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_compile") 2>conftest.err
2181 ac_status=$?
2182 if test -s conftest.err; then
2183 grep -v '^ *+' conftest.err >conftest.er1
2184 cat conftest.er1 >&5
2185 mv -f conftest.er1 conftest.err
2186 fi
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && {
2189 test -z "$ac_objcxx_werror_flag" ||
2190 test ! -s conftest.err
2191 } && test -s conftest.$ac_objext; then :
2192 ac_retval=0
2193else
2194 $as_echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 ac_retval=1
2198fi
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200 as_fn_set_status $ac_retval
2201
2202} # ac_fn_objcxx_try_compile
c7aa54aa
DWT
2203cat >config.log <<_ACEOF
2204This file contains any messages produced by compilers while
2205running configure, to aid debugging if configure makes a mistake.
2206
2207It was created by Cycript $as_me 0.9, which was
9c60689e 2208generated by GNU Autoconf 2.65. Invocation command line was
c7aa54aa
DWT
2209
2210 $ $0 $@
2211
2212_ACEOF
2213exec 5>>config.log
2214{
2215cat <<_ASUNAME
2216## --------- ##
2217## Platform. ##
2218## --------- ##
2219
2220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228
2229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236
2237_ASUNAME
2238
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2245 done
2246IFS=$as_save_IFS
2247
2248} >&5
2249
2250cat >&5 <<_ACEOF
2251
2252
2253## ----------- ##
2254## Core tests. ##
2255## ----------- ##
2256
2257_ACEOF
2258
2259
2260# Keep a trace of the command line.
2261# Strip out --no-create and --no-recursion so they do not pile up.
2262# Strip out --silent because we don't want to record it for future runs.
2263# Also quote any args containing shell meta-characters.
2264# Make two passes to allow for proper duplicate-argument suppression.
2265ac_configure_args=
2266ac_configure_args0=
2267ac_configure_args1=
2268ac_must_keep_next=false
2269for ac_pass in 1 2
2270do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304done
2305{ ac_configure_args0=; unset ac_configure_args0;}
2306{ ac_configure_args1=; unset ac_configure_args1;}
2307
2308# When interrupted or exit'd, cleanup temporary files, and complete
2309# config.log. We remove comments because anyway the quotes in there
2310# would cause problems or look ugly.
2311# WARNING: Use '\'' to represent an apostrophe within the trap.
2312# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2315 {
2316 echo
2317
2318 cat <<\_ASBOX
2319## ---------------- ##
2320## Cache variables. ##
2321## ---------------- ##
2322_ASBOX
2323 echo
2324 # The following way of writing the cache mishandles newlines in values,
2325(
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in #(
2329 *${as_nl}*)
2330 case $ac_var in #(
2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 esac
2334 case $ac_var in #(
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2338 esac ;;
2339 esac
2340 done
2341 (set) 2>&1 |
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2344 sed -n \
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 ;; #(
2348 *)
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350 ;;
2351 esac |
2352 sort
2353)
2354 echo
2355
2356 cat <<\_ASBOX
2357## ----------------- ##
2358## Output variables. ##
2359## ----------------- ##
2360_ASBOX
2361 echo
2362 for ac_var in $ac_subst_vars
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371
2372 if test -n "$ac_subst_files"; then
2373 cat <<\_ASBOX
2374## ------------------- ##
2375## File substitutions. ##
2376## ------------------- ##
2377_ASBOX
2378 echo
2379 for ac_var in $ac_subst_files
2380 do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in
2383 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 esac
2385 $as_echo "$ac_var='\''$ac_val'\''"
2386 done | sort
2387 echo
2388 fi
2389
2390 if test -s confdefs.h; then
2391 cat <<\_ASBOX
2392## ----------- ##
2393## confdefs.h. ##
2394## ----------- ##
2395_ASBOX
2396 echo
2397 cat confdefs.h
2398 echo
2399 fi
2400 test "$ac_signal" != 0 &&
2401 $as_echo "$as_me: caught signal $ac_signal"
2402 $as_echo "$as_me: exit $exit_status"
2403 } >&5
2404 rm -f core *.core core.conftest.* &&
2405 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 exit $exit_status
2407' 0
2408for ac_signal in 1 2 13 15; do
2409 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410done
2411ac_signal=0
2412
2413# confdefs.h avoids OS command line length limits that DEFS can exceed.
2414rm -f -r conftest* confdefs.h
2415
2416$as_echo "/* confdefs.h */" > confdefs.h
2417
2418# Predefined preprocessor variables.
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_NAME "$PACKAGE_NAME"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_VERSION "$PACKAGE_VERSION"
2430_ACEOF
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_STRING "$PACKAGE_STRING"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_URL "$PACKAGE_URL"
2442_ACEOF
2443
2444
2445# Let the site file select an alternate cache file if it wants to.
2446# Prefer an explicitly selected file to automatically selected ones.
2447ac_site_file1=NONE
2448ac_site_file2=NONE
2449if test -n "$CONFIG_SITE"; then
2450 ac_site_file1=$CONFIG_SITE
2451elif test "x$prefix" != xNONE; then
2452 ac_site_file1=$prefix/share/config.site
2453 ac_site_file2=$prefix/etc/config.site
2454else
2455 ac_site_file1=$ac_default_prefix/share/config.site
2456 ac_site_file2=$ac_default_prefix/etc/config.site
2457fi
2458for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459do
2460 test "x$ac_site_file" = xNONE && continue
9c60689e 2461 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464 sed 's/^/| /' "$ac_site_file" >&5
2465 . "$ac_site_file"
2466 fi
2467done
2468
2469if test -r "$cache_file"; then
9c60689e
DWT
2470 # Some versions of bash will fail to source /dev/null (special files
2471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474$as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2479 fi
2480else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482$as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2484fi
2485
2486# Check that the precious variables saved in the cache have kept the same
2487# value.
2488ac_cache_corrupted=false
2489for ac_var in $ac_precious_vars; do
2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491 eval ac_new_set=\$ac_env_${ac_var}_set
2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493 eval ac_new_val=\$ac_env_${ac_var}_value
2494 case $ac_old_set,$ac_new_set in
2495 set,)
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2498 ac_cache_corrupted=: ;;
2499 ,set)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2502 ac_cache_corrupted=: ;;
2503 ,);;
2504 *)
2505 if test "x$ac_old_val" != "x$ac_new_val"; then
2506 # differences in whitespace do not lead to failure.
2507 ac_old_val_w=`echo x $ac_old_val`
2508 ac_new_val_w=`echo x $ac_new_val`
2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512 ac_cache_corrupted=:
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516 eval $ac_var=\$ac_old_val
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2519$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2521$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2522 fi;;
2523 esac
2524 # Pass precious variables to config.status.
2525 if test "$ac_new_set" = set; then
2526 case $ac_new_val in
2527 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 *) ac_arg=$ac_var=$ac_new_val ;;
2529 esac
2530 case " $ac_configure_args " in
2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533 esac
2534 fi
2535done
2536if $ac_cache_corrupted; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2541 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542fi
2543## -------------------- ##
2544## Main body of script. ##
2545## -------------------- ##
2546
2547ac_ext=c
2548ac_cpp='$CPP $CPPFLAGS'
2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
35fa52c0 2554
6b66678a
DWT
2555ac_aux_dir=
2556for ac_dir in . "$srcdir"/.; do
2557 for ac_t in install-sh install.sh shtool; do
2558 if test -f "$ac_dir/$ac_t"; then
2559 ac_aux_dir=$ac_dir
2560 ac_install_sh="$ac_aux_dir/$ac_t -c"
2561 break 2
2562 fi
2563 done
2564done
2565if test -z "$ac_aux_dir"; then
2566 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2567fi
2568
2569# These three variables are undocumented and unsupported,
2570# and are intended to be withdrawn in a future Autoconf release.
2571# They can cause serious problems if a builder's source tree is in a directory
2572# whose full name contains unusual characters.
2573ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2574ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2575ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2576
2577
9c60689e
DWT
2578case `pwd` in
2579 *\ * | *\ *)
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2581$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2582esac
2583
2584
2585
2586macro_version='2.2.6b'
2587macro_revision='1.3017'
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601ltmain="$ac_aux_dir/ltmain.sh"
2602
2603# Make sure we can run config.sub.
2604$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608$as_echo_n "checking build system type... " >&6; }
2609if test "${ac_cv_build+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611else
2612 ac_build_alias=$build_alias
2613test "x$ac_build_alias" = x &&
2614 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615test "x$ac_build_alias" = x &&
2616 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2617ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619
2620fi
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622$as_echo "$ac_cv_build" >&6; }
2623case $ac_cv_build in
2624*-*-*) ;;
2625*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2626esac
2627build=$ac_cv_build
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_build
2630shift
2631build_cpu=$1
2632build_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636build_os=$*
2637IFS=$ac_save_IFS
2638case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642$as_echo_n "checking host system type... " >&6; }
2643if test "${ac_cv_host+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651fi
2652
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655$as_echo "$ac_cv_host" >&6; }
2656case $ac_cv_host in
2657*-*-*) ;;
2658*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2659esac
2660host=$ac_cv_host
2661ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_host
2663shift
2664host_cpu=$1
2665host_vendor=$2
2666shift; shift
2667# Remember, the first character of IFS is used to create $*,
2668# except with old shells:
2669host_os=$*
2670IFS=$ac_save_IFS
2671case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 2684if test "${ac_cv_prog_CC+set}" = set; then :
dbadc56a
DWT
2685 $as_echo_n "(cached) " >&6
2686else
9c60689e
DWT
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702 done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
9c60689e
DWT
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710$as_echo "$CC" >&6; }
35fa52c0
DWT
2711else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_CC"; then
2719 ac_ct_CC=$CC
2720 # Extract the first word of "gcc", so it can be a program name with args.
2721set dummy gcc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="gcc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742 done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750$as_echo "$ac_ct_CC" >&6; }
2751else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756 if test "x$ac_ct_CC" = x; then
2757 CC=""
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765 CC=$ac_ct_CC
2766 fi
2767else
2768 CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_CC+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}cc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810 fi
2811fi
2812if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814set dummy cc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if test "${ac_cv_prog_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823 ac_prog_rejected=no
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2833 continue
2834 fi
2835 ac_cv_prog_CC="cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840 done
2841IFS=$as_save_IFS
2842
2843if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2846 shift
2847 if test $# != 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2851 shift
2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853 fi
2854fi
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 for ac_prog in cl.exe
2871 do
2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894 done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909 test -n "$CC" && break
2910 done
2911fi
2912if test -z "$CC"; then
2913 ac_ct_CC=$CC
2914 for ac_prog in cl.exe
2915do
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917set dummy $ac_prog; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922else
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938 done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944if test -n "$ac_ct_CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946$as_echo "$ac_ct_CC" >&6; }
2947else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953 test -n "$ac_ct_CC" && break
2954done
2955
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960yes:)
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963ac_tool_warned=yes ;;
2964esac
2965 CC=$ac_ct_CC
2966 fi
2967fi
2968
2969fi
2970
2971
2972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error "no acceptable C compiler found in \$PATH
2975See \`config.log' for more details." "$LINENO" 5; }
2976
2977# Provide some information about the compiler.
2978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979set X $ac_compile
2980ac_compiler=$2
2981for ac_option in --version -v -V -qversion; do
2982 { { ac_try="$ac_compiler $ac_option >&5"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990 ac_status=$?
2991 if test -s conftest.err; then
2992 sed '10a\
2993... rest of stderr output deleted ...
2994 10q' conftest.err >conftest.er1
2995 cat conftest.er1 >&5
35fa52c0 2996 fi
9c60689e 2997 rm -f conftest.er1 conftest.err
35fa52c0
DWT
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }
3000done
3001
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h. */
9c60689e 3004
35fa52c0
DWT
3005int
3006main ()
3007{
35fa52c0
DWT
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013ac_clean_files_save=$ac_clean_files
9c60689e 3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3015# Try to create an executable without -o first, disregard a.out.
3016# It will help us diagnose broken compilers, and finding out an intuition
3017# of exeext.
9c60689e
DWT
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022# The possible output files:
3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025ac_rmfiles=
3026for ac_file in $ac_files
3027do
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031 esac
3032done
3033rm -f $ac_rmfiles
3034
3035if { { ac_try="$ac_link_default"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041$as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_link_default") 2>&5
3043 ac_status=$?
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }; then :
3046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048# in a Makefile. We should not override ac_cv_exeext if it was cached,
3049# so that the user can short-circuit this test for compilers unknown to
3050# Autoconf.
3051for ac_file in $ac_files ''
3052do
3053 test -f "$ac_file" || continue
3054 case $ac_file in
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056 ;;
3057 [ab].out )
3058 # We found the default executable, but exeext='' is most
3059 # certainly right.
3060 break;;
3061 *.* )
3062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063 then :; else
3064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 fi
3066 # We set ac_cv_exeext here because the later test for it is not
3067 # safe: cross compilers may not add the suffix if given an `-o'
3068 # argument, so we may need to know it at that point already.
3069 # Even if this section looks crufty: it has the advantage of
3070 # actually working.
3071 break;;
3072 * )
3073 break;;
3074 esac
3075done
3076test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078else
3079 ac_file=''
3080fi
35fa52c0 3081if test -z "$ac_file"; then :
9c60689e
DWT
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089{ as_fn_set_status 77
3090as_fn_error "C compiler cannot create executables
3091See \`config.log' for more details." "$LINENO" 5; }; }
9c60689e
DWT
3092else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094$as_echo "yes" >&6; }
35fa52c0 3095fi
9c60689e
DWT
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3097$as_echo_n "checking for C compiler default output file name... " >&6; }
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3099$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3100ac_exeext=$ac_cv_exeext
3101
9c60689e 3102rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3103ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3105$as_echo_n "checking for suffix of executables... " >&6; }
3106if { { ac_try="$ac_link"
3107case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
3117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3118# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3119# work properly (i.e., refer to `conftest.exe'), while it won't with
3120# `rm'.
3121for ac_file in conftest.exe conftest conftest.*; do
3122 test -f "$ac_file" || continue
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126 break;;
3127 * ) break;;
3128 esac
3129done
3130else
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error "cannot compute suffix of executables: cannot compile and link
3134See \`config.log' for more details." "$LINENO" 5; }
3135fi
9c60689e 3136rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3138$as_echo "$ac_cv_exeext" >&6; }
3139
3140rm -f conftest.$ac_ext
3141EXEEXT=$ac_cv_exeext
3142ac_exeext=$EXEEXT
9c60689e
DWT
3143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144/* end confdefs.h. */
3145#include <stdio.h>
3146int
3147main ()
3148{
3149FILE *f = fopen ("conftest.out", "w");
3150 return ferror (f) || fclose (f) != 0;
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156ac_clean_files="$ac_clean_files conftest.out"
3157# Check that the compiler produces executables we can run. If not, either
3158# the compiler is broken, or we cross compile.
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3160$as_echo_n "checking whether we are cross compiling... " >&6; }
3161if test "$cross_compiling" != yes; then
3162 { { ac_try="$ac_link"
3163case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168$as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_link") 2>&5
3170 ac_status=$?
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }
3173 if { ac_try='./conftest$ac_cv_exeext'
3174 { { case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; }; then
3184 cross_compiling=no
3185 else
3186 if test "$cross_compiling" = maybe; then
3187 cross_compiling=yes
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error "cannot run C compiled programs.
3192If you meant to cross compile, use \`--host'.
3193See \`config.log' for more details." "$LINENO" 5; }
3194 fi
3195 fi
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3198$as_echo "$cross_compiling" >&6; }
3199
3200rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3201ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3203$as_echo_n "checking for suffix of object files... " >&6; }
3204if test "${ac_cv_objext+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3206else
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h. */
3209
3210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218rm -f conftest.o conftest.obj
3219if { { ac_try="$ac_compile"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225$as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_compile") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 for ac_file in conftest.o conftest.obj conftest.*; do
3231 test -f "$ac_file" || continue;
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3235 break;;
3236 esac
3237done
3238else
3239 $as_echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244as_fn_error "cannot compute suffix of object files: cannot compile
3245See \`config.log' for more details." "$LINENO" 5; }
3246fi
3247rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3250$as_echo "$ac_cv_objext" >&6; }
3251OBJEXT=$ac_cv_objext
3252ac_objext=$OBJEXT
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3254$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3255if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257else
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264#ifndef __GNUC__
3265 choke me
3266#endif
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_compiler_gnu=yes
3274else
3275 ac_compiler_gnu=no
3276fi
3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278ac_cv_c_compiler_gnu=$ac_compiler_gnu
3279
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3282$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3283if test $ac_compiler_gnu = yes; then
3284 GCC=yes
3285else
3286 GCC=
3287fi
3288ac_test_CFLAGS=${CFLAGS+set}
3289ac_save_CFLAGS=$CFLAGS
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3291$as_echo_n "checking whether $CC accepts -g... " >&6; }
3292if test "${ac_cv_prog_cc_g+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3294else
3295 ac_save_c_werror_flag=$ac_c_werror_flag
3296 ac_c_werror_flag=yes
3297 ac_cv_prog_cc_g=no
3298 CFLAGS="-g"
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_cv_prog_cc_g=yes
3312else
3313 CFLAGS=""
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h. */
3316
3317int
3318main ()
3319{
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
3325if ac_fn_c_try_compile "$LINENO"; then :
3326
3327else
3328 ac_c_werror_flag=$ac_save_c_werror_flag
3329 CFLAGS="-g"
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h. */
3332
3333int
3334main ()
3335{
3336
3337 ;
3338 return 0;
3339}
3340_ACEOF
3341if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_cv_prog_cc_g=yes
3343fi
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345fi
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347fi
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 ac_c_werror_flag=$ac_save_c_werror_flag
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3352$as_echo "$ac_cv_prog_cc_g" >&6; }
3353if test "$ac_test_CFLAGS" = set; then
3354 CFLAGS=$ac_save_CFLAGS
3355elif test $ac_cv_prog_cc_g = yes; then
3356 if test "$GCC" = yes; then
3357 CFLAGS="-g -O2"
3358 else
3359 CFLAGS="-g"
3360 fi
3361else
3362 if test "$GCC" = yes; then
3363 CFLAGS="-O2"
3364 else
3365 CFLAGS=
3366 fi
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3369$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3370if test "${ac_cv_prog_cc_c89+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3372else
3373 ac_cv_prog_cc_c89=no
3374ac_save_CC=$CC
3375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */
3377#include <stdarg.h>
3378#include <stdio.h>
3379#include <sys/types.h>
3380#include <sys/stat.h>
3381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3382struct buf { int x; };
3383FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384static char *e (p, i)
3385 char **p;
3386 int i;
3387{
3388 return p[i];
3389}
3390static char *f (char * (*g) (char **, int), char **p, ...)
3391{
3392 char *s;
3393 va_list v;
3394 va_start (v,p);
3395 s = g (p, va_arg (v,int));
3396 va_end (v);
3397 return s;
3398}
3399
3400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3401 function prototypes and stuff, but not '\xHH' hex character constants.
3402 These don't provoke an error unfortunately, instead are silently treated
3403 as 'x'. The following induces an error, until -std is added to get
3404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3405 array size at least. It's necessary to write '\x00'==0 to get something
3406 that's true only with -std. */
3407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408
3409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410 inside strings and character constants. */
3411#define FOO(x) 'x'
3412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413
3414int test (int i, double x);
3415struct s1 {int (*f) (int a);};
3416struct s2 {int (*f) (double a);};
3417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418int argc;
3419char **argv;
3420int
3421main ()
3422{
3423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430do
3431 CC="$ac_save_CC $ac_arg"
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_prog_cc_c89=$ac_arg
3434fi
3435rm -f core conftest.err conftest.$ac_objext
3436 test "x$ac_cv_prog_cc_c89" != "xno" && break
3437done
3438rm -f conftest.$ac_ext
3439CC=$ac_save_CC
3440
3441fi
3442# AC_CACHE_VAL
3443case "x$ac_cv_prog_cc_c89" in
3444 x)
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3446$as_echo "none needed" >&6; } ;;
3447 xno)
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3449$as_echo "unsupported" >&6; } ;;
3450 *)
3451 CC="$CC $ac_cv_prog_cc_c89"
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3454esac
3455if test "x$ac_cv_prog_cc_c89" != xno; then :
3456
3457fi
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
9c60689e
DWT
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3466$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3467if test "${ac_cv_path_SED+set}" = set; then :
35fa52c0
DWT
3468 $as_echo_n "(cached) " >&6
3469else
9c60689e
DWT
3470 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3471 for ac_i in 1 2 3 4 5 6 7; do
3472 ac_script="$ac_script$as_nl$ac_script"
3473 done
3474 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3475 { ac_script=; unset ac_script;}
3476 if test -z "$SED"; then
3477 ac_path_SED_found=false
3478 # Loop through the user's path and test for each of PROGNAME-LIST
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
9c60689e 3484 for ac_prog in sed gsed; do
35fa52c0 3485 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3486 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3487 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3488# Check for GNU ac_path_SED and select it if it is found.
3489 # Check for GNU $ac_path_SED
3490case `"$ac_path_SED" --version 2>&1` in
3491*GNU*)
3492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3493*)
3494 ac_count=0
3495 $as_echo_n 0123456789 >"conftest.in"
3496 while :
3497 do
3498 cat "conftest.in" "conftest.in" >"conftest.tmp"
3499 mv "conftest.tmp" "conftest.in"
3500 cp "conftest.in" "conftest.nl"
3501 $as_echo '' >> "conftest.nl"
3502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3504 as_fn_arith $ac_count + 1 && ac_count=$as_val
3505 if test $ac_count -gt ${ac_path_SED_max-0}; then
3506 # Best one so far, save it but keep looking for a better one
3507 ac_cv_path_SED="$ac_path_SED"
3508 ac_path_SED_max=$ac_count
3509 fi
3510 # 10*(2^10) chars as input seems more than enough
3511 test $ac_count -gt 10 && break
35fa52c0 3512 done
9c60689e
DWT
3513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514esac
35fa52c0 3515
9c60689e
DWT
3516 $ac_path_SED_found && break 3
3517 done
3518 done
3519 done
3520IFS=$as_save_IFS
3521 if test -z "$ac_cv_path_SED"; then
3522 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3523 fi
35fa52c0 3524else
9c60689e 3525 ac_cv_path_SED=$SED
35fa52c0
DWT
3526fi
3527
9c60689e
DWT
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3530$as_echo "$ac_cv_path_SED" >&6; }
3531 SED="$ac_cv_path_SED"
3532 rm -f conftest.sed
35fa52c0 3533
9c60689e
DWT
3534test -z "$SED" && SED=sed
3535Xsed="$SED -e 1s/^X//"
35fa52c0 3536
35fa52c0 3537
35fa52c0 3538
35fa52c0 3539
35fa52c0 3540
35fa52c0
DWT
3541
3542
35fa52c0 3543
35fa52c0 3544
35fa52c0 3545
35fa52c0 3546
9c60689e
DWT
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3548$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3549if test "${ac_cv_path_GREP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 if test -z "$GREP"; then
3553 ac_path_GREP_found=false
3554 # Loop through the user's path and test for each of PROGNAME-LIST
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3557do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_prog in grep ggrep; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3563 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3564# Check for GNU ac_path_GREP and select it if it is found.
3565 # Check for GNU $ac_path_GREP
3566case `"$ac_path_GREP" --version 2>&1` in
3567*GNU*)
3568 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3569*)
3570 ac_count=0
3571 $as_echo_n 0123456789 >"conftest.in"
3572 while :
3573 do
3574 cat "conftest.in" "conftest.in" >"conftest.tmp"
3575 mv "conftest.tmp" "conftest.in"
3576 cp "conftest.in" "conftest.nl"
3577 $as_echo 'GREP' >> "conftest.nl"
3578 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3580 as_fn_arith $ac_count + 1 && ac_count=$as_val
3581 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3582 # Best one so far, save it but keep looking for a better one
3583 ac_cv_path_GREP="$ac_path_GREP"
3584 ac_path_GREP_max=$ac_count
3585 fi
3586 # 10*(2^10) chars as input seems more than enough
3587 test $ac_count -gt 10 && break
3588 done
3589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3590esac
6b66678a 3591
9c60689e
DWT
3592 $ac_path_GREP_found && break 3
3593 done
3594 done
3595 done
3596IFS=$as_save_IFS
3597 if test -z "$ac_cv_path_GREP"; then
3598 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3599 fi
3600else
3601 ac_cv_path_GREP=$GREP
3602fi
6b66678a 3603
9c60689e
DWT
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3606$as_echo "$ac_cv_path_GREP" >&6; }
3607 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3608
3609
9c60689e
DWT
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3611$as_echo_n "checking for egrep... " >&6; }
3612if test "${ac_cv_path_EGREP+set}" = set; then :
6b66678a
DWT
3613 $as_echo_n "(cached) " >&6
3614else
9c60689e
DWT
3615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3616 then ac_cv_path_EGREP="$GREP -E"
3617 else
3618 if test -z "$EGREP"; then
3619 ac_path_EGREP_found=false
3620 # Loop through the user's path and test for each of PROGNAME-LIST
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in egrep; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3629 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3630# Check for GNU ac_path_EGREP and select it if it is found.
3631 # Check for GNU $ac_path_EGREP
3632case `"$ac_path_EGREP" --version 2>&1` in
3633*GNU*)
3634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3635*)
3636 ac_count=0
3637 $as_echo_n 0123456789 >"conftest.in"
3638 while :
3639 do
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 $as_echo 'EGREP' >> "conftest.nl"
3644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3646 as_fn_arith $ac_count + 1 && ac_count=$as_val
3647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_EGREP="$ac_path_EGREP"
3650 ac_path_EGREP_max=$ac_count
3651 fi
3652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3654 done
3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3656esac
3657
3658 $ac_path_EGREP_found && break 3
3659 done
3660 done
3661 done
3662IFS=$as_save_IFS
3663 if test -z "$ac_cv_path_EGREP"; then
3664 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3665 fi
3666else
3667 ac_cv_path_EGREP=$EGREP
3668fi
6b66678a 3669
9c60689e
DWT
3670 fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3673$as_echo "$ac_cv_path_EGREP" >&6; }
3674 EGREP="$ac_cv_path_EGREP"
6b66678a 3675
6b66678a 3676
9c60689e
DWT
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3678$as_echo_n "checking for fgrep... " >&6; }
3679if test "${ac_cv_path_FGREP+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
6b66678a 3681else
9c60689e
DWT
3682 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3683 then ac_cv_path_FGREP="$GREP -F"
3684 else
3685 if test -z "$FGREP"; then
3686 ac_path_FGREP_found=false
3687 # Loop through the user's path and test for each of PROGNAME-LIST
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3690do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_prog in fgrep; do
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3696 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3697# Check for GNU ac_path_FGREP and select it if it is found.
3698 # Check for GNU $ac_path_FGREP
3699case `"$ac_path_FGREP" --version 2>&1` in
3700*GNU*)
3701 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3702*)
3703 ac_count=0
3704 $as_echo_n 0123456789 >"conftest.in"
3705 while :
3706 do
3707 cat "conftest.in" "conftest.in" >"conftest.tmp"
3708 mv "conftest.tmp" "conftest.in"
3709 cp "conftest.in" "conftest.nl"
3710 $as_echo 'FGREP' >> "conftest.nl"
3711 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713 as_fn_arith $ac_count + 1 && ac_count=$as_val
3714 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3715 # Best one so far, save it but keep looking for a better one
3716 ac_cv_path_FGREP="$ac_path_FGREP"
3717 ac_path_FGREP_max=$ac_count
3718 fi
3719 # 10*(2^10) chars as input seems more than enough
3720 test $ac_count -gt 10 && break
3721 done
3722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723esac
6b66678a 3724
9c60689e
DWT
3725 $ac_path_FGREP_found && break 3
3726 done
3727 done
3728 done
3729IFS=$as_save_IFS
3730 if test -z "$ac_cv_path_FGREP"; then
3731 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3732 fi
3733else
3734 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3735fi
3736
9c60689e 3737 fi
6b66678a 3738fi
9c60689e
DWT
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3740$as_echo "$ac_cv_path_FGREP" >&6; }
3741 FGREP="$ac_cv_path_FGREP"
6b66678a 3742
35fa52c0 3743
9c60689e 3744test -z "$GREP" && GREP=grep
35fa52c0 3745
309b0535 3746
35fa52c0 3747
6b66678a 3748
6b66678a
DWT
3749
3750
6b66678a 3751
6b66678a 3752
35fa52c0 3753
35fa52c0 3754
309b0535 3755
309b0535 3756
309b0535 3757
309b0535 3758
309b0535 3759
309b0535 3760
309b0535 3761
309b0535 3762
309b0535 3763
9c60689e
DWT
3764# Check whether --with-gnu-ld was given.
3765if test "${with_gnu_ld+set}" = set; then :
3766 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3767else
9c60689e
DWT
3768 with_gnu_ld=no
3769fi
309b0535 3770
9c60689e
DWT
3771ac_prog=ld
3772if test "$GCC" = yes; then
3773 # Check if gcc -print-prog-name=ld gives a path.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3775$as_echo_n "checking for ld used by $CC... " >&6; }
3776 case $host in
3777 *-*-mingw*)
3778 # gcc leaves a trailing carriage return which upsets mingw
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3780 *)
3781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782 esac
3783 case $ac_prog in
3784 # Accept absolute paths.
3785 [\\/]* | ?:[\\/]*)
3786 re_direlt='/[^/][^/]*/\.\./'
3787 # Canonicalize the pathname of ld
3788 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3789 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3790 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3791 done
9c60689e
DWT
3792 test -z "$LD" && LD="$ac_prog"
3793 ;;
3794 "")
3795 # If it fails, then pretend we aren't using GCC.
3796 ac_prog=ld
3797 ;;
3798 *)
3799 # If it is relative, then search for the first ld in PATH.
3800 with_gnu_ld=unknown
3801 ;;
3802 esac
3803elif test "$with_gnu_ld" = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3805$as_echo_n "checking for GNU ld... " >&6; }
3806else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3808$as_echo_n "checking for non-GNU ld... " >&6; }
3809fi
3810if test "${lt_cv_path_LD+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 if test -z "$LD"; then
3814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3815 for ac_dir in $PATH; do
3816 IFS="$lt_save_ifs"
3817 test -z "$ac_dir" && ac_dir=.
3818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3819 lt_cv_path_LD="$ac_dir/$ac_prog"
3820 # Check to see if the program is GNU ld. I'd rather use --version,
3821 # but apparently some variants of GNU ld only accept -v.
3822 # Break only if it was the GNU/non-GNU ld that we prefer.
3823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3824 *GNU* | *'with BFD'*)
3825 test "$with_gnu_ld" != no && break
3826 ;;
3827 *)
3828 test "$with_gnu_ld" != yes && break
3829 ;;
309b0535 3830 esac
309b0535 3831 fi
9c60689e
DWT
3832 done
3833 IFS="$lt_save_ifs"
3834else
3835 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3836fi
3837fi
309b0535 3838
9c60689e
DWT
3839LD="$lt_cv_path_LD"
3840if test -n "$LD"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3842$as_echo "$LD" >&6; }
3843else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845$as_echo "no" >&6; }
3846fi
3847test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3849$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3850if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852else
3853 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3854case `$LD -v 2>&1 </dev/null` in
3855*GNU* | *'with BFD'*)
3856 lt_cv_prog_gnu_ld=yes
3857 ;;
3858*)
3859 lt_cv_prog_gnu_ld=no
3860 ;;
3861esac
309b0535 3862fi
9c60689e
DWT
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3864$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3865with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3866
3867
309b0535 3868
309b0535
DWT
3869
3870
309b0535 3871
309b0535 3872
9c60689e
DWT
3873
3874
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3876$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3877if test "${lt_cv_path_NM+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879else
3880 if test -n "$NM"; then
3881 # Let the user override the test.
3882 lt_cv_path_NM="$NM"
3883else
3884 lt_nm_to_check="${ac_tool_prefix}nm"
3885 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3886 lt_nm_to_check="$lt_nm_to_check nm"
3887 fi
3888 for lt_tmp_nm in $lt_nm_to_check; do
3889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3890 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3891 IFS="$lt_save_ifs"
3892 test -z "$ac_dir" && ac_dir=.
3893 tmp_nm="$ac_dir/$lt_tmp_nm"
3894 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3895 # Check to see if the nm accepts a BSD-compat flag.
3896 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3897 # nm: unknown option "B" ignored
3898 # Tru64's nm complains that /dev/null is an invalid object file
3899 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3900 */dev/null* | *'Invalid file or object type'*)
3901 lt_cv_path_NM="$tmp_nm -B"
3902 break
3903 ;;
3904 *)
3905 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3906 */dev/null*)
3907 lt_cv_path_NM="$tmp_nm -p"
3908 break
3909 ;;
3910 *)
3911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3912 continue # so that we can try to find one that supports BSD flags
3913 ;;
3914 esac
3915 ;;
3916 esac
309b0535
DWT
3917 fi
3918 done
9c60689e 3919 IFS="$lt_save_ifs"
309b0535 3920 done
9c60689e
DWT
3921 : ${lt_cv_path_NM=no}
3922fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3925$as_echo "$lt_cv_path_NM" >&6; }
3926if test "$lt_cv_path_NM" != "no"; then
3927 NM="$lt_cv_path_NM"
3928else
3929 # Didn't find any BSD compatible name lister, look for dumpbin.
3930 if test -n "$ac_tool_prefix"; then
3931 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3932 do
3933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3934set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3937if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3938 $as_echo_n "(cached) " >&6
3939else
9c60689e
DWT
3940 if test -n "$DUMPBIN"; then
3941 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3950 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954done
3955 done
3956IFS=$as_save_IFS
3957
3958fi
3959fi
9c60689e
DWT
3960DUMPBIN=$ac_cv_prog_DUMPBIN
3961if test -n "$DUMPBIN"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3963$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3964else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
3967fi
3968
3969
9c60689e 3970 test -n "$DUMPBIN" && break
35fa52c0
DWT
3971 done
3972fi
9c60689e
DWT
3973if test -z "$DUMPBIN"; then
3974 ac_ct_DUMPBIN=$DUMPBIN
3975 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3976do
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978set dummy $ac_prog; ac_word=$2
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3981if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3982 $as_echo_n "(cached) " >&6
3983else
9c60689e
DWT
3984 if test -n "$ac_ct_DUMPBIN"; then
3985 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3986else
3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3994 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998done
3999 done
4000IFS=$as_save_IFS
4001
4002fi
4003fi
9c60689e
DWT
4004ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4005if test -n "$ac_ct_DUMPBIN"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4007$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
4008else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010$as_echo "no" >&6; }
4011fi
4012
4013
9c60689e 4014 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
4015done
4016
9c60689e
DWT
4017 if test "x$ac_ct_DUMPBIN" = x; then
4018 DUMPBIN=":"
35fa52c0
DWT
4019 else
4020 case $cross_compiling:$ac_tool_warned in
4021yes:)
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4024ac_tool_warned=yes ;;
4025esac
9c60689e 4026 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
4027 fi
4028fi
4029
9c60689e
DWT
4030
4031 if test "$DUMPBIN" != ":"; then
4032 NM="$DUMPBIN"
35fa52c0
DWT
4033 fi
4034fi
9c60689e 4035test -z "$NM" && NM=nm
35fa52c0 4036
35fa52c0 4037
35fa52c0 4038
35fa52c0 4039
9c60689e
DWT
4040
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4043$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4044if test "${lt_cv_nm_interface+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046else
4047 lt_cv_nm_interface="BSD nm"
4048 echo "int some_variable = 0;" > conftest.$ac_ext
94690cff 4049 (eval echo "\"\$as_me:4049: $ac_compile\"" >&5)
9c60689e
DWT
4050 (eval "$ac_compile" 2>conftest.err)
4051 cat conftest.err >&5
94690cff 4052 (eval echo "\"\$as_me:4052: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4053 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4054 cat conftest.err >&5
94690cff 4055 (eval echo "\"\$as_me:4055: output\"" >&5)
9c60689e
DWT
4056 cat conftest.out >&5
4057 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4058 lt_cv_nm_interface="MS dumpbin"
4059 fi
4060 rm -f conftest*
35fa52c0 4061fi
9c60689e
DWT
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4063$as_echo "$lt_cv_nm_interface" >&6; }
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4066$as_echo_n "checking whether ln -s works... " >&6; }
4067LN_S=$as_ln_s
4068if test "$LN_S" = "ln -s"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070$as_echo "yes" >&6; }
35fa52c0 4071else
9c60689e
DWT
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4073$as_echo "no, using $LN_S" >&6; }
35fa52c0 4074fi
9c60689e
DWT
4075
4076# find the maximum length of command line arguments
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4078$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4079if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
35fa52c0
DWT
4080 $as_echo_n "(cached) " >&6
4081else
9c60689e
DWT
4082 i=0
4083 teststring="ABCD"
4084
4085 case $build_os in
4086 msdosdjgpp*)
4087 # On DJGPP, this test can blow up pretty badly due to problems in libc
4088 # (any single argument exceeding 2000 bytes causes a buffer overrun
4089 # during glob expansion). Even if it were fixed, the result of this
4090 # check would be larger than it should be.
4091 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4092 ;;
35fa52c0 4093
9c60689e
DWT
4094 gnu*)
4095 # Under GNU Hurd, this test is not required because there is
4096 # no limit to the length of command line arguments.
4097 # Libtool will interpret -1 as no limit whatsoever
4098 lt_cv_sys_max_cmd_len=-1;
4099 ;;
35fa52c0 4100
9c60689e
DWT
4101 cygwin* | mingw* | cegcc*)
4102 # On Win9x/ME, this test blows up -- it succeeds, but takes
4103 # about 5 minutes as the teststring grows exponentially.
4104 # Worse, since 9x/ME are not pre-emptively multitasking,
4105 # you end up with a "frozen" computer, even though with patience
4106 # the test eventually succeeds (with a max line length of 256k).
4107 # Instead, let's just punt: use the minimum linelength reported by
4108 # all of the supported platforms: 8192 (on NT/2K/XP).
4109 lt_cv_sys_max_cmd_len=8192;
4110 ;;
35fa52c0 4111
9c60689e
DWT
4112 amigaos*)
4113 # On AmigaOS with pdksh, this test takes hours, literally.
4114 # So we just punt and use a minimum line length of 8192.
4115 lt_cv_sys_max_cmd_len=8192;
4116 ;;
35fa52c0 4117
9c60689e
DWT
4118 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4119 # This has been around since 386BSD, at least. Likely further.
4120 if test -x /sbin/sysctl; then
4121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4122 elif test -x /usr/sbin/sysctl; then
4123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4124 else
4125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4126 fi
4127 # And add a safety zone
4128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4130 ;;
35fa52c0 4131
9c60689e
DWT
4132 interix*)
4133 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4134 lt_cv_sys_max_cmd_len=196608
4135 ;;
35fa52c0 4136
9c60689e
DWT
4137 osf*)
4138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4140 # nice to cause kernel panics so lets avoid the loop below.
4141 # First set a reasonable default.
4142 lt_cv_sys_max_cmd_len=16384
4143 #
4144 if test -x /sbin/sysconfig; then
4145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4146 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4147 esac
4148 fi
4149 ;;
4150 sco3.2v5*)
4151 lt_cv_sys_max_cmd_len=102400
4152 ;;
4153 sysv5* | sco5v6* | sysv4.2uw2*)
4154 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4155 if test -n "$kargmax"; then
4156 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4157 else
4158 lt_cv_sys_max_cmd_len=32768
4159 fi
4160 ;;
4161 *)
4162 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4163 if test -n "$lt_cv_sys_max_cmd_len"; then
4164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4166 else
4167 # Make teststring a little bigger before we do anything with it.
4168 # a 1K string should be a reasonable start.
4169 for i in 1 2 3 4 5 6 7 8 ; do
4170 teststring=$teststring$teststring
4171 done
4172 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4173 # If test is not a shell built-in, we'll probably end up computing a
4174 # maximum length that is only half of the actual maximum length, but
4175 # we can't tell.
4176 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4177 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4178 test $i != 17 # 1/2 MB should be enough
4179 do
4180 i=`expr $i + 1`
4181 teststring=$teststring$teststring
4182 done
4183 # Only check the string length outside the loop.
4184 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4185 teststring=
4186 # Add a significant safety factor because C++ compilers can tack on
4187 # massive amounts of additional arguments before passing them to the
4188 # linker. It appears as though 1/2 is a usable value.
4189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4190 fi
4191 ;;
4192 esac
35fa52c0 4193
35fa52c0 4194fi
9c60689e
DWT
4195
4196if test -n $lt_cv_sys_max_cmd_len ; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4198$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4199else
9c60689e
DWT
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4201$as_echo "none" >&6; }
35fa52c0 4202fi
9c60689e 4203max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4204
9c60689e
DWT
4205
4206
4207
4208
4209
4210: ${CP="cp -f"}
4211: ${MV="mv -f"}
4212: ${RM="rm -f"}
4213
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4215$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4216# Try some XSI features
4217xsi_shell=no
4218( _lt_dummy="a/b/c"
4219 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4220 = c,a/b,, \
4221 && eval 'test $(( 1 + 1 )) -eq 2 \
4222 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4223 && xsi_shell=yes
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4225$as_echo "$xsi_shell" >&6; }
4226
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4229$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4230lt_shell_append=no
4231( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4232 >/dev/null 2>&1 \
4233 && lt_shell_append=yes
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4235$as_echo "$lt_shell_append" >&6; }
4236
4237
4238if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4239 lt_unset=unset
35fa52c0 4240else
9c60689e
DWT
4241 lt_unset=false
4242fi
4243
4244
4245
4246
4247
4248# test EBCDIC or ASCII
4249case `echo X|tr X '\101'` in
4250 A) # ASCII based system
4251 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4252 lt_SP2NL='tr \040 \012'
4253 lt_NL2SP='tr \015\012 \040\040'
4254 ;;
4255 *) # EBCDIC based system
4256 lt_SP2NL='tr \100 \n'
4257 lt_NL2SP='tr \r\n \100\100'
4258 ;;
35fa52c0
DWT
4259esac
4260
35fa52c0 4261
35fa52c0 4262
35fa52c0 4263
35fa52c0 4264
35fa52c0 4265
35fa52c0 4266
35fa52c0 4267
9c60689e
DWT
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4270$as_echo_n "checking for $LD option to reload object files... " >&6; }
4271if test "${lt_cv_ld_reload_flag+set}" = set; then :
35fa52c0
DWT
4272 $as_echo_n "(cached) " >&6
4273else
9c60689e 4274 lt_cv_ld_reload_flag='-r'
35fa52c0 4275fi
9c60689e
DWT
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4277$as_echo "$lt_cv_ld_reload_flag" >&6; }
4278reload_flag=$lt_cv_ld_reload_flag
4279case $reload_flag in
4280"" | " "*) ;;
4281*) reload_flag=" $reload_flag" ;;
4282esac
4283reload_cmds='$LD$reload_flag -o $output$reload_objs'
4284case $host_os in
4285 darwin*)
4286 if test "$GCC" = yes; then
4287 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4288 else
4289 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4290 fi
4291 ;;
35fa52c0 4292esac
35fa52c0
DWT
4293
4294
9c60689e
DWT
4295
4296
4297
4298
4299
4300
4301
4302if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}objdump; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4308 $as_echo_n "(cached) " >&6
4309else
9c60689e
DWT
4310 if test -n "$OBJDUMP"; then
4311 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4312else
9c60689e
DWT
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
35fa52c0 4323 fi
9c60689e
DWT
4324done
4325 done
4326IFS=$as_save_IFS
35fa52c0 4327
35fa52c0 4328fi
35fa52c0 4329fi
9c60689e
DWT
4330OBJDUMP=$ac_cv_prog_OBJDUMP
4331if test -n "$OBJDUMP"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4333$as_echo "$OBJDUMP" >&6; }
35fa52c0 4334else
9c60689e
DWT
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
35fa52c0 4337fi
9c60689e
DWT
4338
4339
4340fi
4341if test -z "$ac_cv_prog_OBJDUMP"; then
4342 ac_ct_OBJDUMP=$OBJDUMP
4343 # Extract the first word of "objdump", so it can be a program name with args.
4344set dummy objdump; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
4347if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4348 $as_echo_n "(cached) " >&6
4349else
9c60689e
DWT
4350 if test -n "$ac_ct_OBJDUMP"; then
4351 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4352else
9c60689e
DWT
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
4367
35fa52c0
DWT
4368fi
4369fi
9c60689e
DWT
4370ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4371if test -n "$ac_ct_OBJDUMP"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4373$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
9c60689e
DWT
4378
4379 if test "x$ac_ct_OBJDUMP" = x; then
4380 OBJDUMP="false"
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383yes:)
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
35fa52c0 4387esac
9c60689e
DWT
4388 OBJDUMP=$ac_ct_OBJDUMP
4389 fi
4390else
4391 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4392fi
35fa52c0 4393
9c60689e 4394test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4395
4396
35fa52c0 4397
35fa52c0 4398
35fa52c0
DWT
4399
4400
4401
35fa52c0
DWT
4402
4403
9c60689e
DWT
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4405$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4406if test "${lt_cv_deplibs_check_method+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408else
4409 lt_cv_file_magic_cmd='$MAGIC_CMD'
4410lt_cv_file_magic_test_file=
4411lt_cv_deplibs_check_method='unknown'
4412# Need to set the preceding variable on all platforms that support
4413# interlibrary dependencies.
4414# 'none' -- dependencies not supported.
4415# `unknown' -- same as none, but documents that we really don't know.
4416# 'pass_all' -- all dependencies passed with no checks.
4417# 'test_compile' -- check by making test program.
4418# 'file_magic [[regex]]' -- check by looking for files in library path
4419# which responds to the $file_magic_cmd with a given extended regex.
4420# If you have `file' or equivalent on your system and you're not sure
4421# whether `pass_all' will *always* work, you probably want this one.
4422
4423case $host_os in
4424aix[4-9]*)
4425 lt_cv_deplibs_check_method=pass_all
4426 ;;
35fa52c0 4427
9c60689e
DWT
4428beos*)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
35fa52c0 4431
9c60689e
DWT
4432bsdi[45]*)
4433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4434 lt_cv_file_magic_cmd='/usr/bin/file -L'
4435 lt_cv_file_magic_test_file=/shlib/libc.so
4436 ;;
35fa52c0 4437
9c60689e
DWT
4438cygwin*)
4439 # func_win32_libid is a shell function defined in ltmain.sh
4440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4441 lt_cv_file_magic_cmd='func_win32_libid'
4442 ;;
35fa52c0 4443
9c60689e
DWT
4444mingw* | pw32*)
4445 # Base MSYS/MinGW do not provide the 'file' command needed by
4446 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4447 # unless we find 'file', for example because we are cross-compiling.
4448 if ( file / ) >/dev/null 2>&1; then
4449 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4450 lt_cv_file_magic_cmd='func_win32_libid'
4451 else
4452 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4453 lt_cv_file_magic_cmd='$OBJDUMP -f'
4454 fi
4455 ;;
35fa52c0 4456
9c60689e
DWT
4457cegcc)
4458 # use the weaker test based on 'objdump'. See mingw*.
4459 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4460 lt_cv_file_magic_cmd='$OBJDUMP -f'
4461 ;;
35fa52c0 4462
9c60689e
DWT
4463darwin* | rhapsody*)
4464 lt_cv_deplibs_check_method=pass_all
4465 ;;
35fa52c0 4466
9c60689e
DWT
4467freebsd* | dragonfly*)
4468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4469 case $host_cpu in
4470 i*86 )
4471 # Not sure whether the presence of OpenBSD here was a mistake.
4472 # Let's accept both of them until this is cleared up.
4473 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4474 lt_cv_file_magic_cmd=/usr/bin/file
4475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4476 ;;
4477 esac
4478 else
4479 lt_cv_deplibs_check_method=pass_all
4480 fi
4481 ;;
35fa52c0 4482
9c60689e
DWT
4483gnu*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
35fa52c0 4486
9c60689e
DWT
4487hpux10.20* | hpux11*)
4488 lt_cv_file_magic_cmd=/usr/bin/file
4489 case $host_cpu in
4490 ia64*)
4491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4492 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4493 ;;
4494 hppa*64*)
4495 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]'
4496 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4497 ;;
4498 *)
4499 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4500 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4501 ;;
4502 esac
4503 ;;
35fa52c0 4504
9c60689e
DWT
4505interix[3-9]*)
4506 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4508 ;;
35fa52c0 4509
9c60689e
DWT
4510irix5* | irix6* | nonstopux*)
4511 case $LD in
4512 *-32|*"-32 ") libmagic=32-bit;;
4513 *-n32|*"-n32 ") libmagic=N32;;
4514 *-64|*"-64 ") libmagic=64-bit;;
4515 *) libmagic=never-match;;
4516 esac
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
35fa52c0 4519
9c60689e
DWT
4520# This must be Linux ELF.
4521linux* | k*bsd*-gnu | kopensolaris*-gnu)
4522 lt_cv_deplibs_check_method=pass_all
4523 ;;
35fa52c0 4524
9c60689e
DWT
4525netbsd* | netbsdelf*-gnu)
4526 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4528 else
4529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4530 fi
4531 ;;
35fa52c0 4532
9c60689e
DWT
4533newos6*)
4534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4535 lt_cv_file_magic_cmd=/usr/bin/file
4536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4537 ;;
35fa52c0 4538
9c60689e
DWT
4539*nto* | *qnx*)
4540 lt_cv_deplibs_check_method=pass_all
4541 ;;
35fa52c0 4542
9c60689e
DWT
4543openbsd*)
4544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4546 else
4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4548 fi
4549 ;;
4550
4551osf3* | osf4* | osf5*)
4552 lt_cv_deplibs_check_method=pass_all
4553 ;;
4554
4555rdos*)
4556 lt_cv_deplibs_check_method=pass_all
4557 ;;
4558
4559solaris*)
4560 lt_cv_deplibs_check_method=pass_all
4561 ;;
4562
4563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4564 lt_cv_deplibs_check_method=pass_all
4565 ;;
4566
4567sysv4 | sysv4.3*)
4568 case $host_vendor in
4569 motorola)
4570 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]'
4571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4572 ;;
4573 ncr)
4574 lt_cv_deplibs_check_method=pass_all
4575 ;;
4576 sequent)
4577 lt_cv_file_magic_cmd='/bin/file'
4578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4579 ;;
4580 sni)
4581 lt_cv_file_magic_cmd='/bin/file'
4582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4583 lt_cv_file_magic_test_file=/lib/libc.so
4584 ;;
4585 siemens)
4586 lt_cv_deplibs_check_method=pass_all
4587 ;;
4588 pc)
4589 lt_cv_deplibs_check_method=pass_all
4590 ;;
4591 esac
4592 ;;
4593
4594tpf*)
4595 lt_cv_deplibs_check_method=pass_all
4596 ;;
4597esac
35fa52c0
DWT
4598
4599fi
9c60689e
DWT
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4601$as_echo "$lt_cv_deplibs_check_method" >&6; }
4602file_magic_cmd=$lt_cv_file_magic_cmd
4603deplibs_check_method=$lt_cv_deplibs_check_method
4604test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4605
35fa52c0 4606
35fa52c0 4607
35fa52c0 4608
35fa52c0 4609
35fa52c0 4610
35fa52c0 4611
35fa52c0 4612
35fa52c0 4613
35fa52c0 4614
35fa52c0 4615
9c60689e
DWT
4616
4617if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4619set dummy ${ac_tool_prefix}ar; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if test "${ac_cv_prog_AR+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624else
4625 if test -n "$AR"; then
4626 ac_cv_prog_AR="$AR" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_AR="${ac_tool_prefix}ar"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
35fa52c0 4640 done
9c60689e
DWT
4641IFS=$as_save_IFS
4642
4643fi
4644fi
4645AR=$ac_cv_prog_AR
4646if test -n "$AR"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4648$as_echo "$AR" >&6; }
4649else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653
4654
4655fi
4656if test -z "$ac_cv_prog_AR"; then
4657 ac_ct_AR=$AR
4658 # Extract the first word of "ar", so it can be a program name with args.
4659set dummy ar; ac_word=$2
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661$as_echo_n "checking for $ac_word... " >&6; }
4662if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664else
4665 if test -n "$ac_ct_AR"; then
4666 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4667else
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_AR="ar"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
35fa52c0 4678 fi
9c60689e
DWT
4679done
4680 done
4681IFS=$as_save_IFS
4682
4683fi
4684fi
4685ac_ct_AR=$ac_cv_prog_ac_ct_AR
4686if test -n "$ac_ct_AR"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4688$as_echo "$ac_ct_AR" >&6; }
4689else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691$as_echo "no" >&6; }
4692fi
4693
4694 if test "x$ac_ct_AR" = x; then
4695 AR="false"
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698yes:)
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701ac_tool_warned=yes ;;
4702esac
4703 AR=$ac_ct_AR
4704 fi
4705else
4706 AR="$ac_cv_prog_AR"
4707fi
4708
4709test -z "$AR" && AR=ar
4710test -z "$AR_FLAGS" && AR_FLAGS=cru
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4724set dummy ${ac_tool_prefix}strip; ac_word=$2
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726$as_echo_n "checking for $ac_word... " >&6; }
4727if test "${ac_cv_prog_STRIP+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729else
4730 if test -n "$STRIP"; then
4731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4732else
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
35fa52c0 4743 fi
9c60689e
DWT
4744done
4745 done
4746IFS=$as_save_IFS
4747
4748fi
4749fi
4750STRIP=$ac_cv_prog_STRIP
4751if test -n "$STRIP"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4753$as_echo "$STRIP" >&6; }
4754else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756$as_echo "no" >&6; }
4757fi
4758
4759
4760fi
4761if test -z "$ac_cv_prog_STRIP"; then
4762 ac_ct_STRIP=$STRIP
4763 # Extract the first word of "strip", so it can be a program name with args.
4764set dummy strip; ac_word=$2
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
4767if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 if test -n "$ac_ct_STRIP"; then
4771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_STRIP="strip"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785 done
4786IFS=$as_save_IFS
4787
4788fi
4789fi
4790ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4791if test -n "$ac_ct_STRIP"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4793$as_echo "$ac_ct_STRIP" >&6; }
4794else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
4797fi
4798
4799 if test "x$ac_ct_STRIP" = x; then
4800 STRIP=":"
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803yes:)
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808 STRIP=$ac_ct_STRIP
4809 fi
4810else
4811 STRIP="$ac_cv_prog_STRIP"
4812fi
4813
4814test -z "$STRIP" && STRIP=:
4815
4816
4817
4818
4819
4820
4821if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825$as_echo_n "checking for $ac_word... " >&6; }
4826if test "${ac_cv_prog_RANLIB+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828else
4829 if test -n "$RANLIB"; then
4830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843done
4844 done
4845IFS=$as_save_IFS
4846
4847fi
4848fi
4849RANLIB=$ac_cv_prog_RANLIB
4850if test -n "$RANLIB"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4852$as_echo "$RANLIB" >&6; }
4853else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
4857
4858
4859fi
4860if test -z "$ac_cv_prog_RANLIB"; then
4861 ac_ct_RANLIB=$RANLIB
4862 # Extract the first word of "ranlib", so it can be a program name with args.
4863set dummy ranlib; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 if test -n "$ac_ct_RANLIB"; then
4870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_RANLIB="ranlib"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884 done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4890if test -n "$ac_ct_RANLIB"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4892$as_echo "$ac_ct_RANLIB" >&6; }
4893else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898 if test "x$ac_ct_RANLIB" = x; then
4899 RANLIB=":"
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902yes:)
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905ac_tool_warned=yes ;;
4906esac
4907 RANLIB=$ac_ct_RANLIB
4908 fi
4909else
4910 RANLIB="$ac_cv_prog_RANLIB"
4911fi
4912
4913test -z "$RANLIB" && RANLIB=:
4914
4915
4916
4917
4918
4919
4920# Determine commands to create old-style static archives.
4921old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4922old_postinstall_cmds='chmod 644 $oldlib'
4923old_postuninstall_cmds=
4924
4925if test -n "$RANLIB"; then
4926 case $host_os in
4927 openbsd*)
4928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4929 ;;
4930 *)
4931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4932 ;;
4933 esac
4934 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4935fi
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970# If no C compiler was specified, use CC.
4971LTCC=${LTCC-"$CC"}
4972
4973# If no C compiler flags were specified, use CFLAGS.
4974LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4975
4976# Allow CC to be a program name with arguments.
4977compiler=$CC
4978
4979
4980# Check for command to grab the raw symbol name followed by C symbol from nm.
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4982$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4983if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985else
4986
4987# These are sane defaults that work on at least a few old systems.
4988# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4989
4990# Character class describing NM global symbol codes.
4991symcode='[BCDEGRST]'
4992
4993# Regexp to match symbols that can be accessed directly from C.
4994sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4995
4996# Define system-specific variables.
4997case $host_os in
4998aix*)
4999 symcode='[BCDT]'
5000 ;;
5001cygwin* | mingw* | pw32* | cegcc*)
5002 symcode='[ABCDGISTW]'
5003 ;;
5004hpux*)
5005 if test "$host_cpu" = ia64; then
5006 symcode='[ABCDEGRST]'
5007 fi
5008 ;;
5009irix* | nonstopux*)
5010 symcode='[BCDEGRST]'
5011 ;;
5012osf*)
5013 symcode='[BCDEGQRST]'
5014 ;;
5015solaris*)
5016 symcode='[BDRT]'
5017 ;;
5018sco3.2v5*)
5019 symcode='[DT]'
5020 ;;
5021sysv4.2uw2*)
5022 symcode='[DT]'
5023 ;;
5024sysv5* | sco5v6* | unixware* | OpenUNIX*)
5025 symcode='[ABDT]'
5026 ;;
5027sysv4)
5028 symcode='[DFNSTU]'
5029 ;;
5030esac
5031
5032# If we're using GNU nm, then use its standard symbol codes.
5033case `$NM -V 2>&1` in
5034*GNU* | *'with BFD'*)
5035 symcode='[ABCDGIRSTW]' ;;
5036esac
5037
5038# Transform an extracted symbol line into a proper C declaration.
5039# Some systems (esp. on ia64) link data and code symbols differently,
5040# so use this general approach.
5041lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5042
5043# Transform an extracted symbol line into symbol name and symbol address
5044lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5045lt_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'"
5046
5047# Handle CRLF in mingw tool chain
5048opt_cr=
5049case $build_os in
5050mingw*)
5051 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5052 ;;
5053esac
5054
5055# Try without a prefix underscore, then with it.
5056for ac_symprfx in "" "_"; do
5057
5058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5059 symxfrm="\\1 $ac_symprfx\\2 \\2"
5060
5061 # Write the raw and C identifiers.
5062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5063 # Fake it for dumpbin and say T for any non-static function
5064 # and D for any global variable.
5065 # Also find C++ and __fastcall symbols from MSVC++,
5066 # which start with @ or ?.
5067 lt_cv_sys_global_symbol_pipe="$AWK '"\
5068" {last_section=section; section=\$ 3};"\
5069" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5070" \$ 0!~/External *\|/{next};"\
5071" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5072" {if(hide[section]) next};"\
5073" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5074" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5075" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5076" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5077" ' prfx=^$ac_symprfx"
5078 else
5079 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5080 fi
5081
5082 # Check to see that the pipe works correctly.
5083 pipe_works=no
5084
5085 rm -f conftest*
5086 cat > conftest.$ac_ext <<_LT_EOF
5087#ifdef __cplusplus
5088extern "C" {
5089#endif
5090char nm_test_var;
5091void nm_test_func(void);
5092void nm_test_func(void){}
5093#ifdef __cplusplus
5094}
5095#endif
5096int main(){nm_test_var='a';nm_test_func();return(0);}
5097_LT_EOF
5098
5099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5103 test $ac_status = 0; }; then
5104 # Now try to grab the symbols.
5105 nlist=conftest.nm
5106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5107 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; } && test -s "$nlist"; then
5111 # Try sorting and uniquifying the output.
5112 if sort "$nlist" | uniq > "$nlist"T; then
5113 mv -f "$nlist"T "$nlist"
5114 else
5115 rm -f "$nlist"T
5116 fi
5117
5118 # Make sure that we snagged all the symbols we need.
5119 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5120 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5121 cat <<_LT_EOF > conftest.$ac_ext
5122#ifdef __cplusplus
5123extern "C" {
5124#endif
5125
5126_LT_EOF
5127 # Now generate the symbol file.
5128 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5129
5130 cat <<_LT_EOF >> conftest.$ac_ext
5131
5132/* The mapping between symbol names and symbols. */
5133const struct {
5134 const char *name;
5135 void *address;
5136}
5137lt__PROGRAM__LTX_preloaded_symbols[] =
5138{
5139 { "@PROGRAM@", (void *) 0 },
5140_LT_EOF
5141 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5142 cat <<\_LT_EOF >> conftest.$ac_ext
5143 {0, (void *) 0}
5144};
5145
5146/* This works around a problem in FreeBSD linker */
5147#ifdef FREEBSD_WORKAROUND
5148static const void *lt_preloaded_setup() {
5149 return lt__PROGRAM__LTX_preloaded_symbols;
5150}
5151#endif
5152
5153#ifdef __cplusplus
5154}
5155#endif
5156_LT_EOF
5157 # Now try linking the two files.
5158 mv conftest.$ac_objext conftstm.$ac_objext
5159 lt_save_LIBS="$LIBS"
5160 lt_save_CFLAGS="$CFLAGS"
5161 LIBS="conftstm.$ac_objext"
5162 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5164 (eval $ac_link) 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5168 pipe_works=yes
5169 fi
5170 LIBS="$lt_save_LIBS"
5171 CFLAGS="$lt_save_CFLAGS"
5172 else
5173 echo "cannot find nm_test_func in $nlist" >&5
5174 fi
5175 else
5176 echo "cannot find nm_test_var in $nlist" >&5
5177 fi
5178 else
5179 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5180 fi
5181 else
5182 echo "$progname: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 fi
5185 rm -rf conftest* conftst*
5186
5187 # Do not use the global_symbol_pipe unless it works.
5188 if test "$pipe_works" = yes; then
5189 break
5190 else
5191 lt_cv_sys_global_symbol_pipe=
5192 fi
5193done
5194
5195fi
5196
5197if test -z "$lt_cv_sys_global_symbol_pipe"; then
5198 lt_cv_sys_global_symbol_to_cdecl=
5199fi
5200if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5202$as_echo "failed" >&6; }
5203else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5205$as_echo "ok" >&6; }
5206fi
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230# Check whether --enable-libtool-lock was given.
5231if test "${enable_libtool_lock+set}" = set; then :
5232 enableval=$enable_libtool_lock;
5233fi
5234
5235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5236
5237# Some flags need to be propagated to the compiler or linker for good
5238# libtool support.
5239case $host in
5240ia64-*-hpux*)
5241 # Find out which ABI we are using.
5242 echo 'int i;' > conftest.$ac_ext
5243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5244 (eval $ac_compile) 2>&5
5245 ac_status=$?
5246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5247 test $ac_status = 0; }; then
5248 case `/usr/bin/file conftest.$ac_objext` in
5249 *ELF-32*)
5250 HPUX_IA64_MODE="32"
5251 ;;
5252 *ELF-64*)
5253 HPUX_IA64_MODE="64"
5254 ;;
5255 esac
5256 fi
5257 rm -rf conftest*
5258 ;;
5259*-*-irix6*)
5260 # Find out which ABI we are using.
94690cff 5261 echo '#line 5261 "configure"' > conftest.$ac_ext
9c60689e
DWT
5262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5263 (eval $ac_compile) 2>&5
5264 ac_status=$?
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }; then
5267 if test "$lt_cv_prog_gnu_ld" = yes; then
5268 case `/usr/bin/file conftest.$ac_objext` in
5269 *32-bit*)
5270 LD="${LD-ld} -melf32bsmip"
5271 ;;
5272 *N32*)
5273 LD="${LD-ld} -melf32bmipn32"
5274 ;;
5275 *64-bit*)
5276 LD="${LD-ld} -melf64bmip"
5277 ;;
5278 esac
5279 else
5280 case `/usr/bin/file conftest.$ac_objext` in
5281 *32-bit*)
5282 LD="${LD-ld} -32"
5283 ;;
5284 *N32*)
5285 LD="${LD-ld} -n32"
5286 ;;
5287 *64-bit*)
5288 LD="${LD-ld} -64"
5289 ;;
5290 esac
5291 fi
5292 fi
5293 rm -rf conftest*
5294 ;;
5295
5296x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5297s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5298 # Find out which ABI we are using.
5299 echo 'int i;' > conftest.$ac_ext
5300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5301 (eval $ac_compile) 2>&5
5302 ac_status=$?
5303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5304 test $ac_status = 0; }; then
5305 case `/usr/bin/file conftest.o` in
5306 *32-bit*)
5307 case $host in
5308 x86_64-*kfreebsd*-gnu)
5309 LD="${LD-ld} -m elf_i386_fbsd"
5310 ;;
5311 x86_64-*linux*)
5312 LD="${LD-ld} -m elf_i386"
5313 ;;
5314 ppc64-*linux*|powerpc64-*linux*)
5315 LD="${LD-ld} -m elf32ppclinux"
5316 ;;
5317 s390x-*linux*)
5318 LD="${LD-ld} -m elf_s390"
5319 ;;
5320 sparc64-*linux*)
5321 LD="${LD-ld} -m elf32_sparc"
5322 ;;
5323 esac
5324 ;;
5325 *64-bit*)
5326 case $host in
5327 x86_64-*kfreebsd*-gnu)
5328 LD="${LD-ld} -m elf_x86_64_fbsd"
5329 ;;
5330 x86_64-*linux*)
5331 LD="${LD-ld} -m elf_x86_64"
5332 ;;
5333 ppc*-*linux*|powerpc*-*linux*)
5334 LD="${LD-ld} -m elf64ppc"
5335 ;;
5336 s390*-*linux*|s390*-*tpf*)
5337 LD="${LD-ld} -m elf64_s390"
5338 ;;
5339 sparc*-*linux*)
5340 LD="${LD-ld} -m elf64_sparc"
5341 ;;
5342 esac
5343 ;;
5344 esac
5345 fi
5346 rm -rf conftest*
5347 ;;
5348
5349*-*-sco3.2v5*)
5350 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5351 SAVE_CFLAGS="$CFLAGS"
5352 CFLAGS="$CFLAGS -belf"
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5354$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5355if test "${lt_cv_cc_needs_belf+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366
5367int
5368main ()
5369{
5370
5371 ;
5372 return 0;
5373}
5374_ACEOF
5375if ac_fn_c_try_link "$LINENO"; then :
5376 lt_cv_cc_needs_belf=yes
5377else
5378 lt_cv_cc_needs_belf=no
5379fi
5380rm -f core conftest.err conftest.$ac_objext \
5381 conftest$ac_exeext conftest.$ac_ext
5382 ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5390$as_echo "$lt_cv_cc_needs_belf" >&6; }
5391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5393 CFLAGS="$SAVE_CFLAGS"
5394 fi
5395 ;;
5396sparc*-*solaris*)
5397 # Find out which ABI we are using.
5398 echo 'int i;' > conftest.$ac_ext
5399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5400 (eval $ac_compile) 2>&5
5401 ac_status=$?
5402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5403 test $ac_status = 0; }; then
5404 case `/usr/bin/file conftest.o` in
5405 *64-bit*)
5406 case $lt_cv_prog_gnu_ld in
5407 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5408 *)
5409 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5410 LD="${LD-ld} -64"
5411 fi
5412 ;;
5413 esac
5414 ;;
5415 esac
5416 fi
5417 rm -rf conftest*
5418 ;;
5419esac
5420
5421need_locks="$enable_libtool_lock"
5422
5423
5424 case $host_os in
5425 rhapsody* | darwin*)
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5428set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430$as_echo_n "checking for $ac_word... " >&6; }
5431if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433else
5434 if test -n "$DSYMUTIL"; then
5435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5436else
5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448done
5449 done
5450IFS=$as_save_IFS
5451
5452fi
5453fi
5454DSYMUTIL=$ac_cv_prog_DSYMUTIL
5455if test -n "$DSYMUTIL"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5457$as_echo "$DSYMUTIL" >&6; }
5458else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }
5461fi
5462
5463
5464fi
5465if test -z "$ac_cv_prog_DSYMUTIL"; then
5466 ac_ct_DSYMUTIL=$DSYMUTIL
5467 # Extract the first word of "dsymutil", so it can be a program name with args.
5468set dummy dsymutil; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
5471if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473else
5474 if test -n "$ac_ct_DSYMUTIL"; then
5475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489 done
5490IFS=$as_save_IFS
5491
5492fi
5493fi
5494ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5495if test -n "$ac_ct_DSYMUTIL"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5497$as_echo "$ac_ct_DSYMUTIL" >&6; }
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
5502
5503 if test "x$ac_ct_DSYMUTIL" = x; then
5504 DSYMUTIL=":"
5505 else
5506 case $cross_compiling:$ac_tool_warned in
5507yes:)
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510ac_tool_warned=yes ;;
5511esac
5512 DSYMUTIL=$ac_ct_DSYMUTIL
5513 fi
5514else
5515 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5516fi
5517
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5520set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522$as_echo_n "checking for $ac_word... " >&6; }
5523if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525else
5526 if test -n "$NMEDIT"; then
5527 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541 done
5542IFS=$as_save_IFS
5543
5544fi
5545fi
5546NMEDIT=$ac_cv_prog_NMEDIT
5547if test -n "$NMEDIT"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5549$as_echo "$NMEDIT" >&6; }
5550else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555
5556fi
5557if test -z "$ac_cv_prog_NMEDIT"; then
5558 ac_ct_NMEDIT=$NMEDIT
5559 # Extract the first word of "nmedit", so it can be a program name with args.
5560set dummy nmedit; ac_word=$2
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562$as_echo_n "checking for $ac_word... " >&6; }
5563if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565else
5566 if test -n "$ac_ct_NMEDIT"; then
5567 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580done
5581 done
5582IFS=$as_save_IFS
5583
5584fi
5585fi
5586ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5587if test -n "$ac_ct_NMEDIT"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5589$as_echo "$ac_ct_NMEDIT" >&6; }
5590else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592$as_echo "no" >&6; }
5593fi
5594
5595 if test "x$ac_ct_NMEDIT" = x; then
5596 NMEDIT=":"
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599yes:)
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602ac_tool_warned=yes ;;
5603esac
5604 NMEDIT=$ac_ct_NMEDIT
5605 fi
5606else
5607 NMEDIT="$ac_cv_prog_NMEDIT"
5608fi
5609
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5612set dummy ${ac_tool_prefix}lipo; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if test "${ac_cv_prog_LIPO+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617else
5618 if test -n "$LIPO"; then
5619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632done
5633 done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638LIPO=$ac_cv_prog_LIPO
5639if test -n "$LIPO"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5641$as_echo "$LIPO" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647
5648fi
5649if test -z "$ac_cv_prog_LIPO"; then
5650 ac_ct_LIPO=$LIPO
5651 # Extract the first word of "lipo", so it can be a program name with args.
5652set dummy lipo; ac_word=$2
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654$as_echo_n "checking for $ac_word... " >&6; }
5655if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -n "$ac_ct_LIPO"; then
5659 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_LIPO="lipo"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673 done
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5679if test -n "$ac_ct_LIPO"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5681$as_echo "$ac_ct_LIPO" >&6; }
5682else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686
5687 if test "x$ac_ct_LIPO" = x; then
5688 LIPO=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691yes:)
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694ac_tool_warned=yes ;;
5695esac
5696 LIPO=$ac_ct_LIPO
5697 fi
5698else
5699 LIPO="$ac_cv_prog_LIPO"
5700fi
5701
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5704set dummy ${ac_tool_prefix}otool; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if test "${ac_cv_prog_OTOOL+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709else
5710 if test -n "$OTOOL"; then
5711 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724done
5725 done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730OTOOL=$ac_cv_prog_OTOOL
5731if test -n "$OTOOL"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5733$as_echo "$OTOOL" >&6; }
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740fi
5741if test -z "$ac_cv_prog_OTOOL"; then
5742 ac_ct_OTOOL=$OTOOL
5743 # Extract the first word of "otool", so it can be a program name with args.
5744set dummy otool; ac_word=$2
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 if test -n "$ac_ct_OTOOL"; then
5751 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_ac_ct_OTOOL="otool"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765 done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5771if test -n "$ac_ct_OTOOL"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5773$as_echo "$ac_ct_OTOOL" >&6; }
5774else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779 if test "x$ac_ct_OTOOL" = x; then
5780 OTOOL=":"
5781 else
5782 case $cross_compiling:$ac_tool_warned in
5783yes:)
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786ac_tool_warned=yes ;;
5787esac
5788 OTOOL=$ac_ct_OTOOL
5789 fi
5790else
5791 OTOOL="$ac_cv_prog_OTOOL"
5792fi
5793
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5796set dummy ${ac_tool_prefix}otool64; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
5799if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 if test -n "$OTOOL64"; then
5803 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817 done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822OTOOL64=$ac_cv_prog_OTOOL64
5823if test -n "$OTOOL64"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5825$as_echo "$OTOOL64" >&6; }
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831
5832fi
5833if test -z "$ac_cv_prog_OTOOL64"; then
5834 ac_ct_OTOOL64=$OTOOL64
5835 # Extract the first word of "otool64", so it can be a program name with args.
5836set dummy otool64; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
5839if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 if test -n "$ac_ct_OTOOL64"; then
5843 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_ac_ct_OTOOL64="otool64"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857 done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5863if test -n "$ac_ct_OTOOL64"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5865$as_echo "$ac_ct_OTOOL64" >&6; }
5866else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871 if test "x$ac_ct_OTOOL64" = x; then
5872 OTOOL64=":"
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
5880 OTOOL64=$ac_ct_OTOOL64
5881 fi
5882else
5883 OTOOL64="$ac_cv_prog_OTOOL64"
5884fi
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5913$as_echo_n "checking for -single_module linker flag... " >&6; }
5914if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 lt_cv_apple_cc_single_mod=no
5918 if test -z "${LT_MULTI_MODULE}"; then
5919 # By default we will add the -single_module flag. You can override
5920 # by either setting the environment variable LT_MULTI_MODULE
5921 # non-empty at configure time, or by adding -multi_module to the
5922 # link flags.
5923 rm -rf libconftest.dylib*
5924 echo "int foo(void){return 1;}" > conftest.c
5925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5926-dynamiclib -Wl,-single_module conftest.c" >&5
5927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5929 _lt_result=$?
5930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5931 lt_cv_apple_cc_single_mod=yes
5932 else
5933 cat conftest.err >&5
5934 fi
5935 rm -rf libconftest.dylib*
5936 rm -f conftest.*
5937 fi
5938fi
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5940$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5942$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5943if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945else
5946 lt_cv_ld_exported_symbols_list=no
5947 save_LDFLAGS=$LDFLAGS
5948 echo "_main" > conftest.sym
5949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952
5953int
5954main ()
5955{
5956
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961if ac_fn_c_try_link "$LINENO"; then :
5962 lt_cv_ld_exported_symbols_list=yes
5963else
5964 lt_cv_ld_exported_symbols_list=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext \
5967 conftest$ac_exeext conftest.$ac_ext
5968 LDFLAGS="$save_LDFLAGS"
5969
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5972$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5973 case $host_os in
5974 rhapsody* | darwin1.[012])
5975 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5976 darwin1.*)
5977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5978 darwin*) # darwin 5.x on
5979 # if running on 10.5 or later, the deployment target defaults
5980 # to the OS version, if on x86, and 10.4, the deployment
5981 # target defaults to 10.4. Don't you love it?
5982 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5983 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5985 10.[012]*)
5986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5987 10.*)
5988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5989 esac
5990 ;;
5991 esac
5992 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5993 _lt_dar_single_mod='$single_module'
5994 fi
5995 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5996 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5997 else
5998 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5999 fi
6000 if test "$DSYMUTIL" != ":"; then
6001 _lt_dsymutil='~$DSYMUTIL $lib || :'
6002 else
6003 _lt_dsymutil=
6004 fi
6005 ;;
6006 esac
6007
6008ac_ext=c
6009ac_cpp='$CPP $CPPFLAGS'
6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6014$as_echo_n "checking how to run the C preprocessor... " >&6; }
6015# On Suns, sometimes $CPP names a directory.
6016if test -n "$CPP" && test -d "$CPP"; then
6017 CPP=
6018fi
6019if test -z "$CPP"; then
6020 if test "${ac_cv_prog_CPP+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022else
6023 # Double quotes because CPP needs to be expanded
6024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6025 do
6026 ac_preproc_ok=false
6027for ac_c_preproc_warn_flag in '' yes
6028do
6029 # Use a header file that comes with gcc, so configuring glibc
6030 # with a fresh cross-compiler works.
6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 # <limits.h> exists even on freestanding compilers.
6033 # On the NeXT, cc -E runs the code through the compiler's parser,
6034 # not just through cpp. "Syntax error" is here to catch this case.
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h. */
6037#ifdef __STDC__
6038# include <limits.h>
6039#else
6040# include <assert.h>
6041#endif
6042 Syntax error
6043_ACEOF
6044if ac_fn_c_try_cpp "$LINENO"; then :
6045
6046else
6047 # Broken: fails on valid input.
6048continue
6049fi
6050rm -f conftest.err conftest.$ac_ext
6051
6052 # OK, works on sane cases. Now check whether nonexistent headers
6053 # can be detected and how.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056#include <ac_nonexistent.h>
6057_ACEOF
6058if ac_fn_c_try_cpp "$LINENO"; then :
6059 # Broken: success on invalid input.
6060continue
6061else
6062 # Passes both tests.
6063ac_preproc_ok=:
6064break
6065fi
6066rm -f conftest.err conftest.$ac_ext
6067
6068done
6069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070rm -f conftest.err conftest.$ac_ext
6071if $ac_preproc_ok; then :
6072 break
6073fi
6074
6075 done
6076 ac_cv_prog_CPP=$CPP
6077
6078fi
6079 CPP=$ac_cv_prog_CPP
6080else
6081 ac_cv_prog_CPP=$CPP
6082fi
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6084$as_echo "$CPP" >&6; }
6085ac_preproc_ok=false
6086for ac_c_preproc_warn_flag in '' yes
6087do
6088 # Use a header file that comes with gcc, so configuring glibc
6089 # with a fresh cross-compiler works.
6090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 # <limits.h> exists even on freestanding compilers.
6092 # On the NeXT, cc -E runs the code through the compiler's parser,
6093 # not just through cpp. "Syntax error" is here to catch this case.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h. */
6096#ifdef __STDC__
6097# include <limits.h>
6098#else
6099# include <assert.h>
6100#endif
6101 Syntax error
6102_ACEOF
6103if ac_fn_c_try_cpp "$LINENO"; then :
6104
6105else
6106 # Broken: fails on valid input.
6107continue
6108fi
6109rm -f conftest.err conftest.$ac_ext
6110
6111 # OK, works on sane cases. Now check whether nonexistent headers
6112 # can be detected and how.
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h. */
6115#include <ac_nonexistent.h>
6116_ACEOF
6117if ac_fn_c_try_cpp "$LINENO"; then :
6118 # Broken: success on invalid input.
6119continue
6120else
6121 # Passes both tests.
6122ac_preproc_ok=:
6123break
6124fi
6125rm -f conftest.err conftest.$ac_ext
6126
6127done
6128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6129rm -f conftest.err conftest.$ac_ext
6130if $ac_preproc_ok; then :
6131
6132else
6133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6135as_fn_error "C preprocessor \"$CPP\" fails sanity check
6136See \`config.log' for more details." "$LINENO" 5; }
6137fi
6138
6139ac_ext=c
6140ac_cpp='$CPP $CPPFLAGS'
6141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
6145
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6147$as_echo_n "checking for ANSI C header files... " >&6; }
6148if test "${ac_cv_header_stdc+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h. */
6153#include <stdlib.h>
6154#include <stdarg.h>
6155#include <string.h>
6156#include <float.h>
6157
6158int
6159main ()
6160{
6161
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_compile "$LINENO"; then :
6167 ac_cv_header_stdc=yes
6168else
6169 ac_cv_header_stdc=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172
6173if test $ac_cv_header_stdc = yes; then
6174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h. */
6177#include <string.h>
6178
6179_ACEOF
6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "memchr" >/dev/null 2>&1; then :
6182
6183else
6184 ac_cv_header_stdc=no
6185fi
6186rm -f conftest*
6187
6188fi
6189
6190if test $ac_cv_header_stdc = yes; then
6191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h. */
6194#include <stdlib.h>
6195
6196_ACEOF
6197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "free" >/dev/null 2>&1; then :
6199
6200else
6201 ac_cv_header_stdc=no
6202fi
6203rm -f conftest*
6204
6205fi
6206
6207if test $ac_cv_header_stdc = yes; then
6208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6209 if test "$cross_compiling" = yes; then :
6210 :
6211else
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h. */
6214#include <ctype.h>
6215#include <stdlib.h>
6216#if ((' ' & 0x0FF) == 0x020)
6217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6219#else
6220# define ISLOWER(c) \
6221 (('a' <= (c) && (c) <= 'i') \
6222 || ('j' <= (c) && (c) <= 'r') \
6223 || ('s' <= (c) && (c) <= 'z'))
6224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6225#endif
6226
6227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6228int
6229main ()
6230{
6231 int i;
6232 for (i = 0; i < 256; i++)
6233 if (XOR (islower (i), ISLOWER (i))
6234 || toupper (i) != TOUPPER (i))
6235 return 2;
6236 return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_run "$LINENO"; then :
6240
6241else
6242 ac_cv_header_stdc=no
6243fi
6244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6245 conftest.$ac_objext conftest.beam conftest.$ac_ext
6246fi
6247
6248fi
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6251$as_echo "$ac_cv_header_stdc" >&6; }
6252if test $ac_cv_header_stdc = yes; then
6253
6254$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6255
6256fi
6257
6258# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6260 inttypes.h stdint.h unistd.h
6261do :
6262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6264"
6265eval as_val=\$$as_ac_Header
6266 if test "x$as_val" = x""yes; then :
6267 cat >>confdefs.h <<_ACEOF
6268#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269_ACEOF
6270
6271fi
6272
6273done
6274
6275
6276for ac_header in dlfcn.h
6277do :
6278 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6279"
6280if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6281 cat >>confdefs.h <<_ACEOF
6282#define HAVE_DLFCN_H 1
6283_ACEOF
6284
6285fi
6286
6287done
6288
6289
6290
6291# Set options
549f29b5
DWT
6292# Check whether --enable-static was given.
6293if test "${enable_static+set}" = set; then :
6294 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6295 case $enableval in
549f29b5
DWT
6296 yes) enable_static=yes ;;
6297 no) enable_static=no ;;
9c60689e 6298 *)
549f29b5 6299 enable_static=no
9c60689e
DWT
6300 # Look at the argument we got. We use all the common list separators.
6301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6302 for pkg in $enableval; do
6303 IFS="$lt_save_ifs"
6304 if test "X$pkg" = "X$p"; then
549f29b5 6305 enable_static=yes
9c60689e
DWT
6306 fi
6307 done
6308 IFS="$lt_save_ifs"
6309 ;;
6310 esac
6311else
549f29b5 6312 enable_static=no
9c60689e
DWT
6313fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
549f29b5
DWT
6323
6324 enable_dlopen=no
6325
6326
6327 enable_win32_dll=no
6328
6329
6330 # Check whether --enable-shared was given.
6331if test "${enable_shared+set}" = set; then :
6332 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6333 case $enableval in
549f29b5
DWT
6334 yes) enable_shared=yes ;;
6335 no) enable_shared=no ;;
9c60689e 6336 *)
549f29b5 6337 enable_shared=no
9c60689e
DWT
6338 # Look at the argument we got. We use all the common list separators.
6339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6340 for pkg in $enableval; do
6341 IFS="$lt_save_ifs"
6342 if test "X$pkg" = "X$p"; then
549f29b5 6343 enable_shared=yes
9c60689e
DWT
6344 fi
6345 done
6346 IFS="$lt_save_ifs"
6347 ;;
6348 esac
6349else
549f29b5 6350 enable_shared=yes
9c60689e
DWT
6351fi
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
549f29b5 6362
9c60689e
DWT
6363# Check whether --with-pic was given.
6364if test "${with_pic+set}" = set; then :
6365 withval=$with_pic; pic_mode="$withval"
6366else
6367 pic_mode=default
6368fi
6369
6370
6371test -z "$pic_mode" && pic_mode=default
6372
6373
6374
6375
6376
6377
6378
6379 # Check whether --enable-fast-install was given.
6380if test "${enable_fast_install+set}" = set; then :
6381 enableval=$enable_fast_install; p=${PACKAGE-default}
6382 case $enableval in
6383 yes) enable_fast_install=yes ;;
6384 no) enable_fast_install=no ;;
6385 *)
6386 enable_fast_install=no
6387 # Look at the argument we got. We use all the common list separators.
6388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6389 for pkg in $enableval; do
6390 IFS="$lt_save_ifs"
6391 if test "X$pkg" = "X$p"; then
6392 enable_fast_install=yes
6393 fi
6394 done
6395 IFS="$lt_save_ifs"
6396 ;;
6397 esac
6398else
6399 enable_fast_install=yes
6400fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412# This can be used to rebuild libtool when needed
6413LIBTOOL_DEPS="$ltmain"
6414
6415# Always use our own libtool.
6416LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442test -z "$LN_S" && LN_S="ln -s"
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457if test -n "${ZSH_VERSION+set}" ; then
6458 setopt NO_GLOB_SUBST
6459fi
6460
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6462$as_echo_n "checking for objdir... " >&6; }
6463if test "${lt_cv_objdir+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465else
6466 rm -f .libs 2>/dev/null
6467mkdir .libs 2>/dev/null
6468if test -d .libs; then
6469 lt_cv_objdir=.libs
6470else
6471 # MS-DOS does not allow filenames that begin with a dot.
6472 lt_cv_objdir=_libs
6473fi
6474rmdir .libs 2>/dev/null
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6477$as_echo "$lt_cv_objdir" >&6; }
6478objdir=$lt_cv_objdir
6479
6480
6481
6482
6483
6484cat >>confdefs.h <<_ACEOF
6485#define LT_OBJDIR "$lt_cv_objdir/"
6486_ACEOF
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504case $host_os in
6505aix3*)
6506 # AIX sometimes has problems with the GCC collect2 program. For some
6507 # reason, if we set the COLLECT_NAMES environment variable, the problems
6508 # vanish in a puff of smoke.
6509 if test "X${COLLECT_NAMES+set}" != Xset; then
6510 COLLECT_NAMES=
6511 export COLLECT_NAMES
6512 fi
6513 ;;
6514esac
6515
6516# Sed substitution that helps us do robust quoting. It backslashifies
6517# metacharacters that are still active within double-quoted strings.
6518sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6519
6520# Same as above, but do not quote variable references.
6521double_quote_subst='s/\(["`\\]\)/\\\1/g'
6522
6523# Sed substitution to delay expansion of an escaped shell variable in a
6524# double_quote_subst'ed string.
6525delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6526
6527# Sed substitution to delay expansion of an escaped single quote.
6528delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6529
6530# Sed substitution to avoid accidental globbing in evaled expressions
6531no_glob_subst='s/\*/\\\*/g'
6532
6533# Global variables:
6534ofile=libtool
6535can_build_shared=yes
6536
6537# All known linkers require a `.a' archive for static linking (except MSVC,
6538# which needs '.lib').
6539libext=a
6540
6541with_gnu_ld="$lt_cv_prog_gnu_ld"
6542
6543old_CC="$CC"
6544old_CFLAGS="$CFLAGS"
6545
6546# Set sane defaults for various variables
6547test -z "$CC" && CC=cc
6548test -z "$LTCC" && LTCC=$CC
6549test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6550test -z "$LD" && LD=ld
6551test -z "$ac_objext" && ac_objext=o
6552
6553for cc_temp in $compiler""; do
6554 case $cc_temp in
6555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6557 \-*) ;;
6558 *) break;;
6559 esac
6560done
6561cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6562
6563
6564# Only perform the check for file, if the check method requires it
6565test -z "$MAGIC_CMD" && MAGIC_CMD=file
6566case $deplibs_check_method in
6567file_magic*)
6568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6570$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6571if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573else
6574 case $MAGIC_CMD in
6575[\\/*] | ?:[\\/]*)
6576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6577 ;;
6578*)
6579 lt_save_MAGIC_CMD="$MAGIC_CMD"
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6582 for ac_dir in $ac_dummy; do
6583 IFS="$lt_save_ifs"
6584 test -z "$ac_dir" && ac_dir=.
6585 if test -f $ac_dir/${ac_tool_prefix}file; then
6586 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6587 if test -n "$file_magic_test_file"; then
6588 case $deplibs_check_method in
6589 "file_magic "*)
6590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6593 $EGREP "$file_magic_regex" > /dev/null; then
6594 :
6595 else
6596 cat <<_LT_EOF 1>&2
6597
6598*** Warning: the command libtool uses to detect shared libraries,
6599*** $file_magic_cmd, produces output that libtool cannot recognize.
6600*** The result is that libtool may fail to recognize shared libraries
6601*** as such. This will affect the creation of libtool libraries that
6602*** depend on shared libraries, but programs linked with such libtool
6603*** libraries will work regardless of this problem. Nevertheless, you
6604*** may want to report the problem to your system manager and/or to
6605*** bug-libtool@gnu.org
6606
6607_LT_EOF
6608 fi ;;
6609 esac
6610 fi
6611 break
6612 fi
6613 done
6614 IFS="$lt_save_ifs"
6615 MAGIC_CMD="$lt_save_MAGIC_CMD"
6616 ;;
6617esac
6618fi
6619
6620MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6621if test -n "$MAGIC_CMD"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6623$as_echo "$MAGIC_CMD" >&6; }
6624else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
6627fi
6628
6629
6630
6631
6632
6633if test -z "$lt_cv_path_MAGIC_CMD"; then
6634 if test -n "$ac_tool_prefix"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6636$as_echo_n "checking for file... " >&6; }
6637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639else
6640 case $MAGIC_CMD in
6641[\\/*] | ?:[\\/]*)
6642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6643 ;;
6644*)
6645 lt_save_MAGIC_CMD="$MAGIC_CMD"
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6648 for ac_dir in $ac_dummy; do
6649 IFS="$lt_save_ifs"
6650 test -z "$ac_dir" && ac_dir=.
6651 if test -f $ac_dir/file; then
6652 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6653 if test -n "$file_magic_test_file"; then
6654 case $deplibs_check_method in
6655 "file_magic "*)
6656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6659 $EGREP "$file_magic_regex" > /dev/null; then
6660 :
6661 else
6662 cat <<_LT_EOF 1>&2
6663
6664*** Warning: the command libtool uses to detect shared libraries,
6665*** $file_magic_cmd, produces output that libtool cannot recognize.
6666*** The result is that libtool may fail to recognize shared libraries
6667*** as such. This will affect the creation of libtool libraries that
6668*** depend on shared libraries, but programs linked with such libtool
6669*** libraries will work regardless of this problem. Nevertheless, you
6670*** may want to report the problem to your system manager and/or to
6671*** bug-libtool@gnu.org
6672
6673_LT_EOF
6674 fi ;;
6675 esac
6676 fi
6677 break
6678 fi
6679 done
6680 IFS="$lt_save_ifs"
6681 MAGIC_CMD="$lt_save_MAGIC_CMD"
6682 ;;
6683esac
6684fi
6685
6686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6687if test -n "$MAGIC_CMD"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6689$as_echo "$MAGIC_CMD" >&6; }
6690else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692$as_echo "no" >&6; }
6693fi
6694
6695
6696 else
6697 MAGIC_CMD=:
6698 fi
6699fi
6700
6701 fi
6702 ;;
6703esac
6704
6705# Use C for the default configuration in the libtool script
6706
6707lt_save_CC="$CC"
6708ac_ext=c
6709ac_cpp='$CPP $CPPFLAGS'
6710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713
6714
6715# Source file extension for C test sources.
6716ac_ext=c
6717
6718# Object file extension for compiled C test sources.
6719objext=o
6720objext=$objext
6721
6722# Code to be used in simple compile tests
6723lt_simple_compile_test_code="int some_variable = 0;"
6724
6725# Code to be used in simple link tests
6726lt_simple_link_test_code='int main(){return(0);}'
6727
6728
6729
6730
6731
6732
6733
6734# If no C compiler was specified, use CC.
6735LTCC=${LTCC-"$CC"}
6736
6737# If no C compiler flags were specified, use CFLAGS.
6738LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6739
6740# Allow CC to be a program name with arguments.
6741compiler=$CC
6742
6743# Save the default compiler, since it gets overwritten when the other
6744# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6745compiler_DEFAULT=$CC
6746
6747# save warnings/boilerplate of simple test code
6748ac_outfile=conftest.$ac_objext
6749echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6750eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6751_lt_compiler_boilerplate=`cat conftest.err`
6752$RM conftest*
6753
6754ac_outfile=conftest.$ac_objext
6755echo "$lt_simple_link_test_code" >conftest.$ac_ext
6756eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6757_lt_linker_boilerplate=`cat conftest.err`
6758$RM -r conftest*
6759
6760
6761if test -n "$compiler"; then
6762
6763lt_prog_compiler_no_builtin_flag=
6764
6765if test "$GCC" = yes; then
6766 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6769$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6770if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772else
6773 lt_cv_prog_compiler_rtti_exceptions=no
6774 ac_outfile=conftest.$ac_objext
6775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6776 lt_compiler_flag="-fno-rtti -fno-exceptions"
6777 # Insert the option either (1) after the last *FLAGS variable, or
6778 # (2) before a word containing "conftest.", or (3) at the end.
6779 # Note that $ac_compile itself does not contain backslashes and begins
6780 # with a dollar sign (not a hyphen), so the echo should work correctly.
6781 # The option is referenced via a variable to avoid confusing sed.
6782 lt_compile=`echo "$ac_compile" | $SED \
6783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6785 -e 's:$: $lt_compiler_flag:'`
94690cff 6786 (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
9c60689e
DWT
6787 (eval "$lt_compile" 2>conftest.err)
6788 ac_status=$?
6789 cat conftest.err >&5
94690cff 6790 echo "$as_me:6790: \$? = $ac_status" >&5
9c60689e
DWT
6791 if (exit $ac_status) && test -s "$ac_outfile"; then
6792 # The compiler can only warn and ignore the option if not recognized
6793 # So say no if there are warnings other than the usual output.
6794 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6797 lt_cv_prog_compiler_rtti_exceptions=yes
6798 fi
6799 fi
6800 $RM conftest*
6801
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6804$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6805
6806if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6807 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6808else
6809 :
6810fi
6811
6812fi
6813
6814
6815
6816
6817
6818
6819 lt_prog_compiler_wl=
6820lt_prog_compiler_pic=
6821lt_prog_compiler_static=
6822
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6824$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6825
6826 if test "$GCC" = yes; then
6827 lt_prog_compiler_wl='-Wl,'
6828 lt_prog_compiler_static='-static'
6829
6830 case $host_os in
6831 aix*)
6832 # All AIX code is PIC.
6833 if test "$host_cpu" = ia64; then
6834 # AIX 5 now supports IA64 processor
6835 lt_prog_compiler_static='-Bstatic'
6836 fi
6837 ;;
6838
6839 amigaos*)
6840 case $host_cpu in
6841 powerpc)
6842 # see comment about AmigaOS4 .so support
6843 lt_prog_compiler_pic='-fPIC'
6844 ;;
6845 m68k)
6846 # FIXME: we need at least 68020 code to build shared libraries, but
6847 # adding the `-m68020' flag to GCC prevents building anything better,
6848 # like `-m68040'.
6849 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6850 ;;
6851 esac
6852 ;;
6853
6854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6855 # PIC is the default for these OSes.
6856 ;;
6857
6858 mingw* | cygwin* | pw32* | os2* | cegcc*)
6859 # This hack is so that the source file can tell whether it is being
6860 # built for inclusion in a dll (and should export symbols for example).
6861 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6862 # (--disable-auto-import) libraries
6863 lt_prog_compiler_pic='-DDLL_EXPORT'
6864 ;;
6865
6866 darwin* | rhapsody*)
6867 # PIC is the default on this platform
6868 # Common symbols not allowed in MH_DYLIB files
6869 lt_prog_compiler_pic='-fno-common'
6870 ;;
6871
6872 hpux*)
6873 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6874 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6875 # sets the default TLS model and affects inlining.
6876 case $host_cpu in
6877 hppa*64*)
6878 # +Z the default
6879 ;;
6880 *)
6881 lt_prog_compiler_pic='-fPIC'
6882 ;;
6883 esac
6884 ;;
6885
6886 interix[3-9]*)
6887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6888 # Instead, we relocate shared libraries at runtime.
6889 ;;
6890
6891 msdosdjgpp*)
6892 # Just because we use GCC doesn't mean we suddenly get shared libraries
6893 # on systems that don't support them.
6894 lt_prog_compiler_can_build_shared=no
6895 enable_shared=no
6896 ;;
6897
6898 *nto* | *qnx*)
6899 # QNX uses GNU C++, but need to define -shared option too, otherwise
6900 # it will coredump.
6901 lt_prog_compiler_pic='-fPIC -shared'
6902 ;;
6903
6904 sysv4*MP*)
6905 if test -d /usr/nec; then
6906 lt_prog_compiler_pic=-Kconform_pic
6907 fi
6908 ;;
6909
6910 *)
6911 lt_prog_compiler_pic='-fPIC'
6912 ;;
6913 esac
6914 else
6915 # PORTME Check for flag to pass linker flags through the system compiler.
6916 case $host_os in
6917 aix*)
6918 lt_prog_compiler_wl='-Wl,'
6919 if test "$host_cpu" = ia64; then
6920 # AIX 5 now supports IA64 processor
6921 lt_prog_compiler_static='-Bstatic'
6922 else
6923 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6924 fi
6925 ;;
6926
6927 mingw* | cygwin* | pw32* | os2* | cegcc*)
6928 # This hack is so that the source file can tell whether it is being
6929 # built for inclusion in a dll (and should export symbols for example).
6930 lt_prog_compiler_pic='-DDLL_EXPORT'
6931 ;;
6932
6933 hpux9* | hpux10* | hpux11*)
6934 lt_prog_compiler_wl='-Wl,'
6935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6936 # not for PA HP-UX.
6937 case $host_cpu in
6938 hppa*64*|ia64*)
6939 # +Z the default
6940 ;;
6941 *)
6942 lt_prog_compiler_pic='+Z'
6943 ;;
6944 esac
6945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6946 lt_prog_compiler_static='${wl}-a ${wl}archive'
6947 ;;
6948
6949 irix5* | irix6* | nonstopux*)
6950 lt_prog_compiler_wl='-Wl,'
6951 # PIC (with -KPIC) is the default.
6952 lt_prog_compiler_static='-non_shared'
6953 ;;
6954
6955 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6956 case $cc_basename in
6957 # old Intel for x86_64 which still supported -KPIC.
6958 ecc*)
6959 lt_prog_compiler_wl='-Wl,'
6960 lt_prog_compiler_pic='-KPIC'
6961 lt_prog_compiler_static='-static'
6962 ;;
6963 # icc used to be incompatible with GCC.
6964 # ICC 10 doesn't accept -KPIC any more.
6965 icc* | ifort*)
6966 lt_prog_compiler_wl='-Wl,'
6967 lt_prog_compiler_pic='-fPIC'
6968 lt_prog_compiler_static='-static'
6969 ;;
6970 # Lahey Fortran 8.1.
6971 lf95*)
6972 lt_prog_compiler_wl='-Wl,'
6973 lt_prog_compiler_pic='--shared'
6974 lt_prog_compiler_static='--static'
6975 ;;
6976 pgcc* | pgf77* | pgf90* | pgf95*)
6977 # Portland Group compilers (*not* the Pentium gcc compiler,
6978 # which looks to be a dead project)
6979 lt_prog_compiler_wl='-Wl,'
6980 lt_prog_compiler_pic='-fpic'
6981 lt_prog_compiler_static='-Bstatic'
6982 ;;
6983 ccc*)
6984 lt_prog_compiler_wl='-Wl,'
6985 # All Alpha code is PIC.
6986 lt_prog_compiler_static='-non_shared'
6987 ;;
6988 xl*)
6989 # IBM XL C 8.0/Fortran 10.1 on PPC
6990 lt_prog_compiler_wl='-Wl,'
6991 lt_prog_compiler_pic='-qpic'
6992 lt_prog_compiler_static='-qstaticlink'
6993 ;;
6994 *)
6995 case `$CC -V 2>&1 | sed 5q` in
6996 *Sun\ C*)
6997 # Sun C 5.9
6998 lt_prog_compiler_pic='-KPIC'
6999 lt_prog_compiler_static='-Bstatic'
7000 lt_prog_compiler_wl='-Wl,'
7001 ;;
7002 *Sun\ F*)
7003 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7004 lt_prog_compiler_pic='-KPIC'
7005 lt_prog_compiler_static='-Bstatic'
7006 lt_prog_compiler_wl=''
7007 ;;
7008 esac
7009 ;;
7010 esac
7011 ;;
7012
7013 newsos6)
7014 lt_prog_compiler_pic='-KPIC'
7015 lt_prog_compiler_static='-Bstatic'
7016 ;;
7017
7018 *nto* | *qnx*)
7019 # QNX uses GNU C++, but need to define -shared option too, otherwise
7020 # it will coredump.
7021 lt_prog_compiler_pic='-fPIC -shared'
7022 ;;
7023
7024 osf3* | osf4* | osf5*)
7025 lt_prog_compiler_wl='-Wl,'
7026 # All OSF/1 code is PIC.
7027 lt_prog_compiler_static='-non_shared'
7028 ;;
7029
7030 rdos*)
7031 lt_prog_compiler_static='-non_shared'
7032 ;;
7033
7034 solaris*)
7035 lt_prog_compiler_pic='-KPIC'
7036 lt_prog_compiler_static='-Bstatic'
7037 case $cc_basename in
7038 f77* | f90* | f95*)
7039 lt_prog_compiler_wl='-Qoption ld ';;
7040 *)
7041 lt_prog_compiler_wl='-Wl,';;
7042 esac
7043 ;;
7044
7045 sunos4*)
7046 lt_prog_compiler_wl='-Qoption ld '
7047 lt_prog_compiler_pic='-PIC'
7048 lt_prog_compiler_static='-Bstatic'
7049 ;;
7050
7051 sysv4 | sysv4.2uw2* | sysv4.3*)
7052 lt_prog_compiler_wl='-Wl,'
7053 lt_prog_compiler_pic='-KPIC'
7054 lt_prog_compiler_static='-Bstatic'
7055 ;;
7056
7057 sysv4*MP*)
7058 if test -d /usr/nec ;then
7059 lt_prog_compiler_pic='-Kconform_pic'
7060 lt_prog_compiler_static='-Bstatic'
7061 fi
7062 ;;
7063
7064 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7065 lt_prog_compiler_wl='-Wl,'
7066 lt_prog_compiler_pic='-KPIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 unicos*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_can_build_shared=no
7073 ;;
7074
7075 uts4*)
7076 lt_prog_compiler_pic='-pic'
7077 lt_prog_compiler_static='-Bstatic'
7078 ;;
7079
7080 *)
7081 lt_prog_compiler_can_build_shared=no
7082 ;;
7083 esac
7084 fi
7085
7086case $host_os in
7087 # For platforms which do not support PIC, -DPIC is meaningless:
7088 *djgpp*)
7089 lt_prog_compiler_pic=
7090 ;;
7091 *)
7092 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7093 ;;
7094esac
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7096$as_echo "$lt_prog_compiler_pic" >&6; }
7097
7098
7099
7100
7101
7102
7103#
7104# Check to make sure the PIC flag actually works.
7105#
7106if test -n "$lt_prog_compiler_pic"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7108$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7109if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7111else
7112 lt_cv_prog_compiler_pic_works=no
7113 ac_outfile=conftest.$ac_objext
7114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7115 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7116 # Insert the option either (1) after the last *FLAGS variable, or
7117 # (2) before a word containing "conftest.", or (3) at the end.
7118 # Note that $ac_compile itself does not contain backslashes and begins
7119 # with a dollar sign (not a hyphen), so the echo should work correctly.
7120 # The option is referenced via a variable to avoid confusing sed.
7121 lt_compile=`echo "$ac_compile" | $SED \
7122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7124 -e 's:$: $lt_compiler_flag:'`
94690cff 7125 (eval echo "\"\$as_me:7125: $lt_compile\"" >&5)
9c60689e
DWT
7126 (eval "$lt_compile" 2>conftest.err)
7127 ac_status=$?
7128 cat conftest.err >&5
94690cff 7129 echo "$as_me:7129: \$? = $ac_status" >&5
9c60689e
DWT
7130 if (exit $ac_status) && test -s "$ac_outfile"; then
7131 # The compiler can only warn and ignore the option if not recognized
7132 # So say no if there are warnings other than the usual output.
7133 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7136 lt_cv_prog_compiler_pic_works=yes
7137 fi
7138 fi
7139 $RM conftest*
7140
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7143$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7144
7145if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7146 case $lt_prog_compiler_pic in
7147 "" | " "*) ;;
7148 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7149 esac
7150else
7151 lt_prog_compiler_pic=
7152 lt_prog_compiler_can_build_shared=no
7153fi
7154
7155fi
7156
7157
7158
7159
7160
7161
7162#
7163# Check to make sure the static flag actually works.
7164#
7165wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7167$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7168if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170else
7171 lt_cv_prog_compiler_static_works=no
7172 save_LDFLAGS="$LDFLAGS"
7173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7176 # The linker can only warn and ignore the option if not recognized
7177 # So say no if there are warnings
7178 if test -s conftest.err; then
7179 # Append any errors to the config.log.
7180 cat conftest.err 1>&5
7181 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183 if diff conftest.exp conftest.er2 >/dev/null; then
7184 lt_cv_prog_compiler_static_works=yes
7185 fi
7186 else
7187 lt_cv_prog_compiler_static_works=yes
7188 fi
7189 fi
7190 $RM -r conftest*
7191 LDFLAGS="$save_LDFLAGS"
7192
7193fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7195$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7196
7197if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7198 :
7199else
7200 lt_prog_compiler_static=
7201fi
7202
7203
7204
7205
7206
7207
7208
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7210$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7211if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7213else
7214 lt_cv_prog_compiler_c_o=no
7215 $RM -r conftest 2>/dev/null
7216 mkdir conftest
7217 cd conftest
7218 mkdir out
7219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7220
7221 lt_compiler_flag="-o out/conftest2.$ac_objext"
7222 # Insert the option either (1) after the last *FLAGS variable, or
7223 # (2) before a word containing "conftest.", or (3) at the end.
7224 # Note that $ac_compile itself does not contain backslashes and begins
7225 # with a dollar sign (not a hyphen), so the echo should work correctly.
7226 lt_compile=`echo "$ac_compile" | $SED \
7227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7229 -e 's:$: $lt_compiler_flag:'`
94690cff 7230 (eval echo "\"\$as_me:7230: $lt_compile\"" >&5)
9c60689e
DWT
7231 (eval "$lt_compile" 2>out/conftest.err)
7232 ac_status=$?
7233 cat out/conftest.err >&5
94690cff 7234 echo "$as_me:7234: \$? = $ac_status" >&5
9c60689e
DWT
7235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7236 then
7237 # The compiler can only warn and ignore the option if not recognized
7238 # So say no if there are warnings
7239 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_c_o=yes
7243 fi
7244 fi
7245 chmod u+w . 2>&5
7246 $RM conftest*
7247 # SGI C++ compiler will create directory out/ii_files/ for
7248 # template instantiation
7249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7250 $RM out/* && rmdir out
7251 cd ..
7252 $RM -r conftest
7253 $RM conftest*
7254
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7257$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7258
7259
7260
7261
7262
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7265$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7266if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 lt_cv_prog_compiler_c_o=no
7270 $RM -r conftest 2>/dev/null
7271 mkdir conftest
7272 cd conftest
7273 mkdir out
7274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7275
7276 lt_compiler_flag="-o out/conftest2.$ac_objext"
7277 # Insert the option either (1) after the last *FLAGS variable, or
7278 # (2) before a word containing "conftest.", or (3) at the end.
7279 # Note that $ac_compile itself does not contain backslashes and begins
7280 # with a dollar sign (not a hyphen), so the echo should work correctly.
7281 lt_compile=`echo "$ac_compile" | $SED \
7282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7284 -e 's:$: $lt_compiler_flag:'`
94690cff 7285 (eval echo "\"\$as_me:7285: $lt_compile\"" >&5)
9c60689e
DWT
7286 (eval "$lt_compile" 2>out/conftest.err)
7287 ac_status=$?
7288 cat out/conftest.err >&5
94690cff 7289 echo "$as_me:7289: \$? = $ac_status" >&5
9c60689e
DWT
7290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7291 then
7292 # The compiler can only warn and ignore the option if not recognized
7293 # So say no if there are warnings
7294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7297 lt_cv_prog_compiler_c_o=yes
7298 fi
7299 fi
7300 chmod u+w . 2>&5
7301 $RM conftest*
7302 # SGI C++ compiler will create directory out/ii_files/ for
7303 # template instantiation
7304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7305 $RM out/* && rmdir out
7306 cd ..
7307 $RM -r conftest
7308 $RM conftest*
7309
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7312$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7313
7314
7315
7316
7317hard_links="nottested"
7318if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7319 # do not overwrite the value of need_locks provided by the user
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7321$as_echo_n "checking if we can lock with hard links... " >&6; }
7322 hard_links=yes
7323 $RM conftest*
7324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7325 touch conftest.a
7326 ln conftest.a conftest.b 2>&5 || hard_links=no
7327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7329$as_echo "$hard_links" >&6; }
7330 if test "$hard_links" = no; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7332$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7333 need_locks=warn
7334 fi
7335else
7336 need_locks=no
7337fi
7338
7339
7340
7341
7342
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7345$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7346
7347 runpath_var=
7348 allow_undefined_flag=
7349 always_export_symbols=no
7350 archive_cmds=
7351 archive_expsym_cmds=
7352 compiler_needs_object=no
7353 enable_shared_with_static_runtimes=no
7354 export_dynamic_flag_spec=
7355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7356 hardcode_automatic=no
7357 hardcode_direct=no
7358 hardcode_direct_absolute=no
7359 hardcode_libdir_flag_spec=
7360 hardcode_libdir_flag_spec_ld=
7361 hardcode_libdir_separator=
7362 hardcode_minus_L=no
7363 hardcode_shlibpath_var=unsupported
7364 inherit_rpath=no
7365 link_all_deplibs=unknown
7366 module_cmds=
7367 module_expsym_cmds=
7368 old_archive_from_new_cmds=
7369 old_archive_from_expsyms_cmds=
7370 thread_safe_flag_spec=
7371 whole_archive_flag_spec=
7372 # include_expsyms should be a list of space-separated symbols to be *always*
7373 # included in the symbol list
7374 include_expsyms=
7375 # exclude_expsyms can be an extended regexp of symbols to exclude
7376 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7377 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7378 # as well as any symbol that contains `d'.
7379 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7380 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7381 # platforms (ab)use it in PIC code, but their linkers get confused if
7382 # the symbol is explicitly referenced. Since portable code cannot
7383 # rely on this symbol name, it's probably fine to never include it in
7384 # preloaded symbol tables.
7385 # Exclude shared library initialization/finalization symbols.
7386 extract_expsyms_cmds=
7387
7388 case $host_os in
7389 cygwin* | mingw* | pw32* | cegcc*)
7390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7391 # When not using gcc, we currently assume that we are using
7392 # Microsoft Visual C++.
7393 if test "$GCC" != yes; then
7394 with_gnu_ld=no
7395 fi
7396 ;;
7397 interix*)
7398 # we just hope/assume this is gcc and not c89 (= MSVC++)
7399 with_gnu_ld=yes
7400 ;;
7401 openbsd*)
7402 with_gnu_ld=no
7403 ;;
7404 linux* | k*bsd*-gnu)
7405 link_all_deplibs=no
7406 ;;
7407 esac
7408
7409 ld_shlibs=yes
7410 if test "$with_gnu_ld" = yes; then
7411 # If archive_cmds runs LD, not CC, wlarc should be empty
7412 wlarc='${wl}'
7413
7414 # Set some defaults for GNU ld with shared library support. These
7415 # are reset later if shared libraries are not supported. Putting them
7416 # here allows them to be overridden if necessary.
7417 runpath_var=LD_RUN_PATH
7418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7419 export_dynamic_flag_spec='${wl}--export-dynamic'
7420 # ancient GNU ld didn't support --whole-archive et. al.
7421 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7423 else
7424 whole_archive_flag_spec=
7425 fi
7426 supports_anon_versioning=no
7427 case `$LD -v 2>&1` in
7428 *GNU\ gold*) supports_anon_versioning=yes ;;
7429 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7432 *\ 2.11.*) ;; # other 2.11 versions
7433 *) supports_anon_versioning=yes ;;
7434 esac
7435
7436 # See if GNU ld supports shared libraries.
7437 case $host_os in
7438 aix[3-9]*)
7439 # On AIX/PPC, the GNU linker is very broken
7440 if test "$host_cpu" != ia64; then
7441 ld_shlibs=no
7442 cat <<_LT_EOF 1>&2
7443
7444*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7445*** to be unable to reliably create shared libraries on AIX.
7446*** Therefore, libtool is disabling shared libraries support. If you
7447*** really care for shared libraries, you may want to modify your PATH
7448*** so that a non-GNU linker is found, and then restart.
7449
7450_LT_EOF
7451 fi
7452 ;;
7453
7454 amigaos*)
7455 case $host_cpu in
7456 powerpc)
7457 # see comment about AmigaOS4 .so support
7458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7459 archive_expsym_cmds=''
7460 ;;
7461 m68k)
7462 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)'
7463 hardcode_libdir_flag_spec='-L$libdir'
7464 hardcode_minus_L=yes
7465 ;;
7466 esac
7467 ;;
7468
7469 beos*)
7470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7471 allow_undefined_flag=unsupported
7472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7473 # support --undefined. This deserves some investigation. FIXME
7474 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7475 else
7476 ld_shlibs=no
7477 fi
7478 ;;
7479
7480 cygwin* | mingw* | pw32* | cegcc*)
7481 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7482 # as there is no search path for DLLs.
7483 hardcode_libdir_flag_spec='-L$libdir'
7484 allow_undefined_flag=unsupported
7485 always_export_symbols=no
7486 enable_shared_with_static_runtimes=yes
7487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7488
7489 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7491 # If the export-symbols file already is a .def file (1st line
7492 # is EXPORTS), use it as is; otherwise, prepend...
7493 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7494 cp $export_symbols $output_objdir/$soname.def;
7495 else
7496 echo EXPORTS > $output_objdir/$soname.def;
7497 cat $export_symbols >> $output_objdir/$soname.def;
7498 fi~
7499 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7500 else
7501 ld_shlibs=no
7502 fi
7503 ;;
7504
7505 interix[3-9]*)
7506 hardcode_direct=no
7507 hardcode_shlibpath_var=no
7508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7509 export_dynamic_flag_spec='${wl}-E'
7510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7511 # Instead, shared libraries are loaded at an image base (0x10000000 by
7512 # default) and relocated if they conflict, which is a slow very memory
7513 # consuming and fragmenting process. To avoid this, we pick a random,
7514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7517 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'
7518 ;;
7519
7520 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7521 tmp_diet=no
7522 if test "$host_os" = linux-dietlibc; then
7523 case $cc_basename in
7524 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7525 esac
7526 fi
7527 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7528 && test "$tmp_diet" = no
7529 then
7530 tmp_addflag=
7531 tmp_sharedflag='-shared'
7532 case $cc_basename,$host_cpu in
7533 pgcc*) # Portland Group C compiler
7534 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'
7535 tmp_addflag=' $pic_flag'
7536 ;;
7537 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7538 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'
7539 tmp_addflag=' $pic_flag -Mnomain' ;;
7540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7541 tmp_addflag=' -i_dynamic' ;;
7542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7543 tmp_addflag=' -i_dynamic -nofor_main' ;;
7544 ifc* | ifort*) # Intel Fortran compiler
7545 tmp_addflag=' -nofor_main' ;;
7546 lf95*) # Lahey Fortran 8.1
7547 whole_archive_flag_spec=
7548 tmp_sharedflag='--shared' ;;
7549 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7550 tmp_sharedflag='-qmkshrobj'
7551 tmp_addflag= ;;
7552 esac
7553 case `$CC -V 2>&1 | sed 5q` in
7554 *Sun\ C*) # Sun C 5.9
7555 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'
7556 compiler_needs_object=yes
7557 tmp_sharedflag='-G' ;;
7558 *Sun\ F*) # Sun Fortran 8.3
7559 tmp_sharedflag='-G' ;;
7560 esac
7561 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7562
7563 if test "x$supports_anon_versioning" = xyes; then
7564 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7566 echo "local: *; };" >> $output_objdir/$libname.ver~
7567 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7568 fi
7569
7570 case $cc_basename in
7571 xlf*)
7572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7573 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7574 hardcode_libdir_flag_spec=
7575 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7576 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7577 if test "x$supports_anon_versioning" = xyes; then
7578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7580 echo "local: *; };" >> $output_objdir/$libname.ver~
7581 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7582 fi
7583 ;;
7584 esac
7585 else
7586 ld_shlibs=no
7587 fi
7588 ;;
7589
7590 netbsd* | netbsdelf*-gnu)
7591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7593 wlarc=
7594 else
7595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7597 fi
7598 ;;
7599
7600 solaris*)
7601 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7602 ld_shlibs=no
7603 cat <<_LT_EOF 1>&2
7604
7605*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7606*** create shared libraries on Solaris systems. Therefore, libtool
7607*** is disabling shared libraries support. We urge you to upgrade GNU
7608*** binutils to release 2.9.1 or newer. Another option is to modify
7609*** your PATH or compiler configuration so that the native linker is
7610*** used, and then restart.
7611
7612_LT_EOF
7613 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7616 else
7617 ld_shlibs=no
7618 fi
7619 ;;
7620
7621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7622 case `$LD -v 2>&1` in
7623 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7624 ld_shlibs=no
7625 cat <<_LT_EOF 1>&2
7626
7627*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7628*** reliably create shared libraries on SCO systems. Therefore, libtool
7629*** is disabling shared libraries support. We urge you to upgrade GNU
7630*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7631*** your PATH or compiler configuration so that the native linker is
7632*** used, and then restart.
7633
7634_LT_EOF
7635 ;;
7636 *)
7637 # For security reasons, it is highly recommended that you always
7638 # use absolute paths for naming shared libraries, and exclude the
7639 # DT_RUNPATH tag from executables and libraries. But doing so
7640 # requires that you compile everything twice, which is a pain.
7641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645 else
7646 ld_shlibs=no
7647 fi
7648 ;;
7649 esac
7650 ;;
7651
7652 sunos4*)
7653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7654 wlarc=
7655 hardcode_direct=yes
7656 hardcode_shlibpath_var=no
7657 ;;
7658
7659 *)
7660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7663 else
7664 ld_shlibs=no
7665 fi
7666 ;;
7667 esac
7668
7669 if test "$ld_shlibs" = no; then
7670 runpath_var=
7671 hardcode_libdir_flag_spec=
7672 export_dynamic_flag_spec=
7673 whole_archive_flag_spec=
7674 fi
7675 else
7676 # PORTME fill in a description of your system's linker (not GNU ld)
7677 case $host_os in
7678 aix3*)
7679 allow_undefined_flag=unsupported
7680 always_export_symbols=yes
7681 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'
7682 # Note: this linker hardcodes the directories in LIBPATH if there
7683 # are no directories specified by -L.
7684 hardcode_minus_L=yes
7685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7686 # Neither direct hardcoding nor static linking is supported with a
7687 # broken collect2.
7688 hardcode_direct=unsupported
7689 fi
7690 ;;
7691
7692 aix[4-9]*)
7693 if test "$host_cpu" = ia64; then
7694 # On IA64, the linker does run time linking by default, so we don't
7695 # have to do anything special.
7696 aix_use_runtimelinking=no
7697 exp_sym_flag='-Bexport'
7698 no_entry_flag=""
7699 else
7700 # If we're using GNU nm, then we don't want the "-C" option.
7701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7702 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7703 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'
7704 else
7705 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'
7706 fi
7707 aix_use_runtimelinking=no
7708
7709 # Test if we are trying to use run time linking or normal
7710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7711 # need to do runtime linking.
7712 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7713 for ld_flag in $LDFLAGS; do
7714 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7715 aix_use_runtimelinking=yes
7716 break
7717 fi
7718 done
7719 ;;
7720 esac
7721
7722 exp_sym_flag='-bexport'
7723 no_entry_flag='-bnoentry'
7724 fi
7725
7726 # When large executables or shared objects are built, AIX ld can
7727 # have problems creating the table of contents. If linking a library
7728 # or program results in "error TOC overflow" add -mminimal-toc to
7729 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7730 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7731
7732 archive_cmds=''
7733 hardcode_direct=yes
7734 hardcode_direct_absolute=yes
7735 hardcode_libdir_separator=':'
7736 link_all_deplibs=yes
7737 file_list_spec='${wl}-f,'
7738
7739 if test "$GCC" = yes; then
7740 case $host_os in aix4.[012]|aix4.[012].*)
7741 # We only want to do this on AIX 4.2 and lower, the check
7742 # below for broken collect2 doesn't work under 4.3+
7743 collect2name=`${CC} -print-prog-name=collect2`
7744 if test -f "$collect2name" &&
7745 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7746 then
7747 # We have reworked collect2
7748 :
7749 else
7750 # We have old collect2
7751 hardcode_direct=unsupported
7752 # It fails to find uninstalled libraries when the uninstalled
7753 # path is not listed in the libpath. Setting hardcode_minus_L
7754 # to unsupported forces relinking
7755 hardcode_minus_L=yes
7756 hardcode_libdir_flag_spec='-L$libdir'
7757 hardcode_libdir_separator=
7758 fi
7759 ;;
7760 esac
7761 shared_flag='-shared'
7762 if test "$aix_use_runtimelinking" = yes; then
7763 shared_flag="$shared_flag "'${wl}-G'
7764 fi
7765 link_all_deplibs=no
7766 else
7767 # not using gcc
7768 if test "$host_cpu" = ia64; then
7769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7770 # chokes on -Wl,-G. The following line is correct:
7771 shared_flag='-G'
7772 else
7773 if test "$aix_use_runtimelinking" = yes; then
7774 shared_flag='${wl}-G'
7775 else
7776 shared_flag='${wl}-bM:SRE'
7777 fi
7778 fi
7779 fi
7780
7781 export_dynamic_flag_spec='${wl}-bexpall'
7782 # It seems that -bexpall does not export symbols beginning with
7783 # underscore (_), so it is better to generate a list of symbols to export.
7784 always_export_symbols=yes
7785 if test "$aix_use_runtimelinking" = yes; then
7786 # Warning - without using the other runtime loading flags (-brtl),
7787 # -berok will link without error, but may produce a broken library.
7788 allow_undefined_flag='-berok'
7789 # Determine the default libpath from the value encoded in an
7790 # empty executable.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h. */
7793
7794int
7795main ()
7796{
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802if ac_fn_c_try_link "$LINENO"; then :
7803
7804lt_aix_libpath_sed='
7805 /Import File Strings/,/^$/ {
7806 /^0/ {
7807 s/^0 *\(.*\)$/\1/
7808 p
7809 }
7810 }'
7811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7812# Check for a 64-bit object if we didn't find anything.
7813if test -z "$aix_libpath"; then
7814 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7815fi
7816fi
7817rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7820
7821 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7822 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"
7823 else
7824 if test "$host_cpu" = ia64; then
7825 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7826 allow_undefined_flag="-z nodefs"
7827 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"
7828 else
7829 # Determine the default libpath from the value encoded in an
7830 # empty executable.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h. */
7833
7834int
7835main ()
7836{
7837
7838 ;
7839 return 0;
7840}
7841_ACEOF
7842if ac_fn_c_try_link "$LINENO"; then :
7843
7844lt_aix_libpath_sed='
7845 /Import File Strings/,/^$/ {
7846 /^0/ {
7847 s/^0 *\(.*\)$/\1/
7848 p
7849 }
7850 }'
7851aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7852# Check for a 64-bit object if we didn't find anything.
7853if test -z "$aix_libpath"; then
7854 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7855fi
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7860
7861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7862 # Warning - without using the other run time loading flags,
7863 # -berok will link without error, but may produce a broken library.
7864 no_undefined_flag=' ${wl}-bernotok'
7865 allow_undefined_flag=' ${wl}-berok'
7866 # Exported symbols can be pulled into shared objects from archives
7867 whole_archive_flag_spec='$convenience'
7868 archive_cmds_need_lc=yes
7869 # This is similar to how AIX traditionally builds its shared libraries.
7870 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'
7871 fi
7872 fi
7873 ;;
7874
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7880 archive_expsym_cmds=''
7881 ;;
7882 m68k)
7883 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)'
7884 hardcode_libdir_flag_spec='-L$libdir'
7885 hardcode_minus_L=yes
7886 ;;
7887 esac
7888 ;;
7889
7890 bsdi[45]*)
7891 export_dynamic_flag_spec=-rdynamic
7892 ;;
7893
7894 cygwin* | mingw* | pw32* | cegcc*)
7895 # When not using gcc, we currently assume that we are using
7896 # Microsoft Visual C++.
7897 # hardcode_libdir_flag_spec is actually meaningless, as there is
7898 # no search path for DLLs.
7899 hardcode_libdir_flag_spec=' '
7900 allow_undefined_flag=unsupported
7901 # Tell ltmain to make .lib files, not .a files.
7902 libext=lib
7903 # Tell ltmain to make .dll files, not .so files.
7904 shrext_cmds=".dll"
7905 # FIXME: Setting linknames here is a bad hack.
7906 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7907 # The linker will automatically build a .lib file if we build a DLL.
7908 old_archive_from_new_cmds='true'
7909 # FIXME: Should let the user specify the lib program.
7910 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7911 fix_srcfile_path='`cygpath -w "$srcfile"`'
7912 enable_shared_with_static_runtimes=yes
7913 ;;
7914
7915 darwin* | rhapsody*)
7916
7917
7918 archive_cmds_need_lc=no
7919 hardcode_direct=no
7920 hardcode_automatic=yes
7921 hardcode_shlibpath_var=unsupported
7922 whole_archive_flag_spec=''
7923 link_all_deplibs=yes
7924 allow_undefined_flag="$_lt_dar_allow_undefined"
7925 case $cc_basename in
7926 ifort*) _lt_dar_can_shared=yes ;;
7927 *) _lt_dar_can_shared=$GCC ;;
7928 esac
7929 if test "$_lt_dar_can_shared" = "yes"; then
7930 output_verbose_link_cmd=echo
7931 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7932 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7933 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}"
7934 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}"
7935
7936 else
7937 ld_shlibs=no
7938 fi
7939
7940 ;;
7941
7942 dgux*)
7943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7944 hardcode_libdir_flag_spec='-L$libdir'
7945 hardcode_shlibpath_var=no
7946 ;;
7947
7948 freebsd1*)
7949 ld_shlibs=no
7950 ;;
7951
7952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7953 # support. Future versions do this automatically, but an explicit c++rt0.o
7954 # does not break anything, and helps significantly (at the cost of a little
7955 # extra space).
7956 freebsd2.2*)
7957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7958 hardcode_libdir_flag_spec='-R$libdir'
7959 hardcode_direct=yes
7960 hardcode_shlibpath_var=no
7961 ;;
7962
7963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7964 freebsd2*)
7965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_direct=yes
7967 hardcode_minus_L=yes
7968 hardcode_shlibpath_var=no
7969 ;;
7970
7971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7972 freebsd* | dragonfly*)
7973 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7974 hardcode_libdir_flag_spec='-R$libdir'
7975 hardcode_direct=yes
7976 hardcode_shlibpath_var=no
7977 ;;
7978
7979 hpux9*)
7980 if test "$GCC" = yes; then
7981 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'
7982 else
7983 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'
7984 fi
7985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7986 hardcode_libdir_separator=:
7987 hardcode_direct=yes
7988
7989 # hardcode_minus_L: Not really in the search PATH,
7990 # but as the default location of the library.
7991 hardcode_minus_L=yes
7992 export_dynamic_flag_spec='${wl}-E'
7993 ;;
7994
7995 hpux10*)
7996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7998 else
7999 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8000 fi
8001 if test "$with_gnu_ld" = no; then
8002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8003 hardcode_libdir_flag_spec_ld='+b $libdir'
8004 hardcode_libdir_separator=:
8005 hardcode_direct=yes
8006 hardcode_direct_absolute=yes
8007 export_dynamic_flag_spec='${wl}-E'
8008 # hardcode_minus_L: Not really in the search PATH,
8009 # but as the default location of the library.
8010 hardcode_minus_L=yes
8011 fi
8012 ;;
8013
8014 hpux11*)
8015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8016 case $host_cpu in
8017 hppa*64*)
8018 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 ;;
8020 ia64*)
8021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8022 ;;
8023 *)
8024 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8025 ;;
8026 esac
8027 else
8028 case $host_cpu in
8029 hppa*64*)
8030 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8031 ;;
8032 ia64*)
8033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8034 ;;
8035 *)
8036 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8037 ;;
8038 esac
8039 fi
8040 if test "$with_gnu_ld" = no; then
8041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8042 hardcode_libdir_separator=:
8043
8044 case $host_cpu in
8045 hppa*64*|ia64*)
8046 hardcode_direct=no
8047 hardcode_shlibpath_var=no
8048 ;;
8049 *)
8050 hardcode_direct=yes
8051 hardcode_direct_absolute=yes
8052 export_dynamic_flag_spec='${wl}-E'
8053
8054 # hardcode_minus_L: Not really in the search PATH,
8055 # but as the default location of the library.
8056 hardcode_minus_L=yes
8057 ;;
8058 esac
8059 fi
8060 ;;
8061
8062 irix5* | irix6* | nonstopux*)
8063 if test "$GCC" = yes; then
8064 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'
8065 # Try to use the -exported_symbol ld option, if it does not
8066 # work, assume that -exports_file does not work either and
8067 # implicitly export all symbols.
8068 save_LDFLAGS="$LDFLAGS"
8069 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h. */
8072int foo(void) {}
8073_ACEOF
8074if ac_fn_c_try_link "$LINENO"; then :
8075 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'
8076
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 LDFLAGS="$save_LDFLAGS"
8081 else
8082 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'
8083 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'
8084 fi
8085 archive_cmds_need_lc='no'
8086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8087 hardcode_libdir_separator=:
8088 inherit_rpath=yes
8089 link_all_deplibs=yes
8090 ;;
8091
8092 netbsd* | netbsdelf*-gnu)
8093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8095 else
8096 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8097 fi
8098 hardcode_libdir_flag_spec='-R$libdir'
8099 hardcode_direct=yes
8100 hardcode_shlibpath_var=no
8101 ;;
8102
8103 newsos6)
8104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_direct=yes
8106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8107 hardcode_libdir_separator=:
8108 hardcode_shlibpath_var=no
8109 ;;
8110
8111 *nto* | *qnx*)
8112 ;;
8113
8114 openbsd*)
8115 if test -f /usr/libexec/ld.so; then
8116 hardcode_direct=yes
8117 hardcode_shlibpath_var=no
8118 hardcode_direct_absolute=yes
8119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8121 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8123 export_dynamic_flag_spec='${wl}-E'
8124 else
8125 case $host_os in
8126 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8128 hardcode_libdir_flag_spec='-R$libdir'
8129 ;;
8130 *)
8131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8133 ;;
8134 esac
8135 fi
8136 else
8137 ld_shlibs=no
8138 fi
8139 ;;
8140
8141 os2*)
8142 hardcode_libdir_flag_spec='-L$libdir'
8143 hardcode_minus_L=yes
8144 allow_undefined_flag=unsupported
8145 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'
8146 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8147 ;;
8148
8149 osf3*)
8150 if test "$GCC" = yes; then
8151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8152 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'
8153 else
8154 allow_undefined_flag=' -expect_unresolved \*'
8155 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'
8156 fi
8157 archive_cmds_need_lc='no'
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 hardcode_libdir_separator=:
8160 ;;
8161
8162 osf4* | osf5*) # as osf3* with the addition of -msym flag
8163 if test "$GCC" = yes; then
8164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8165 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'
8166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8167 else
8168 allow_undefined_flag=' -expect_unresolved \*'
8169 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'
8170 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~
8171 $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'
8172
8173 # Both c and cxx compiler support -rpath directly
8174 hardcode_libdir_flag_spec='-rpath $libdir'
8175 fi
8176 archive_cmds_need_lc='no'
8177 hardcode_libdir_separator=:
8178 ;;
8179
8180 solaris*)
8181 no_undefined_flag=' -z defs'
8182 if test "$GCC" = yes; then
8183 wlarc='${wl}'
8184 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8186 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8187 else
8188 case `$CC -V 2>&1` in
8189 *"Compilers 5.0"*)
8190 wlarc=''
8191 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8193 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8194 ;;
8195 *)
8196 wlarc='${wl}'
8197 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8198 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8199 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8200 ;;
8201 esac
8202 fi
8203 hardcode_libdir_flag_spec='-R$libdir'
8204 hardcode_shlibpath_var=no
8205 case $host_os in
8206 solaris2.[0-5] | solaris2.[0-5].*) ;;
8207 *)
8208 # The compiler driver will combine and reorder linker options,
8209 # but understands `-z linker_flag'. GCC discards it without `$wl',
8210 # but is careful enough not to reorder.
8211 # Supported since Solaris 2.6 (maybe 2.5.1?)
8212 if test "$GCC" = yes; then
8213 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8214 else
8215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8216 fi
8217 ;;
8218 esac
8219 link_all_deplibs=yes
8220 ;;
8221
8222 sunos4*)
8223 if test "x$host_vendor" = xsequent; then
8224 # Use $CC to link under sequent, because it throws in some extra .o
8225 # files that make .init and .fini sections work.
8226 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8227 else
8228 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8229 fi
8230 hardcode_libdir_flag_spec='-L$libdir'
8231 hardcode_direct=yes
8232 hardcode_minus_L=yes
8233 hardcode_shlibpath_var=no
8234 ;;
8235
8236 sysv4)
8237 case $host_vendor in
8238 sni)
8239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 hardcode_direct=yes # is this really true???
8241 ;;
8242 siemens)
8243 ## LD is ld it makes a PLAMLIB
8244 ## CC just makes a GrossModule.
8245 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8246 reload_cmds='$CC -r -o $output$reload_objs'
8247 hardcode_direct=no
8248 ;;
8249 motorola)
8250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8251 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8252 ;;
8253 esac
8254 runpath_var='LD_RUN_PATH'
8255 hardcode_shlibpath_var=no
8256 ;;
8257
8258 sysv4.3*)
8259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8260 hardcode_shlibpath_var=no
8261 export_dynamic_flag_spec='-Bexport'
8262 ;;
8263
8264 sysv4*MP*)
8265 if test -d /usr/nec; then
8266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8267 hardcode_shlibpath_var=no
8268 runpath_var=LD_RUN_PATH
8269 hardcode_runpath_var=yes
8270 ld_shlibs=yes
8271 fi
8272 ;;
8273
8274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8275 no_undefined_flag='${wl}-z,text'
8276 archive_cmds_need_lc=no
8277 hardcode_shlibpath_var=no
8278 runpath_var='LD_RUN_PATH'
8279
8280 if test "$GCC" = yes; then
8281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 else
8284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8286 fi
8287 ;;
8288
8289 sysv5* | sco3.2v5* | sco5v6*)
8290 # Note: We can NOT use -z defs as we might desire, because we do not
8291 # link with -lc, and that would cause any symbols used from libc to
8292 # always be unresolved, which means just about no library would
8293 # ever link correctly. If we're not using GNU ld we use -z text
8294 # though, which does catch some bad symbols but isn't as heavy-handed
8295 # as -z defs.
8296 no_undefined_flag='${wl}-z,text'
8297 allow_undefined_flag='${wl}-z,nodefs'
8298 archive_cmds_need_lc=no
8299 hardcode_shlibpath_var=no
8300 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8301 hardcode_libdir_separator=':'
8302 link_all_deplibs=yes
8303 export_dynamic_flag_spec='${wl}-Bexport'
8304 runpath_var='LD_RUN_PATH'
8305
8306 if test "$GCC" = yes; then
8307 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8308 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 else
8310 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8311 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8312 fi
8313 ;;
8314
8315 uts4*)
8316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_libdir_flag_spec='-L$libdir'
8318 hardcode_shlibpath_var=no
8319 ;;
8320
8321 *)
8322 ld_shlibs=no
8323 ;;
8324 esac
8325
8326 if test x$host_vendor = xsni; then
8327 case $host in
8328 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8329 export_dynamic_flag_spec='${wl}-Blargedynsym'
8330 ;;
8331 esac
8332 fi
8333 fi
8334
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8336$as_echo "$ld_shlibs" >&6; }
8337test "$ld_shlibs" = no && can_build_shared=no
8338
8339with_gnu_ld=$with_gnu_ld
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355#
8356# Do we need to explicitly link libc?
8357#
8358case "x$archive_cmds_need_lc" in
8359x|xyes)
8360 # Assume -lc should be added
8361 archive_cmds_need_lc=yes
8362
8363 if test "$enable_shared" = yes && test "$GCC" = yes; then
8364 case $archive_cmds in
8365 *'~'*)
8366 # FIXME: we may have to deal with multi-command sequences.
8367 ;;
8368 '$CC '*)
8369 # Test whether the compiler implicitly links with -lc since on some
8370 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8371 # to ld, don't add -lc before -lgcc.
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8373$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8374 $RM conftest*
8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; } 2>conftest.err; then
8382 soname=conftest
8383 lib=conftest
8384 libobjs=conftest.$ac_objext
8385 deplibs=
8386 wl=$lt_prog_compiler_wl
8387 pic_flag=$lt_prog_compiler_pic
8388 compiler_flags=-v
8389 linker_flags=-v
8390 verstring=
8391 output_objdir=.
8392 libname=conftest
8393 lt_save_allow_undefined_flag=$allow_undefined_flag
8394 allow_undefined_flag=
8395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8396 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8397 ac_status=$?
8398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399 test $ac_status = 0; }
8400 then
8401 archive_cmds_need_lc=no
8402 else
8403 archive_cmds_need_lc=yes
8404 fi
8405 allow_undefined_flag=$lt_save_allow_undefined_flag
8406 else
8407 cat conftest.err 1>&5
8408 fi
8409 $RM conftest*
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8411$as_echo "$archive_cmds_need_lc" >&6; }
8412 ;;
8413 esac
8414 fi
8415 ;;
8416esac
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8575$as_echo_n "checking dynamic linker characteristics... " >&6; }
8576
8577if test "$GCC" = yes; then
8578 case $host_os in
8579 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8580 *) lt_awk_arg="/^libraries:/" ;;
8581 esac
8582 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8583 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8584 # if the path contains ";" then we assume it to be the separator
8585 # otherwise default to the standard path separator (i.e. ":") - it is
8586 # assumed that no part of a normal pathname contains ";" but that should
8587 # okay in the real world where ";" in dirpaths is itself problematic.
8588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8589 else
8590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8591 fi
8592 # Ok, now we have the path, separated by spaces, we can step through it
8593 # and add multilib dir if necessary.
8594 lt_tmp_lt_search_path_spec=
8595 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8596 for lt_sys_path in $lt_search_path_spec; do
8597 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8599 else
8600 test -d "$lt_sys_path" && \
8601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8602 fi
8603 done
8604 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8605BEGIN {RS=" "; FS="/|\n";} {
8606 lt_foo="";
8607 lt_count=0;
8608 for (lt_i = NF; lt_i > 0; lt_i--) {
8609 if ($lt_i != "" && $lt_i != ".") {
8610 if ($lt_i == "..") {
8611 lt_count++;
8612 } else {
8613 if (lt_count == 0) {
8614 lt_foo="/" $lt_i lt_foo;
8615 } else {
8616 lt_count--;
8617 }
8618 }
8619 }
8620 }
8621 if (lt_foo != "") { lt_freq[lt_foo]++; }
8622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8623}'`
8624 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8625else
8626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8627fi
8628library_names_spec=
8629libname_spec='lib$name'
8630soname_spec=
8631shrext_cmds=".so"
8632postinstall_cmds=
8633postuninstall_cmds=
8634finish_cmds=
8635finish_eval=
8636shlibpath_var=
8637shlibpath_overrides_runpath=unknown
8638version_type=none
8639dynamic_linker="$host_os ld.so"
8640sys_lib_dlsearch_path_spec="/lib /usr/lib"
8641need_lib_prefix=unknown
8642hardcode_into_libs=no
8643
8644# when you set need_version to no, make sure it does not cause -set_version
8645# flags to be left without arguments
8646need_version=unknown
8647
8648case $host_os in
8649aix3*)
8650 version_type=linux
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8652 shlibpath_var=LIBPATH
8653
8654 # AIX 3 has no versioning support, so we append a major version to the name.
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 ;;
8657
8658aix[4-9]*)
8659 version_type=linux
8660 need_lib_prefix=no
8661 need_version=no
8662 hardcode_into_libs=yes
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 supports IA64
8665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 else
8668 # With GCC up to 2.95.x, collect2 would create an import file
8669 # for dependence libraries. The import file would start with
8670 # the line `#! .'. This would cause the generated library to
8671 # depend on `.', always an invalid library. This was fixed in
8672 # development snapshots of GCC prior to 3.0.
8673 case $host_os in
8674 aix4 | aix4.[01] | aix4.[01].*)
8675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8676 echo ' yes '
8677 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8678 :
8679 else
8680 can_build_shared=no
8681 fi
8682 ;;
8683 esac
8684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8685 # soname into executable. Probably we can add versioning support to
8686 # collect2, so additional links can be useful in future.
8687 if test "$aix_use_runtimelinking" = yes; then
8688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8689 # instead of lib<name>.a to let people know that these are not
8690 # typical AIX shared libraries.
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 else
8693 # We preserve .a as extension for shared libraries through AIX4.2
8694 # and later when we are not doing run time linking.
8695 library_names_spec='${libname}${release}.a $libname.a'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 fi
8698 shlibpath_var=LIBPATH
8699 fi
8700 ;;
8701
8702amigaos*)
8703 case $host_cpu in
8704 powerpc)
8705 # Since July 2007 AmigaOS4 officially supports .so libraries.
8706 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708 ;;
8709 m68k)
8710 library_names_spec='$libname.ixlibrary $libname.a'
8711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712 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'
8713 ;;
8714 esac
8715 ;;
8716
8717beos*)
8718 library_names_spec='${libname}${shared_ext}'
8719 dynamic_linker="$host_os ld.so"
8720 shlibpath_var=LIBRARY_PATH
8721 ;;
8722
8723bsdi[45]*)
8724 version_type=linux
8725 need_version=no
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8729 shlibpath_var=LD_LIBRARY_PATH
8730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8732 # the default ld.so.conf also contains /usr/contrib/lib and
8733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8734 # libtool to hard-code these into programs
8735 ;;
8736
8737cygwin* | mingw* | pw32* | cegcc*)
8738 version_type=windows
8739 shrext_cmds=".dll"
8740 need_version=no
8741 need_lib_prefix=no
8742
8743 case $GCC,$host_os in
8744 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8745 library_names_spec='$libname.dll.a'
8746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8747 postinstall_cmds='base_file=`basename \${file}`~
8748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8749 dldir=$destdir/`dirname \$dlpath`~
8750 test -d \$dldir || mkdir -p \$dldir~
8751 $install_prog $dir/$dlname \$dldir/$dlname~
8752 chmod a+x \$dldir/$dlname~
8753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8755 fi'
8756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8757 dlpath=$dir/\$dldll~
8758 $RM \$dlpath'
8759 shlibpath_overrides_runpath=yes
8760
8761 case $host_os in
8762 cygwin*)
8763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8766 ;;
8767 mingw* | cegcc*)
8768 # MinGW DLLs use traditional 'lib' prefix
8769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8771 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8772 # It is most probably a Windows format PATH printed by
8773 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8774 # path with ; separators, and with drive letters. We can handle the
8775 # drive letters (cygwin fileutils understands them), so leave them,
8776 # especially as we might pass files found there to a mingw objdump,
8777 # which wouldn't understand a cygwinified path. Ahh.
8778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8779 else
8780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8781 fi
8782 ;;
8783 pw32*)
8784 # pw32 DLLs use 'pw' prefix rather than 'lib'
8785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 ;;
8787 esac
8788 ;;
8789
8790 *)
8791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8792 ;;
8793 esac
8794 dynamic_linker='Win32 ld.exe'
8795 # FIXME: first we should search . and the directory the executable is in
8796 shlibpath_var=PATH
8797 ;;
8798
8799darwin* | rhapsody*)
8800 dynamic_linker="$host_os dyld"
8801 version_type=darwin
8802 need_lib_prefix=no
8803 need_version=no
8804 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8805 soname_spec='${libname}${release}${major}$shared_ext'
8806 shlibpath_overrides_runpath=yes
8807 shlibpath_var=DYLD_LIBRARY_PATH
8808 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8809
8810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8812 ;;
8813
8814dgux*)
8815 version_type=linux
8816 need_lib_prefix=no
8817 need_version=no
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LD_LIBRARY_PATH
8821 ;;
8822
8823freebsd1*)
8824 dynamic_linker=no
8825 ;;
8826
8827freebsd* | dragonfly*)
8828 # DragonFly does not have aout. When/if they implement a new
8829 # versioning mechanism, adjust this.
8830 if test -x /usr/bin/objformat; then
8831 objformat=`/usr/bin/objformat`
8832 else
8833 case $host_os in
8834 freebsd[123]*) objformat=aout ;;
8835 *) objformat=elf ;;
8836 esac
8837 fi
8838 version_type=freebsd-$objformat
8839 case $version_type in
8840 freebsd-elf*)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8842 need_version=no
8843 need_lib_prefix=no
8844 ;;
8845 freebsd-*)
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8847 need_version=yes
8848 ;;
8849 esac
8850 shlibpath_var=LD_LIBRARY_PATH
8851 case $host_os in
8852 freebsd2*)
8853 shlibpath_overrides_runpath=yes
8854 ;;
8855 freebsd3.[01]* | freebsdelf3.[01]*)
8856 shlibpath_overrides_runpath=yes
8857 hardcode_into_libs=yes
8858 ;;
8859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8863 ;;
8864 *) # from 4.6 on, and DragonFly
8865 shlibpath_overrides_runpath=yes
8866 hardcode_into_libs=yes
8867 ;;
8868 esac
8869 ;;
8870
8871gnu*)
8872 version_type=linux
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 hardcode_into_libs=yes
8879 ;;
8880
8881hpux9* | hpux10* | hpux11*)
8882 # Give a soname corresponding to the major version so that dld.sl refuses to
8883 # link against other versions.
8884 version_type=sunos
8885 need_lib_prefix=no
8886 need_version=no
8887 case $host_cpu in
8888 ia64*)
8889 shrext_cmds='.so'
8890 hardcode_into_libs=yes
8891 dynamic_linker="$host_os dld.so"
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 if test "X$HPUX_IA64_MODE" = X32; then
8897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8898 else
8899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8900 fi
8901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8902 ;;
8903 hppa*64*)
8904 shrext_cmds='.sl'
8905 hardcode_into_libs=yes
8906 dynamic_linker="$host_os dld.sl"
8907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8913 ;;
8914 *)
8915 shrext_cmds='.sl'
8916 dynamic_linker="$host_os dld.sl"
8917 shlibpath_var=SHLIB_PATH
8918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 ;;
8922 esac
8923 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8924 postinstall_cmds='chmod 555 $lib'
8925 ;;
8926
8927interix[3-9]*)
8928 version_type=linux
8929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 ;;
8938
8939irix5* | irix6* | nonstopux*)
8940 case $host_os in
8941 nonstopux*) version_type=nonstopux ;;
8942 *)
8943 if test "$lt_cv_prog_gnu_ld" = yes; then
8944 version_type=linux
8945 else
8946 version_type=irix
8947 fi ;;
8948 esac
8949 need_lib_prefix=no
8950 need_version=no
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 case $host_os in
8954 irix5* | nonstopux*)
8955 libsuff= shlibsuff=
8956 ;;
8957 *)
8958 case $LD in # libtool.m4 will add one of these switches to LD
8959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8960 libsuff= shlibsuff= libmagic=32-bit;;
8961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8962 libsuff=32 shlibsuff=N32 libmagic=N32;;
8963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8965 *) libsuff= shlibsuff= libmagic=never-match;;
8966 esac
8967 ;;
8968 esac
8969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8970 shlibpath_overrides_runpath=no
8971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8973 hardcode_into_libs=yes
8974 ;;
8975
8976# No shared lib support for Linux oldld, aout, or coff.
8977linux*oldld* | linux*aout* | linux*coff*)
8978 dynamic_linker=no
8979 ;;
8980
8981# This must be Linux ELF.
8982linux* | k*bsd*-gnu | kopensolaris*-gnu)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=no
8991 # Some binutils ld are patched to set DT_RUNPATH
8992 save_LDFLAGS=$LDFLAGS
8993 save_libdir=$libdir
8994 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8995 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h. */
8998
8999int
9000main ()
9001{
9002
9003 ;
9004 return 0;
9005}
9006_ACEOF
9007if ac_fn_c_try_link "$LINENO"; then :
9008 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9009 shlibpath_overrides_runpath=yes
9010fi
9011fi
9012rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LDFLAGS=$save_LDFLAGS
9015 libdir=$save_libdir
9016
9017 # This implies no fast_install, which is unacceptable.
9018 # Some rework will be needed to allow for fast_install
9019 # before this can be enabled.
9020 hardcode_into_libs=yes
9021
9022 # Append ld.so.conf contents to the search path
9023 if test -f /etc/ld.so.conf; then
9024 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' ' '`
9025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9026 fi
9027
9028 # We used to test for /lib/ld.so.1 and disable shared libraries on
9029 # powerpc, because MkLinux only supported shared libraries with the
9030 # GNU dynamic linker. Since this was broken with cross compilers,
9031 # most powerpc-linux boxes support dynamic linking these days and
9032 # people can always --disable-shared, the test was removed, and we
9033 # assume the GNU/Linux dynamic linker is in use.
9034 dynamic_linker='GNU/Linux ld.so'
9035 ;;
9036
9037netbsdelf*-gnu)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=no
9045 hardcode_into_libs=yes
9046 dynamic_linker='NetBSD ld.elf_so'
9047 ;;
9048
9049netbsd*)
9050 version_type=sunos
9051 need_lib_prefix=no
9052 need_version=no
9053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9056 dynamic_linker='NetBSD (a.out) ld.so'
9057 else
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 dynamic_linker='NetBSD ld.elf_so'
9061 fi
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 ;;
9066
9067newsos6)
9068 version_type=linux
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 ;;
9073
9074*nto* | *qnx*)
9075 version_type=qnx
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=no
9082 hardcode_into_libs=yes
9083 dynamic_linker='ldqnx.so'
9084 ;;
9085
9086openbsd*)
9087 version_type=sunos
9088 sys_lib_dlsearch_path_spec="/usr/lib"
9089 need_lib_prefix=no
9090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9091 case $host_os in
9092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9093 *) need_version=no ;;
9094 esac
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9099 case $host_os in
9100 openbsd2.[89] | openbsd2.[89].*)
9101 shlibpath_overrides_runpath=no
9102 ;;
9103 *)
9104 shlibpath_overrides_runpath=yes
9105 ;;
9106 esac
9107 else
9108 shlibpath_overrides_runpath=yes
9109 fi
9110 ;;
9111
9112os2*)
9113 libname_spec='$name'
9114 shrext_cmds=".dll"
9115 need_lib_prefix=no
9116 library_names_spec='$libname${shared_ext} $libname.a'
9117 dynamic_linker='OS/2 ld.exe'
9118 shlibpath_var=LIBPATH
9119 ;;
9120
9121osf3* | osf4* | osf5*)
9122 version_type=osf
9123 need_lib_prefix=no
9124 need_version=no
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9130 ;;
9131
9132rdos*)
9133 dynamic_linker=no
9134 ;;
9135
9136solaris*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 # ldd complains unless libraries are executable
9146 postinstall_cmds='chmod +x $lib'
9147 ;;
9148
9149sunos4*)
9150 version_type=sunos
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 if test "$with_gnu_ld" = yes; then
9156 need_lib_prefix=no
9157 fi
9158 need_version=yes
9159 ;;
9160
9161sysv4 | sysv4.3*)
9162 version_type=linux
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 case $host_vendor in
9167 sni)
9168 shlibpath_overrides_runpath=no
9169 need_lib_prefix=no
9170 runpath_var=LD_RUN_PATH
9171 ;;
9172 siemens)
9173 need_lib_prefix=no
9174 ;;
9175 motorola)
9176 need_lib_prefix=no
9177 need_version=no
9178 shlibpath_overrides_runpath=no
9179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9180 ;;
9181 esac
9182 ;;
9183
9184sysv4*MP*)
9185 if test -d /usr/nec ;then
9186 version_type=linux
9187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9188 soname_spec='$libname${shared_ext}.$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 fi
9191 ;;
9192
9193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9194 version_type=freebsd-elf
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 if test "$with_gnu_ld" = yes; then
9203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204 else
9205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9206 case $host_os in
9207 sco3.2v5*)
9208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9209 ;;
9210 esac
9211 fi
9212 sys_lib_dlsearch_path_spec='/usr/lib'
9213 ;;
9214
9215tpf*)
9216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9217 version_type=linux
9218 need_lib_prefix=no
9219 need_version=no
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 hardcode_into_libs=yes
9224 ;;
9225
9226uts4*)
9227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 ;;
9232
9233*)
9234 dynamic_linker=no
9235 ;;
9236esac
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9238$as_echo "$dynamic_linker" >&6; }
9239test "$dynamic_linker" = no && can_build_shared=no
9240
9241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9242if test "$GCC" = yes; then
9243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9244fi
9245
9246if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9247 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9248fi
9249if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9250 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9251fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9340$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9341hardcode_action=
9342if test -n "$hardcode_libdir_flag_spec" ||
9343 test -n "$runpath_var" ||
9344 test "X$hardcode_automatic" = "Xyes" ; then
9345
9346 # We can hardcode non-existent directories.
9347 if test "$hardcode_direct" != no &&
9348 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9349 # have to relink, otherwise we might link with an installed library
9350 # when we should be linking with a yet-to-be-installed one
9351 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9352 test "$hardcode_minus_L" != no; then
9353 # Linking always hardcodes the temporary library directory.
9354 hardcode_action=relink
9355 else
9356 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9357 hardcode_action=immediate
9358 fi
9359else
9360 # We cannot hardcode anything, or else we can only hardcode existing
9361 # directories.
9362 hardcode_action=unsupported
9363fi
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9365$as_echo "$hardcode_action" >&6; }
9366
9367if test "$hardcode_action" = relink ||
9368 test "$inherit_rpath" = yes; then
9369 # Fast installation is not supported
9370 enable_fast_install=no
9371elif test "$shlibpath_overrides_runpath" = yes ||
9372 test "$enable_shared" = no; then
9373 # Fast installation is not necessary
9374 enable_fast_install=needless
9375fi
9376
9377
9378
9379
9380
9381
9382 if test "x$enable_dlopen" != xyes; then
9383 enable_dlopen=unknown
9384 enable_dlopen_self=unknown
9385 enable_dlopen_self_static=unknown
9386else
9387 lt_cv_dlopen=no
9388 lt_cv_dlopen_libs=
9389
9390 case $host_os in
9391 beos*)
9392 lt_cv_dlopen="load_add_on"
9393 lt_cv_dlopen_libs=
9394 lt_cv_dlopen_self=yes
9395 ;;
9396
9397 mingw* | pw32* | cegcc*)
9398 lt_cv_dlopen="LoadLibrary"
9399 lt_cv_dlopen_libs=
9400 ;;
9401
9402 cygwin*)
9403 lt_cv_dlopen="dlopen"
9404 lt_cv_dlopen_libs=
9405 ;;
9406
9407 darwin*)
9408 # if libdl is installed we need to link against it
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9410$as_echo_n "checking for dlopen in -ldl... " >&6; }
9411if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413else
9414 ac_check_lib_save_LIBS=$LIBS
9415LIBS="-ldl $LIBS"
9416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417/* end confdefs.h. */
9418
9419/* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422#ifdef __cplusplus
9423extern "C"
9424#endif
9425char dlopen ();
9426int
9427main ()
9428{
9429return dlopen ();
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435 ac_cv_lib_dl_dlopen=yes
9436else
9437 ac_cv_lib_dl_dlopen=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441LIBS=$ac_check_lib_save_LIBS
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9444$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9445if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9447else
9448
9449 lt_cv_dlopen="dyld"
9450 lt_cv_dlopen_libs=
9451 lt_cv_dlopen_self=yes
9452
9453fi
9454
9455 ;;
9456
9457 *)
9458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9459if test "x$ac_cv_func_shl_load" = x""yes; then :
9460 lt_cv_dlopen="shl_load"
9461else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9463$as_echo_n "checking for shl_load in -ldld... " >&6; }
9464if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466else
9467 ac_check_lib_save_LIBS=$LIBS
9468LIBS="-ldld $LIBS"
9469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h. */
9471
9472/* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
9475#ifdef __cplusplus
9476extern "C"
9477#endif
9478char shl_load ();
9479int
9480main ()
9481{
9482return shl_load ();
9483 ;
9484 return 0;
9485}
9486_ACEOF
9487if ac_fn_c_try_link "$LINENO"; then :
9488 ac_cv_lib_dld_shl_load=yes
9489else
9490 ac_cv_lib_dld_shl_load=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494LIBS=$ac_check_lib_save_LIBS
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9497$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9498if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9499 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9500else
9501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9502if test "x$ac_cv_func_dlopen" = x""yes; then :
9503 lt_cv_dlopen="dlopen"
9504else
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9506$as_echo_n "checking for dlopen in -ldl... " >&6; }
9507if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509else
9510 ac_check_lib_save_LIBS=$LIBS
9511LIBS="-ldl $LIBS"
9512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513/* end confdefs.h. */
9514
9515/* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518#ifdef __cplusplus
9519extern "C"
9520#endif
9521char dlopen ();
9522int
9523main ()
9524{
9525return dlopen ();
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530if ac_fn_c_try_link "$LINENO"; then :
9531 ac_cv_lib_dl_dlopen=yes
9532else
9533 ac_cv_lib_dl_dlopen=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537LIBS=$ac_check_lib_save_LIBS
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9540$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9541if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9543else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9545$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9546if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9548else
9549 ac_check_lib_save_LIBS=$LIBS
9550LIBS="-lsvld $LIBS"
9551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552/* end confdefs.h. */
9553
9554/* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557#ifdef __cplusplus
9558extern "C"
9559#endif
9560char dlopen ();
9561int
9562main ()
9563{
9564return dlopen ();
9565 ;
9566 return 0;
9567}
9568_ACEOF
9569if ac_fn_c_try_link "$LINENO"; then :
9570 ac_cv_lib_svld_dlopen=yes
9571else
9572 ac_cv_lib_svld_dlopen=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576LIBS=$ac_check_lib_save_LIBS
9577fi
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9579$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9580if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9582else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9584$as_echo_n "checking for dld_link in -ldld... " >&6; }
9585if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587else
9588 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-ldld $LIBS"
9590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h. */
9592
9593/* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9596#ifdef __cplusplus
9597extern "C"
9598#endif
9599char dld_link ();
9600int
9601main ()
9602{
9603return dld_link ();
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then :
9609 ac_cv_lib_dld_dld_link=yes
9610else
9611 ac_cv_lib_dld_dld_link=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615LIBS=$ac_check_lib_save_LIBS
9616fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9618$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9619if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9620 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9621fi
9622
9623
9624fi
9625
9626
9627fi
9628
9629
9630fi
9631
9632
9633fi
9634
9635
9636fi
9637
9638 ;;
9639 esac
9640
9641 if test "x$lt_cv_dlopen" != xno; then
9642 enable_dlopen=yes
9643 else
9644 enable_dlopen=no
9645 fi
9646
9647 case $lt_cv_dlopen in
9648 dlopen)
9649 save_CPPFLAGS="$CPPFLAGS"
9650 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9651
9652 save_LDFLAGS="$LDFLAGS"
9653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9654
9655 save_LIBS="$LIBS"
9656 LIBS="$lt_cv_dlopen_libs $LIBS"
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9659$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9660if test "${lt_cv_dlopen_self+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662else
9663 if test "$cross_compiling" = yes; then :
9664 lt_cv_dlopen_self=cross
9665else
9666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9667 lt_status=$lt_dlunknown
9668 cat > conftest.$ac_ext <<_LT_EOF
94690cff 9669#line 9669 "configure"
9c60689e
DWT
9670#include "confdefs.h"
9671
9672#if HAVE_DLFCN_H
9673#include <dlfcn.h>
9674#endif
9675
9676#include <stdio.h>
9677
9678#ifdef RTLD_GLOBAL
9679# define LT_DLGLOBAL RTLD_GLOBAL
9680#else
9681# ifdef DL_GLOBAL
9682# define LT_DLGLOBAL DL_GLOBAL
9683# else
9684# define LT_DLGLOBAL 0
9685# endif
9686#endif
9687
9688/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9689 find out it does not work in some platform. */
9690#ifndef LT_DLLAZY_OR_NOW
9691# ifdef RTLD_LAZY
9692# define LT_DLLAZY_OR_NOW RTLD_LAZY
9693# else
9694# ifdef DL_LAZY
9695# define LT_DLLAZY_OR_NOW DL_LAZY
9696# else
9697# ifdef RTLD_NOW
9698# define LT_DLLAZY_OR_NOW RTLD_NOW
9699# else
9700# ifdef DL_NOW
9701# define LT_DLLAZY_OR_NOW DL_NOW
9702# else
9703# define LT_DLLAZY_OR_NOW 0
9704# endif
9705# endif
9706# endif
9707# endif
9708#endif
9709
9710void fnord() { int i=42;}
9711int main ()
9712{
9713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9714 int status = $lt_dlunknown;
9715
9716 if (self)
9717 {
9718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9720 /* dlclose (self); */
9721 }
9722 else
9723 puts (dlerror ());
9724
9725 return status;
9726}
9727_LT_EOF
9728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9729 (eval $ac_link) 2>&5
9730 ac_status=$?
9731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9733 (./conftest; exit; ) >&5 2>/dev/null
9734 lt_status=$?
9735 case x$lt_status in
9736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9739 esac
9740 else :
9741 # compilation failed
9742 lt_cv_dlopen_self=no
9743 fi
9744fi
9745rm -fr conftest*
9746
9747
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9750$as_echo "$lt_cv_dlopen_self" >&6; }
9751
9752 if test "x$lt_cv_dlopen_self" = xyes; then
9753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9755$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9756if test "${lt_cv_dlopen_self_static+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758else
9759 if test "$cross_compiling" = yes; then :
9760 lt_cv_dlopen_self_static=cross
9761else
9762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9763 lt_status=$lt_dlunknown
9764 cat > conftest.$ac_ext <<_LT_EOF
94690cff 9765#line 9765 "configure"
9c60689e
DWT
9766#include "confdefs.h"
9767
9768#if HAVE_DLFCN_H
9769#include <dlfcn.h>
9770#endif
9771
9772#include <stdio.h>
9773
9774#ifdef RTLD_GLOBAL
9775# define LT_DLGLOBAL RTLD_GLOBAL
9776#else
9777# ifdef DL_GLOBAL
9778# define LT_DLGLOBAL DL_GLOBAL
9779# else
9780# define LT_DLGLOBAL 0
9781# endif
9782#endif
9783
9784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9785 find out it does not work in some platform. */
9786#ifndef LT_DLLAZY_OR_NOW
9787# ifdef RTLD_LAZY
9788# define LT_DLLAZY_OR_NOW RTLD_LAZY
9789# else
9790# ifdef DL_LAZY
9791# define LT_DLLAZY_OR_NOW DL_LAZY
9792# else
9793# ifdef RTLD_NOW
9794# define LT_DLLAZY_OR_NOW RTLD_NOW
9795# else
9796# ifdef DL_NOW
9797# define LT_DLLAZY_OR_NOW DL_NOW
9798# else
9799# define LT_DLLAZY_OR_NOW 0
9800# endif
9801# endif
9802# endif
9803# endif
9804#endif
9805
9806void fnord() { int i=42;}
9807int main ()
9808{
9809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9810 int status = $lt_dlunknown;
9811
9812 if (self)
9813 {
9814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9816 /* dlclose (self); */
9817 }
9818 else
9819 puts (dlerror ());
9820
9821 return status;
9822}
9823_LT_EOF
9824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9825 (eval $ac_link) 2>&5
9826 ac_status=$?
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9829 (./conftest; exit; ) >&5 2>/dev/null
9830 lt_status=$?
9831 case x$lt_status in
9832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9835 esac
9836 else :
9837 # compilation failed
9838 lt_cv_dlopen_self_static=no
9839 fi
9840fi
9841rm -fr conftest*
9842
9843
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9846$as_echo "$lt_cv_dlopen_self_static" >&6; }
9847 fi
9848
9849 CPPFLAGS="$save_CPPFLAGS"
9850 LDFLAGS="$save_LDFLAGS"
9851 LIBS="$save_LIBS"
9852 ;;
9853 esac
9854
9855 case $lt_cv_dlopen_self in
9856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9857 *) enable_dlopen_self=unknown ;;
9858 esac
9859
9860 case $lt_cv_dlopen_self_static in
9861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9862 *) enable_dlopen_self_static=unknown ;;
9863 esac
9864fi
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882striplib=
9883old_striplib=
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9885$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9886if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9888 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9890$as_echo "yes" >&6; }
9891else
9892# FIXME - insert some real tests, host_os isn't really good enough
9893 case $host_os in
9894 darwin*)
9895 if test -n "$STRIP" ; then
9896 striplib="$STRIP -x"
9897 old_striplib="$STRIP -S"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899$as_echo "yes" >&6; }
9900 else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903 fi
9904 ;;
9905 *)
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
9908 ;;
9909 esac
9910fi
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 # Report which library types will actually be built
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9925$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9927$as_echo "$can_build_shared" >&6; }
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9930$as_echo_n "checking whether to build shared libraries... " >&6; }
9931 test "$can_build_shared" = "no" && enable_shared=no
9932
9933 # On AIX, shared libraries and static libraries use the same namespace, and
9934 # are all built from PIC.
9935 case $host_os in
9936 aix3*)
9937 test "$enable_shared" = yes && enable_static=no
9938 if test -n "$RANLIB"; then
9939 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9940 postinstall_cmds='$RANLIB $lib'
9941 fi
9942 ;;
9943
9944 aix[4-9]*)
9945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9946 test "$enable_shared" = yes && enable_static=no
9947 fi
9948 ;;
9949 esac
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9951$as_echo "$enable_shared" >&6; }
9952
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9954$as_echo_n "checking whether to build static libraries... " >&6; }
9955 # Make sure either enable_shared or enable_static is yes.
9956 test "$enable_shared" = yes || enable_static=yes
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9958$as_echo "$enable_static" >&6; }
9959
9960
9961
9962
9963fi
9964ac_ext=c
9965ac_cpp='$CPP $CPPFLAGS'
9966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968ac_compiler_gnu=$ac_cv_c_compiler_gnu
9969
9970CC="$lt_save_CC"
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984 ac_config_commands="$ac_config_commands libtool"
9985
9986
9987
9988
9989# Only expand once:
9990
9991
3fd51f51
DWT
9992
9993
9994if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9995 if test -n "$ac_tool_prefix"; then
9996 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9997set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002else
10003 case $PKG_CONFIG in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10006 ;;
10007 *)
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020 done
10021IFS=$as_save_IFS
10022
10023 ;;
10024esac
10025fi
10026PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10027if test -n "$PKG_CONFIG"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10029$as_echo "$PKG_CONFIG" >&6; }
10030else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
10033fi
10034
10035
10036fi
10037if test -z "$ac_cv_path_PKG_CONFIG"; then
10038 ac_pt_PKG_CONFIG=$PKG_CONFIG
10039 # Extract the first word of "pkg-config", so it can be a program name with args.
10040set dummy pkg-config; ac_word=$2
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042$as_echo_n "checking for $ac_word... " >&6; }
10043if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045else
10046 case $ac_pt_PKG_CONFIG in
10047 [\\/]* | ?:[\\/]*)
10048 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10049 ;;
10050 *)
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063 done
10064IFS=$as_save_IFS
10065
10066 ;;
10067esac
10068fi
10069ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10070if test -n "$ac_pt_PKG_CONFIG"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10072$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10073else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075$as_echo "no" >&6; }
10076fi
10077
10078 if test "x$ac_pt_PKG_CONFIG" = x; then
10079 PKG_CONFIG=""
10080 else
10081 case $cross_compiling:$ac_tool_warned in
10082yes:)
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10085ac_tool_warned=yes ;;
10086esac
10087 PKG_CONFIG=$ac_pt_PKG_CONFIG
10088 fi
10089else
10090 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10091fi
10092
10093fi
10094if test -n "$PKG_CONFIG"; then
10095 _pkg_min_version=0.22
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10097$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10098 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100$as_echo "yes" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103$as_echo "no" >&6; }
10104 PKG_CONFIG=""
10105 fi
10106
10107fi
47aaa820
DWT
10108ac_ext=cpp
10109ac_cpp='$CXXCPP $CPPFLAGS'
10110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10113if test -z "$CXX"; then
10114 if test -n "$CCC"; then
10115 CXX=$CCC
10116 else
10117 if test -n "$ac_tool_prefix"; then
10118 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10119 do
10120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10124if test "${ac_cv_prog_CXX+set}" = set; then :
9c60689e
DWT
10125 $as_echo_n "(cached) " >&6
10126else
47aaa820
DWT
10127 if test -n "$CXX"; then
10128 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9c60689e
DWT
10129else
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10137 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9c60689e
DWT
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10140 fi
10141done
10142 done
10143IFS=$as_save_IFS
10144
10145fi
10146fi
47aaa820
DWT
10147CXX=$ac_cv_prog_CXX
10148if test -n "$CXX"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10150$as_echo "$CXX" >&6; }
9c60689e
DWT
10151else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153$as_echo "no" >&6; }
10154fi
10155
10156
47aaa820
DWT
10157 test -n "$CXX" && break
10158 done
9c60689e 10159fi
47aaa820
DWT
10160if test -z "$CXX"; then
10161 ac_ct_CXX=$CXX
10162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9c60689e
DWT
10163do
10164 # Extract the first word of "$ac_prog", so it can be a program name with args.
10165set dummy $ac_prog; ac_word=$2
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10168if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9c60689e
DWT
10169 $as_echo_n "(cached) " >&6
10170else
47aaa820
DWT
10171 if test -n "$ac_ct_CXX"; then
10172 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9c60689e
DWT
10173else
10174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10181 ac_cv_prog_ac_ct_CXX="$ac_prog"
9c60689e
DWT
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185done
10186 done
10187IFS=$as_save_IFS
10188
10189fi
10190fi
47aaa820
DWT
10191ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10192if test -n "$ac_ct_CXX"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10194$as_echo "$ac_ct_CXX" >&6; }
9c60689e
DWT
10195else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
10198fi
10199
10200
47aaa820 10201 test -n "$ac_ct_CXX" && break
9c60689e
DWT
10202done
10203
47aaa820
DWT
10204 if test "x$ac_ct_CXX" = x; then
10205 CXX="g++"
10206 else
10207 case $cross_compiling:$ac_tool_warned in
10208yes:)
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10211ac_tool_warned=yes ;;
9c60689e 10212esac
47aaa820
DWT
10213 CXX=$ac_ct_CXX
10214 fi
9c60689e
DWT
10215fi
10216
9c60689e 10217 fi
9c60689e 10218fi
47aaa820
DWT
10219# Provide some information about the compiler.
10220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10221set X $ac_compile
10222ac_compiler=$2
10223for ac_option in --version -v -V -qversion; do
10224 { { ac_try="$ac_compiler $ac_option >&5"
9c60689e
DWT
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10230$as_echo "$ac_try_echo"; } >&5
47aaa820 10231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9c60689e 10232 ac_status=$?
47aaa820
DWT
10233 if test -s conftest.err; then
10234 sed '10a\
10235... rest of stderr output deleted ...
10236 10q' conftest.err >conftest.er1
10237 cat conftest.er1 >&5
10238 fi
10239 rm -f conftest.er1 conftest.err
9c60689e
DWT
10240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10241 test $ac_status = 0; }
47aaa820
DWT
10242done
10243
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10245$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10246if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9c60689e
DWT
10247 $as_echo_n "(cached) " >&6
10248else
47aaa820
DWT
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h. */
9c60689e 10251
47aaa820
DWT
10252int
10253main ()
10254{
10255#ifndef __GNUC__
10256 choke me
10257#endif
10258
10259 ;
10260 return 0;
10261}
10262_ACEOF
10263if ac_fn_cxx_try_compile "$LINENO"; then :
10264 ac_compiler_gnu=yes
9c60689e 10265else
47aaa820 10266 ac_compiler_gnu=no
9c60689e 10267fi
47aaa820
DWT
10268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9c60689e 10270
47aaa820
DWT
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10273$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10274if test $ac_compiler_gnu = yes; then
10275 GXX=yes
9c60689e 10276else
47aaa820 10277 GXX=
9c60689e 10278fi
47aaa820
DWT
10279ac_test_CXXFLAGS=${CXXFLAGS+set}
10280ac_save_CXXFLAGS=$CXXFLAGS
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10282$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10283if test "${ac_cv_prog_cxx_g+set}" = set; then :
9c60689e
DWT
10284 $as_echo_n "(cached) " >&6
10285else
47aaa820
DWT
10286 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10287 ac_cxx_werror_flag=yes
10288 ac_cv_prog_cxx_g=no
10289 CXXFLAGS="-g"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e 10291/* end confdefs.h. */
9c60689e 10292
47aaa820
DWT
10293int
10294main ()
10295{
9c60689e 10296
47aaa820
DWT
10297 ;
10298 return 0;
10299}
10300_ACEOF
10301if ac_fn_cxx_try_compile "$LINENO"; then :
10302 ac_cv_prog_cxx_g=yes
9c60689e 10303else
47aaa820
DWT
10304 CXXFLAGS=""
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h. */
9c60689e 10307
47aaa820
DWT
10308int
10309main ()
10310{
9c60689e 10311
47aaa820
DWT
10312 ;
10313 return 0;
10314}
10315_ACEOF
10316if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e
DWT
10317
10318else
47aaa820
DWT
10319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10320 CXXFLAGS="-g"
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h. */
9c60689e 10323
47aaa820
DWT
10324int
10325main ()
10326{
9c60689e 10327
47aaa820
DWT
10328 ;
10329 return 0;
10330}
10331_ACEOF
10332if ac_fn_cxx_try_compile "$LINENO"; then :
10333 ac_cv_prog_cxx_g=yes
9c60689e 10334fi
47aaa820 10335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 10336fi
47aaa820
DWT
10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10343$as_echo "$ac_cv_prog_cxx_g" >&6; }
10344if test "$ac_test_CXXFLAGS" = set; then
10345 CXXFLAGS=$ac_save_CXXFLAGS
10346elif test $ac_cv_prog_cxx_g = yes; then
10347 if test "$GXX" = yes; then
10348 CXXFLAGS="-g -O2"
10349 else
10350 CXXFLAGS="-g"
10351 fi
9c60689e 10352else
47aaa820
DWT
10353 if test "$GXX" = yes; then
10354 CXXFLAGS="-O2"
10355 else
10356 CXXFLAGS=
10357 fi
9c60689e 10358fi
47aaa820
DWT
10359ac_ext=c
10360ac_cpp='$CPP $CPPFLAGS'
10361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10364
9c60689e 10365
47aaa820
DWT
10366ac_ext=cpp
10367ac_cpp='$CXXCPP $CPPFLAGS'
10368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10371if test -z "$CXX"; then
10372 if test -n "$CCC"; then
10373 CXX=$CCC
10374 else
10375 if test -n "$ac_tool_prefix"; then
10376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10377 do
10378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10382if test "${ac_cv_prog_CXX+set}" = set; then :
9c60689e
DWT
10383 $as_echo_n "(cached) " >&6
10384else
47aaa820
DWT
10385 if test -n "$CXX"; then
10386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9c60689e
DWT
10387else
10388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389for as_dir in $PATH
10390do
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9c60689e
DWT
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10398 fi
10399done
10400 done
10401IFS=$as_save_IFS
10402
10403fi
10404fi
47aaa820
DWT
10405CXX=$ac_cv_prog_CXX
10406if test -n "$CXX"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10408$as_echo "$CXX" >&6; }
9c60689e
DWT
10409else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
10412fi
10413
10414
47aaa820
DWT
10415 test -n "$CXX" && break
10416 done
10417fi
10418if test -z "$CXX"; then
10419 ac_ct_CXX=$CXX
10420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9c60689e
DWT
10421do
10422 # Extract the first word of "$ac_prog", so it can be a program name with args.
10423set dummy $ac_prog; ac_word=$2
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10426if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9c60689e
DWT
10427 $as_echo_n "(cached) " >&6
10428else
47aaa820
DWT
10429 if test -n "$ac_ct_CXX"; then
10430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9c60689e
DWT
10431else
10432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433for as_dir in $PATH
10434do
10435 IFS=$as_save_IFS
10436 test -z "$as_dir" && as_dir=.
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10439 ac_cv_prog_ac_ct_CXX="$ac_prog"
9c60689e
DWT
10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441 break 2
10442 fi
10443done
10444 done
10445IFS=$as_save_IFS
10446
10447fi
10448fi
47aaa820
DWT
10449ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10450if test -n "$ac_ct_CXX"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10452$as_echo "$ac_ct_CXX" >&6; }
9c60689e
DWT
10453else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
10456fi
10457
10458
47aaa820 10459 test -n "$ac_ct_CXX" && break
9c60689e
DWT
10460done
10461
47aaa820
DWT
10462 if test "x$ac_ct_CXX" = x; then
10463 CXX="g++"
10464 else
10465 case $cross_compiling:$ac_tool_warned in
10466yes:)
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10469ac_tool_warned=yes ;;
10470esac
10471 CXX=$ac_ct_CXX
10472 fi
10473fi
3fd51f51 10474
47aaa820
DWT
10475 fi
10476fi
10477# Provide some information about the compiler.
10478$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10479set X $ac_compile
10480ac_compiler=$2
10481for ac_option in --version -v -V -qversion; do
10482 { { ac_try="$ac_compiler $ac_option >&5"
10483case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
3fd51f51 10486esac
47aaa820
DWT
10487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10488$as_echo "$ac_try_echo"; } >&5
10489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10490 ac_status=$?
10491 if test -s conftest.err; then
10492 sed '10a\
10493... rest of stderr output deleted ...
10494 10q' conftest.err >conftest.er1
10495 cat conftest.er1 >&5
3530897b 10496 fi
47aaa820
DWT
10497 rm -f conftest.er1 conftest.err
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; }
3530897b 10500done
3530897b 10501
47aaa820
DWT
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10503$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10504if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10506else
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h. */
10509
10510int
10511main ()
10512{
10513#ifndef __GNUC__
10514 choke me
10515#endif
10516
10517 ;
10518 return 0;
10519}
10520_ACEOF
10521if ac_fn_cxx_try_compile "$LINENO"; then :
10522 ac_compiler_gnu=yes
10523else
10524 ac_compiler_gnu=no
3530897b 10525fi
47aaa820
DWT
10526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10528
3530897b 10529fi
47aaa820
DWT
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10531$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10532if test $ac_compiler_gnu = yes; then
10533 GXX=yes
3530897b 10534else
47aaa820 10535 GXX=
3530897b 10536fi
47aaa820
DWT
10537ac_test_CXXFLAGS=${CXXFLAGS+set}
10538ac_save_CXXFLAGS=$CXXFLAGS
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10540$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10541if test "${ac_cv_prog_cxx_g+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543else
10544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10545 ac_cxx_werror_flag=yes
10546 ac_cv_prog_cxx_g=no
10547 CXXFLAGS="-g"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549/* end confdefs.h. */
3530897b 10550
47aaa820
DWT
10551int
10552main ()
10553{
3530897b 10554
47aaa820
DWT
10555 ;
10556 return 0;
10557}
10558_ACEOF
10559if ac_fn_cxx_try_compile "$LINENO"; then :
10560 ac_cv_prog_cxx_g=yes
10561else
10562 CXXFLAGS=""
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
9c60689e 10565
47aaa820
DWT
10566int
10567main ()
10568{
9c60689e 10569
47aaa820
DWT
10570 ;
10571 return 0;
10572}
10573_ACEOF
10574if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 10575
47aaa820
DWT
10576else
10577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10578 CXXFLAGS="-g"
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h. */
9c60689e 10581
47aaa820
DWT
10582int
10583main ()
10584{
9c60689e 10585
47aaa820
DWT
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590if ac_fn_cxx_try_compile "$LINENO"; then :
10591 ac_cv_prog_cxx_g=yes
10592fi
10593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594fi
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596fi
10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10599fi
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10601$as_echo "$ac_cv_prog_cxx_g" >&6; }
10602if test "$ac_test_CXXFLAGS" = set; then
10603 CXXFLAGS=$ac_save_CXXFLAGS
10604elif test $ac_cv_prog_cxx_g = yes; then
10605 if test "$GXX" = yes; then
10606 CXXFLAGS="-g -O2"
10607 else
10608 CXXFLAGS="-g"
10609 fi
10610else
10611 if test "$GXX" = yes; then
10612 CXXFLAGS="-O2"
10613 else
10614 CXXFLAGS=
10615 fi
10616fi
10617ac_ext=c
10618ac_cpp='$CPP $CPPFLAGS'
10619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10622
47aaa820
DWT
10623if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10624 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10625 (test "X$CXX" != "Xg++"))) ; then
10626 ac_ext=cpp
10627ac_cpp='$CXXCPP $CPPFLAGS'
10628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10632$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10633if test -z "$CXXCPP"; then
10634 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636else
10637 # Double quotes because CXXCPP needs to be expanded
10638 for CXXCPP in "$CXX -E" "/lib/cpp"
9c60689e 10639 do
47aaa820
DWT
10640 ac_preproc_ok=false
10641for ac_cxx_preproc_warn_flag in '' yes
10642do
10643 # Use a header file that comes with gcc, so configuring glibc
10644 # with a fresh cross-compiler works.
10645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646 # <limits.h> exists even on freestanding compilers.
10647 # On the NeXT, cc -E runs the code through the compiler's parser,
10648 # not just through cpp. "Syntax error" is here to catch this case.
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h. */
10651#ifdef __STDC__
10652# include <limits.h>
10653#else
10654# include <assert.h>
10655#endif
10656 Syntax error
10657_ACEOF
10658if ac_fn_cxx_try_cpp "$LINENO"; then :
9c60689e
DWT
10659
10660else
47aaa820
DWT
10661 # Broken: fails on valid input.
10662continue
9c60689e 10663fi
47aaa820 10664rm -f conftest.err conftest.$ac_ext
9c60689e 10665
47aaa820
DWT
10666 # OK, works on sane cases. Now check whether nonexistent headers
10667 # can be detected and how.
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669/* end confdefs.h. */
10670#include <ac_nonexistent.h>
10671_ACEOF
10672if ac_fn_cxx_try_cpp "$LINENO"; then :
10673 # Broken: success on invalid input.
10674continue
10675else
10676 # Passes both tests.
10677ac_preproc_ok=:
10678break
10679fi
10680rm -f conftest.err conftest.$ac_ext
9c60689e 10681
47aaa820
DWT
10682done
10683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10684rm -f conftest.err conftest.$ac_ext
10685if $ac_preproc_ok; then :
10686 break
10687fi
9c60689e 10688
9c60689e 10689 done
47aaa820 10690 ac_cv_prog_CXXCPP=$CXXCPP
9c60689e 10691
47aaa820
DWT
10692fi
10693 CXXCPP=$ac_cv_prog_CXXCPP
9c60689e 10694else
47aaa820
DWT
10695 ac_cv_prog_CXXCPP=$CXXCPP
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10698$as_echo "$CXXCPP" >&6; }
10699ac_preproc_ok=false
10700for ac_cxx_preproc_warn_flag in '' yes
10701do
10702 # Use a header file that comes with gcc, so configuring glibc
10703 # with a fresh cross-compiler works.
10704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 # <limits.h> exists even on freestanding compilers.
10706 # On the NeXT, cc -E runs the code through the compiler's parser,
10707 # not just through cpp. "Syntax error" is here to catch this case.
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e 10709/* end confdefs.h. */
47aaa820
DWT
10710#ifdef __STDC__
10711# include <limits.h>
10712#else
10713# include <assert.h>
9c60689e 10714#endif
47aaa820 10715 Syntax error
9c60689e 10716_ACEOF
47aaa820 10717if ac_fn_cxx_try_cpp "$LINENO"; then :
9c60689e 10718
47aaa820
DWT
10719else
10720 # Broken: fails on valid input.
10721continue
9c60689e 10722fi
47aaa820 10723rm -f conftest.err conftest.$ac_ext
9c60689e 10724
47aaa820
DWT
10725 # OK, works on sane cases. Now check whether nonexistent headers
10726 # can be detected and how.
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h. */
10729#include <ac_nonexistent.h>
9c60689e 10730_ACEOF
47aaa820
DWT
10731if ac_fn_cxx_try_cpp "$LINENO"; then :
10732 # Broken: success on invalid input.
10733continue
10734else
10735 # Passes both tests.
10736ac_preproc_ok=:
10737break
9c60689e 10738fi
47aaa820 10739rm -f conftest.err conftest.$ac_ext
9c60689e
DWT
10740
10741done
47aaa820
DWT
10742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10743rm -f conftest.err conftest.$ac_ext
10744if $ac_preproc_ok; then :
9c60689e 10745
9c60689e 10746else
47aaa820
DWT
10747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10749_lt_caught_CXX_error=yes; }
9c60689e 10750fi
9c60689e 10751
47aaa820
DWT
10752ac_ext=c
10753ac_cpp='$CPP $CPPFLAGS'
10754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10757
47aaa820
DWT
10758else
10759 _lt_caught_CXX_error=yes
10760fi
9c60689e 10761
9c60689e 10762
9c60689e 10763
9c60689e
DWT
10764
10765ac_ext=cpp
10766ac_cpp='$CXXCPP $CPPFLAGS'
10767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 10770
47aaa820
DWT
10771archive_cmds_need_lc_CXX=no
10772allow_undefined_flag_CXX=
10773always_export_symbols_CXX=no
10774archive_expsym_cmds_CXX=
10775compiler_needs_object_CXX=no
10776export_dynamic_flag_spec_CXX=
10777hardcode_direct_CXX=no
10778hardcode_direct_absolute_CXX=no
10779hardcode_libdir_flag_spec_CXX=
10780hardcode_libdir_flag_spec_ld_CXX=
10781hardcode_libdir_separator_CXX=
10782hardcode_minus_L_CXX=no
10783hardcode_shlibpath_var_CXX=unsupported
10784hardcode_automatic_CXX=no
10785inherit_rpath_CXX=no
10786module_cmds_CXX=
10787module_expsym_cmds_CXX=
10788link_all_deplibs_CXX=unknown
10789old_archive_cmds_CXX=$old_archive_cmds
10790no_undefined_flag_CXX=
10791whole_archive_flag_spec_CXX=
10792enable_shared_with_static_runtimes_CXX=no
9c60689e 10793
47aaa820
DWT
10794# Source file extension for C++ test sources.
10795ac_ext=cpp
9c60689e 10796
47aaa820
DWT
10797# Object file extension for compiled C++ test sources.
10798objext=o
10799objext_CXX=$objext
9c60689e 10800
47aaa820
DWT
10801# No sense in running all these tests if we already determined that
10802# the CXX compiler isn't working. Some variables (like enable_shared)
10803# are currently assumed to apply to all compilers on this platform,
10804# and will be corrupted by setting them based on a non-working compiler.
10805if test "$_lt_caught_CXX_error" != yes; then
10806 # Code to be used in simple compile tests
10807 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 10808
47aaa820
DWT
10809 # Code to be used in simple link tests
10810 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 10811
47aaa820 10812 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 10813
9c60689e 10814
9c60689e 10815
9c60689e 10816
9c60689e 10817
9c60689e 10818
47aaa820
DWT
10819# If no C compiler was specified, use CC.
10820LTCC=${LTCC-"$CC"}
9c60689e 10821
47aaa820
DWT
10822# If no C compiler flags were specified, use CFLAGS.
10823LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 10824
47aaa820
DWT
10825# Allow CC to be a program name with arguments.
10826compiler=$CC
9c60689e 10827
9c60689e 10828
47aaa820
DWT
10829 # save warnings/boilerplate of simple test code
10830 ac_outfile=conftest.$ac_objext
10831echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10833_lt_compiler_boilerplate=`cat conftest.err`
10834$RM conftest*
9c60689e 10835
47aaa820
DWT
10836 ac_outfile=conftest.$ac_objext
10837echo "$lt_simple_link_test_code" >conftest.$ac_ext
10838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10839_lt_linker_boilerplate=`cat conftest.err`
10840$RM -r conftest*
9c60689e 10841
9c60689e 10842
47aaa820
DWT
10843 # Allow CC to be a program name with arguments.
10844 lt_save_CC=$CC
10845 lt_save_LD=$LD
10846 lt_save_GCC=$GCC
10847 GCC=$GXX
10848 lt_save_with_gnu_ld=$with_gnu_ld
10849 lt_save_path_LD=$lt_cv_path_LD
10850 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10851 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 10852 else
47aaa820 10853 $as_unset lt_cv_prog_gnu_ld
9c60689e 10854 fi
47aaa820
DWT
10855 if test -n "${lt_cv_path_LDCXX+set}"; then
10856 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 10857 else
47aaa820 10858 $as_unset lt_cv_path_LD
9c60689e 10859 fi
47aaa820
DWT
10860 test -z "${LDCXX+set}" || LD=$LDCXX
10861 CC=${CXX-"c++"}
10862 compiler=$CC
10863 compiler_CXX=$CC
10864 for cc_temp in $compiler""; do
10865 case $cc_temp in
10866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10868 \-*) ;;
10869 *) break;;
10870 esac
10871done
10872cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9c60689e
DWT
10873
10874
47aaa820
DWT
10875 if test -n "$compiler"; then
10876 # We don't want -fno-exception when compiling C++ code, so set the
10877 # no_builtin_flag separately
10878 if test "$GXX" = yes; then
10879 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10880 else
10881 lt_prog_compiler_no_builtin_flag_CXX=
10882 fi
9c60689e 10883
47aaa820
DWT
10884 if test "$GXX" = yes; then
10885 # Set up default GNU C++ configuration
10886
10887
10888
10889# Check whether --with-gnu-ld was given.
10890if test "${with_gnu_ld+set}" = set; then :
10891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 10892else
47aaa820 10893 with_gnu_ld=no
9c60689e
DWT
10894fi
10895
47aaa820
DWT
10896ac_prog=ld
10897if test "$GCC" = yes; then
10898 # Check if gcc -print-prog-name=ld gives a path.
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10900$as_echo_n "checking for ld used by $CC... " >&6; }
10901 case $host in
10902 *-*-mingw*)
10903 # gcc leaves a trailing carriage return which upsets mingw
10904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10905 *)
10906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10907 esac
10908 case $ac_prog in
10909 # Accept absolute paths.
10910 [\\/]* | ?:[\\/]*)
10911 re_direlt='/[^/][^/]*/\.\./'
10912 # Canonicalize the pathname of ld
10913 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10914 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10915 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10916 done
10917 test -z "$LD" && LD="$ac_prog"
10918 ;;
10919 "")
10920 # If it fails, then pretend we aren't using GCC.
10921 ac_prog=ld
10922 ;;
10923 *)
10924 # If it is relative, then search for the first ld in PATH.
10925 with_gnu_ld=unknown
10926 ;;
10927 esac
10928elif test "$with_gnu_ld" = yes; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10930$as_echo_n "checking for GNU ld... " >&6; }
10931else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10933$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 10934fi
47aaa820 10935if test "${lt_cv_path_LD+set}" = set; then :
9c60689e
DWT
10936 $as_echo_n "(cached) " >&6
10937else
47aaa820
DWT
10938 if test -z "$LD"; then
10939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10940 for ac_dir in $PATH; do
10941 IFS="$lt_save_ifs"
10942 test -z "$ac_dir" && ac_dir=.
10943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10944 lt_cv_path_LD="$ac_dir/$ac_prog"
10945 # Check to see if the program is GNU ld. I'd rather use --version,
10946 # but apparently some variants of GNU ld only accept -v.
10947 # Break only if it was the GNU/non-GNU ld that we prefer.
10948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10949 *GNU* | *'with BFD'*)
10950 test "$with_gnu_ld" != no && break
10951 ;;
10952 *)
10953 test "$with_gnu_ld" != yes && break
10954 ;;
10955 esac
10956 fi
9c60689e 10957 done
47aaa820
DWT
10958 IFS="$lt_save_ifs"
10959else
10960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
10961fi
10962fi
47aaa820
DWT
10963
10964LD="$lt_cv_path_LD"
10965if test -n "$LD"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10967$as_echo "$LD" >&6; }
9c60689e
DWT
10968else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
10971fi
47aaa820
DWT
10972test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10974$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10975if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977else
10978 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10979case `$LD -v 2>&1 </dev/null` in
10980*GNU* | *'with BFD'*)
10981 lt_cv_prog_gnu_ld=yes
10982 ;;
10983*)
10984 lt_cv_prog_gnu_ld=no
10985 ;;
10986esac
10987fi
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10989$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10990with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
10991
10992
9c60689e 10993
9c60689e 10994
9c60689e 10995
9c60689e 10996
9c60689e 10997
47aaa820
DWT
10998 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10999 # archiving commands below assume that GNU ld is being used.
11000 if test "$with_gnu_ld" = yes; then
11001 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11002 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e 11003
47aaa820
DWT
11004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11006
47aaa820
DWT
11007 # If archive_cmds runs LD, not CC, wlarc should be empty
11008 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11009 # investigate it a little bit more. (MM)
11010 wlarc='${wl}'
9c60689e 11011
47aaa820
DWT
11012 # ancient GNU ld didn't support --whole-archive et. al.
11013 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11014 $GREP 'no-whole-archive' > /dev/null; then
11015 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11016 else
11017 whole_archive_flag_spec_CXX=
11018 fi
11019 else
11020 with_gnu_ld=no
11021 wlarc=
11022
11023 # A generic and very simple default shared library creation
11024 # command for GNU C++ for the case where it uses the native
11025 # linker, instead of GNU ld. If possible, this setting should
11026 # overridden to take advantage of the native linker features on
11027 # the platform it is being used on.
11028 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11029 fi
11030
11031 # Commands to make compiler produce verbose output that lists
11032 # what "hidden" libraries, object files and flags are used when
11033 # linking a shared library.
11034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11035
11036 else
11037 GXX=no
11038 with_gnu_ld=no
11039 wlarc=
11040 fi
11041
11042 # PORTME: fill in a description of your system's C++ link characteristics
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11044$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11045 ld_shlibs_CXX=yes
11046 case $host_os in
11047 aix3*)
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11050 ;;
11051 aix[4-9]*)
11052 if test "$host_cpu" = ia64; then
11053 # On IA64, the linker does run time linking by default, so we don't
11054 # have to do anything special.
11055 aix_use_runtimelinking=no
11056 exp_sym_flag='-Bexport'
11057 no_entry_flag=""
11058 else
11059 aix_use_runtimelinking=no
11060
11061 # Test if we are trying to use run time linking or normal
11062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11063 # need to do runtime linking.
11064 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11065 for ld_flag in $LDFLAGS; do
11066 case $ld_flag in
11067 *-brtl*)
11068 aix_use_runtimelinking=yes
11069 break
11070 ;;
11071 esac
11072 done
11073 ;;
11074 esac
11075
11076 exp_sym_flag='-bexport'
11077 no_entry_flag='-bnoentry'
11078 fi
11079
11080 # When large executables or shared objects are built, AIX ld can
11081 # have problems creating the table of contents. If linking a library
11082 # or program results in "error TOC overflow" add -mminimal-toc to
11083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11085
11086 archive_cmds_CXX=''
11087 hardcode_direct_CXX=yes
11088 hardcode_direct_absolute_CXX=yes
11089 hardcode_libdir_separator_CXX=':'
11090 link_all_deplibs_CXX=yes
11091 file_list_spec_CXX='${wl}-f,'
11092
11093 if test "$GXX" = yes; then
11094 case $host_os in aix4.[012]|aix4.[012].*)
11095 # We only want to do this on AIX 4.2 and lower, the check
11096 # below for broken collect2 doesn't work under 4.3+
11097 collect2name=`${CC} -print-prog-name=collect2`
11098 if test -f "$collect2name" &&
11099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11100 then
11101 # We have reworked collect2
11102 :
11103 else
11104 # We have old collect2
11105 hardcode_direct_CXX=unsupported
11106 # It fails to find uninstalled libraries when the uninstalled
11107 # path is not listed in the libpath. Setting hardcode_minus_L
11108 # to unsupported forces relinking
11109 hardcode_minus_L_CXX=yes
11110 hardcode_libdir_flag_spec_CXX='-L$libdir'
11111 hardcode_libdir_separator_CXX=
11112 fi
11113 esac
11114 shared_flag='-shared'
11115 if test "$aix_use_runtimelinking" = yes; then
11116 shared_flag="$shared_flag "'${wl}-G'
11117 fi
11118 else
11119 # not using gcc
11120 if test "$host_cpu" = ia64; then
11121 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11122 # chokes on -Wl,-G. The following line is correct:
11123 shared_flag='-G'
11124 else
11125 if test "$aix_use_runtimelinking" = yes; then
11126 shared_flag='${wl}-G'
11127 else
11128 shared_flag='${wl}-bM:SRE'
11129 fi
11130 fi
11131 fi
11132
11133 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11134 # It seems that -bexpall does not export symbols beginning with
11135 # underscore (_), so it is better to generate a list of symbols to
11136 # export.
11137 always_export_symbols_CXX=yes
11138 if test "$aix_use_runtimelinking" = yes; then
11139 # Warning - without using the other runtime loading flags (-brtl),
11140 # -berok will link without error, but may produce a broken library.
11141 allow_undefined_flag_CXX='-berok'
11142 # Determine the default libpath from the value encoded in an empty
11143 # executable.
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11145/* end confdefs.h. */
11146
11147int
11148main ()
11149{
11150
11151 ;
11152 return 0;
11153}
11154_ACEOF
47aaa820 11155if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11156
47aaa820
DWT
11157lt_aix_libpath_sed='
11158 /Import File Strings/,/^$/ {
11159 /^0/ {
11160 s/^0 *\(.*\)$/\1/
11161 p
11162 }
11163 }'
11164aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11165# Check for a 64-bit object if we didn't find anything.
11166if test -z "$aix_libpath"; then
11167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11168fi
11169fi
11170rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11173
11174 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11175
11176 archive_expsym_cmds_CXX='$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"
11177 else
11178 if test "$host_cpu" = ia64; then
11179 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11180 allow_undefined_flag_CXX="-z nodefs"
11181 archive_expsym_cmds_CXX="\$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"
11182 else
11183 # Determine the default libpath from the value encoded in an
11184 # empty executable.
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11186/* end confdefs.h. */
11187
11188int
11189main ()
11190{
11191
11192 ;
11193 return 0;
11194}
11195_ACEOF
47aaa820 11196if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11197
47aaa820
DWT
11198lt_aix_libpath_sed='
11199 /Import File Strings/,/^$/ {
11200 /^0/ {
11201 s/^0 *\(.*\)$/\1/
11202 p
11203 }
11204 }'
11205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11206# Check for a 64-bit object if we didn't find anything.
11207if test -z "$aix_libpath"; then
11208 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9c60689e 11209fi
9c60689e 11210fi
47aaa820
DWT
11211rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9c60689e 11214
47aaa820
DWT
11215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11216 # Warning - without using the other run time loading flags,
11217 # -berok will link without error, but may produce a broken library.
11218 no_undefined_flag_CXX=' ${wl}-bernotok'
11219 allow_undefined_flag_CXX=' ${wl}-berok'
11220 # Exported symbols can be pulled into shared objects from archives
11221 whole_archive_flag_spec_CXX='$convenience'
11222 archive_cmds_need_lc_CXX=yes
11223 # This is similar to how AIX traditionally builds its shared
11224 # libraries.
11225 archive_expsym_cmds_CXX="\$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'
11226 fi
11227 fi
11228 ;;
9c60689e 11229
47aaa820
DWT
11230 beos*)
11231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232 allow_undefined_flag_CXX=unsupported
11233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11234 # support --undefined. This deserves some investigation. FIXME
11235 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11236 else
11237 ld_shlibs_CXX=no
11238 fi
11239 ;;
9c60689e 11240
47aaa820
DWT
11241 chorus*)
11242 case $cc_basename in
11243 *)
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11246 ;;
11247 esac
11248 ;;
9c60689e 11249
47aaa820
DWT
11250 cygwin* | mingw* | pw32* | cegcc*)
11251 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11252 # as there is no search path for DLLs.
11253 hardcode_libdir_flag_spec_CXX='-L$libdir'
11254 allow_undefined_flag_CXX=unsupported
11255 always_export_symbols_CXX=no
11256 enable_shared_with_static_runtimes_CXX=yes
9c60689e 11257
47aaa820
DWT
11258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11259 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11260 # If the export-symbols file already is a .def file (1st line
11261 # is EXPORTS), use it as is; otherwise, prepend...
11262 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11263 cp $export_symbols $output_objdir/$soname.def;
11264 else
11265 echo EXPORTS > $output_objdir/$soname.def;
11266 cat $export_symbols >> $output_objdir/$soname.def;
11267 fi~
11268 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11269 else
11270 ld_shlibs_CXX=no
11271 fi
11272 ;;
11273 darwin* | rhapsody*)
9c60689e 11274
9c60689e 11275
47aaa820
DWT
11276 archive_cmds_need_lc_CXX=no
11277 hardcode_direct_CXX=no
11278 hardcode_automatic_CXX=yes
11279 hardcode_shlibpath_var_CXX=unsupported
11280 whole_archive_flag_spec_CXX=''
11281 link_all_deplibs_CXX=yes
11282 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11283 case $cc_basename in
11284 ifort*) _lt_dar_can_shared=yes ;;
11285 *) _lt_dar_can_shared=$GCC ;;
11286 esac
11287 if test "$_lt_dar_can_shared" = "yes"; then
11288 output_verbose_link_cmd=echo
11289 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11290 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11291 archive_expsym_cmds_CXX="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}"
11292 module_expsym_cmds_CXX="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}"
11293 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11294 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11295 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11296 fi
9c60689e 11297
47aaa820
DWT
11298 else
11299 ld_shlibs_CXX=no
11300 fi
9c60689e 11301
47aaa820 11302 ;;
9c60689e 11303
47aaa820
DWT
11304 dgux*)
11305 case $cc_basename in
11306 ec++*)
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11309 ;;
11310 ghcx*)
11311 # Green Hills C++ Compiler
11312 # FIXME: insert proper C++ library support
11313 ld_shlibs_CXX=no
11314 ;;
11315 *)
11316 # FIXME: insert proper C++ library support
11317 ld_shlibs_CXX=no
11318 ;;
11319 esac
11320 ;;
9c60689e 11321
47aaa820
DWT
11322 freebsd[12]*)
11323 # C++ shared libraries reported to be fairly broken before
11324 # switch to ELF
11325 ld_shlibs_CXX=no
11326 ;;
9c60689e 11327
47aaa820
DWT
11328 freebsd-elf*)
11329 archive_cmds_need_lc_CXX=no
11330 ;;
9c60689e 11331
47aaa820
DWT
11332 freebsd* | dragonfly*)
11333 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11334 # conventions
11335 ld_shlibs_CXX=yes
11336 ;;
9c60689e 11337
47aaa820
DWT
11338 gnu*)
11339 ;;
9c60689e 11340
47aaa820
DWT
11341 hpux9*)
11342 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11343 hardcode_libdir_separator_CXX=:
11344 export_dynamic_flag_spec_CXX='${wl}-E'
11345 hardcode_direct_CXX=yes
11346 hardcode_minus_L_CXX=yes # Not in the search PATH,
11347 # but as the default
11348 # location of the library.
9c60689e 11349
47aaa820
DWT
11350 case $cc_basename in
11351 CC*)
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 ;;
11355 aCC*)
11356 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11357 # Commands to make compiler produce verbose output that lists
11358 # what "hidden" libraries, object files and flags are used when
11359 # linking a shared library.
11360 #
11361 # There doesn't appear to be a way to prevent this compiler from
11362 # explicitly linking system object files so we need to strip them
11363 # from the output so that they don't get included in the library
11364 # dependencies.
11365 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11366 ;;
11367 *)
11368 if test "$GXX" = yes; then
11369 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11370 else
11371 # FIXME: insert proper C++ library support
11372 ld_shlibs_CXX=no
11373 fi
11374 ;;
11375 esac
11376 ;;
9c60689e 11377
47aaa820
DWT
11378 hpux10*|hpux11*)
11379 if test $with_gnu_ld = no; then
11380 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11381 hardcode_libdir_separator_CXX=:
9c60689e 11382
47aaa820
DWT
11383 case $host_cpu in
11384 hppa*64*|ia64*)
11385 ;;
11386 *)
11387 export_dynamic_flag_spec_CXX='${wl}-E'
11388 ;;
11389 esac
11390 fi
11391 case $host_cpu in
11392 hppa*64*|ia64*)
11393 hardcode_direct_CXX=no
11394 hardcode_shlibpath_var_CXX=no
11395 ;;
11396 *)
11397 hardcode_direct_CXX=yes
11398 hardcode_direct_absolute_CXX=yes
11399 hardcode_minus_L_CXX=yes # Not in the search PATH,
11400 # but as the default
11401 # location of the library.
11402 ;;
11403 esac
9c60689e 11404
47aaa820
DWT
11405 case $cc_basename in
11406 CC*)
11407 # FIXME: insert proper C++ library support
11408 ld_shlibs_CXX=no
11409 ;;
11410 aCC*)
11411 case $host_cpu in
11412 hppa*64*)
11413 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11414 ;;
11415 ia64*)
11416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11417 ;;
11418 *)
11419 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420 ;;
11421 esac
11422 # Commands to make compiler produce verbose output that lists
11423 # what "hidden" libraries, object files and flags are used when
11424 # linking a shared library.
11425 #
11426 # There doesn't appear to be a way to prevent this compiler from
11427 # explicitly linking system object files so we need to strip them
11428 # from the output so that they don't get included in the library
11429 # dependencies.
11430 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11431 ;;
11432 *)
11433 if test "$GXX" = yes; then
11434 if test $with_gnu_ld = no; then
11435 case $host_cpu in
11436 hppa*64*)
11437 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11438 ;;
11439 ia64*)
11440 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 ;;
11442 *)
11443 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444 ;;
11445 esac
11446 fi
11447 else
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11450 fi
11451 ;;
11452 esac
11453 ;;
9c60689e 11454
47aaa820
DWT
11455 interix[3-9]*)
11456 hardcode_direct_CXX=no
11457 hardcode_shlibpath_var_CXX=no
11458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11459 export_dynamic_flag_spec_CXX='${wl}-E'
11460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11461 # Instead, shared libraries are loaded at an image base (0x10000000 by
11462 # default) and relocated if they conflict, which is a slow very memory
11463 # consuming and fragmenting process. To avoid this, we pick a random,
11464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11466 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11467 archive_expsym_cmds_CXX='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'
11468 ;;
11469 irix5* | irix6*)
11470 case $cc_basename in
11471 CC*)
11472 # SGI C++
11473 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9c60689e 11474
47aaa820
DWT
11475 # Archives containing C++ object files must be created using
11476 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11477 # necessary to make sure instantiated templates are included
11478 # in the archive.
11479 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11480 ;;
11481 *)
11482 if test "$GXX" = yes; then
11483 if test "$with_gnu_ld" = no; then
11484 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11485 else
11486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
11487 fi
11488 fi
11489 link_all_deplibs_CXX=yes
11490 ;;
11491 esac
11492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11493 hardcode_libdir_separator_CXX=:
11494 inherit_rpath_CXX=yes
11495 ;;
9c60689e 11496
47aaa820
DWT
11497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11498 case $cc_basename in
11499 KCC*)
11500 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 11501
47aaa820
DWT
11502 # KCC will only create a shared library if the output file
11503 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11504 # to its proper name (with version) after linking.
11505 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11506 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11507 # Commands to make compiler produce verbose output that lists
11508 # what "hidden" libraries, object files and flags are used when
11509 # linking a shared library.
11510 #
11511 # There doesn't appear to be a way to prevent this compiler from
11512 # explicitly linking system object files so we need to strip them
11513 # from the output so that they don't get included in the library
11514 # dependencies.
11515 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
9c60689e 11516
47aaa820
DWT
11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11519
47aaa820
DWT
11520 # Archives containing C++ object files must be created using
11521 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11522 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11523 ;;
11524 icpc* | ecpc* )
11525 # Intel C++
11526 with_gnu_ld=yes
11527 # version 8.0 and above of icpc choke on multiply defined symbols
11528 # if we add $predep_objects and $postdep_objects, however 7.1 and
11529 # earlier do not add the objects themselves.
11530 case `$CC -V 2>&1` in
11531 *"Version 7."*)
11532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11533 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11534 ;;
11535 *) # Version 8.0 or newer
11536 tmp_idyn=
11537 case $host_cpu in
11538 ia64*) tmp_idyn=' -i_dynamic';;
11539 esac
11540 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542 ;;
11543 esac
11544 archive_cmds_need_lc_CXX=no
11545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11546 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11547 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11548 ;;
11549 pgCC* | pgcpp*)
11550 # Portland Group C++ compiler
11551 case `$CC -V` in
11552 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11553 prelink_cmds_CXX='tpldir=Template.dir~
11554 rm -rf $tpldir~
11555 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11556 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11557 old_archive_cmds_CXX='tpldir=Template.dir~
11558 rm -rf $tpldir~
11559 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11560 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11561 $RANLIB $oldlib'
11562 archive_cmds_CXX='tpldir=Template.dir~
11563 rm -rf $tpldir~
11564 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11565 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11566 archive_expsym_cmds_CXX='tpldir=Template.dir~
11567 rm -rf $tpldir~
11568 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11569 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11570 ;;
11571 *) # Version 6 will use weak symbols
11572 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11573 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11574 ;;
11575 esac
9c60689e 11576
47aaa820
DWT
11577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11579 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11580 ;;
11581 cxx*)
11582 # Compaq C++
11583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11584 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9c60689e 11585
47aaa820
DWT
11586 runpath_var=LD_RUN_PATH
11587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11588 hardcode_libdir_separator_CXX=:
9c60689e 11589
47aaa820
DWT
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 #
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11599 ;;
11600 xl*)
11601 # IBM XL 8.0 on PPC, with GNU ld
11602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11604 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11605 if test "x$supports_anon_versioning" = xyes; then
11606 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11608 echo "local: *; };" >> $output_objdir/$libname.ver~
11609 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11610 fi
11611 ;;
11612 *)
11613 case `$CC -V 2>&1 | sed 5q` in
11614 *Sun\ C*)
11615 # Sun C++ 5.9
11616 no_undefined_flag_CXX=' -zdefs'
11617 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11618 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11619 hardcode_libdir_flag_spec_CXX='-R$libdir'
11620 whole_archive_flag_spec_CXX='${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'
11621 compiler_needs_object_CXX=yes
9c60689e 11622
47aaa820
DWT
11623 # Not sure whether something based on
11624 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11625 # would be better.
11626 output_verbose_link_cmd='echo'
9c60689e 11627
47aaa820
DWT
11628 # Archives containing C++ object files must be created using
11629 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11630 # necessary to make sure instantiated templates are included
11631 # in the archive.
11632 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11633 ;;
11634 esac
11635 ;;
11636 esac
11637 ;;
9c60689e 11638
47aaa820
DWT
11639 lynxos*)
11640 # FIXME: insert proper C++ library support
11641 ld_shlibs_CXX=no
11642 ;;
9c60689e 11643
47aaa820
DWT
11644 m88k*)
11645 # FIXME: insert proper C++ library support
11646 ld_shlibs_CXX=no
11647 ;;
9c60689e 11648
47aaa820
DWT
11649 mvs*)
11650 case $cc_basename in
11651 cxx*)
11652 # FIXME: insert proper C++ library support
11653 ld_shlibs_CXX=no
11654 ;;
11655 *)
11656 # FIXME: insert proper C++ library support
11657 ld_shlibs_CXX=no
11658 ;;
11659 esac
11660 ;;
9c60689e 11661
47aaa820
DWT
11662 netbsd*)
11663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11664 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11665 wlarc=
11666 hardcode_libdir_flag_spec_CXX='-R$libdir'
11667 hardcode_direct_CXX=yes
11668 hardcode_shlibpath_var_CXX=no
11669 fi
11670 # Workaround some broken pre-1.5 toolchains
11671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 11672 ;;
47aaa820
DWT
11673
11674 *nto* | *qnx*)
11675 ld_shlibs_CXX=yes
9c60689e 11676 ;;
9c60689e 11677
47aaa820
DWT
11678 openbsd2*)
11679 # C++ shared libraries are fairly broken
11680 ld_shlibs_CXX=no
11681 ;;
9c60689e 11682
47aaa820
DWT
11683 openbsd*)
11684 if test -f /usr/libexec/ld.so; then
11685 hardcode_direct_CXX=yes
11686 hardcode_shlibpath_var_CXX=no
11687 hardcode_direct_absolute_CXX=yes
11688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11692 export_dynamic_flag_spec_CXX='${wl}-E'
11693 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11694 fi
11695 output_verbose_link_cmd=echo
11696 else
11697 ld_shlibs_CXX=no
11698 fi
11699 ;;
9c60689e 11700
47aaa820
DWT
11701 osf3* | osf4* | osf5*)
11702 case $cc_basename in
11703 KCC*)
11704 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 11705
47aaa820
DWT
11706 # KCC will only create a shared library if the output file
11707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11708 # to its proper name (with version) after linking.
11709 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9c60689e 11710
47aaa820
DWT
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11712 hardcode_libdir_separator_CXX=:
9c60689e 11713
47aaa820
DWT
11714 # Archives containing C++ object files must be created using
11715 # the KAI C++ compiler.
11716 case $host in
11717 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11718 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11719 esac
11720 ;;
11721 RCC*)
11722 # Rational C++ 2.4.1
11723 # FIXME: insert proper C++ library support
11724 ld_shlibs_CXX=no
11725 ;;
11726 cxx*)
11727 case $host in
11728 osf3*)
11729 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11730 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11732 ;;
11733 *)
11734 allow_undefined_flag_CXX=' -expect_unresolved \*'
11735 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11736 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11737 echo "-hidden">> $lib.exp~
11738 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
11739 $RM $lib.exp'
11740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11741 ;;
11742 esac
9c60689e 11743
47aaa820 11744 hardcode_libdir_separator_CXX=:
9c60689e 11745
47aaa820
DWT
11746 # Commands to make compiler produce verbose output that lists
11747 # what "hidden" libraries, object files and flags are used when
11748 # linking a shared library.
11749 #
11750 # There doesn't appear to be a way to prevent this compiler from
11751 # explicitly linking system object files so we need to strip them
11752 # from the output so that they don't get included in the library
11753 # dependencies.
11754 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11755 ;;
11756 *)
11757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11759 case $host in
11760 osf3*)
11761 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11762 ;;
11763 *)
11764 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11765 ;;
11766 esac
9c60689e 11767
47aaa820
DWT
11768 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11769 hardcode_libdir_separator_CXX=:
9c60689e 11770
47aaa820
DWT
11771 # Commands to make compiler produce verbose output that lists
11772 # what "hidden" libraries, object files and flags are used when
11773 # linking a shared library.
11774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9c60689e 11775
47aaa820
DWT
11776 else
11777 # FIXME: insert proper C++ library support
11778 ld_shlibs_CXX=no
11779 fi
11780 ;;
11781 esac
11782 ;;
9c60689e 11783
47aaa820 11784 psos*)
9c60689e
DWT
11785 # FIXME: insert proper C++ library support
11786 ld_shlibs_CXX=no
11787 ;;
9c60689e 11788
47aaa820
DWT
11789 sunos4*)
11790 case $cc_basename in
11791 CC*)
11792 # Sun C++ 4.x
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
9c60689e 11795 ;;
47aaa820
DWT
11796 lcc*)
11797 # Lucid
11798 # FIXME: insert proper C++ library support
11799 ld_shlibs_CXX=no
11800 ;;
11801 *)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 esac
11806 ;;
9c60689e 11807
47aaa820
DWT
11808 solaris*)
11809 case $cc_basename in
11810 CC*)
11811 # Sun C++ 4.2, 5.x and Centerline C++
11812 archive_cmds_need_lc_CXX=yes
11813 no_undefined_flag_CXX=' -zdefs'
11814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11815 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11816 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11817
47aaa820
DWT
11818 hardcode_libdir_flag_spec_CXX='-R$libdir'
11819 hardcode_shlibpath_var_CXX=no
11820 case $host_os in
11821 solaris2.[0-5] | solaris2.[0-5].*) ;;
11822 *)
11823 # The compiler driver will combine and reorder linker options,
11824 # but understands `-z linker_flag'.
11825 # Supported since Solaris 2.6 (maybe 2.5.1?)
11826 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11827 ;;
11828 esac
11829 link_all_deplibs_CXX=yes
9c60689e 11830
47aaa820 11831 output_verbose_link_cmd='echo'
9c60689e 11832
47aaa820
DWT
11833 # Archives containing C++ object files must be created using
11834 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11835 # necessary to make sure instantiated templates are included
11836 # in the archive.
11837 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11838 ;;
11839 gcx*)
11840 # Green Hills C++ Compiler
11841 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 11842
47aaa820
DWT
11843 # The C++ compiler must be used to create the archive.
11844 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11845 ;;
11846 *)
11847 # GNU C++ compiler with Solaris linker
11848 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11849 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11850 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11851 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11852 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11853 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11854
47aaa820
DWT
11855 # Commands to make compiler produce verbose output that lists
11856 # what "hidden" libraries, object files and flags are used when
11857 # linking a shared library.
11858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11859 else
11860 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11861 # platform.
11862 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11863 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11864 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11865
47aaa820
DWT
11866 # Commands to make compiler produce verbose output that lists
11867 # what "hidden" libraries, object files and flags are used when
11868 # linking a shared library.
11869 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11870 fi
9c60689e 11871
47aaa820
DWT
11872 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11873 case $host_os in
11874 solaris2.[0-5] | solaris2.[0-5].*) ;;
11875 *)
11876 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11877 ;;
11878 esac
11879 fi
11880 ;;
11881 esac
11882 ;;
9c60689e 11883
47aaa820
DWT
11884 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11885 no_undefined_flag_CXX='${wl}-z,text'
11886 archive_cmds_need_lc_CXX=no
11887 hardcode_shlibpath_var_CXX=no
11888 runpath_var='LD_RUN_PATH'
9c60689e 11889
47aaa820
DWT
11890 case $cc_basename in
11891 CC*)
11892 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11893 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 ;;
11895 *)
11896 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 ;;
11899 esac
11900 ;;
9c60689e 11901
47aaa820
DWT
11902 sysv5* | sco3.2v5* | sco5v6*)
11903 # Note: We can NOT use -z defs as we might desire, because we do not
11904 # link with -lc, and that would cause any symbols used from libc to
11905 # always be unresolved, which means just about no library would
11906 # ever link correctly. If we're not using GNU ld we use -z text
11907 # though, which does catch some bad symbols but isn't as heavy-handed
11908 # as -z defs.
11909 no_undefined_flag_CXX='${wl}-z,text'
11910 allow_undefined_flag_CXX='${wl}-z,nodefs'
11911 archive_cmds_need_lc_CXX=no
11912 hardcode_shlibpath_var_CXX=no
11913 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11914 hardcode_libdir_separator_CXX=':'
11915 link_all_deplibs_CXX=yes
11916 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11917 runpath_var='LD_RUN_PATH'
9c60689e 11918
47aaa820
DWT
11919 case $cc_basename in
11920 CC*)
11921 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923 ;;
11924 *)
11925 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 ;;
11928 esac
11929 ;;
9c60689e 11930
47aaa820 11931 tandem*)
9c60689e 11932 case $cc_basename in
47aaa820
DWT
11933 NCC*)
11934 # NonStop-UX NCC 3.20
11935 # FIXME: insert proper C++ library support
11936 ld_shlibs_CXX=no
11937 ;;
9c60689e 11938 *)
47aaa820
DWT
11939 # FIXME: insert proper C++ library support
11940 ld_shlibs_CXX=no
11941 ;;
9c60689e
DWT
11942 esac
11943 ;;
11944
47aaa820
DWT
11945 vxworks*)
11946 # FIXME: insert proper C++ library support
11947 ld_shlibs_CXX=no
11948 ;;
9c60689e 11949
47aaa820
DWT
11950 *)
11951 # FIXME: insert proper C++ library support
11952 ld_shlibs_CXX=no
9c60689e 11953 ;;
47aaa820 11954 esac
9c60689e 11955
47aaa820
DWT
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11957$as_echo "$ld_shlibs_CXX" >&6; }
11958 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 11959
47aaa820
DWT
11960 GCC_CXX="$GXX"
11961 LD_CXX="$LD"
9c60689e 11962
47aaa820
DWT
11963 ## CAVEAT EMPTOR:
11964 ## There is no encapsulation within the following macros, do not change
11965 ## the running order or otherwise move them around unless you know exactly
11966 ## what you are doing...
11967 # Dependencies to place before and after the object being linked:
11968predep_objects_CXX=
11969postdep_objects_CXX=
11970predeps_CXX=
11971postdeps_CXX=
11972compiler_lib_search_path_CXX=
9c60689e 11973
47aaa820
DWT
11974cat > conftest.$ac_ext <<_LT_EOF
11975class Foo
11976{
11977public:
11978 Foo (void) { a = 0; }
11979private:
11980 int a;
11981};
11982_LT_EOF
9c60689e 11983
47aaa820
DWT
11984if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11985 (eval $ac_compile) 2>&5
11986 ac_status=$?
11987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988 test $ac_status = 0; }; then
11989 # Parse the compiler output and extract the necessary
11990 # objects, libraries and library flags.
9c60689e 11991
47aaa820
DWT
11992 # Sentinel used to keep track of whether or not we are before
11993 # the conftest object file.
11994 pre_test_object_deps_done=no
9c60689e 11995
47aaa820
DWT
11996 for p in `eval "$output_verbose_link_cmd"`; do
11997 case $p in
9c60689e 11998
47aaa820
DWT
11999 -L* | -R* | -l*)
12000 # Some compilers place space between "-{L,R}" and the path.
12001 # Remove the space.
12002 if test $p = "-L" ||
12003 test $p = "-R"; then
12004 prev=$p
12005 continue
12006 else
12007 prev=
12008 fi
9c60689e 12009
47aaa820
DWT
12010 if test "$pre_test_object_deps_done" = no; then
12011 case $p in
12012 -L* | -R*)
12013 # Internal compiler library paths should come after those
12014 # provided the user. The postdeps already come after the
12015 # user supplied libs so there is no need to process them.
12016 if test -z "$compiler_lib_search_path_CXX"; then
12017 compiler_lib_search_path_CXX="${prev}${p}"
12018 else
12019 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12020 fi
12021 ;;
12022 # The "-l" case would never come before the object being
12023 # linked, so don't bother handling this case.
12024 esac
12025 else
12026 if test -z "$postdeps_CXX"; then
12027 postdeps_CXX="${prev}${p}"
12028 else
12029 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12030 fi
12031 fi
12032 ;;
9c60689e 12033
47aaa820
DWT
12034 *.$objext)
12035 # This assumes that the test object file only shows up
12036 # once in the compiler output.
12037 if test "$p" = "conftest.$objext"; then
12038 pre_test_object_deps_done=yes
12039 continue
12040 fi
9c60689e 12041
47aaa820
DWT
12042 if test "$pre_test_object_deps_done" = no; then
12043 if test -z "$predep_objects_CXX"; then
12044 predep_objects_CXX="$p"
12045 else
12046 predep_objects_CXX="$predep_objects_CXX $p"
12047 fi
12048 else
12049 if test -z "$postdep_objects_CXX"; then
12050 postdep_objects_CXX="$p"
12051 else
12052 postdep_objects_CXX="$postdep_objects_CXX $p"
12053 fi
12054 fi
12055 ;;
9c60689e 12056
47aaa820 12057 *) ;; # Ignore the rest.
9c60689e 12058
47aaa820
DWT
12059 esac
12060 done
9c60689e 12061
47aaa820
DWT
12062 # Clean up.
12063 rm -f a.out a.exe
12064else
12065 echo "libtool.m4: error: problem compiling CXX test program"
12066fi
9c60689e 12067
47aaa820 12068$RM -f confest.$objext
9c60689e 12069
47aaa820
DWT
12070# PORTME: override above test on systems where it is broken
12071case $host_os in
12072interix[3-9]*)
12073 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12074 # hack all around it, let's just trust "g++" to DTRT.
12075 predep_objects_CXX=
12076 postdep_objects_CXX=
12077 postdeps_CXX=
12078 ;;
9c60689e 12079
47aaa820
DWT
12080linux*)
12081 case `$CC -V 2>&1 | sed 5q` in
12082 *Sun\ C*)
12083 # Sun C++ 5.9
9c60689e 12084
47aaa820
DWT
12085 # The more standards-conforming stlport4 library is
12086 # incompatible with the Cstd library. Avoid specifying
12087 # it if it's in CXXFLAGS. Ignore libCrun as
12088 # -library=stlport4 depends on it.
12089 case " $CXX $CXXFLAGS " in
12090 *" -library=stlport4 "*)
12091 solaris_use_stlport4=yes
12092 ;;
12093 esac
9c60689e 12094
47aaa820
DWT
12095 if test "$solaris_use_stlport4" != yes; then
12096 postdeps_CXX='-library=Cstd -library=Crun'
12097 fi
12098 ;;
12099 esac
12100 ;;
9c60689e 12101
47aaa820
DWT
12102solaris*)
12103 case $cc_basename in
12104 CC*)
12105 # The more standards-conforming stlport4 library is
12106 # incompatible with the Cstd library. Avoid specifying
12107 # it if it's in CXXFLAGS. Ignore libCrun as
12108 # -library=stlport4 depends on it.
12109 case " $CXX $CXXFLAGS " in
12110 *" -library=stlport4 "*)
12111 solaris_use_stlport4=yes
12112 ;;
12113 esac
9c60689e 12114
47aaa820
DWT
12115 # Adding this requires a known-good setup of shared libraries for
12116 # Sun compiler versions before 5.6, else PIC objects from an old
12117 # archive will be linked into the output, leading to subtle bugs.
12118 if test "$solaris_use_stlport4" != yes; then
12119 postdeps_CXX='-library=Cstd -library=Crun'
12120 fi
12121 ;;
12122 esac
12123 ;;
12124esac
9c60689e 12125
9c60689e 12126
47aaa820
DWT
12127case " $postdeps_CXX " in
12128*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12129esac
12130 compiler_lib_search_dirs_CXX=
12131if test -n "${compiler_lib_search_path_CXX}"; then
12132 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12133fi
9c60689e 12134
9c60689e 12135
9c60689e 12136
9c60689e 12137
9c60689e 12138
9c60689e 12139
9c60689e 12140
9c60689e 12141
9c60689e 12142
9c60689e 12143
9c60689e 12144
9c60689e 12145
9c60689e 12146
9c60689e 12147
9c60689e 12148
9c60689e 12149
9c60689e 12150
9c60689e 12151
9c60689e 12152
9c60689e 12153
9c60689e 12154
9c60689e 12155
9c60689e 12156
9c60689e 12157
9c60689e 12158
9c60689e 12159
9c60689e 12160
9c60689e 12161
9c60689e 12162
9c60689e 12163
9c60689e 12164
47aaa820
DWT
12165 lt_prog_compiler_wl_CXX=
12166lt_prog_compiler_pic_CXX=
12167lt_prog_compiler_static_CXX=
9c60689e
DWT
12168
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12170$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12171
12172 # C++ specific cases for pic, static, wl, etc.
12173 if test "$GXX" = yes; then
12174 lt_prog_compiler_wl_CXX='-Wl,'
12175 lt_prog_compiler_static_CXX='-static'
12176
12177 case $host_os in
12178 aix*)
12179 # All AIX code is PIC.
12180 if test "$host_cpu" = ia64; then
12181 # AIX 5 now supports IA64 processor
12182 lt_prog_compiler_static_CXX='-Bstatic'
12183 fi
12184 ;;
12185
12186 amigaos*)
12187 case $host_cpu in
12188 powerpc)
12189 # see comment about AmigaOS4 .so support
12190 lt_prog_compiler_pic_CXX='-fPIC'
12191 ;;
12192 m68k)
12193 # FIXME: we need at least 68020 code to build shared libraries, but
12194 # adding the `-m68020' flag to GCC prevents building anything better,
12195 # like `-m68040'.
12196 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12197 ;;
12198 esac
12199 ;;
12200
12201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12202 # PIC is the default for these OSes.
12203 ;;
12204 mingw* | cygwin* | os2* | pw32* | cegcc*)
12205 # This hack is so that the source file can tell whether it is being
12206 # built for inclusion in a dll (and should export symbols for example).
12207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12208 # (--disable-auto-import) libraries
12209 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12210 ;;
12211 darwin* | rhapsody*)
12212 # PIC is the default on this platform
12213 # Common symbols not allowed in MH_DYLIB files
12214 lt_prog_compiler_pic_CXX='-fno-common'
12215 ;;
12216 *djgpp*)
12217 # DJGPP does not support shared libraries at all
12218 lt_prog_compiler_pic_CXX=
12219 ;;
12220 interix[3-9]*)
12221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12222 # Instead, we relocate shared libraries at runtime.
12223 ;;
12224 sysv4*MP*)
12225 if test -d /usr/nec; then
12226 lt_prog_compiler_pic_CXX=-Kconform_pic
12227 fi
12228 ;;
12229 hpux*)
12230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12232 # sets the default TLS model and affects inlining.
12233 case $host_cpu in
12234 hppa*64*)
12235 ;;
12236 *)
12237 lt_prog_compiler_pic_CXX='-fPIC'
12238 ;;
12239 esac
12240 ;;
12241 *qnx* | *nto*)
12242 # QNX uses GNU C++, but need to define -shared option too, otherwise
12243 # it will coredump.
12244 lt_prog_compiler_pic_CXX='-fPIC -shared'
12245 ;;
12246 *)
12247 lt_prog_compiler_pic_CXX='-fPIC'
12248 ;;
12249 esac
12250 else
12251 case $host_os in
12252 aix[4-9]*)
12253 # All AIX code is PIC.
12254 if test "$host_cpu" = ia64; then
12255 # AIX 5 now supports IA64 processor
12256 lt_prog_compiler_static_CXX='-Bstatic'
12257 else
12258 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12259 fi
12260 ;;
12261 chorus*)
12262 case $cc_basename in
12263 cxch68*)
12264 # Green Hills C++ Compiler
12265 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12266 ;;
12267 esac
12268 ;;
12269 dgux*)
12270 case $cc_basename in
12271 ec++*)
12272 lt_prog_compiler_pic_CXX='-KPIC'
12273 ;;
12274 ghcx*)
12275 # Green Hills C++ Compiler
12276 lt_prog_compiler_pic_CXX='-pic'
12277 ;;
12278 *)
12279 ;;
12280 esac
12281 ;;
12282 freebsd* | dragonfly*)
12283 # FreeBSD uses GNU C++
12284 ;;
12285 hpux9* | hpux10* | hpux11*)
12286 case $cc_basename in
12287 CC*)
12288 lt_prog_compiler_wl_CXX='-Wl,'
12289 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12290 if test "$host_cpu" != ia64; then
12291 lt_prog_compiler_pic_CXX='+Z'
12292 fi
12293 ;;
12294 aCC*)
12295 lt_prog_compiler_wl_CXX='-Wl,'
12296 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12297 case $host_cpu in
12298 hppa*64*|ia64*)
12299 # +Z the default
12300 ;;
12301 *)
12302 lt_prog_compiler_pic_CXX='+Z'
12303 ;;
12304 esac
12305 ;;
12306 *)
12307 ;;
12308 esac
12309 ;;
12310 interix*)
12311 # This is c89, which is MS Visual C++ (no shared libs)
12312 # Anyone wants to do a port?
12313 ;;
12314 irix5* | irix6* | nonstopux*)
12315 case $cc_basename in
12316 CC*)
12317 lt_prog_compiler_wl_CXX='-Wl,'
12318 lt_prog_compiler_static_CXX='-non_shared'
12319 # CC pic flag -KPIC is the default.
12320 ;;
12321 *)
12322 ;;
12323 esac
12324 ;;
12325 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12326 case $cc_basename in
12327 KCC*)
12328 # KAI C++ Compiler
12329 lt_prog_compiler_wl_CXX='--backend -Wl,'
12330 lt_prog_compiler_pic_CXX='-fPIC'
12331 ;;
12332 ecpc* )
12333 # old Intel C++ for x86_64 which still supported -KPIC.
12334 lt_prog_compiler_wl_CXX='-Wl,'
12335 lt_prog_compiler_pic_CXX='-KPIC'
12336 lt_prog_compiler_static_CXX='-static'
12337 ;;
12338 icpc* )
12339 # Intel C++, used to be incompatible with GCC.
12340 # ICC 10 doesn't accept -KPIC any more.
12341 lt_prog_compiler_wl_CXX='-Wl,'
12342 lt_prog_compiler_pic_CXX='-fPIC'
12343 lt_prog_compiler_static_CXX='-static'
12344 ;;
12345 pgCC* | pgcpp*)
12346 # Portland Group C++ compiler
12347 lt_prog_compiler_wl_CXX='-Wl,'
12348 lt_prog_compiler_pic_CXX='-fpic'
12349 lt_prog_compiler_static_CXX='-Bstatic'
12350 ;;
12351 cxx*)
12352 # Compaq C++
12353 # Make sure the PIC flag is empty. It appears that all Alpha
12354 # Linux and Compaq Tru64 Unix objects are PIC.
12355 lt_prog_compiler_pic_CXX=
12356 lt_prog_compiler_static_CXX='-non_shared'
12357 ;;
12358 xlc* | xlC*)
12359 # IBM XL 8.0 on PPC
12360 lt_prog_compiler_wl_CXX='-Wl,'
12361 lt_prog_compiler_pic_CXX='-qpic'
12362 lt_prog_compiler_static_CXX='-qstaticlink'
12363 ;;
12364 *)
12365 case `$CC -V 2>&1 | sed 5q` in
12366 *Sun\ C*)
12367 # Sun C++ 5.9
12368 lt_prog_compiler_pic_CXX='-KPIC'
12369 lt_prog_compiler_static_CXX='-Bstatic'
12370 lt_prog_compiler_wl_CXX='-Qoption ld '
12371 ;;
12372 esac
12373 ;;
12374 esac
12375 ;;
12376 lynxos*)
12377 ;;
12378 m88k*)
12379 ;;
12380 mvs*)
12381 case $cc_basename in
12382 cxx*)
12383 lt_prog_compiler_pic_CXX='-W c,exportall'
12384 ;;
12385 *)
12386 ;;
12387 esac
12388 ;;
12389 netbsd* | netbsdelf*-gnu)
12390 ;;
12391 *qnx* | *nto*)
12392 # QNX uses GNU C++, but need to define -shared option too, otherwise
12393 # it will coredump.
12394 lt_prog_compiler_pic_CXX='-fPIC -shared'
12395 ;;
12396 osf3* | osf4* | osf5*)
12397 case $cc_basename in
12398 KCC*)
12399 lt_prog_compiler_wl_CXX='--backend -Wl,'
12400 ;;
12401 RCC*)
12402 # Rational C++ 2.4.1
12403 lt_prog_compiler_pic_CXX='-pic'
12404 ;;
12405 cxx*)
12406 # Digital/Compaq C++
12407 lt_prog_compiler_wl_CXX='-Wl,'
12408 # Make sure the PIC flag is empty. It appears that all Alpha
12409 # Linux and Compaq Tru64 Unix objects are PIC.
12410 lt_prog_compiler_pic_CXX=
12411 lt_prog_compiler_static_CXX='-non_shared'
12412 ;;
12413 *)
12414 ;;
12415 esac
12416 ;;
12417 psos*)
12418 ;;
12419 solaris*)
12420 case $cc_basename in
12421 CC*)
12422 # Sun C++ 4.2, 5.x and Centerline C++
12423 lt_prog_compiler_pic_CXX='-KPIC'
12424 lt_prog_compiler_static_CXX='-Bstatic'
12425 lt_prog_compiler_wl_CXX='-Qoption ld '
12426 ;;
12427 gcx*)
12428 # Green Hills C++ Compiler
12429 lt_prog_compiler_pic_CXX='-PIC'
12430 ;;
12431 *)
12432 ;;
12433 esac
12434 ;;
12435 sunos4*)
12436 case $cc_basename in
12437 CC*)
12438 # Sun C++ 4.x
12439 lt_prog_compiler_pic_CXX='-pic'
12440 lt_prog_compiler_static_CXX='-Bstatic'
12441 ;;
12442 lcc*)
12443 # Lucid
12444 lt_prog_compiler_pic_CXX='-pic'
12445 ;;
12446 *)
12447 ;;
12448 esac
12449 ;;
12450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12451 case $cc_basename in
12452 CC*)
12453 lt_prog_compiler_wl_CXX='-Wl,'
12454 lt_prog_compiler_pic_CXX='-KPIC'
12455 lt_prog_compiler_static_CXX='-Bstatic'
12456 ;;
12457 esac
12458 ;;
12459 tandem*)
12460 case $cc_basename in
12461 NCC*)
12462 # NonStop-UX NCC 3.20
12463 lt_prog_compiler_pic_CXX='-KPIC'
12464 ;;
12465 *)
12466 ;;
12467 esac
12468 ;;
12469 vxworks*)
12470 ;;
12471 *)
12472 lt_prog_compiler_can_build_shared_CXX=no
12473 ;;
12474 esac
12475 fi
12476
12477case $host_os in
12478 # For platforms which do not support PIC, -DPIC is meaningless:
12479 *djgpp*)
12480 lt_prog_compiler_pic_CXX=
12481 ;;
12482 *)
12483 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12484 ;;
12485esac
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12487$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12488
12489
12490
12491#
12492# Check to make sure the PIC flag actually works.
12493#
12494if test -n "$lt_prog_compiler_pic_CXX"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12496$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12497if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499else
12500 lt_cv_prog_compiler_pic_works_CXX=no
12501 ac_outfile=conftest.$ac_objext
12502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12503 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12504 # Insert the option either (1) after the last *FLAGS variable, or
12505 # (2) before a word containing "conftest.", or (3) at the end.
12506 # Note that $ac_compile itself does not contain backslashes and begins
12507 # with a dollar sign (not a hyphen), so the echo should work correctly.
12508 # The option is referenced via a variable to avoid confusing sed.
12509 lt_compile=`echo "$ac_compile" | $SED \
12510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12512 -e 's:$: $lt_compiler_flag:'`
94690cff 12513 (eval echo "\"\$as_me:12513: $lt_compile\"" >&5)
9c60689e
DWT
12514 (eval "$lt_compile" 2>conftest.err)
12515 ac_status=$?
12516 cat conftest.err >&5
94690cff 12517 echo "$as_me:12517: \$? = $ac_status" >&5
9c60689e
DWT
12518 if (exit $ac_status) && test -s "$ac_outfile"; then
12519 # The compiler can only warn and ignore the option if not recognized
12520 # So say no if there are warnings other than the usual output.
12521 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12524 lt_cv_prog_compiler_pic_works_CXX=yes
12525 fi
12526 fi
12527 $RM conftest*
12528
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12531$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12532
12533if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12534 case $lt_prog_compiler_pic_CXX in
12535 "" | " "*) ;;
12536 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12537 esac
12538else
12539 lt_prog_compiler_pic_CXX=
12540 lt_prog_compiler_can_build_shared_CXX=no
12541fi
12542
12543fi
12544
12545
12546
47aaa820
DWT
12547#
12548# Check to make sure the static flag actually works.
12549#
12550wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12552$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12553if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555else
12556 lt_cv_prog_compiler_static_works_CXX=no
12557 save_LDFLAGS="$LDFLAGS"
12558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12561 # The linker can only warn and ignore the option if not recognized
12562 # So say no if there are warnings
12563 if test -s conftest.err; then
12564 # Append any errors to the config.log.
12565 cat conftest.err 1>&5
12566 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12568 if diff conftest.exp conftest.er2 >/dev/null; then
12569 lt_cv_prog_compiler_static_works_CXX=yes
12570 fi
12571 else
12572 lt_cv_prog_compiler_static_works_CXX=yes
12573 fi
12574 fi
12575 $RM -r conftest*
12576 LDFLAGS="$save_LDFLAGS"
12577
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12580$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12581
12582if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12583 :
12584else
12585 lt_prog_compiler_static_CXX=
12586fi
12587
12588
12589
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12593if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12595else
12596 lt_cv_prog_compiler_c_o_CXX=no
12597 $RM -r conftest 2>/dev/null
12598 mkdir conftest
12599 cd conftest
12600 mkdir out
12601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12602
12603 lt_compiler_flag="-o out/conftest2.$ac_objext"
12604 # Insert the option either (1) after the last *FLAGS variable, or
12605 # (2) before a word containing "conftest.", or (3) at the end.
12606 # Note that $ac_compile itself does not contain backslashes and begins
12607 # with a dollar sign (not a hyphen), so the echo should work correctly.
12608 lt_compile=`echo "$ac_compile" | $SED \
12609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12611 -e 's:$: $lt_compiler_flag:'`
94690cff 12612 (eval echo "\"\$as_me:12612: $lt_compile\"" >&5)
47aaa820
DWT
12613 (eval "$lt_compile" 2>out/conftest.err)
12614 ac_status=$?
12615 cat out/conftest.err >&5
94690cff 12616 echo "$as_me:12616: \$? = $ac_status" >&5
47aaa820
DWT
12617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12618 then
12619 # The compiler can only warn and ignore the option if not recognized
12620 # So say no if there are warnings
12621 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12624 lt_cv_prog_compiler_c_o_CXX=yes
12625 fi
12626 fi
12627 chmod u+w . 2>&5
12628 $RM conftest*
12629 # SGI C++ compiler will create directory out/ii_files/ for
12630 # template instantiation
12631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12632 $RM out/* && rmdir out
12633 cd ..
12634 $RM -r conftest
12635 $RM conftest*
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12639$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12640
12641
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12645if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647else
12648 lt_cv_prog_compiler_c_o_CXX=no
12649 $RM -r conftest 2>/dev/null
12650 mkdir conftest
12651 cd conftest
12652 mkdir out
12653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12654
12655 lt_compiler_flag="-o out/conftest2.$ac_objext"
12656 # Insert the option either (1) after the last *FLAGS variable, or
12657 # (2) before a word containing "conftest.", or (3) at the end.
12658 # Note that $ac_compile itself does not contain backslashes and begins
12659 # with a dollar sign (not a hyphen), so the echo should work correctly.
12660 lt_compile=`echo "$ac_compile" | $SED \
12661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12663 -e 's:$: $lt_compiler_flag:'`
94690cff 12664 (eval echo "\"\$as_me:12664: $lt_compile\"" >&5)
47aaa820
DWT
12665 (eval "$lt_compile" 2>out/conftest.err)
12666 ac_status=$?
12667 cat out/conftest.err >&5
94690cff 12668 echo "$as_me:12668: \$? = $ac_status" >&5
47aaa820
DWT
12669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12670 then
12671 # The compiler can only warn and ignore the option if not recognized
12672 # So say no if there are warnings
12673 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12676 lt_cv_prog_compiler_c_o_CXX=yes
12677 fi
12678 fi
12679 chmod u+w . 2>&5
12680 $RM conftest*
12681 # SGI C++ compiler will create directory out/ii_files/ for
12682 # template instantiation
12683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12684 $RM out/* && rmdir out
12685 cd ..
12686 $RM -r conftest
12687 $RM conftest*
12688
12689fi
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12691$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12692
12693
12694
12695
12696hard_links="nottested"
12697if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12698 # do not overwrite the value of need_locks provided by the user
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12700$as_echo_n "checking if we can lock with hard links... " >&6; }
12701 hard_links=yes
12702 $RM conftest*
12703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12704 touch conftest.a
12705 ln conftest.a conftest.b 2>&5 || hard_links=no
12706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12708$as_echo "$hard_links" >&6; }
12709 if test "$hard_links" = no; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12711$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12712 need_locks=warn
12713 fi
12714else
12715 need_locks=no
12716fi
12717
12718
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12721$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12722
12723 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12724 case $host_os in
12725 aix[4-9]*)
12726 # If we're using GNU nm, then we don't want the "-C" option.
12727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12728 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12729 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12730 else
12731 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12732 fi
12733 ;;
12734 pw32*)
12735 export_symbols_cmds_CXX="$ltdll_cmds"
12736 ;;
12737 cygwin* | mingw* | cegcc*)
12738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12739 ;;
12740 linux* | k*bsd*-gnu)
12741 link_all_deplibs_CXX=no
12742 ;;
12743 *)
12744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12745 ;;
12746 esac
12747 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12748
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12750$as_echo "$ld_shlibs_CXX" >&6; }
12751test "$ld_shlibs_CXX" = no && can_build_shared=no
12752
12753with_gnu_ld_CXX=$with_gnu_ld
12754
12755
12756
12757
12758
12759
12760#
12761# Do we need to explicitly link libc?
12762#
12763case "x$archive_cmds_need_lc_CXX" in
12764x|xyes)
12765 # Assume -lc should be added
12766 archive_cmds_need_lc_CXX=yes
12767
12768 if test "$enable_shared" = yes && test "$GCC" = yes; then
12769 case $archive_cmds_CXX in
12770 *'~'*)
12771 # FIXME: we may have to deal with multi-command sequences.
12772 ;;
12773 '$CC '*)
12774 # Test whether the compiler implicitly links with -lc since on some
12775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12776 # to ld, don't add -lc before -lgcc.
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12778$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12779 $RM conftest*
12780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12781
12782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12783 (eval $ac_compile) 2>&5
12784 ac_status=$?
12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786 test $ac_status = 0; } 2>conftest.err; then
12787 soname=conftest
12788 lib=conftest
12789 libobjs=conftest.$ac_objext
12790 deplibs=
12791 wl=$lt_prog_compiler_wl_CXX
12792 pic_flag=$lt_prog_compiler_pic_CXX
12793 compiler_flags=-v
12794 linker_flags=-v
12795 verstring=
12796 output_objdir=.
12797 libname=conftest
12798 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12799 allow_undefined_flag_CXX=
12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12801 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12802 ac_status=$?
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; }
12805 then
12806 archive_cmds_need_lc_CXX=no
12807 else
12808 archive_cmds_need_lc_CXX=yes
12809 fi
12810 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12811 else
12812 cat conftest.err 1>&5
12813 fi
12814 $RM conftest*
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12816$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12817 ;;
12818 esac
12819 fi
12820 ;;
12821esac
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12887$as_echo_n "checking dynamic linker characteristics... " >&6; }
12888
12889library_names_spec=
12890libname_spec='lib$name'
12891soname_spec=
12892shrext_cmds=".so"
12893postinstall_cmds=
12894postuninstall_cmds=
12895finish_cmds=
12896finish_eval=
12897shlibpath_var=
12898shlibpath_overrides_runpath=unknown
12899version_type=none
12900dynamic_linker="$host_os ld.so"
12901sys_lib_dlsearch_path_spec="/lib /usr/lib"
12902need_lib_prefix=unknown
12903hardcode_into_libs=no
12904
12905# when you set need_version to no, make sure it does not cause -set_version
12906# flags to be left without arguments
12907need_version=unknown
12908
12909case $host_os in
12910aix3*)
12911 version_type=linux
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12913 shlibpath_var=LIBPATH
12914
12915 # AIX 3 has no versioning support, so we append a major version to the name.
12916 soname_spec='${libname}${release}${shared_ext}$major'
12917 ;;
12918
12919aix[4-9]*)
12920 version_type=linux
12921 need_lib_prefix=no
12922 need_version=no
12923 hardcode_into_libs=yes
12924 if test "$host_cpu" = ia64; then
12925 # AIX 5 supports IA64
12926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 else
12929 # With GCC up to 2.95.x, collect2 would create an import file
12930 # for dependence libraries. The import file would start with
12931 # the line `#! .'. This would cause the generated library to
12932 # depend on `.', always an invalid library. This was fixed in
12933 # development snapshots of GCC prior to 3.0.
12934 case $host_os in
12935 aix4 | aix4.[01] | aix4.[01].*)
12936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12937 echo ' yes '
12938 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12939 :
12940 else
12941 can_build_shared=no
12942 fi
12943 ;;
12944 esac
12945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12946 # soname into executable. Probably we can add versioning support to
12947 # collect2, so additional links can be useful in future.
12948 if test "$aix_use_runtimelinking" = yes; then
12949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12950 # instead of lib<name>.a to let people know that these are not
12951 # typical AIX shared libraries.
12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12953 else
12954 # We preserve .a as extension for shared libraries through AIX4.2
12955 # and later when we are not doing run time linking.
12956 library_names_spec='${libname}${release}.a $libname.a'
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 fi
12959 shlibpath_var=LIBPATH
12960 fi
12961 ;;
12962
12963amigaos*)
12964 case $host_cpu in
12965 powerpc)
12966 # Since July 2007 AmigaOS4 officially supports .so libraries.
12967 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 ;;
12970 m68k)
12971 library_names_spec='$libname.ixlibrary $libname.a'
12972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12973 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'
12974 ;;
12975 esac
12976 ;;
12977
12978beos*)
12979 library_names_spec='${libname}${shared_ext}'
12980 dynamic_linker="$host_os ld.so"
12981 shlibpath_var=LIBRARY_PATH
12982 ;;
12983
12984bsdi[45]*)
12985 version_type=linux
12986 need_version=no
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12993 # the default ld.so.conf also contains /usr/contrib/lib and
12994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12995 # libtool to hard-code these into programs
12996 ;;
9c60689e 12997
47aaa820
DWT
12998cygwin* | mingw* | pw32* | cegcc*)
12999 version_type=windows
13000 shrext_cmds=".dll"
13001 need_version=no
13002 need_lib_prefix=no
9c60689e 13003
47aaa820
DWT
13004 case $GCC,$host_os in
13005 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13006 library_names_spec='$libname.dll.a'
13007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13008 postinstall_cmds='base_file=`basename \${file}`~
13009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13010 dldir=$destdir/`dirname \$dlpath`~
13011 test -d \$dldir || mkdir -p \$dldir~
13012 $install_prog $dir/$dlname \$dldir/$dlname~
13013 chmod a+x \$dldir/$dlname~
13014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13016 fi'
13017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13018 dlpath=$dir/\$dldll~
13019 $RM \$dlpath'
13020 shlibpath_overrides_runpath=yes
9c60689e 13021
47aaa820
DWT
13022 case $host_os in
13023 cygwin*)
13024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13026 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13027 ;;
13028 mingw* | cegcc*)
13029 # MinGW DLLs use traditional 'lib' prefix
13030 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13031 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13033 # It is most probably a Windows format PATH printed by
13034 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13035 # path with ; separators, and with drive letters. We can handle the
13036 # drive letters (cygwin fileutils understands them), so leave them,
13037 # especially as we might pass files found there to a mingw objdump,
13038 # which wouldn't understand a cygwinified path. Ahh.
13039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13040 else
13041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13042 fi
13043 ;;
13044 pw32*)
13045 # pw32 DLLs use 'pw' prefix rather than 'lib'
13046 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13047 ;;
13048 esac
13049 ;;
9c60689e 13050
47aaa820
DWT
13051 *)
13052 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13053 ;;
13054 esac
13055 dynamic_linker='Win32 ld.exe'
13056 # FIXME: first we should search . and the directory the executable is in
13057 shlibpath_var=PATH
13058 ;;
9c60689e 13059
47aaa820
DWT
13060darwin* | rhapsody*)
13061 dynamic_linker="$host_os dyld"
13062 version_type=darwin
13063 need_lib_prefix=no
13064 need_version=no
13065 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13066 soname_spec='${libname}${release}${major}$shared_ext'
13067 shlibpath_overrides_runpath=yes
13068 shlibpath_var=DYLD_LIBRARY_PATH
13069 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13070
47aaa820
DWT
13071 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13072 ;;
9c60689e 13073
47aaa820
DWT
13074dgux*)
13075 version_type=linux
13076 need_lib_prefix=no
13077 need_version=no
13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 shlibpath_var=LD_LIBRARY_PATH
13081 ;;
9c60689e 13082
47aaa820
DWT
13083freebsd1*)
13084 dynamic_linker=no
13085 ;;
9c60689e 13086
47aaa820
DWT
13087freebsd* | dragonfly*)
13088 # DragonFly does not have aout. When/if they implement a new
13089 # versioning mechanism, adjust this.
13090 if test -x /usr/bin/objformat; then
13091 objformat=`/usr/bin/objformat`
13092 else
13093 case $host_os in
13094 freebsd[123]*) objformat=aout ;;
13095 *) objformat=elf ;;
13096 esac
13097 fi
13098 version_type=freebsd-$objformat
13099 case $version_type in
13100 freebsd-elf*)
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13102 need_version=no
13103 need_lib_prefix=no
13104 ;;
13105 freebsd-*)
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13107 need_version=yes
13108 ;;
13109 esac
13110 shlibpath_var=LD_LIBRARY_PATH
13111 case $host_os in
13112 freebsd2*)
13113 shlibpath_overrides_runpath=yes
13114 ;;
13115 freebsd3.[01]* | freebsdelf3.[01]*)
13116 shlibpath_overrides_runpath=yes
13117 hardcode_into_libs=yes
13118 ;;
13119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13121 shlibpath_overrides_runpath=no
13122 hardcode_into_libs=yes
13123 ;;
13124 *) # from 4.6 on, and DragonFly
13125 shlibpath_overrides_runpath=yes
13126 hardcode_into_libs=yes
13127 ;;
13128 esac
13129 ;;
9c60689e 13130
47aaa820
DWT
13131gnu*)
13132 version_type=linux
13133 need_lib_prefix=no
13134 need_version=no
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 hardcode_into_libs=yes
13139 ;;
9c60689e 13140
47aaa820
DWT
13141hpux9* | hpux10* | hpux11*)
13142 # Give a soname corresponding to the major version so that dld.sl refuses to
13143 # link against other versions.
13144 version_type=sunos
13145 need_lib_prefix=no
13146 need_version=no
13147 case $host_cpu in
13148 ia64*)
13149 shrext_cmds='.so'
13150 hardcode_into_libs=yes
13151 dynamic_linker="$host_os dld.so"
13152 shlibpath_var=LD_LIBRARY_PATH
13153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 if test "X$HPUX_IA64_MODE" = X32; then
13157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13158 else
13159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13160 fi
13161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13162 ;;
13163 hppa*64*)
13164 shrext_cmds='.sl'
13165 hardcode_into_libs=yes
13166 dynamic_linker="$host_os dld.sl"
13167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13173 ;;
13174 *)
13175 shrext_cmds='.sl'
13176 dynamic_linker="$host_os dld.sl"
13177 shlibpath_var=SHLIB_PATH
13178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13180 soname_spec='${libname}${release}${shared_ext}$major'
13181 ;;
13182 esac
13183 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13184 postinstall_cmds='chmod 555 $lib'
13185 ;;
9c60689e 13186
47aaa820
DWT
13187interix[3-9]*)
13188 version_type=linux
13189 need_lib_prefix=no
13190 need_version=no
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 shlibpath_overrides_runpath=no
13196 hardcode_into_libs=yes
13197 ;;
9c60689e 13198
47aaa820
DWT
13199irix5* | irix6* | nonstopux*)
13200 case $host_os in
13201 nonstopux*) version_type=nonstopux ;;
13202 *)
13203 if test "$lt_cv_prog_gnu_ld" = yes; then
13204 version_type=linux
13205 else
13206 version_type=irix
13207 fi ;;
13208 esac
13209 need_lib_prefix=no
13210 need_version=no
13211 soname_spec='${libname}${release}${shared_ext}$major'
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13213 case $host_os in
13214 irix5* | nonstopux*)
13215 libsuff= shlibsuff=
13216 ;;
13217 *)
13218 case $LD in # libtool.m4 will add one of these switches to LD
13219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13220 libsuff= shlibsuff= libmagic=32-bit;;
13221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13222 libsuff=32 shlibsuff=N32 libmagic=N32;;
13223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13225 *) libsuff= shlibsuff= libmagic=never-match;;
13226 esac
13227 ;;
13228 esac
13229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13230 shlibpath_overrides_runpath=no
13231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13233 hardcode_into_libs=yes
13234 ;;
9c60689e 13235
47aaa820
DWT
13236# No shared lib support for Linux oldld, aout, or coff.
13237linux*oldld* | linux*aout* | linux*coff*)
13238 dynamic_linker=no
13239 ;;
9c60689e 13240
47aaa820
DWT
13241# This must be Linux ELF.
13242linux* | k*bsd*-gnu | kopensolaris*-gnu)
13243 version_type=linux
13244 need_lib_prefix=no
13245 need_version=no
13246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13247 soname_spec='${libname}${release}${shared_ext}$major'
13248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 shlibpath_overrides_runpath=no
13251 # Some binutils ld are patched to set DT_RUNPATH
13252 save_LDFLAGS=$LDFLAGS
13253 save_libdir=$libdir
13254 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13255 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257/* end confdefs.h. */
9c60689e 13258
47aaa820
DWT
13259int
13260main ()
13261{
9c60689e 13262
47aaa820
DWT
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267if ac_fn_cxx_try_link "$LINENO"; then :
13268 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13269 shlibpath_overrides_runpath=yes
9c60689e 13270fi
47aaa820
DWT
13271fi
13272rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LDFLAGS=$save_LDFLAGS
13275 libdir=$save_libdir
9c60689e 13276
47aaa820
DWT
13277 # This implies no fast_install, which is unacceptable.
13278 # Some rework will be needed to allow for fast_install
13279 # before this can be enabled.
13280 hardcode_into_libs=yes
9c60689e 13281
47aaa820
DWT
13282 # Append ld.so.conf contents to the search path
13283 if test -f /etc/ld.so.conf; then
13284 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' ' '`
13285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13286 fi
9c60689e 13287
47aaa820
DWT
13288 # We used to test for /lib/ld.so.1 and disable shared libraries on
13289 # powerpc, because MkLinux only supported shared libraries with the
13290 # GNU dynamic linker. Since this was broken with cross compilers,
13291 # most powerpc-linux boxes support dynamic linking these days and
13292 # people can always --disable-shared, the test was removed, and we
13293 # assume the GNU/Linux dynamic linker is in use.
13294 dynamic_linker='GNU/Linux ld.so'
9c60689e 13295 ;;
47aaa820
DWT
13296
13297netbsdelf*-gnu)
13298 version_type=linux
13299 need_lib_prefix=no
13300 need_version=no
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=no
13305 hardcode_into_libs=yes
13306 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13307 ;;
47aaa820
DWT
13308
13309netbsd*)
13310 version_type=sunos
13311 need_lib_prefix=no
13312 need_version=no
13313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13316 dynamic_linker='NetBSD (a.out) ld.so'
13317 else
13318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13319 soname_spec='${libname}${release}${shared_ext}$major'
13320 dynamic_linker='NetBSD ld.elf_so'
13321 fi
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=yes
13324 hardcode_into_libs=yes
9c60689e 13325 ;;
9c60689e 13326
47aaa820
DWT
13327newsos6)
13328 version_type=linux
13329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=yes
13332 ;;
9c60689e 13333
47aaa820
DWT
13334*nto* | *qnx*)
13335 version_type=qnx
13336 need_lib_prefix=no
13337 need_version=no
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=no
13342 hardcode_into_libs=yes
13343 dynamic_linker='ldqnx.so'
13344 ;;
9c60689e 13345
47aaa820
DWT
13346openbsd*)
13347 version_type=sunos
13348 sys_lib_dlsearch_path_spec="/usr/lib"
13349 need_lib_prefix=no
13350 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13351 case $host_os in
13352 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13353 *) need_version=no ;;
13354 esac
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13359 case $host_os in
13360 openbsd2.[89] | openbsd2.[89].*)
13361 shlibpath_overrides_runpath=no
13362 ;;
13363 *)
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366 esac
13367 else
13368 shlibpath_overrides_runpath=yes
13369 fi
13370 ;;
9c60689e 13371
47aaa820
DWT
13372os2*)
13373 libname_spec='$name'
13374 shrext_cmds=".dll"
13375 need_lib_prefix=no
13376 library_names_spec='$libname${shared_ext} $libname.a'
13377 dynamic_linker='OS/2 ld.exe'
13378 shlibpath_var=LIBPATH
13379 ;;
9c60689e 13380
47aaa820
DWT
13381osf3* | osf4* | osf5*)
13382 version_type=osf
13383 need_lib_prefix=no
13384 need_version=no
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13389 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13390 ;;
9c60689e 13391
47aaa820
DWT
13392rdos*)
13393 dynamic_linker=no
13394 ;;
9c60689e 13395
47aaa820
DWT
13396solaris*)
13397 version_type=linux
13398 need_lib_prefix=no
13399 need_version=no
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 shlibpath_overrides_runpath=yes
13404 hardcode_into_libs=yes
13405 # ldd complains unless libraries are executable
13406 postinstall_cmds='chmod +x $lib'
13407 ;;
9c60689e 13408
47aaa820
DWT
13409sunos4*)
13410 version_type=sunos
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13412 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13413 shlibpath_var=LD_LIBRARY_PATH
13414 shlibpath_overrides_runpath=yes
13415 if test "$with_gnu_ld" = yes; then
13416 need_lib_prefix=no
13417 fi
13418 need_version=yes
13419 ;;
9c60689e 13420
47aaa820
DWT
13421sysv4 | sysv4.3*)
13422 version_type=linux
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424 soname_spec='${libname}${release}${shared_ext}$major'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 case $host_vendor in
13427 sni)
13428 shlibpath_overrides_runpath=no
13429 need_lib_prefix=no
13430 runpath_var=LD_RUN_PATH
9c60689e 13431 ;;
47aaa820
DWT
13432 siemens)
13433 need_lib_prefix=no
9c60689e 13434 ;;
47aaa820
DWT
13435 motorola)
13436 need_lib_prefix=no
13437 need_version=no
13438 shlibpath_overrides_runpath=no
13439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13440 ;;
13441 esac
9c60689e 13442 ;;
9c60689e 13443
47aaa820
DWT
13444sysv4*MP*)
13445 if test -d /usr/nec ;then
13446 version_type=linux
13447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13448 soname_spec='$libname${shared_ext}.$major'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 fi
13451 ;;
9c60689e 13452
47aaa820
DWT
13453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13454 version_type=freebsd-elf
13455 need_lib_prefix=no
13456 need_version=no
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes
13461 hardcode_into_libs=yes
13462 if test "$with_gnu_ld" = yes; then
13463 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13464 else
13465 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13466 case $host_os in
13467 sco3.2v5*)
13468 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13469 ;;
13470 esac
13471 fi
13472 sys_lib_dlsearch_path_spec='/usr/lib'
13473 ;;
9c60689e 13474
47aaa820
DWT
13475tpf*)
13476 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13477 version_type=linux
13478 need_lib_prefix=no
13479 need_version=no
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=no
13483 hardcode_into_libs=yes
13484 ;;
9c60689e 13485
47aaa820
DWT
13486uts4*)
13487 version_type=linux
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 ;;
9c60689e 13492
47aaa820
DWT
13493*)
13494 dynamic_linker=no
13495 ;;
13496esac
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13498$as_echo "$dynamic_linker" >&6; }
13499test "$dynamic_linker" = no && can_build_shared=no
9c60689e 13500
47aaa820
DWT
13501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13502if test "$GCC" = yes; then
13503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13504fi
9c60689e 13505
47aaa820
DWT
13506if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13507 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13508fi
13509if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13510 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13511fi
9c60689e
DWT
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
47aaa820
DWT
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13549$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13550hardcode_action_CXX=
13551if test -n "$hardcode_libdir_flag_spec_CXX" ||
13552 test -n "$runpath_var_CXX" ||
13553 test "X$hardcode_automatic_CXX" = "Xyes" ; then
9c60689e 13554
47aaa820
DWT
13555 # We can hardcode non-existent directories.
13556 if test "$hardcode_direct_CXX" != no &&
13557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13558 # have to relink, otherwise we might link with an installed library
13559 # when we should be linking with a yet-to-be-installed one
13560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13561 test "$hardcode_minus_L_CXX" != no; then
13562 # Linking always hardcodes the temporary library directory.
13563 hardcode_action_CXX=relink
13564 else
13565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13566 hardcode_action_CXX=immediate
13567 fi
13568else
13569 # We cannot hardcode anything, or else we can only hardcode existing
13570 # directories.
13571 hardcode_action_CXX=unsupported
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13574$as_echo "$hardcode_action_CXX" >&6; }
9c60689e 13575
47aaa820
DWT
13576if test "$hardcode_action_CXX" = relink ||
13577 test "$inherit_rpath_CXX" = yes; then
13578 # Fast installation is not supported
13579 enable_fast_install=no
13580elif test "$shlibpath_overrides_runpath" = yes ||
13581 test "$enable_shared" = no; then
13582 # Fast installation is not necessary
13583 enable_fast_install=needless
13584fi
9c60689e
DWT
13585
13586
13587
13588
13589
13590
13591
47aaa820 13592 fi # test -n "$compiler"
9c60689e 13593
47aaa820
DWT
13594 CC=$lt_save_CC
13595 LDCXX=$LD
13596 LD=$lt_save_LD
13597 GCC=$lt_save_GCC
13598 with_gnu_ld=$lt_save_with_gnu_ld
13599 lt_cv_path_LDCXX=$lt_cv_path_LD
13600 lt_cv_path_LD=$lt_save_path_LD
13601 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13602 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13603fi # test "$_lt_caught_CXX_error" != yes
9c60689e 13604
47aaa820
DWT
13605ac_ext=c
13606ac_cpp='$CPP $CPPFLAGS'
13607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13609ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
13610
13611
47aaa820
DWT
13612ac_ext=cpp
13613ac_cpp='$CXXCPP $CPPFLAGS'
13614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13617
47aaa820
DWT
13618for ac_prog in 'bison -y' byacc
13619do
13620 # Extract the first word of "$ac_prog", so it can be a program name with args.
13621set dummy $ac_prog; ac_word=$2
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if test "${ac_cv_prog_YACC+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626else
13627 if test -n "$YACC"; then
13628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13629else
13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $PATH
13632do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_YACC="$ac_prog"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 break 2
13640 fi
13641done
13642 done
13643IFS=$as_save_IFS
9c60689e 13644
47aaa820
DWT
13645fi
13646fi
13647YACC=$ac_cv_prog_YACC
13648if test -n "$YACC"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13650$as_echo "$YACC" >&6; }
13651else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653$as_echo "no" >&6; }
13654fi
9c60689e
DWT
13655
13656
47aaa820
DWT
13657 test -n "$YACC" && break
13658done
13659test -n "$YACC" || YACC="yacc"
9c60689e 13660
9c60689e 13661
9c60689e 13662
9c60689e 13663
9c60689e 13664
47aaa820
DWT
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13666$as_echo_n "checking if bison is the parser generator... " >&6; }
13667if test "${ax_cv_prog_bison+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669else
9c60689e 13670
47aaa820 13671 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
9c60689e 13672
47aaa820 13673 ax_cv_prog_bison=yes
9c60689e 13674
47aaa820 13675else
9c60689e 13676
47aaa820 13677 ax_cv_prog_bison=no
9c60689e 13678
47aaa820 13679fi
9c60689e 13680
47aaa820
DWT
13681fi
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13683$as_echo "$ax_cv_prog_bison" >&6; }
13684 if test "$ax_cv_prog_bison" = yes; then :
9c60689e 13685
47aaa820 13686 :
9c60689e 13687
47aaa820
DWT
13688 BISON=`echo $YACC | $SED -e 's/ -y//'`
13689 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
9c60689e 13690
9c60689e 13691
47aaa820 13692else
9c60689e 13693
47aaa820
DWT
13694 :
13695 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
9c60689e 13696
47aaa820 13697fi
9c60689e 13698
47aaa820
DWT
13699for ac_prog in gawk mawk nawk awk
13700do
13701 # Extract the first word of "$ac_prog", so it can be a program name with args.
13702set dummy $ac_prog; ac_word=$2
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704$as_echo_n "checking for $ac_word... " >&6; }
13705if test "${ac_cv_prog_AWK+set}" = set; then :
13706 $as_echo_n "(cached) " >&6
13707else
13708 if test -n "$AWK"; then
13709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13710else
13711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712for as_dir in $PATH
13713do
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13718 ac_cv_prog_AWK="$ac_prog"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
9c60689e 13721 fi
47aaa820
DWT
13722done
13723 done
13724IFS=$as_save_IFS
9c60689e 13725
47aaa820
DWT
13726fi
13727fi
13728AWK=$ac_cv_prog_AWK
13729if test -n "$AWK"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13731$as_echo "$AWK" >&6; }
13732else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734$as_echo "no" >&6; }
13735fi
9c60689e 13736
9c60689e 13737
47aaa820
DWT
13738 test -n "$AWK" && break
13739done
9c60689e 13740
47aaa820
DWT
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
13742$as_echo_n "checking if bison is >= 2.4... " >&6; }
13743as_arg_v1=$BISON_VERSION
13744as_arg_v2=2.4
13745awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13746case $? in #(
13747 1) :
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13750$as_echo "no" >&6; }
13751 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
13752 ;; #(
13753 0) :
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13755$as_echo "yes" >&6; } ;; #(
13756 2) :
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13758$as_echo "yes" >&6; } ;; #(
13759 *) :
13760 ;;
13761esac
13762
13763# expand $ac_aux_dir to an absolute path
13764am_aux_dir=`cd $ac_aux_dir && pwd`
13765
13766if test x"${MISSING+set}" != xset; then
13767 case $am_aux_dir in
13768 *\ * | *\ *)
13769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9c60689e 13770 *)
47aaa820 13771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9c60689e 13772 esac
47aaa820
DWT
13773fi
13774# Use eval to expand $SHELL
13775if eval "$MISSING --run true"; then
13776 am_missing_run="$MISSING --run "
13777else
13778 am_missing_run=
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13780$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13781fi
13782
13783for ac_prog in flex lex
13784do
13785 # Extract the first word of "$ac_prog", so it can be a program name with args.
13786set dummy $ac_prog; ac_word=$2
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788$as_echo_n "checking for $ac_word... " >&6; }
13789if test "${ac_cv_prog_LEX+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791else
13792 if test -n "$LEX"; then
13793 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13794else
13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802 ac_cv_prog_LEX="$ac_prog"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13805 fi
13806done
13807 done
13808IFS=$as_save_IFS
9c60689e 13809
47aaa820
DWT
13810fi
13811fi
13812LEX=$ac_cv_prog_LEX
13813if test -n "$LEX"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13815$as_echo "$LEX" >&6; }
13816else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819fi
9c60689e 13820
9c60689e 13821
47aaa820
DWT
13822 test -n "$LEX" && break
13823done
13824test -n "$LEX" || LEX=":"
13825
13826if test "x$LEX" != "x:"; then
13827 cat >conftest.l <<_ACEOF
13828%%
13829a { ECHO; }
13830b { REJECT; }
13831c { yymore (); }
13832d { yyless (1); }
13833e { yyless (input () != 0); }
13834f { unput (yytext[0]); }
13835. { BEGIN INITIAL; }
13836%%
13837#ifdef YYTEXT_POINTER
13838extern char *yytext;
13839#endif
9c60689e 13840int
47aaa820 13841main (void)
9c60689e 13842{
47aaa820 13843 return ! yylex () + ! yywrap ();
9c60689e
DWT
13844}
13845_ACEOF
47aaa820
DWT
13846{ { ac_try="$LEX conftest.l"
13847case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13852$as_echo "$ac_try_echo"; } >&5
13853 (eval "$LEX conftest.l") 2>&5
13854 ac_status=$?
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13858$as_echo_n "checking lex output file root... " >&6; }
13859if test "${ac_cv_prog_lex_root+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13861else
13862
13863if test -f lex.yy.c; then
13864 ac_cv_prog_lex_root=lex.yy
13865elif test -f lexyy.c; then
13866 ac_cv_prog_lex_root=lexyy
13867else
13868 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13869fi
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13872$as_echo "$ac_cv_prog_lex_root" >&6; }
13873LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13874
13875if test -z "${LEXLIB+set}"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13877$as_echo_n "checking lex library... " >&6; }
13878if test "${ac_cv_lib_lex+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880else
13881
13882 ac_save_LIBS=$LIBS
13883 ac_cv_lib_lex='none needed'
13884 for ac_lib in '' -lfl -ll; do
13885 LIBS="$ac_lib $ac_save_LIBS"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887/* end confdefs.h. */
13888`cat $LEX_OUTPUT_ROOT.c`
13889_ACEOF
9c60689e 13890if ac_fn_cxx_try_link "$LINENO"; then :
47aaa820 13891 ac_cv_lib_lex=$ac_lib
9c60689e 13892fi
47aaa820
DWT
13893rm -f core conftest.err conftest.$ac_objext \
13894 conftest$ac_exeext conftest.$ac_ext
13895 test "$ac_cv_lib_lex" != 'none needed' && break
13896 done
13897 LIBS=$ac_save_LIBS
13898
13899fi
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13901$as_echo "$ac_cv_lib_lex" >&6; }
13902 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13903fi
13904
13905
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13907$as_echo_n "checking whether yytext is a pointer... " >&6; }
13908if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910else
13911 # POSIX says lex can declare yytext either as a pointer or an array; the
13912# default is implementation-dependent. Figure out which it is, since
13913# not all implementations provide the %pointer and %array declarations.
13914ac_cv_prog_lex_yytext_pointer=no
13915ac_save_LIBS=$LIBS
13916LIBS="$LEXLIB $ac_save_LIBS"
13917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h. */
13919#define YYTEXT_POINTER 1
13920`cat $LEX_OUTPUT_ROOT.c`
13921_ACEOF
13922if ac_fn_cxx_try_link "$LINENO"; then :
13923 ac_cv_prog_lex_yytext_pointer=yes
9c60689e
DWT
13924fi
13925rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
47aaa820 13927LIBS=$ac_save_LIBS
9c60689e 13928
47aaa820
DWT
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13931$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13932if test $ac_cv_prog_lex_yytext_pointer = yes; then
9c60689e 13933
47aaa820 13934$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9c60689e 13935
47aaa820
DWT
13936fi
13937rm -f conftest.l $LEX_OUTPUT_ROOT.c
9c60689e 13938
47aaa820
DWT
13939fi
13940if test "$LEX" = :; then
13941 LEX=${am_missing_run}flex
13942fi
9c60689e 13943
9c60689e 13944
9c60689e 13945
9c60689e 13946
47aaa820
DWT
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
13948$as_echo_n "checking if flex is the lexer generator... " >&6; }
13949if test "${ax_cv_prog_flex+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951else
13952
13953 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
13954
13955 ax_cv_prog_flex=yes
13956
13957else
13958
13959 ax_cv_prog_flex=no
13960
13961fi
13962
13963fi
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
13965$as_echo "$ax_cv_prog_flex" >&6; }
13966 if test "$ax_cv_prog_flex" = yes; then :
13967
13968 :
9c60689e 13969
47aaa820
DWT
13970 FLEX=$LEX
13971 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
9c60689e 13972
9c60689e 13973
47aaa820 13974else
9c60689e 13975
47aaa820
DWT
13976 :
13977 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 13978
47aaa820 13979fi
9c60689e 13980
47aaa820
DWT
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
13982$as_echo_n "checking if flex is >= 2.5.33... " >&6; }
13983as_arg_v1=$FLEX_VERSION
13984as_arg_v2=2.5.33
13985awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13986case $? in #(
13987 1) :
9c60689e 13988
47aaa820
DWT
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990$as_echo "no" >&6; }
13991 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
13992 ;; #(
13993 0) :
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13995$as_echo "yes" >&6; } ;; #(
13996 2) :
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13998$as_echo "yes" >&6; } ;; #(
13999 *) :
14000 ;;
14001esac
14002
14003for ac_prog in bash
14004do
14005 # Extract the first word of "$ac_prog", so it can be a program name with args.
14006set dummy $ac_prog; ac_word=$2
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008$as_echo_n "checking for $ac_word... " >&6; }
14009if test "${ac_cv_prog__BASH+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011else
14012 if test -n "$_BASH"; then
14013 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14014else
14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016for as_dir in $PATH
14017do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog__BASH="$ac_prog"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
9c60689e 14025 fi
47aaa820
DWT
14026done
14027 done
14028IFS=$as_save_IFS
9c60689e 14029
47aaa820
DWT
14030fi
14031fi
14032_BASH=$ac_cv_prog__BASH
14033if test -n "$_BASH"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14035$as_echo "$_BASH" >&6; }
14036else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038$as_echo "no" >&6; }
14039fi
14040
14041
14042 test -n "$_BASH" && break
14043done
14044
14045for ac_prog in gperf
14046do
14047 # Extract the first word of "$ac_prog", so it can be a program name with args.
14048set dummy $ac_prog; ac_word=$2
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050$as_echo_n "checking for $ac_word... " >&6; }
14051if test "${ac_cv_prog_GPERF+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14053else
14054 if test -n "$GPERF"; then
14055 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14056else
14057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058for as_dir in $PATH
14059do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_GPERF="$ac_prog"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
9c60689e 14067 fi
47aaa820
DWT
14068done
14069 done
14070IFS=$as_save_IFS
9c60689e 14071
47aaa820
DWT
14072fi
14073fi
14074GPERF=$ac_cv_prog_GPERF
14075if test -n "$GPERF"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14077$as_echo "$GPERF" >&6; }
14078else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080$as_echo "no" >&6; }
14081fi
9c60689e 14082
9c60689e 14083
47aaa820
DWT
14084 test -n "$GPERF" && break
14085done
14086
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14088$as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14089GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14090as_arg_v1=$GPERF_VERSION
14091as_arg_v2=3.0.3
14092awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14093case $? in #(
14094 1) :
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097$as_echo "no" >&6; }
14098 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14099 ;; #(
14100 0) :
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14102$as_echo "yes" >&6; } ;; #(
14103 2) :
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14105$as_echo "yes" >&6; } ;; #(
14106 *) :
14107 ;;
9c60689e 14108esac
47aaa820
DWT
14109for ac_prog in time
14110do
14111 # Extract the first word of "$ac_prog", so it can be a program name with args.
14112set dummy $ac_prog; ac_word=$2
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14114$as_echo_n "checking for $ac_word... " >&6; }
14115if test "${ac_cv_prog_TIME+set}" = set; then :
14116 $as_echo_n "(cached) " >&6
14117else
14118 if test -n "$TIME"; then
14119 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14120else
14121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122for as_dir in $PATH
14123do
14124 IFS=$as_save_IFS
14125 test -z "$as_dir" && as_dir=.
14126 for ac_exec_ext in '' $ac_executable_extensions; do
14127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14128 ac_cv_prog_TIME="$ac_prog"
14129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14130 break 2
14131 fi
14132done
14133 done
14134IFS=$as_save_IFS
9c60689e 14135
9c60689e 14136fi
9c60689e 14137fi
47aaa820
DWT
14138TIME=$ac_cv_prog_TIME
14139if test -n "$TIME"; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14141$as_echo "$TIME" >&6; }
14142else
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144$as_echo "no" >&6; }
9c60689e
DWT
14145fi
14146
14147
47aaa820
DWT
14148 test -n "$TIME" && break
14149done
9c60689e
DWT
14150
14151
47aaa820 14152 apr_found="no"
9c60689e 14153
47aaa820
DWT
14154 if test "$target_os" = "os2-emx"; then
14155 # Scripts don't pass test -x on OS/2
14156 TEST_X="test -f"
14157 else
14158 TEST_X="test -x"
14159 fi
9c60689e 14160
47aaa820 14161 acceptable_majors="1"
9c60689e 14162
47aaa820
DWT
14163 apr_temp_acceptable_apr_config=""
14164 for apr_temp_major in $acceptable_majors
14165 do
14166 case $apr_temp_major in
14167 0)
14168 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14169 ;;
14170 *)
14171 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14172 ;;
14173 esac
14174 done
9c60689e 14175
47aaa820
DWT
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14177$as_echo_n "checking for APR... " >&6; }
9c60689e 14178
47aaa820
DWT
14179# Check whether --with-apr was given.
14180if test "${with_apr+set}" = set; then :
14181 withval=$with_apr;
14182 if test "$withval" = "no" || test "$withval" = "yes"; then
14183 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14184 fi
9c60689e 14185
47aaa820
DWT
14186 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14187 do
14188 for lookdir in "$withval/bin" "$withval"
14189 do
14190 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14191 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 14192
47aaa820
DWT
14193 apr_found="yes"
14194 break 2
14195 fi
14196 done
14197 done
9c60689e 14198
47aaa820
DWT
14199 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14200 apr_config="$withval"
14201 apr_found="yes"
14202 fi
9c60689e 14203
47aaa820
DWT
14204 if test "$apr_found" != "yes"; then
14205 as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
14206 fi
9c60689e 14207
47aaa820 14208else
9c60689e 14209
47aaa820
DWT
14210 if test -n "1" && test "1" = "1"; then
14211 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14212 do
14213 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14214 apr_config="$apr_temp_apr_config_file"
9c60689e 14215
47aaa820
DWT
14216 apr_found="yes"
14217 break
14218 else
14219 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14220 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14221 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 14222
47aaa820
DWT
14223 apr_found="yes"
14224 break 2
14225 fi
14226 done
14227 fi
14228 done
14229 fi
14230 if test "$apr_found" = "no" && test -d ""; then
14231 apr_temp_abs_srcdir="`cd && pwd`"
14232 apr_found="reconfig"
14233 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14234 case $apr_bundled_major in
14235 "")
14236 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14237 ;;
14238 0)
14239 apr_temp_apr_config_file="apr-config"
14240 ;;
14241 *)
14242 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14243 ;;
14244 esac
14245 if test -n ""; then
14246 apr_config="/$apr_temp_apr_config_file"
14247 else
14248 apr_config="/$apr_temp_apr_config_file"
14249 fi
14250 fi
9c60689e 14251
47aaa820 14252fi
9c60689e
DWT
14253
14254
47aaa820
DWT
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14256$as_echo "$apr_found" >&6; }
9c60689e 14257
47aaa820
DWT
14258case $apr_found in #(
14259 yes) :
9c60689e
DWT
14260
14261
47aaa820
DWT
14262 for element in `$apr_config --includes`; do
14263 haveit=
14264 for x in $CPPFLAGS; do
9c60689e 14265
47aaa820
DWT
14266 acl_save_prefix="$prefix"
14267 prefix="$acl_final_prefix"
14268 acl_save_exec_prefix="$exec_prefix"
14269 exec_prefix="$acl_final_exec_prefix"
14270 eval x=\"$x\"
14271 exec_prefix="$acl_save_exec_prefix"
14272 prefix="$acl_save_prefix"
9c60689e 14273
47aaa820
DWT
14274 if test "X$x" = "X$element"; then
14275 haveit=yes
14276 break
14277 fi
14278 done
14279 if test -z "$haveit"; then
14280 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14281 fi
14282 done
9c60689e 14283
47aaa820 14284 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 14285
47aaa820
DWT
14286 ;; #(
14287 *) :
14288 as_fn_error "You need apr" "$LINENO" 5 ;;
14289esac
9c60689e
DWT
14290
14291
47aaa820
DWT
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14293$as_echo_n "checking for a readline compatible library... " >&6; }
14294if test "${vl_cv_lib_readline+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296else
9c60689e 14297
47aaa820
DWT
14298 ORIG_LIBS="$LIBS"
14299 for readline_lib in readline edit editline; do
14300 for termcap_lib in "" termcap curses ncurses; do
14301 if test -z "$termcap_lib"; then
14302 TRY_LIB="-l$readline_lib"
14303 else
14304 TRY_LIB="-l$readline_lib -l$termcap_lib"
14305 fi
14306 LIBS="$ORIG_LIBS $TRY_LIB"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308/* end confdefs.h. */
9c60689e 14309
47aaa820
DWT
14310/* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313#ifdef __cplusplus
14314extern "C"
14315#endif
14316char readline ();
14317int
14318main ()
14319{
14320return readline ();
14321 ;
14322 return 0;
14323}
14324_ACEOF
14325if ac_fn_cxx_try_link "$LINENO"; then :
14326 vl_cv_lib_readline="$TRY_LIB"
14327fi
14328rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 if test -n "$vl_cv_lib_readline"; then
14331 break
14332 fi
14333 done
14334 if test -n "$vl_cv_lib_readline"; then
14335 break
14336 fi
14337 done
14338 if test -z "$vl_cv_lib_readline"; then
14339 vl_cv_lib_readline="no"
14340 LIBS="$ORIG_LIBS"
14341 fi
9c60689e 14342
47aaa820
DWT
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14345$as_echo "$vl_cv_lib_readline" >&6; }
9c60689e 14346
47aaa820 14347 if test "$vl_cv_lib_readline" != "no"; then
9c60689e 14348
47aaa820 14349$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9c60689e 14350
47aaa820
DWT
14351 for ac_header in readline.h readline/readline.h
14352do :
14353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14354ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14355eval as_val=\$$as_ac_Header
14356 if test "x$as_val" = x""yes; then :
14357 cat >>confdefs.h <<_ACEOF
14358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14359_ACEOF
9c60689e 14360
9c60689e
DWT
14361fi
14362
47aaa820 14363done
9c60689e 14364
47aaa820
DWT
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14366$as_echo_n "checking whether readline supports history... " >&6; }
14367if test "${vl_cv_lib_readline_history+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14369else
9c60689e 14370
47aaa820
DWT
14371 vl_cv_lib_readline_history="no"
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373/* end confdefs.h. */
9c60689e 14374
47aaa820
DWT
14375/* Override any GCC internal prototype to avoid an error.
14376 Use char because int might match the return type of a GCC
14377 builtin and then its argument prototype would still apply. */
14378#ifdef __cplusplus
14379extern "C"
14380#endif
14381char add_history ();
14382int
14383main ()
14384{
14385return add_history ();
14386 ;
14387 return 0;
14388}
14389_ACEOF
14390if ac_fn_cxx_try_link "$LINENO"; then :
14391 vl_cv_lib_readline_history="yes"
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
9c60689e 14395
47aaa820
DWT
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14398$as_echo "$vl_cv_lib_readline_history" >&6; }
14399 if test "$vl_cv_lib_readline_history" = "yes"; then
9c60689e 14400
47aaa820 14401$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
9c60689e 14402
47aaa820
DWT
14403 for ac_header in history.h readline/history.h
14404do :
14405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14406ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14407eval as_val=\$$as_ac_Header
14408 if test "x$as_val" = x""yes; then :
14409 cat >>confdefs.h <<_ACEOF
14410#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14411_ACEOF
9c60689e 14412
47aaa820 14413fi
9c60689e 14414
47aaa820 14415done
9c60689e 14416
47aaa820
DWT
14417 fi
14418 fi
9c60689e
DWT
14419
14420# Find a good install program. We prefer a C program (faster),
14421# so one script is as good as another. But avoid the broken or
14422# incompatible versions:
14423# SysV /etc/install, /usr/sbin/install
14424# SunOS /usr/etc/install
14425# IRIX /sbin/install
14426# AIX /bin/install
14427# AmigaOS /C/install, which installs bootblocks on floppy discs
14428# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14429# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14430# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14431# OS/2's system install, which has a completely different semantic
14432# ./install, which can be erroneously created by make from ./install.sh.
14433# Reject install programs that cannot install multiple files.
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14435$as_echo_n "checking for a BSD-compatible install... " >&6; }
14436if test -z "$INSTALL"; then
14437if test "${ac_cv_path_install+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 # Account for people who put trailing slashes in PATH elements.
14446case $as_dir/ in #((
14447 ./ | .// | /[cC]/* | \
14448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14449 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14450 /usr/ucb/* ) ;;
14451 *)
14452 # OSF1 and SCO ODT 3.0 have their own names for install.
14453 # Don't use installbsd from OSF since it installs stuff as root
14454 # by default.
14455 for ac_prog in ginstall scoinst install; do
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14458 if test $ac_prog = install &&
14459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14460 # AIX install. It has an incompatible calling convention.
14461 :
14462 elif test $ac_prog = install &&
14463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14464 # program-specific install script used by HP pwplus--don't use.
14465 :
14466 else
14467 rm -rf conftest.one conftest.two conftest.dir
14468 echo one > conftest.one
14469 echo two > conftest.two
14470 mkdir conftest.dir
14471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14472 test -s conftest.one && test -s conftest.two &&
14473 test -s conftest.dir/conftest.one &&
14474 test -s conftest.dir/conftest.two
14475 then
14476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14477 break 3
14478 fi
14479 fi
14480 fi
14481 done
14482 done
14483 ;;
14484esac
14485
14486 done
14487IFS=$as_save_IFS
14488
14489rm -rf conftest.one conftest.two conftest.dir
14490
14491fi
14492 if test "${ac_cv_path_install+set}" = set; then
14493 INSTALL=$ac_cv_path_install
14494 else
14495 # As a last resort, use the slow shell script. Don't cache a
14496 # value for INSTALL within a source directory, because that will
14497 # break other packages using the cache if that directory is
14498 # removed, or if the value is a relative name.
14499 INSTALL=$ac_install_sh
14500 fi
14501fi
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14503$as_echo "$INSTALL" >&6; }
14504
14505# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14506# It thinks the first close brace ends the variable substitution.
14507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14508
14509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14510
14511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14512
94690cff
DWT
14513ac_ext=c
14514ac_cpp='$CPP $CPPFLAGS'
14515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518
9c60689e
DWT
14519
14520 if test "X$prefix" = "XNONE"; then
14521 acl_final_prefix="$ac_default_prefix"
14522 else
14523 acl_final_prefix="$prefix"
14524 fi
14525 if test "X$exec_prefix" = "XNONE"; then
14526 acl_final_exec_prefix='${prefix}'
14527 else
14528 acl_final_exec_prefix="$exec_prefix"
14529 fi
14530 acl_save_prefix="$prefix"
14531 prefix="$acl_final_prefix"
14532 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14533 prefix="$acl_save_prefix"
14534
14535
14536# Check whether --with-gnu-ld was given.
14537if test "${with_gnu_ld+set}" = set; then :
14538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14539else
14540 with_gnu_ld=no
14541fi
14542
14543# Prepare PATH_SEPARATOR.
14544# The user is always right.
14545if test "${PATH_SEPARATOR+set}" != set; then
14546 echo "#! /bin/sh" >conf$$.sh
14547 echo "exit 0" >>conf$$.sh
14548 chmod +x conf$$.sh
14549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14550 PATH_SEPARATOR=';'
14551 else
14552 PATH_SEPARATOR=:
14553 fi
14554 rm -f conf$$.sh
14555fi
14556ac_prog=ld
14557if test "$GCC" = yes; then
14558 # Check if gcc -print-prog-name=ld gives a path.
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14560$as_echo_n "checking for ld used by GCC... " >&6; }
14561 case $host in
14562 *-*-mingw*)
14563 # gcc leaves a trailing carriage return which upsets mingw
14564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14565 *)
14566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14567 esac
14568 case $ac_prog in
14569 # Accept absolute paths.
14570 [\\/]* | [A-Za-z]:[\\/]*)
14571 re_direlt='/[^/][^/]*/\.\./'
14572 # Canonicalize the path of ld
14573 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14574 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14575 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14576 done
14577 test -z "$LD" && LD="$ac_prog"
14578 ;;
14579 "")
14580 # If it fails, then pretend we aren't using GCC.
14581 ac_prog=ld
14582 ;;
14583 *)
14584 # If it is relative, then search for the first ld in PATH.
14585 with_gnu_ld=unknown
14586 ;;
14587 esac
14588elif test "$with_gnu_ld" = yes; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14590$as_echo_n "checking for GNU ld... " >&6; }
14591else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14593$as_echo_n "checking for non-GNU ld... " >&6; }
14594fi
14595if test "${acl_cv_path_LD+set}" = set; then :
14596 $as_echo_n "(cached) " >&6
14597else
14598 if test -z "$LD"; then
14599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14600 for ac_dir in $PATH; do
14601 test -z "$ac_dir" && ac_dir=.
14602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14603 acl_cv_path_LD="$ac_dir/$ac_prog"
14604 # Check to see if the program is GNU ld. I'd rather use --version,
14605 # but apparently some GNU ld's only accept -v.
14606 # Break only if it was the GNU/non-GNU ld that we prefer.
14607 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14608 *GNU* | *'with BFD'*)
14609 test "$with_gnu_ld" != no && break ;;
14610 *)
14611 test "$with_gnu_ld" != yes && break ;;
14612 esac
14613 fi
14614 done
14615 IFS="$ac_save_ifs"
14616else
14617 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14618fi
14619fi
14620
14621LD="$acl_cv_path_LD"
14622if test -n "$LD"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14624$as_echo "$LD" >&6; }
14625else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627$as_echo "no" >&6; }
14628fi
14629test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14631$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14632if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14633 $as_echo_n "(cached) " >&6
14634else
14635 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14636case `$LD -v 2>&1 </dev/null` in
14637*GNU* | *'with BFD'*)
14638 acl_cv_prog_gnu_ld=yes ;;
14639*)
14640 acl_cv_prog_gnu_ld=no ;;
14641esac
14642fi
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14644$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14645with_gnu_ld=$acl_cv_prog_gnu_ld
14646
14647
14648
14649
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14651$as_echo_n "checking for shared library run path origin... " >&6; }
14652if test "${acl_cv_rpath+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14654else
14655
14656 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14657 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14658 . ./conftest.sh
14659 rm -f ./conftest.sh
14660 acl_cv_rpath=done
14661
14662fi
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14664$as_echo "$acl_cv_rpath" >&6; }
14665 wl="$acl_cv_wl"
14666 acl_libext="$acl_cv_libext"
14667 acl_shlibext="$acl_cv_shlibext"
14668 acl_libname_spec="$acl_cv_libname_spec"
14669 acl_library_names_spec="$acl_cv_library_names_spec"
14670 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14671 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14672 acl_hardcode_direct="$acl_cv_hardcode_direct"
14673 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14674 # Check whether --enable-rpath was given.
14675if test "${enable_rpath+set}" = set; then :
14676 enableval=$enable_rpath; :
14677else
14678 enable_rpath=yes
14679fi
14680
14681
14682
14683 acl_libdirstem=lib
14684 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14685 if test -n "$searchpath"; then
14686 acl_save_IFS="${IFS= }"; IFS=":"
14687 for searchdir in $searchpath; do
14688 if test -d "$searchdir"; then
14689 case "$searchdir" in
14690 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14691 *) searchdir=`cd "$searchdir" && pwd`
14692 case "$searchdir" in
14693 */lib64 ) acl_libdirstem=lib64 ;;
14694 esac ;;
14695 esac
14696 fi
14697 done
14698 IFS="$acl_save_IFS"
14699 fi
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 use_additional=yes
14710
14711 acl_save_prefix="$prefix"
14712 prefix="$acl_final_prefix"
14713 acl_save_exec_prefix="$exec_prefix"
14714 exec_prefix="$acl_final_exec_prefix"
14715
14716 eval additional_includedir=\"$includedir\"
14717 eval additional_libdir=\"$libdir\"
14718
14719 exec_prefix="$acl_save_exec_prefix"
14720 prefix="$acl_save_prefix"
14721
14722
14723# Check whether --with-libiconv-prefix was given.
14724if test "${with_libiconv_prefix+set}" = set; then :
14725 withval=$with_libiconv_prefix;
14726 if test "X$withval" = "Xno"; then
14727 use_additional=no
14728 else
14729 if test "X$withval" = "X"; then
14730
14731 acl_save_prefix="$prefix"
14732 prefix="$acl_final_prefix"
14733 acl_save_exec_prefix="$exec_prefix"
14734 exec_prefix="$acl_final_exec_prefix"
14735
14736 eval additional_includedir=\"$includedir\"
14737 eval additional_libdir=\"$libdir\"
14738
14739 exec_prefix="$acl_save_exec_prefix"
14740 prefix="$acl_save_prefix"
14741
14742 else
14743 additional_includedir="$withval/include"
14744 additional_libdir="$withval/$acl_libdirstem"
14745 fi
14746 fi
14747
14748fi
14749
14750 LIBICONV=
14751 LTLIBICONV=
14752 INCICONV=
14753 LIBICONV_PREFIX=
14754 rpathdirs=
14755 ltrpathdirs=
14756 names_already_handled=
14757 names_next_round='iconv '
14758 while test -n "$names_next_round"; do
14759 names_this_round="$names_next_round"
14760 names_next_round=
14761 for name in $names_this_round; do
14762 already_handled=
14763 for n in $names_already_handled; do
14764 if test "$n" = "$name"; then
14765 already_handled=yes
14766 break
14767 fi
14768 done
14769 if test -z "$already_handled"; then
14770 names_already_handled="$names_already_handled $name"
14771 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14772 eval value=\"\$HAVE_LIB$uppername\"
14773 if test -n "$value"; then
14774 if test "$value" = yes; then
14775 eval value=\"\$LIB$uppername\"
14776 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14777 eval value=\"\$LTLIB$uppername\"
14778 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14779 else
14780 :
14781 fi
14782 else
14783 found_dir=
14784 found_la=
14785 found_so=
14786 found_a=
14787 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14788 if test -n "$acl_shlibext"; then
14789 shrext=".$acl_shlibext" # typically: shrext=.so
14790 else
14791 shrext=
14792 fi
14793 if test $use_additional = yes; then
14794 dir="$additional_libdir"
14795 if test -n "$acl_shlibext"; then
14796 if test -f "$dir/$libname$shrext"; then
14797 found_dir="$dir"
14798 found_so="$dir/$libname$shrext"
14799 else
14800 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14801 ver=`(cd "$dir" && \
14802 for f in "$libname$shrext".*; do echo "$f"; done \
14803 | sed -e "s,^$libname$shrext\\\\.,," \
14804 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14805 | sed 1q ) 2>/dev/null`
14806 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14807 found_dir="$dir"
14808 found_so="$dir/$libname$shrext.$ver"
14809 fi
14810 else
14811 eval library_names=\"$acl_library_names_spec\"
14812 for f in $library_names; do
14813 if test -f "$dir/$f"; then
14814 found_dir="$dir"
14815 found_so="$dir/$f"
14816 break
14817 fi
14818 done
14819 fi
14820 fi
14821 fi
14822 if test "X$found_dir" = "X"; then
14823 if test -f "$dir/$libname.$acl_libext"; then
14824 found_dir="$dir"
14825 found_a="$dir/$libname.$acl_libext"
14826 fi
14827 fi
14828 if test "X$found_dir" != "X"; then
14829 if test -f "$dir/$libname.la"; then
14830 found_la="$dir/$libname.la"
14831 fi
14832 fi
14833 fi
14834 if test "X$found_dir" = "X"; then
14835 for x in $LDFLAGS $LTLIBICONV; do
14836
14837 acl_save_prefix="$prefix"
14838 prefix="$acl_final_prefix"
14839 acl_save_exec_prefix="$exec_prefix"
14840 exec_prefix="$acl_final_exec_prefix"
14841 eval x=\"$x\"
14842 exec_prefix="$acl_save_exec_prefix"
14843 prefix="$acl_save_prefix"
14844
14845 case "$x" in
14846 -L*)
14847 dir=`echo "X$x" | sed -e 's/^X-L//'`
14848 if test -n "$acl_shlibext"; then
14849 if test -f "$dir/$libname$shrext"; then
14850 found_dir="$dir"
14851 found_so="$dir/$libname$shrext"
14852 else
14853 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14854 ver=`(cd "$dir" && \
14855 for f in "$libname$shrext".*; do echo "$f"; done \
14856 | sed -e "s,^$libname$shrext\\\\.,," \
14857 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14858 | sed 1q ) 2>/dev/null`
14859 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14860 found_dir="$dir"
14861 found_so="$dir/$libname$shrext.$ver"
14862 fi
14863 else
14864 eval library_names=\"$acl_library_names_spec\"
14865 for f in $library_names; do
14866 if test -f "$dir/$f"; then
14867 found_dir="$dir"
14868 found_so="$dir/$f"
14869 break
14870 fi
14871 done
14872 fi
14873 fi
14874 fi
14875 if test "X$found_dir" = "X"; then
14876 if test -f "$dir/$libname.$acl_libext"; then
14877 found_dir="$dir"
14878 found_a="$dir/$libname.$acl_libext"
14879 fi
14880 fi
14881 if test "X$found_dir" != "X"; then
14882 if test -f "$dir/$libname.la"; then
14883 found_la="$dir/$libname.la"
14884 fi
14885 fi
14886 ;;
14887 esac
14888 if test "X$found_dir" != "X"; then
14889 break
14890 fi
14891 done
14892 fi
14893 if test "X$found_dir" != "X"; then
14894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14895 if test "X$found_so" != "X"; then
14896 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14897 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14898 else
14899 haveit=
14900 for x in $ltrpathdirs; do
14901 if test "X$x" = "X$found_dir"; then
14902 haveit=yes
14903 break
14904 fi
14905 done
14906 if test -z "$haveit"; then
14907 ltrpathdirs="$ltrpathdirs $found_dir"
14908 fi
14909 if test "$acl_hardcode_direct" = yes; then
14910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14911 else
14912 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14914 haveit=
14915 for x in $rpathdirs; do
14916 if test "X$x" = "X$found_dir"; then
14917 haveit=yes
14918 break
14919 fi
14920 done
14921 if test -z "$haveit"; then
14922 rpathdirs="$rpathdirs $found_dir"
14923 fi
14924 else
14925 haveit=
14926 for x in $LDFLAGS $LIBICONV; do
14927
14928 acl_save_prefix="$prefix"
14929 prefix="$acl_final_prefix"
14930 acl_save_exec_prefix="$exec_prefix"
14931 exec_prefix="$acl_final_exec_prefix"
14932 eval x=\"$x\"
14933 exec_prefix="$acl_save_exec_prefix"
14934 prefix="$acl_save_prefix"
14935
14936 if test "X$x" = "X-L$found_dir"; then
14937 haveit=yes
14938 break
14939 fi
14940 done
14941 if test -z "$haveit"; then
14942 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14943 fi
14944 if test "$acl_hardcode_minus_L" != no; then
14945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14946 else
14947 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14948 fi
14949 fi
14950 fi
14951 fi
14952 else
14953 if test "X$found_a" != "X"; then
14954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14955 else
14956 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14957 fi
14958 fi
14959 additional_includedir=
14960 case "$found_dir" in
14961 */$acl_libdirstem | */$acl_libdirstem/)
14962 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14963 LIBICONV_PREFIX="$basedir"
14964 additional_includedir="$basedir/include"
14965 ;;
14966 esac
14967 if test "X$additional_includedir" != "X"; then
14968 if test "X$additional_includedir" != "X/usr/include"; then
14969 haveit=
14970 if test "X$additional_includedir" = "X/usr/local/include"; then
14971 if test -n "$GCC"; then
14972 case $host_os in
14973 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14974 esac
14975 fi
14976 fi
14977 if test -z "$haveit"; then
14978 for x in $CPPFLAGS $INCICONV; do
14979
14980 acl_save_prefix="$prefix"
14981 prefix="$acl_final_prefix"
14982 acl_save_exec_prefix="$exec_prefix"
14983 exec_prefix="$acl_final_exec_prefix"
14984 eval x=\"$x\"
14985 exec_prefix="$acl_save_exec_prefix"
14986 prefix="$acl_save_prefix"
14987
14988 if test "X$x" = "X-I$additional_includedir"; then
14989 haveit=yes
14990 break
14991 fi
14992 done
14993 if test -z "$haveit"; then
14994 if test -d "$additional_includedir"; then
14995 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14996 fi
14997 fi
14998 fi
14999 fi
15000 fi
15001 if test -n "$found_la"; then
15002 save_libdir="$libdir"
15003 case "$found_la" in
15004 */* | *\\*) . "$found_la" ;;
15005 *) . "./$found_la" ;;
15006 esac
15007 libdir="$save_libdir"
15008 for dep in $dependency_libs; do
15009 case "$dep" in
15010 -L*)
15011 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15012 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15013 haveit=
15014 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15015 if test -n "$GCC"; then
15016 case $host_os in
15017 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15018 esac
15019 fi
15020 fi
15021 if test -z "$haveit"; then
15022 haveit=
15023 for x in $LDFLAGS $LIBICONV; do
15024
15025 acl_save_prefix="$prefix"
15026 prefix="$acl_final_prefix"
15027 acl_save_exec_prefix="$exec_prefix"
15028 exec_prefix="$acl_final_exec_prefix"
15029 eval x=\"$x\"
15030 exec_prefix="$acl_save_exec_prefix"
15031 prefix="$acl_save_prefix"
15032
15033 if test "X$x" = "X-L$additional_libdir"; then
15034 haveit=yes
15035 break
15036 fi
15037 done
15038 if test -z "$haveit"; then
15039 if test -d "$additional_libdir"; then
15040 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15041 fi
15042 fi
15043 haveit=
15044 for x in $LDFLAGS $LTLIBICONV; do
15045
15046 acl_save_prefix="$prefix"
15047 prefix="$acl_final_prefix"
15048 acl_save_exec_prefix="$exec_prefix"
15049 exec_prefix="$acl_final_exec_prefix"
15050 eval x=\"$x\"
15051 exec_prefix="$acl_save_exec_prefix"
15052 prefix="$acl_save_prefix"
15053
15054 if test "X$x" = "X-L$additional_libdir"; then
15055 haveit=yes
15056 break
15057 fi
15058 done
15059 if test -z "$haveit"; then
15060 if test -d "$additional_libdir"; then
15061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15062 fi
15063 fi
15064 fi
15065 fi
15066 ;;
15067 -R*)
15068 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15069 if test "$enable_rpath" != no; then
15070 haveit=
15071 for x in $rpathdirs; do
15072 if test "X$x" = "X$dir"; then
15073 haveit=yes
15074 break
15075 fi
15076 done
15077 if test -z "$haveit"; then
15078 rpathdirs="$rpathdirs $dir"
15079 fi
15080 haveit=
15081 for x in $ltrpathdirs; do
15082 if test "X$x" = "X$dir"; then
15083 haveit=yes
15084 break
15085 fi
15086 done
15087 if test -z "$haveit"; then
15088 ltrpathdirs="$ltrpathdirs $dir"
15089 fi
15090 fi
15091 ;;
15092 -l*)
15093 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15094 ;;
15095 *.la)
15096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15097 ;;
15098 *)
15099 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15100 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15101 ;;
15102 esac
15103 done
15104 fi
15105 else
15106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15108 fi
15109 fi
15110 fi
15111 done
15112 done
15113 if test "X$rpathdirs" != "X"; then
15114 if test -n "$acl_hardcode_libdir_separator"; then
15115 alldirs=
15116 for found_dir in $rpathdirs; do
15117 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15118 done
15119 acl_save_libdir="$libdir"
15120 libdir="$alldirs"
15121 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15122 libdir="$acl_save_libdir"
15123 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15124 else
15125 for found_dir in $rpathdirs; do
15126 acl_save_libdir="$libdir"
15127 libdir="$found_dir"
15128 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15129 libdir="$acl_save_libdir"
15130 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15131 done
15132 fi
15133 fi
15134 if test "X$ltrpathdirs" != "X"; then
15135 for found_dir in $ltrpathdirs; do
15136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15137 done
15138 fi
15139
15140
15141
15142
15143
15144
15145
15146 am_save_CPPFLAGS="$CPPFLAGS"
15147
15148 for element in $INCICONV; do
15149 haveit=
15150 for x in $CPPFLAGS; do
15151
15152 acl_save_prefix="$prefix"
15153 prefix="$acl_final_prefix"
15154 acl_save_exec_prefix="$exec_prefix"
15155 exec_prefix="$acl_final_exec_prefix"
15156 eval x=\"$x\"
15157 exec_prefix="$acl_save_exec_prefix"
15158 prefix="$acl_save_prefix"
15159
15160 if test "X$x" = "X$element"; then
15161 haveit=yes
15162 break
15163 fi
15164 done
15165 if test -z "$haveit"; then
15166 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15167 fi
15168 done
15169
15170
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15172$as_echo_n "checking for iconv... " >&6; }
15173if test "${am_cv_func_iconv+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15175else
15176
15177 am_cv_func_iconv="no, consider installing GNU libiconv"
15178 am_cv_lib_iconv=no
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180/* end confdefs.h. */
15181#include <stdlib.h>
15182#include <iconv.h>
15183int
15184main ()
15185{
15186iconv_t cd = iconv_open("","");
15187 iconv(cd,NULL,NULL,NULL,NULL);
15188 iconv_close(cd);
15189 ;
15190 return 0;
15191}
15192_ACEOF
94690cff 15193if ac_fn_c_try_link "$LINENO"; then :
9c60689e
DWT
15194 am_cv_func_iconv=yes
15195fi
15196rm -f core conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 if test "$am_cv_func_iconv" != yes; then
15199 am_save_LIBS="$LIBS"
15200 LIBS="$LIBS $LIBICONV"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h. */
15203#include <stdlib.h>
15204#include <iconv.h>
15205int
15206main ()
15207{
15208iconv_t cd = iconv_open("","");
15209 iconv(cd,NULL,NULL,NULL,NULL);
15210 iconv_close(cd);
15211 ;
15212 return 0;
15213}
15214_ACEOF
94690cff 15215if ac_fn_c_try_link "$LINENO"; then :
9c60689e
DWT
15216 am_cv_lib_iconv=yes
15217 am_cv_func_iconv=yes
15218fi
15219rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15221 LIBS="$am_save_LIBS"
15222 fi
15223
15224fi
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15226$as_echo "$am_cv_func_iconv" >&6; }
15227 if test "$am_cv_func_iconv" = yes; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15229$as_echo_n "checking for working iconv... " >&6; }
15230if test "${am_cv_func_iconv_works+set}" = set; then :
15231 $as_echo_n "(cached) " >&6
15232else
15233
15234 am_save_LIBS="$LIBS"
15235 if test $am_cv_lib_iconv = yes; then
15236 LIBS="$LIBS $LIBICONV"
15237 fi
15238 if test "$cross_compiling" = yes; then :
15239 case "$host_os" in
15240 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15241 *) am_cv_func_iconv_works="guessing yes" ;;
15242 esac
15243else
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h. */
15246
15247#include <iconv.h>
15248#include <string.h>
15249int main ()
15250{
15251 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15252 returns. */
15253 {
15254 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15255 if (cd_utf8_to_88591 != (iconv_t)(-1))
15256 {
15257 static const char input[] = "\342\202\254"; /* EURO SIGN */
15258 char buf[10];
15259 const char *inptr = input;
15260 size_t inbytesleft = strlen (input);
15261 char *outptr = buf;
15262 size_t outbytesleft = sizeof (buf);
15263 size_t res = iconv (cd_utf8_to_88591,
15264 (char **) &inptr, &inbytesleft,
15265 &outptr, &outbytesleft);
15266 if (res == 0)
15267 return 1;
15268 }
15269 }
15270#if 0 /* This bug could be worked around by the caller. */
15271 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15272 {
15273 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15274 if (cd_88591_to_utf8 != (iconv_t)(-1))
15275 {
15276 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15277 char buf[50];
15278 const char *inptr = input;
15279 size_t inbytesleft = strlen (input);
15280 char *outptr = buf;
15281 size_t outbytesleft = sizeof (buf);
15282 size_t res = iconv (cd_88591_to_utf8,
15283 (char **) &inptr, &inbytesleft,
15284 &outptr, &outbytesleft);
15285 if ((int)res > 0)
15286 return 1;
15287 }
15288 }
15289#endif
15290 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15291 provided. */
15292 if (/* Try standardized names. */
15293 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15294 /* Try IRIX, OSF/1 names. */
15295 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15296 /* Try AIX names. */
15297 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15298 /* Try HP-UX names. */
15299 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15300 return 1;
15301 return 0;
15302}
15303_ACEOF
94690cff 15304if ac_fn_c_try_run "$LINENO"; then :
9c60689e
DWT
15305 am_cv_func_iconv_works=yes
15306else
15307 am_cv_func_iconv_works=no
15308fi
15309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15310 conftest.$ac_objext conftest.beam conftest.$ac_ext
15311fi
15312
15313 LIBS="$am_save_LIBS"
15314
15315fi
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15317$as_echo "$am_cv_func_iconv_works" >&6; }
15318 case "$am_cv_func_iconv_works" in
15319 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15320 *) am_func_iconv=yes ;;
15321 esac
15322 else
15323 am_func_iconv=no am_cv_lib_iconv=no
15324 fi
15325 if test "$am_func_iconv" = yes; then
15326
15327$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15328
15329 fi
15330 if test "$am_cv_lib_iconv" = yes; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15332$as_echo_n "checking how to link with libiconv... " >&6; }
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15334$as_echo "$LIBICONV" >&6; }
15335 else
15336 CPPFLAGS="$am_save_CPPFLAGS"
15337 LIBICONV=
15338 LTLIBICONV=
15339 fi
15340
15341
15342
15343 if test "$am_cv_func_iconv" = yes; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15345$as_echo_n "checking for iconv declaration... " >&6; }
15346 if test "${am_cv_proto_iconv+set}" = set; then :
15347 $as_echo_n "(cached) " >&6
15348else
15349
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351/* end confdefs.h. */
15352
15353#include <stdlib.h>
15354#include <iconv.h>
15355extern
15356#ifdef __cplusplus
15357"C"
15358#endif
15359#if defined(__STDC__) || defined(__cplusplus)
15360size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15361#else
15362size_t iconv();
15363#endif
15364
15365int
15366main ()
15367{
15368
15369 ;
15370 return 0;
15371}
15372_ACEOF
94690cff 15373if ac_fn_c_try_compile "$LINENO"; then :
9c60689e
DWT
15374 am_cv_proto_iconv_arg1=""
15375else
15376 am_cv_proto_iconv_arg1="const"
15377fi
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15380fi
15381
15382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15384 }$am_cv_proto_iconv" >&5
15385$as_echo "${ac_t:-
15386 }$am_cv_proto_iconv" >&6; }
15387
15388cat >>confdefs.h <<_ACEOF
15389#define ICONV_CONST $am_cv_proto_iconv_arg1
15390_ACEOF
15391
15392 fi
15393
94690cff
DWT
15394ac_ext=cpp
15395ac_cpp='$CXXCPP $CPPFLAGS'
15396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15399
9c60689e
DWT
15400case $am_cv_func_iconv in #(
15401 yes) :
15402 ;; #(
15403 *) :
15404 as_fn_error "You need iconv" "$LINENO" 5 ;;
15405esac
15406
9c60689e
DWT
15407pkg_failed=no
15408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15409$as_echo_n "checking for WEBKIT... " >&6; }
15410
15411if test -n "$PKG_CONFIG"; then
15412 if test -n "$WEBKIT_CFLAGS"; then
15413 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15414 else
15415 if test -n "$PKG_CONFIG" && \
15416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15417 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15418 ac_status=$?
15419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420 test $ac_status = 0; }; then
15421 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15422else
15423 pkg_failed=yes
15424fi
15425 fi
15426else
15427 pkg_failed=untried
15428fi
15429if test -n "$PKG_CONFIG"; then
15430 if test -n "$WEBKIT_LIBS"; then
15431 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15432 else
15433 if test -n "$PKG_CONFIG" && \
15434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15435 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15436 ac_status=$?
15437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15438 test $ac_status = 0; }; then
15439 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15440else
15441 pkg_failed=yes
15442fi
15443 fi
15444else
15445 pkg_failed=untried
15446fi
15447
15448
15449
15450if test $pkg_failed = yes; then
15451
15452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15453 _pkg_short_errors_supported=yes
15454else
15455 _pkg_short_errors_supported=no
15456fi
15457 if test $_pkg_short_errors_supported = yes; then
15458 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15459 else
15460 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15461 fi
15462 # Put the nasty error message in config.log where it belongs
15463 echo "$WEBKIT_PKG_ERRORS" >&5
15464
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466$as_echo "no" >&6; }
15467
15468
15469pkg_failed=no
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15471$as_echo_n "checking for WEBKIT... " >&6; }
15472
15473if test -n "$PKG_CONFIG"; then
15474 if test -n "$WEBKIT_CFLAGS"; then
15475 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15476 else
15477 if test -n "$PKG_CONFIG" && \
15478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15479 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15480 ac_status=$?
15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482 test $ac_status = 0; }; then
15483 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15484else
15485 pkg_failed=yes
15486fi
15487 fi
15488else
15489 pkg_failed=untried
15490fi
15491if test -n "$PKG_CONFIG"; then
15492 if test -n "$WEBKIT_LIBS"; then
15493 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15494 else
15495 if test -n "$PKG_CONFIG" && \
15496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15497 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15498 ac_status=$?
15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15500 test $ac_status = 0; }; then
15501 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15502else
15503 pkg_failed=yes
15504fi
15505 fi
15506else
15507 pkg_failed=untried
15508fi
15509
15510
15511
15512if test $pkg_failed = yes; then
15513
15514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15515 _pkg_short_errors_supported=yes
15516else
15517 _pkg_short_errors_supported=no
15518fi
15519 if test $_pkg_short_errors_supported = yes; then
15520 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15521 else
15522 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15523 fi
15524 # Put the nasty error message in config.log where it belongs
15525 echo "$WEBKIT_PKG_ERRORS" >&5
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528$as_echo "no" >&6; }
15529 WEBKIT=no
15530elif test $pkg_failed = untried; then
15531 WEBKIT=no
15532else
15533 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15534 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536$as_echo "yes" >&6; }
3fd51f51
DWT
15537
15538 WEBKIT=yes
15539
15540 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15541 haveit=
15542 for x in $CXXFLAGS; do
15543
15544 acl_save_prefix="$prefix"
15545 prefix="$acl_final_prefix"
15546 acl_save_exec_prefix="$exec_prefix"
15547 exec_prefix="$acl_final_exec_prefix"
15548 eval x=\"$x\"
15549 exec_prefix="$acl_save_exec_prefix"
15550 prefix="$acl_save_prefix"
15551
15552 if test "X$x" = "X$element"; then
15553 haveit=yes
15554 break
15555 fi
15556 done
15557 if test -z "$haveit"; then
15558 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15559 fi
15560 done
15561
15562
15563 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15564 haveit=
15565 for x in $LIBS; do
15566
15567 acl_save_prefix="$prefix"
15568 prefix="$acl_final_prefix"
15569 acl_save_exec_prefix="$exec_prefix"
15570 exec_prefix="$acl_final_exec_prefix"
15571 eval x=\"$x\"
15572 exec_prefix="$acl_save_exec_prefix"
15573 prefix="$acl_save_prefix"
15574
15575 if test "X$x" = "X$element"; then
15576 haveit=yes
15577 break
15578 fi
15579 done
15580 if test -z "$haveit"; then
15581 LIBS="${LIBS}${LIBS:+ }$element"
15582 fi
15583 done
15584
15585
9c60689e
DWT
15586fi
15587
15588elif test $pkg_failed = untried; then
15589
15590
15591pkg_failed=no
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15593$as_echo_n "checking for WEBKIT... " >&6; }
15594
15595if test -n "$PKG_CONFIG"; then
15596 if test -n "$WEBKIT_CFLAGS"; then
15597 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15598 else
15599 if test -n "$PKG_CONFIG" && \
15600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15601 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15602 ac_status=$?
15603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15604 test $ac_status = 0; }; then
15605 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15606else
15607 pkg_failed=yes
15608fi
15609 fi
15610else
15611 pkg_failed=untried
15612fi
15613if test -n "$PKG_CONFIG"; then
15614 if test -n "$WEBKIT_LIBS"; then
15615 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15616 else
15617 if test -n "$PKG_CONFIG" && \
15618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15619 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15620 ac_status=$?
15621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 test $ac_status = 0; }; then
15623 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15624else
15625 pkg_failed=yes
15626fi
15627 fi
15628else
15629 pkg_failed=untried
15630fi
15631
15632
15633
15634if test $pkg_failed = yes; then
15635
15636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15637 _pkg_short_errors_supported=yes
15638else
15639 _pkg_short_errors_supported=no
15640fi
15641 if test $_pkg_short_errors_supported = yes; then
15642 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15643 else
15644 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15645 fi
15646 # Put the nasty error message in config.log where it belongs
15647 echo "$WEBKIT_PKG_ERRORS" >&5
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650$as_echo "no" >&6; }
15651 WEBKIT=no
15652elif test $pkg_failed = untried; then
15653 WEBKIT=no
15654else
15655 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15656 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15658$as_echo "yes" >&6; }
3fd51f51
DWT
15659
15660 WEBKIT=yes
15661
15662 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15663 haveit=
15664 for x in $CXXFLAGS; do
15665
15666 acl_save_prefix="$prefix"
15667 prefix="$acl_final_prefix"
15668 acl_save_exec_prefix="$exec_prefix"
15669 exec_prefix="$acl_final_exec_prefix"
15670 eval x=\"$x\"
15671 exec_prefix="$acl_save_exec_prefix"
15672 prefix="$acl_save_prefix"
15673
15674 if test "X$x" = "X$element"; then
15675 haveit=yes
15676 break
15677 fi
15678 done
15679 if test -z "$haveit"; then
15680 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15681 fi
15682 done
15683
15684
15685 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15686 haveit=
15687 for x in $LIBS; do
15688
15689 acl_save_prefix="$prefix"
15690 prefix="$acl_final_prefix"
15691 acl_save_exec_prefix="$exec_prefix"
15692 exec_prefix="$acl_final_exec_prefix"
15693 eval x=\"$x\"
15694 exec_prefix="$acl_save_exec_prefix"
15695 prefix="$acl_save_prefix"
15696
15697 if test "X$x" = "X$element"; then
15698 haveit=yes
15699 break
15700 fi
15701 done
15702 if test -z "$haveit"; then
15703 LIBS="${LIBS}${LIBS:+ }$element"
15704 fi
15705 done
15706
15707
9c60689e
DWT
15708fi
15709
15710else
15711 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15712 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15714$as_echo "yes" >&6; }
3fd51f51 15715
9c60689e 15716 WEBKIT=yes
3fd51f51
DWT
15717
15718 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15719 haveit=
15720 for x in $CXXFLAGS; do
15721
15722 acl_save_prefix="$prefix"
15723 prefix="$acl_final_prefix"
15724 acl_save_exec_prefix="$exec_prefix"
15725 exec_prefix="$acl_final_exec_prefix"
15726 eval x=\"$x\"
15727 exec_prefix="$acl_save_exec_prefix"
15728 prefix="$acl_save_prefix"
15729
15730 if test "X$x" = "X$element"; then
15731 haveit=yes
15732 break
15733 fi
15734 done
15735 if test -z "$haveit"; then
15736 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15737 fi
15738 done
15739
15740
15741 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15742 haveit=
15743 for x in $LIBS; do
15744
15745 acl_save_prefix="$prefix"
15746 prefix="$acl_final_prefix"
15747 acl_save_exec_prefix="$exec_prefix"
15748 exec_prefix="$acl_final_exec_prefix"
15749 eval x=\"$x\"
15750 exec_prefix="$acl_save_exec_prefix"
15751 prefix="$acl_save_prefix"
15752
15753 if test "X$x" = "X$element"; then
15754 haveit=yes
15755 break
15756 fi
15757 done
15758 if test -z "$haveit"; then
15759 LIBS="${LIBS}${LIBS:+ }$element"
15760 fi
15761 done
15762
15763
9c60689e
DWT
15764fi
15765case $WEBKIT in #(
15766 yes) :
15767
3fd51f51
DWT
15768 CY_EXECUTE=1
15769
9c60689e
DWT
15770
15771pkg_failed=no
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
15773$as_echo_n "checking for LIBFFI... " >&6; }
15774
15775if test -n "$PKG_CONFIG"; then
15776 if test -n "$LIBFFI_CFLAGS"; then
15777 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15778 else
15779 if test -n "$PKG_CONFIG" && \
15780 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15781 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15782 ac_status=$?
15783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15784 test $ac_status = 0; }; then
15785 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15786else
15787 pkg_failed=yes
15788fi
15789 fi
15790else
15791 pkg_failed=untried
15792fi
15793if test -n "$PKG_CONFIG"; then
15794 if test -n "$LIBFFI_LIBS"; then
15795 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15796 else
15797 if test -n "$PKG_CONFIG" && \
15798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15799 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15800 ac_status=$?
15801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15802 test $ac_status = 0; }; then
15803 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15804else
15805 pkg_failed=yes
15806fi
15807 fi
15808else
15809 pkg_failed=untried
15810fi
15811
15812
15813
15814if test $pkg_failed = yes; then
15815
15816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15817 _pkg_short_errors_supported=yes
15818else
15819 _pkg_short_errors_supported=no
15820fi
15821 if test $_pkg_short_errors_supported = yes; then
15822 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
15823 else
15824 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
15825 fi
15826 # Put the nasty error message in config.log where it belongs
15827 echo "$LIBFFI_PKG_ERRORS" >&5
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830$as_echo "no" >&6; }
15831
15832 for ac_header in ffi.h ffi/ffi.h
15833do :
15834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47aaa820 15835ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9c60689e
DWT
15836eval as_val=\$$as_ac_Header
15837 if test "x$as_val" = x""yes; then :
15838 cat >>confdefs.h <<_ACEOF
15839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15840_ACEOF
15841 break
15842fi
15843
15844done
15845
15846 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15847
15848 as_fn_error "You need libffi" "$LINENO" 5
15849
15850fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15852$as_echo_n "checking for library containing ffi_call... " >&6; }
15853if test "${ac_cv_search_ffi_call+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15855else
15856 ac_func_search_save_LIBS=$LIBS
15857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858/* end confdefs.h. */
15859
15860/* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15863#ifdef __cplusplus
15864extern "C"
15865#endif
15866char ffi_call ();
15867int
15868main ()
15869{
15870return ffi_call ();
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875for ac_lib in '' ffi; do
15876 if test -z "$ac_lib"; then
15877 ac_res="none required"
15878 else
15879 ac_res=-l$ac_lib
15880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15881 fi
47aaa820 15882 if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e
DWT
15883 ac_cv_search_ffi_call=$ac_res
15884fi
15885rm -f core conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext
15887 if test "${ac_cv_search_ffi_call+set}" = set; then :
15888 break
15889fi
15890done
15891if test "${ac_cv_search_ffi_call+set}" = set; then :
15892
15893else
15894 ac_cv_search_ffi_call=no
15895fi
15896rm conftest.$ac_ext
15897LIBS=$ac_func_search_save_LIBS
15898fi
15899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15900$as_echo "$ac_cv_search_ffi_call" >&6; }
15901ac_res=$ac_cv_search_ffi_call
15902if test "$ac_res" != no; then :
15903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15904
15905fi
15906
15907 case $ac_cv_search_ffi_call in #(
15908 no) :
15909
15910 as_fn_error "You need libffi" "$LINENO" 5
15911 ;; #(
15912 *) :
15913 ;;
15914esac
15915
15916elif test $pkg_failed = untried; then
15917
15918 for ac_header in ffi.h ffi/ffi.h
15919do :
15920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47aaa820 15921ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9c60689e
DWT
15922eval as_val=\$$as_ac_Header
15923 if test "x$as_val" = x""yes; then :
15924 cat >>confdefs.h <<_ACEOF
15925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15926_ACEOF
15927 break
15928fi
15929
15930done
15931
15932 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15933
15934 as_fn_error "You need libffi" "$LINENO" 5
15935
15936fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15938$as_echo_n "checking for library containing ffi_call... " >&6; }
15939if test "${ac_cv_search_ffi_call+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15941else
15942 ac_func_search_save_LIBS=$LIBS
15943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h. */
15945
15946/* Override any GCC internal prototype to avoid an error.
15947 Use char because int might match the return type of a GCC
15948 builtin and then its argument prototype would still apply. */
15949#ifdef __cplusplus
15950extern "C"
15951#endif
15952char ffi_call ();
15953int
15954main ()
15955{
15956return ffi_call ();
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961for ac_lib in '' ffi; do
15962 if test -z "$ac_lib"; then
15963 ac_res="none required"
15964 else
15965 ac_res=-l$ac_lib
15966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15967 fi
47aaa820 15968 if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e
DWT
15969 ac_cv_search_ffi_call=$ac_res
15970fi
15971rm -f core conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext
15973 if test "${ac_cv_search_ffi_call+set}" = set; then :
15974 break
15975fi
15976done
15977if test "${ac_cv_search_ffi_call+set}" = set; then :
15978
15979else
15980 ac_cv_search_ffi_call=no
15981fi
15982rm conftest.$ac_ext
15983LIBS=$ac_func_search_save_LIBS
15984fi
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15986$as_echo "$ac_cv_search_ffi_call" >&6; }
15987ac_res=$ac_cv_search_ffi_call
15988if test "$ac_res" != no; then :
15989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15990
15991fi
15992
15993 case $ac_cv_search_ffi_call in #(
15994 no) :
15995
15996 as_fn_error "You need libffi" "$LINENO" 5
15997 ;; #(
15998 *) :
15999 ;;
16000esac
16001
16002else
16003 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16004 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16006$as_echo "yes" >&6; }
3fd51f51
DWT
16007
16008
16009 for element in `$PKG_CONFIG --cflags libffi`; do
16010 haveit=
16011 for x in $CXXFLAGS; do
16012
16013 acl_save_prefix="$prefix"
16014 prefix="$acl_final_prefix"
16015 acl_save_exec_prefix="$exec_prefix"
16016 exec_prefix="$acl_final_exec_prefix"
16017 eval x=\"$x\"
16018 exec_prefix="$acl_save_exec_prefix"
16019 prefix="$acl_save_prefix"
16020
16021 if test "X$x" = "X$element"; then
16022 haveit=yes
16023 break
16024 fi
16025 done
16026 if test -z "$haveit"; then
16027 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16028 fi
16029 done
16030
16031
16032 for element in `$PKG_CONFIG --libs libffi`; do
16033 haveit=
16034 for x in $LIBS; do
16035
16036 acl_save_prefix="$prefix"
16037 prefix="$acl_final_prefix"
16038 acl_save_exec_prefix="$exec_prefix"
16039 exec_prefix="$acl_final_exec_prefix"
16040 eval x=\"$x\"
16041 exec_prefix="$acl_save_exec_prefix"
16042 prefix="$acl_save_prefix"
16043
16044 if test "X$x" = "X$element"; then
16045 haveit=yes
16046 break
16047 fi
16048 done
16049 if test -z "$haveit"; then
16050 LIBS="${LIBS}${LIBS:+ }$element"
16051 fi
16052 done
16053
16054
9c60689e
DWT
16055fi
16056 ;; #(
16057 *) :
3fd51f51 16058
3fd51f51
DWT
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
16060$as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
16061 ;;
9c60689e 16062esac
9c60689e
DWT
16063ac_ext=mm
16064ac_cpp='$OBJCXXCPP $CPPFLAGS'
16065ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16066ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16067ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16068if test -n "$ac_tool_prefix"; then
16069 for ac_prog in g++ objc++ objcxx c++ CXX
16070 do
16071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074$as_echo_n "checking for $ac_word... " >&6; }
16075if test "${ac_cv_prog_OBJCXX+set}" = set; then :
16076 $as_echo_n "(cached) " >&6
16077else
16078 if test -n "$OBJCXX"; then
16079 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
16080else
16081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082for as_dir in $PATH
16083do
16084 IFS=$as_save_IFS
16085 test -z "$as_dir" && as_dir=.
16086 for ac_exec_ext in '' $ac_executable_extensions; do
16087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16088 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
16089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16090 break 2
16091 fi
16092done
16093 done
16094IFS=$as_save_IFS
16095
16096fi
16097fi
16098OBJCXX=$ac_cv_prog_OBJCXX
16099if test -n "$OBJCXX"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
16101$as_echo "$OBJCXX" >&6; }
16102else
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104$as_echo "no" >&6; }
16105fi
16106
16107
16108 test -n "$OBJCXX" && break
16109 done
16110fi
16111if test -z "$OBJCXX"; then
16112 ac_ct_OBJCXX=$OBJCXX
16113 for ac_prog in g++ objc++ objcxx c++ CXX
16114do
16115 # Extract the first word of "$ac_prog", so it can be a program name with args.
16116set dummy $ac_prog; ac_word=$2
16117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118$as_echo_n "checking for $ac_word... " >&6; }
16119if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16121else
16122 if test -n "$ac_ct_OBJCXX"; then
16123 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
16124else
16125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126for as_dir in $PATH
16127do
16128 IFS=$as_save_IFS
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16132 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16134 break 2
16135 fi
16136done
16137 done
16138IFS=$as_save_IFS
16139
16140fi
16141fi
16142ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
16143if test -n "$ac_ct_OBJCXX"; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
16145$as_echo "$ac_ct_OBJCXX" >&6; }
16146else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148$as_echo "no" >&6; }
16149fi
16150
16151
16152 test -n "$ac_ct_OBJCXX" && break
16153done
16154
16155 if test "x$ac_ct_OBJCXX" = x; then
16156 OBJCXX="g++"
16157 else
16158 case $cross_compiling:$ac_tool_warned in
16159yes:)
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16162ac_tool_warned=yes ;;
16163esac
16164 OBJCXX=$ac_ct_OBJCXX
16165 fi
16166fi
16167
16168# Provide some information about the compiler.
16169$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
16170set X $ac_compile
16171ac_compiler=$2
16172for ac_option in --version -v -V -qversion; do
16173 { { ac_try="$ac_compiler $ac_option >&5"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16179$as_echo "$ac_try_echo"; } >&5
16180 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16181 ac_status=$?
16182 if test -s conftest.err; then
16183 sed '10a\
16184... rest of stderr output deleted ...
16185 10q' conftest.err >conftest.er1
16186 cat conftest.er1 >&5
16187 fi
16188 rm -f conftest.er1 conftest.err
16189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16190 test $ac_status = 0; }
16191done
16192
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
16194$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
16195if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16197else
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199/* end confdefs.h. */
16200
16201int
16202main ()
16203{
16204#ifndef __GNUC__
16205 choke me
16206#endif
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212if ac_fn_objcxx_try_compile "$LINENO"; then :
16213 ac_compiler_gnu=yes
16214else
16215 ac_compiler_gnu=no
16216fi
16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16219
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16222$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16223if test $ac_compiler_gnu = yes; then
16224 GOBJCXX=yes
16225else
16226 GOBJCXX=
16227fi
16228ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16229ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16231$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16232if test "${ac_cv_prog_objcxx_g+set}" = set; then :
16233 $as_echo_n "(cached) " >&6
16234else
16235 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16236 ac_objcxx_werror_flag=yes
16237 ac_cv_prog_objcxx_g=no
16238 OBJCXXFLAGS="-g"
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h. */
16241
16242int
16243main ()
16244{
16245
16246 ;
16247 return 0;
16248}
16249_ACEOF
16250if ac_fn_objcxx_try_compile "$LINENO"; then :
16251 ac_cv_prog_objcxx_g=yes
16252else
16253 OBJCXXFLAGS=""
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255/* end confdefs.h. */
16256
16257int
16258main ()
16259{
16260
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265if ac_fn_objcxx_try_compile "$LINENO"; then :
16266
16267else
16268 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16269 OBJCXXFLAGS="-g"
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h. */
16272
16273int
16274main ()
16275{
16276
16277 ;
16278 return 0;
16279}
16280_ACEOF
16281if ac_fn_objcxx_try_compile "$LINENO"; then :
16282 ac_cv_prog_objcxx_g=yes
16283fi
16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285fi
16286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287fi
16288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16289 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16290fi
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16292$as_echo "$ac_cv_prog_objcxx_g" >&6; }
16293if test "$ac_test_OBJCXXFLAGS" = set; then
16294 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16295elif test $ac_cv_prog_objcxx_g = yes; then
16296 if test "$GOBJCXX" = yes; then
16297 OBJCXXFLAGS="-g -O2"
16298 else
16299 OBJCXXFLAGS="-g"
16300 fi
16301else
16302 if test "$GOBJCXX" = yes; then
16303 OBJCXXFLAGS="-O2"
16304 else
16305 OBJCXXFLAGS=
16306 fi
16307fi
47aaa820
DWT
16308ac_ext=cpp
16309ac_cpp='$CXXCPP $CPPFLAGS'
16310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16313
16314ac_ext=mm
16315ac_cpp='$OBJCXXCPP $CPPFLAGS'
16316ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16317ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16318ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16319
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
16321$as_echo_n "checking if we really have Objective C++... " >&6; }
16322
16323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h. */
16325
16326// This space intentionally left blank
16327
16328_ACEOF
16329if ac_fn_objcxx_try_compile "$LINENO"; then :
16330
16331 CY_OBJECTIVEC=1
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333$as_echo "yes" >&6; }
16334
16335else
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16337$as_echo "no" >&6; }
16338fi
16339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340ac_ext=cpp
16341ac_cpp='$CXXCPP $CPPFLAGS'
16342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16345
16346if test "x$CY_OBJECTIVEC" = x1; then :
16347
16348 # TODO: Darwin
16349 for ac_prog in gnustep-config
16350do
16351 # Extract the first word of "$ac_prog", so it can be a program name with args.
16352set dummy $ac_prog; ac_word=$2
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16354$as_echo_n "checking for $ac_word... " >&6; }
16355if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
16356 $as_echo_n "(cached) " >&6
16357else
16358 if test -n "$GNUSTEP_CONFIG"; then
16359 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
16360else
16361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362for as_dir in $PATH
16363do
16364 IFS=$as_save_IFS
16365 test -z "$as_dir" && as_dir=.
16366 for ac_exec_ext in '' $ac_executable_extensions; do
16367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16368 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
16369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16370 break 2
16371 fi
16372done
16373 done
16374IFS=$as_save_IFS
16375
16376fi
16377fi
16378GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
16379if test -n "$GNUSTEP_CONFIG"; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
16381$as_echo "$GNUSTEP_CONFIG" >&6; }
16382else
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384$as_echo "no" >&6; }
16385fi
16386
16387
16388 test -n "$GNUSTEP_CONFIG" && break
16389done
16390
16391 if test "x$GNUSTEP_CONFIG" != x; then :
16392
16393
16394
16395 for element in `$GNUSTEP_CONFIG --objc-flags`; do
16396 haveit=
16397 for x in $OBJCXXFLAGS; do
16398
16399 acl_save_prefix="$prefix"
16400 prefix="$acl_final_prefix"
16401 acl_save_exec_prefix="$exec_prefix"
16402 exec_prefix="$acl_final_exec_prefix"
16403 eval x=\"$x\"
16404 exec_prefix="$acl_save_exec_prefix"
16405 prefix="$acl_save_prefix"
9c60689e 16406
47aaa820
DWT
16407 if test "X$x" = "X$element"; then
16408 haveit=yes
16409 break
16410 fi
16411 done
16412 if test -z "$haveit"; then
16413 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16414 fi
16415 done
16416
16417
16418 for element in `$GNUSTEP_CONFIG --base-libs`; do
16419 haveit=
16420 for x in $LIBS; do
16421
16422 acl_save_prefix="$prefix"
16423 prefix="$acl_final_prefix"
16424 acl_save_exec_prefix="$exec_prefix"
16425 exec_prefix="$acl_final_exec_prefix"
16426 eval x=\"$x\"
16427 exec_prefix="$acl_save_exec_prefix"
16428 prefix="$acl_save_prefix"
16429
16430 if test "X$x" = "X$element"; then
16431 haveit=yes
16432 break
16433 fi
16434 done
16435 if test -z "$haveit"; then
16436 LIBS="${LIBS}${LIBS:+ }$element"
16437 fi
16438 done
16439
16440
16441fi
16442
16443fi
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16445$as_echo_n "checking for GNU make... " >&6; }
16446if test "${_cv_gnu_make_command+set}" = set; then :
16447 $as_echo_n "(cached) " >&6
16448else
16449 _cv_gnu_make_command='' ;
16450 for a in "$MAKE" make gmake gnumake ; do
16451 if test -z "$a" ; then continue ; fi ;
16452 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
16453 _cv_gnu_make_command=$a ;
16454 break;
16455 fi
16456 done ;
16457
16458fi
16459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
16460$as_echo "$_cv_gnu_make_command" >&6; } ;
16461 if test "x$_cv_gnu_make_command" != "x" ; then
16462 ifGNUmake='' ;
16463 else
16464 ifGNUmake='#' ;
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16466$as_echo "\"Not found\"" >&6; };
16467 fi
16468
16469
16470if test "x$_cv_gnu_make_command" = x; then :
16471 as_fn_error "You need GNU make" "$LINENO" 5
16472fi
9c60689e
DWT
16473ac_config_files="$ac_config_files GNUmakefile"
16474
16475cat >confcache <<\_ACEOF
16476# This file is a shell script that caches the results of configure
16477# tests run on this system so they can be shared between configure
16478# scripts and configure runs, see configure's option --config-cache.
16479# It is not useful on other systems. If it contains results you don't
16480# want to keep, you may remove or edit it.
16481#
16482# config.status only pays attention to the cache file if you give it
16483# the --recheck option to rerun configure.
16484#
16485# `ac_cv_env_foo' variables (set or unset) will be overridden when
16486# loading this file, other *unset* `ac_cv_foo' will be assigned the
16487# following values.
16488
16489_ACEOF
16490
16491# The following way of writing the cache mishandles newlines in values,
16492# but we know of no workaround that is simple, portable, and efficient.
16493# So, we kill variables containing newlines.
16494# Ultrix sh set writes to stderr and can't be redirected directly,
16495# and sets the high bit in the cache file unless we assign to the vars.
16496(
16497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16498 eval ac_val=\$$ac_var
16499 case $ac_val in #(
16500 *${as_nl}*)
16501 case $ac_var in #(
16502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16504 esac
16505 case $ac_var in #(
16506 _ | IFS | as_nl) ;; #(
16507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16508 *) { eval $ac_var=; unset $ac_var;} ;;
16509 esac ;;
16510 esac
16511 done
16512
16513 (set) 2>&1 |
16514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16515 *${as_nl}ac_space=\ *)
16516 # `set' does not quote correctly, so add quotes: double-quote
16517 # substitution turns \\\\ into \\, and sed turns \\ into \.
16518 sed -n \
16519 "s/'/'\\\\''/g;
16520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16521 ;; #(
16522 *)
16523 # `set' quotes correctly as required by POSIX, so do not add quotes.
16524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16525 ;;
16526 esac |
16527 sort
16528) |
16529 sed '
16530 /^ac_cv_env_/b end
16531 t clear
16532 :clear
16533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16534 t end
16535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16536 :end' >>confcache
16537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16538 if test -w "$cache_file"; then
16539 test "x$cache_file" != "x/dev/null" &&
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16541$as_echo "$as_me: updating cache $cache_file" >&6;}
16542 cat confcache >$cache_file
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16545$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16546 fi
16547fi
16548rm -f confcache
16549
16550test "x$prefix" = xNONE && prefix=$ac_default_prefix
16551# Let make expand exec_prefix.
16552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16553
16554# Transform confdefs.h into DEFS.
16555# Protect against shell expansion while executing Makefile rules.
16556# Protect against Makefile macro expansion.
16557#
16558# If the first sed substitution is executed (which looks for macros that
16559# take arguments), then branch to the quote section. Otherwise,
16560# look for a macro that doesn't take arguments.
16561ac_script='
16562:mline
16563/\\$/{
16564 N
16565 s,\\\n,,
16566 b mline
16567}
16568t clear
16569:clear
16570s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16571t quote
16572s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16573t quote
16574b any
16575:quote
16576s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16577s/\[/\\&/g
16578s/\]/\\&/g
16579s/\$/$$/g
16580H
16581:any
16582${
16583 g
16584 s/^\n//
16585 s/\n/ /g
16586 p
16587}
16588'
16589DEFS=`sed -n "$ac_script" confdefs.h`
16590
16591
16592ac_libobjs=
16593ac_ltlibobjs=
16594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16595 # 1. Remove the extension, and $U if already installed.
16596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16599 # will be set to the directory where LIBOBJS objects are built.
16600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16602done
16603LIBOBJS=$ac_libobjs
16604
16605LTLIBOBJS=$ac_ltlibobjs
16606
16607
16608
16609: ${CONFIG_STATUS=./config.status}
16610ac_write_fail=0
16611ac_clean_files_save=$ac_clean_files
16612ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16614$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16615as_write_fail=0
16616cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16617#! $SHELL
16618# Generated by $as_me.
16619# Run this file to recreate the current configuration.
16620# Compiler output produced by configure, useful for debugging
16621# configure, is in config.log if it exists.
16622
16623debug=false
16624ac_cs_recheck=false
16625ac_cs_silent=false
16626
16627SHELL=\${CONFIG_SHELL-$SHELL}
16628export SHELL
16629_ASEOF
16630cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16631## -------------------- ##
16632## M4sh Initialization. ##
16633## -------------------- ##
16634
16635# Be more Bourne compatible
16636DUALCASE=1; export DUALCASE # for MKS sh
16637if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16638 emulate sh
16639 NULLCMD=:
16640 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16641 # is contrary to our usage. Disable this feature.
16642 alias -g '${1+"$@"}'='"$@"'
16643 setopt NO_GLOB_SUBST
16644else
16645 case `(set -o) 2>/dev/null` in #(
16646 *posix*) :
16647 set -o posix ;; #(
16648 *) :
16649 ;;
16650esac
16651fi
16652
16653
16654as_nl='
16655'
16656export as_nl
16657# Printing a long string crashes Solaris 7 /usr/bin/printf.
16658as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16659as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16661# Prefer a ksh shell builtin over an external printf program on Solaris,
16662# but without wasting forks for bash or zsh.
16663if test -z "$BASH_VERSION$ZSH_VERSION" \
16664 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16665 as_echo='print -r --'
16666 as_echo_n='print -rn --'
16667elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16668 as_echo='printf %s\n'
16669 as_echo_n='printf %s'
16670else
16671 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16672 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16673 as_echo_n='/usr/ucb/echo -n'
16674 else
16675 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16676 as_echo_n_body='eval
16677 arg=$1;
16678 case $arg in #(
16679 *"$as_nl"*)
16680 expr "X$arg" : "X\\(.*\\)$as_nl";
16681 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16682 esac;
16683 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16684 '
16685 export as_echo_n_body
16686 as_echo_n='sh -c $as_echo_n_body as_echo'
16687 fi
16688 export as_echo_body
16689 as_echo='sh -c $as_echo_body as_echo'
16690fi
16691
16692# The user is always right.
16693if test "${PATH_SEPARATOR+set}" != set; then
16694 PATH_SEPARATOR=:
16695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16696 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16697 PATH_SEPARATOR=';'
16698 }
16699fi
16700
16701
16702# IFS
16703# We need space, tab and new line, in precisely that order. Quoting is
16704# there to prevent editors from complaining about space-tab.
16705# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16706# splitting by setting IFS to empty value.)
16707IFS=" "" $as_nl"
16708
16709# Find who we are. Look in the path if we contain no directory separator.
16710case $0 in #((
16711 *[\\/]* ) as_myself=$0 ;;
16712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16713for as_dir in $PATH
16714do
16715 IFS=$as_save_IFS
16716 test -z "$as_dir" && as_dir=.
16717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16718 done
16719IFS=$as_save_IFS
16720
16721 ;;
16722esac
16723# We did not find ourselves, most probably we were run as `sh COMMAND'
16724# in which case we are not to be found in the path.
16725if test "x$as_myself" = x; then
16726 as_myself=$0
16727fi
16728if test ! -f "$as_myself"; then
16729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16730 exit 1
16731fi
16732
16733# Unset variables that we do not need and which cause bugs (e.g. in
16734# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16735# suppresses any "Segmentation fault" message there. '((' could
16736# trigger a bug in pdksh 5.2.14.
16737for as_var in BASH_ENV ENV MAIL MAILPATH
16738do eval test x\${$as_var+set} = xset \
16739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16740done
16741PS1='$ '
16742PS2='> '
16743PS4='+ '
16744
16745# NLS nuisances.
16746LC_ALL=C
16747export LC_ALL
16748LANGUAGE=C
16749export LANGUAGE
16750
16751# CDPATH.
16752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16753
16754
16755# as_fn_error ERROR [LINENO LOG_FD]
16756# ---------------------------------
16757# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16758# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16759# script with status $?, using 1 if that was 0.
16760as_fn_error ()
16761{
16762 as_status=$?; test $as_status -eq 0 && as_status=1
16763 if test "$3"; then
16764 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16766 fi
16767 $as_echo "$as_me: error: $1" >&2
16768 as_fn_exit $as_status
16769} # as_fn_error
16770
16771
16772# as_fn_set_status STATUS
16773# -----------------------
16774# Set $? to STATUS, without forking.
16775as_fn_set_status ()
16776{
16777 return $1
16778} # as_fn_set_status
16779
16780# as_fn_exit STATUS
16781# -----------------
16782# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16783as_fn_exit ()
16784{
16785 set +e
16786 as_fn_set_status $1
16787 exit $1
16788} # as_fn_exit
16789
16790# as_fn_unset VAR
16791# ---------------
16792# Portably unset VAR.
16793as_fn_unset ()
16794{
16795 { eval $1=; unset $1;}
16796}
16797as_unset=as_fn_unset
16798# as_fn_append VAR VALUE
16799# ----------------------
16800# Append the text in VALUE to the end of the definition contained in VAR. Take
16801# advantage of any shell optimizations that allow amortized linear growth over
16802# repeated appends, instead of the typical quadratic growth present in naive
16803# implementations.
16804if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16805 eval 'as_fn_append ()
16806 {
16807 eval $1+=\$2
16808 }'
16809else
16810 as_fn_append ()
16811 {
16812 eval $1=\$$1\$2
16813 }
16814fi # as_fn_append
16815
16816# as_fn_arith ARG...
16817# ------------------
16818# Perform arithmetic evaluation on the ARGs, and store the result in the
16819# global $as_val. Take advantage of shells that can avoid forks. The arguments
16820# must be portable across $(()) and expr.
16821if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16822 eval 'as_fn_arith ()
16823 {
16824 as_val=$(( $* ))
16825 }'
16826else
16827 as_fn_arith ()
16828 {
16829 as_val=`expr "$@" || test $? -eq 1`
16830 }
16831fi # as_fn_arith
16832
16833
16834if expr a : '\(a\)' >/dev/null 2>&1 &&
16835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16836 as_expr=expr
16837else
16838 as_expr=false
16839fi
16840
16841if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16842 as_basename=basename
16843else
16844 as_basename=false
16845fi
16846
16847if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16848 as_dirname=dirname
16849else
16850 as_dirname=false
16851fi
16852
16853as_me=`$as_basename -- "$0" ||
16854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16855 X"$0" : 'X\(//\)$' \| \
16856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16857$as_echo X/"$0" |
16858 sed '/^.*\/\([^/][^/]*\)\/*$/{
16859 s//\1/
16860 q
16861 }
16862 /^X\/\(\/\/\)$/{
16863 s//\1/
16864 q
16865 }
16866 /^X\/\(\/\).*/{
16867 s//\1/
16868 q
16869 }
16870 s/.*/./; q'`
16871
16872# Avoid depending upon Character Ranges.
16873as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16875as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16876as_cr_digits='0123456789'
16877as_cr_alnum=$as_cr_Letters$as_cr_digits
16878
16879ECHO_C= ECHO_N= ECHO_T=
16880case `echo -n x` in #(((((
16881-n*)
16882 case `echo 'xy\c'` in
16883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16884 xy) ECHO_C='\c';;
16885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16886 ECHO_T=' ';;
16887 esac;;
16888*)
16889 ECHO_N='-n';;
16890esac
16891
16892rm -f conf$$ conf$$.exe conf$$.file
16893if test -d conf$$.dir; then
16894 rm -f conf$$.dir/conf$$.file
16895else
16896 rm -f conf$$.dir
16897 mkdir conf$$.dir 2>/dev/null
16898fi
16899if (echo >conf$$.file) 2>/dev/null; then
16900 if ln -s conf$$.file conf$$ 2>/dev/null; then
16901 as_ln_s='ln -s'
16902 # ... but there are two gotchas:
16903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16905 # In both cases, we have to default to `cp -p'.
16906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16907 as_ln_s='cp -p'
16908 elif ln conf$$.file conf$$ 2>/dev/null; then
16909 as_ln_s=ln
16910 else
16911 as_ln_s='cp -p'
16912 fi
16913else
16914 as_ln_s='cp -p'
16915fi
16916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16917rmdir conf$$.dir 2>/dev/null
16918
16919
16920# as_fn_mkdir_p
16921# -------------
16922# Create "$as_dir" as a directory, including parents if necessary.
16923as_fn_mkdir_p ()
16924{
16925
16926 case $as_dir in #(
16927 -*) as_dir=./$as_dir;;
16928 esac
16929 test -d "$as_dir" || eval $as_mkdir_p || {
16930 as_dirs=
16931 while :; do
16932 case $as_dir in #(
16933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16934 *) as_qdir=$as_dir;;
16935 esac
16936 as_dirs="'$as_qdir' $as_dirs"
16937 as_dir=`$as_dirname -- "$as_dir" ||
16938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16939 X"$as_dir" : 'X\(//\)[^/]' \| \
16940 X"$as_dir" : 'X\(//\)$' \| \
16941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16942$as_echo X"$as_dir" |
16943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16944 s//\1/
16945 q
16946 }
16947 /^X\(\/\/\)[^/].*/{
16948 s//\1/
16949 q
16950 }
16951 /^X\(\/\/\)$/{
16952 s//\1/
16953 q
16954 }
16955 /^X\(\/\).*/{
16956 s//\1/
16957 q
16958 }
16959 s/.*/./; q'`
16960 test -d "$as_dir" && break
16961 done
16962 test -z "$as_dirs" || eval "mkdir $as_dirs"
16963 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16964
16965
16966} # as_fn_mkdir_p
16967if mkdir -p . 2>/dev/null; then
16968 as_mkdir_p='mkdir -p "$as_dir"'
16969else
16970 test -d ./-p && rmdir ./-p
16971 as_mkdir_p=false
16972fi
16973
16974if test -x / >/dev/null 2>&1; then
16975 as_test_x='test -x'
16976else
16977 if ls -dL / >/dev/null 2>&1; then
16978 as_ls_L_option=L
16979 else
16980 as_ls_L_option=
16981 fi
16982 as_test_x='
16983 eval sh -c '\''
16984 if test -d "$1"; then
16985 test -d "$1/.";
16986 else
16987 case $1 in #(
16988 -*)set "./$1";;
16989 esac;
16990 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16991 ???[sx]*):;;*)false;;esac;fi
16992 '\'' sh
16993 '
16994fi
16995as_executable_p=$as_test_x
16996
16997# Sed expression to map a string onto a valid CPP name.
16998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16999
17000# Sed expression to map a string onto a valid variable name.
17001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17002
17003
17004exec 6>&1
17005## ----------------------------------- ##
17006## Main body of $CONFIG_STATUS script. ##
17007## ----------------------------------- ##
17008_ASEOF
17009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17010
17011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17012# Save the log message, to keep $0 and so on meaningful, and to
17013# report actual input values of CONFIG_FILES etc. instead of their
17014# values after options handling.
17015ac_log="
17016This file was extended by Cycript $as_me 0.9, which was
17017generated by GNU Autoconf 2.65. Invocation command line was
17018
17019 CONFIG_FILES = $CONFIG_FILES
17020 CONFIG_HEADERS = $CONFIG_HEADERS
17021 CONFIG_LINKS = $CONFIG_LINKS
17022 CONFIG_COMMANDS = $CONFIG_COMMANDS
17023 $ $0 $@
17024
17025on `(hostname || uname -n) 2>/dev/null | sed 1q`
17026"
17027
17028_ACEOF
17029
17030case $ac_config_files in *"
17031"*) set x $ac_config_files; shift; ac_config_files=$*;;
17032esac
17033
17034
17035
17036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17037# Files that config.status was made for.
17038config_files="$ac_config_files"
17039config_commands="$ac_config_commands"
17040
17041_ACEOF
17042
17043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17044ac_cs_usage="\
17045\`$as_me' instantiates files and other configuration actions
17046from templates according to the current configuration. Unless the files
17047and actions are specified as TAGs, all are instantiated by default.
17048
17049Usage: $0 [OPTION]... [TAG]...
17050
17051 -h, --help print this help, then exit
17052 -V, --version print version number and configuration settings, then exit
17053 --config print configuration, then exit
17054 -q, --quiet, --silent
17055 do not print progress messages
17056 -d, --debug don't remove temporary files
17057 --recheck update $as_me by reconfiguring in the same conditions
17058 --file=FILE[:TEMPLATE]
17059 instantiate the configuration file FILE
17060
17061Configuration files:
17062$config_files
17063
17064Configuration commands:
17065$config_commands
17066
17067Report bugs to <saurik@saurik.com>.
17068Cycript home page: <http://www.cycript.org/>."
17069
17070_ACEOF
17071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17072ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17073ac_cs_version="\\
17074Cycript config.status 0.9
17075configured by $0, generated by GNU Autoconf 2.65,
17076 with options \\"\$ac_cs_config\\"
17077
17078Copyright (C) 2009 Free Software Foundation, Inc.
17079This config.status script is free software; the Free Software Foundation
17080gives unlimited permission to copy, distribute and modify it."
17081
17082ac_pwd='$ac_pwd'
17083srcdir='$srcdir'
17084INSTALL='$INSTALL'
17085AWK='$AWK'
17086test -n "\$AWK" || AWK=awk
17087_ACEOF
17088
17089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17090# The default lists apply if the user does not specify any file.
17091ac_need_defaults=:
17092while test $# != 0
17093do
17094 case $1 in
17095 --*=*)
17096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17098 ac_shift=:
17099 ;;
17100 *)
17101 ac_option=$1
17102 ac_optarg=$2
17103 ac_shift=shift
17104 ;;
17105 esac
17106
17107 case $ac_option in
17108 # Handling of the options.
17109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17110 ac_cs_recheck=: ;;
17111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17112 $as_echo "$ac_cs_version"; exit ;;
17113 --config | --confi | --conf | --con | --co | --c )
17114 $as_echo "$ac_cs_config"; exit ;;
17115 --debug | --debu | --deb | --de | --d | -d )
17116 debug=: ;;
17117 --file | --fil | --fi | --f )
17118 $ac_shift
17119 case $ac_optarg in
17120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17121 esac
17122 as_fn_append CONFIG_FILES " '$ac_optarg'"
17123 ac_need_defaults=false;;
17124 --he | --h | --help | --hel | -h )
17125 $as_echo "$ac_cs_usage"; exit ;;
17126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17128 ac_cs_silent=: ;;
17129
17130 # This is an error.
17131 -*) as_fn_error "unrecognized option: \`$1'
17132Try \`$0 --help' for more information." ;;
17133
17134 *) as_fn_append ac_config_targets " $1"
17135 ac_need_defaults=false ;;
17136
17137 esac
17138 shift
17139done
17140
17141ac_configure_extra_args=
17142
17143if $ac_cs_silent; then
17144 exec 6>/dev/null
17145 ac_configure_extra_args="$ac_configure_extra_args --silent"
17146fi
17147
17148_ACEOF
17149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17150if \$ac_cs_recheck; then
17151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17152 shift
17153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17154 CONFIG_SHELL='$SHELL'
17155 export CONFIG_SHELL
17156 exec "\$@"
17157fi
17158
17159_ACEOF
17160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17161exec 5>>config.log
17162{
17163 echo
17164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17165## Running $as_me. ##
17166_ASBOX
17167 $as_echo "$ac_log"
17168} >&5
17169
17170_ACEOF
17171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172#
17173# INIT-COMMANDS
17174#
17175
17176
17177# The HP-UX ksh and POSIX shell print the target directory to stdout
17178# if CDPATH is set.
17179(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17180
17181sed_quote_subst='$sed_quote_subst'
17182double_quote_subst='$double_quote_subst'
17183delay_variable_subst='$delay_variable_subst'
17184macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17185macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e 17186enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
549f29b5 17187enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e
DWT
17188pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17189enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17190host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17191host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17192host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17193build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17194build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17195build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17196SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17197Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17198GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17199EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17200FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17201LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17202NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17203LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17204max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17205ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17206exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17207lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17208lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17209lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17210reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17211reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17212OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17213deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17214file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17215AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17216AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17217STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17218RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17219old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17220old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17221old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17222CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17223CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17224compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17225GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17226lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17227lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17228lt_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"`'
17229lt_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"`'
17230objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17231SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17232ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17233MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17234lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17235lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17236lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17237lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17238lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17239need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17240DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17241NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17242LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17243OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17244OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17245libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17246shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17247extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17248archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17249enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17250export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17251whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17252compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17253old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17254old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17255archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17256archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17257module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17258module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17259with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17260allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17261no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17262hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17263hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17264hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17265hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17266hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17267hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17268hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17269hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17270inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17271link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17272fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17273always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17274export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17275exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17276include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17277prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17278file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17279variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17280need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17281need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17282version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17283runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17284shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17285shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17286libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17287library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17288soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17289postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17290postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17291finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17292finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17293hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17294sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17295sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17296hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17297enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17298enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17299enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17300old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17301striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17302compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17303predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17304postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17305predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17306postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17307compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17308LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17309old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17310compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17311GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17312lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17313lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17314lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17315lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17316lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17317archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17318enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17319export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17320whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17321compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17322old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17323old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17324archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17325archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17326module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17327module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17328with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17329allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17330no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17331hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17332hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17333hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17334hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17335hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17336hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17337hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17338hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17339inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17340link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17341fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355
17356LTCC='$LTCC'
17357LTCFLAGS='$LTCFLAGS'
17358compiler='$compiler_DEFAULT'
17359
17360# Quote evaled strings.
17361for var in SED \
17362GREP \
17363EGREP \
17364FGREP \
17365LD \
17366NM \
17367LN_S \
17368lt_SP2NL \
17369lt_NL2SP \
17370reload_flag \
17371OBJDUMP \
17372deplibs_check_method \
17373file_magic_cmd \
17374AR \
17375AR_FLAGS \
17376STRIP \
17377RANLIB \
17378CC \
17379CFLAGS \
17380compiler \
17381lt_cv_sys_global_symbol_pipe \
17382lt_cv_sys_global_symbol_to_cdecl \
17383lt_cv_sys_global_symbol_to_c_name_address \
17384lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17385SHELL \
17386ECHO \
17387lt_prog_compiler_no_builtin_flag \
17388lt_prog_compiler_wl \
17389lt_prog_compiler_pic \
17390lt_prog_compiler_static \
17391lt_cv_prog_compiler_c_o \
17392need_locks \
17393DSYMUTIL \
17394NMEDIT \
17395LIPO \
17396OTOOL \
17397OTOOL64 \
17398shrext_cmds \
17399export_dynamic_flag_spec \
17400whole_archive_flag_spec \
17401compiler_needs_object \
17402with_gnu_ld \
17403allow_undefined_flag \
17404no_undefined_flag \
17405hardcode_libdir_flag_spec \
17406hardcode_libdir_flag_spec_ld \
17407hardcode_libdir_separator \
17408fix_srcfile_path \
17409exclude_expsyms \
17410include_expsyms \
17411file_list_spec \
17412variables_saved_for_relink \
17413libname_spec \
17414library_names_spec \
17415soname_spec \
17416finish_eval \
17417old_striplib \
17418striplib \
17419compiler_lib_search_dirs \
17420predep_objects \
17421postdep_objects \
17422predeps \
17423postdeps \
17424compiler_lib_search_path \
17425LD_CXX \
17426compiler_CXX \
17427lt_prog_compiler_no_builtin_flag_CXX \
17428lt_prog_compiler_wl_CXX \
17429lt_prog_compiler_pic_CXX \
17430lt_prog_compiler_static_CXX \
17431lt_cv_prog_compiler_c_o_CXX \
17432export_dynamic_flag_spec_CXX \
17433whole_archive_flag_spec_CXX \
17434compiler_needs_object_CXX \
17435with_gnu_ld_CXX \
17436allow_undefined_flag_CXX \
17437no_undefined_flag_CXX \
17438hardcode_libdir_flag_spec_CXX \
17439hardcode_libdir_flag_spec_ld_CXX \
17440hardcode_libdir_separator_CXX \
17441fix_srcfile_path_CXX \
17442exclude_expsyms_CXX \
17443include_expsyms_CXX \
17444file_list_spec_CXX \
17445compiler_lib_search_dirs_CXX \
17446predep_objects_CXX \
17447postdep_objects_CXX \
17448predeps_CXX \
17449postdeps_CXX \
17450compiler_lib_search_path_CXX; do
17451 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17452 *[\\\\\\\`\\"\\\$]*)
17453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17454 ;;
17455 *)
17456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17457 ;;
17458 esac
17459done
17460
17461# Double-quote double-evaled strings.
17462for var in reload_cmds \
17463old_postinstall_cmds \
17464old_postuninstall_cmds \
17465old_archive_cmds \
17466extract_expsyms_cmds \
17467old_archive_from_new_cmds \
17468old_archive_from_expsyms_cmds \
17469archive_cmds \
17470archive_expsym_cmds \
17471module_cmds \
17472module_expsym_cmds \
17473export_symbols_cmds \
17474prelink_cmds \
17475postinstall_cmds \
17476postuninstall_cmds \
17477finish_cmds \
17478sys_lib_search_path_spec \
17479sys_lib_dlsearch_path_spec \
17480old_archive_cmds_CXX \
17481old_archive_from_new_cmds_CXX \
17482old_archive_from_expsyms_cmds_CXX \
17483archive_cmds_CXX \
17484archive_expsym_cmds_CXX \
17485module_cmds_CXX \
17486module_expsym_cmds_CXX \
17487export_symbols_cmds_CXX \
17488prelink_cmds_CXX; do
17489 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17490 *[\\\\\\\`\\"\\\$]*)
17491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17492 ;;
17493 *)
17494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17495 ;;
17496 esac
17497done
17498
17499# Fix-up fallback echo if it was mangled by the above quoting rules.
17500case \$lt_ECHO in
17501*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17502 ;;
17503esac
17504
17505ac_aux_dir='$ac_aux_dir'
17506xsi_shell='$xsi_shell'
17507lt_shell_append='$lt_shell_append'
17508
17509# See if we are running on zsh, and set the options which allow our
17510# commands through without removal of \ escapes INIT.
17511if test -n "\${ZSH_VERSION+set}" ; then
17512 setopt NO_GLOB_SUBST
17513fi
17514
17515
17516 PACKAGE='$PACKAGE'
17517 VERSION='$VERSION'
17518 TIMESTAMP='$TIMESTAMP'
17519 RM='$RM'
17520 ofile='$ofile'
17521
17522
17523
17524
17525
17526
17527_ACEOF
17528
17529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17530
17531# Handling of arguments.
17532for ac_config_target in $ac_config_targets
17533do
17534 case $ac_config_target in
17535 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17536 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17537
17538 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17539 esac
17540done
17541
17542
17543# If the user did not use the arguments to specify the items to instantiate,
17544# then the envvar interface is used. Set only those that are not.
17545# We use the long form for the default assignment because of an extremely
17546# bizarre bug on SunOS 4.1.3.
17547if $ac_need_defaults; then
17548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17550fi
17551
17552# Have a temporary directory for convenience. Make it in the build tree
17553# simply because there is no reason against having it here, and in addition,
17554# creating and moving files from /tmp can sometimes cause problems.
17555# Hook for its removal unless debugging.
17556# Note that there is a small window in which the directory will not be cleaned:
17557# after its creation but before its name has been assigned to `$tmp'.
17558$debug ||
17559{
17560 tmp=
17561 trap 'exit_status=$?
17562 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17563' 0
17564 trap 'as_fn_exit 1' 1 2 13 15
17565}
17566# Create a (secure) tmp directory for tmp files.
17567
17568{
17569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17570 test -n "$tmp" && test -d "$tmp"
17571} ||
17572{
17573 tmp=./conf$$-$RANDOM
17574 (umask 077 && mkdir "$tmp")
17575} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17576
17577# Set up the scripts for CONFIG_FILES section.
17578# No need to generate them if there are no CONFIG_FILES.
17579# This happens for instance with `./config.status config.h'.
17580if test -n "$CONFIG_FILES"; then
17581
17582
17583ac_cr=`echo X | tr X '\015'`
17584# On cygwin, bash can eat \r inside `` if the user requested igncr.
17585# But we know of no other shell where ac_cr would be empty at this
17586# point, so we can use a bashism as a fallback.
17587if test "x$ac_cr" = x; then
17588 eval ac_cr=\$\'\\r\'
17589fi
17590ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17591if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17592 ac_cs_awk_cr='\r'
17593else
17594 ac_cs_awk_cr=$ac_cr
17595fi
17596
17597echo 'BEGIN {' >"$tmp/subs1.awk" &&
17598_ACEOF
17599
17600
17601{
17602 echo "cat >conf$$subs.awk <<_ACEOF" &&
17603 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17604 echo "_ACEOF"
17605} >conf$$subs.sh ||
17606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17607ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17608ac_delim='%!_!# '
17609for ac_last_try in false false false false false :; do
17610 . ./conf$$subs.sh ||
17611 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17612
17613 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17614 if test $ac_delim_n = $ac_delim_num; then
17615 break
17616 elif $ac_last_try; then
17617 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17618 else
17619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17620 fi
17621done
17622rm -f conf$$subs.sh
17623
17624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17625cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17626_ACEOF
17627sed -n '
17628h
17629s/^/S["/; s/!.*/"]=/
17630p
17631g
17632s/^[^!]*!//
17633:repl
17634t repl
17635s/'"$ac_delim"'$//
17636t delim
17637:nl
17638h
17639s/\(.\{148\}\)..*/\1/
17640t more1
17641s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17642p
17643n
17644b repl
17645:more1
17646s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17647p
17648g
17649s/.\{148\}//
17650t nl
17651:delim
17652h
17653s/\(.\{148\}\)..*/\1/
17654t more2
17655s/["\\]/\\&/g; s/^/"/; s/$/"/
17656p
17657b
17658:more2
17659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17660p
17661g
17662s/.\{148\}//
17663t delim
17664' <conf$$subs.awk | sed '
17665/^[^""]/{
17666 N
17667 s/\n//
17668}
17669' >>$CONFIG_STATUS || ac_write_fail=1
17670rm -f conf$$subs.awk
17671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17672_ACAWK
17673cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17674 for (key in S) S_is_set[key] = 1
17675 FS = "\a"
17676
17677}
17678{
17679 line = $ 0
17680 nfields = split(line, field, "@")
17681 substed = 0
17682 len = length(field[1])
17683 for (i = 2; i < nfields; i++) {
17684 key = field[i]
17685 keylen = length(key)
17686 if (S_is_set[key]) {
17687 value = S[key]
17688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17689 len += length(value) + length(field[++i])
17690 substed = 1
17691 } else
17692 len += 1 + keylen
17693 }
17694
17695 print line
17696}
17697
17698_ACAWK
17699_ACEOF
17700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17701if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17702 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17703else
17704 cat
17705fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17706 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17707_ACEOF
17708
17709# VPATH may cause trouble with some makes, so we remove $(srcdir),
17710# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17711# trailing colons and then remove the whole line if VPATH becomes empty
17712# (actually we leave an empty line to preserve line numbers).
17713if test "x$srcdir" = x.; then
17714 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17715s/:*\$(srcdir):*/:/
17716s/:*\${srcdir}:*/:/
17717s/:*@srcdir@:*/:/
17718s/^\([^=]*=[ ]*\):*/\1/
17719s/:*$//
17720s/^[^=]*=[ ]*$//
17721}'
17722fi
17723
17724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725fi # test -n "$CONFIG_FILES"
17726
17727
17728eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17729shift
17730for ac_tag
17731do
17732 case $ac_tag in
17733 :[FHLC]) ac_mode=$ac_tag; continue;;
17734 esac
17735 case $ac_mode$ac_tag in
17736 :[FHL]*:*);;
17737 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17738 :[FH]-) ac_tag=-:-;;
17739 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17740 esac
17741 ac_save_IFS=$IFS
17742 IFS=:
17743 set x $ac_tag
17744 IFS=$ac_save_IFS
17745 shift
17746 ac_file=$1
17747 shift
17748
17749 case $ac_mode in
17750 :L) ac_source=$1;;
17751 :[FH])
17752 ac_file_inputs=
17753 for ac_f
17754 do
17755 case $ac_f in
17756 -) ac_f="$tmp/stdin";;
17757 *) # Look for the file first in the build tree, then in the source tree
17758 # (if the path is not absolute). The absolute path cannot be DOS-style,
17759 # because $ac_f cannot contain `:'.
17760 test -f "$ac_f" ||
17761 case $ac_f in
17762 [\\/$]*) false;;
17763 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17764 esac ||
17765 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17766 esac
17767 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17768 as_fn_append ac_file_inputs " '$ac_f'"
17769 done
17770
17771 # Let's still pretend it is `configure' which instantiates (i.e., don't
17772 # use $as_me), people would be surprised to read:
17773 # /* config.h. Generated by config.status. */
17774 configure_input='Generated from '`
17775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17776 `' by configure.'
17777 if test x"$ac_file" != x-; then
17778 configure_input="$ac_file. $configure_input"
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17780$as_echo "$as_me: creating $ac_file" >&6;}
17781 fi
17782 # Neutralize special characters interpreted by sed in replacement strings.
17783 case $configure_input in #(
17784 *\&* | *\|* | *\\* )
17785 ac_sed_conf_input=`$as_echo "$configure_input" |
17786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17787 *) ac_sed_conf_input=$configure_input;;
17788 esac
17789
17790 case $ac_tag in
17791 *:-:* | *:-) cat >"$tmp/stdin" \
17792 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17793 esac
17794 ;;
17795 esac
17796
17797 ac_dir=`$as_dirname -- "$ac_file" ||
17798$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17799 X"$ac_file" : 'X\(//\)[^/]' \| \
17800 X"$ac_file" : 'X\(//\)$' \| \
17801 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17802$as_echo X"$ac_file" |
17803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17804 s//\1/
17805 q
17806 }
17807 /^X\(\/\/\)[^/].*/{
17808 s//\1/
17809 q
17810 }
17811 /^X\(\/\/\)$/{
17812 s//\1/
17813 q
17814 }
17815 /^X\(\/\).*/{
17816 s//\1/
17817 q
17818 }
17819 s/.*/./; q'`
17820 as_dir="$ac_dir"; as_fn_mkdir_p
17821 ac_builddir=.
17822
17823case "$ac_dir" in
17824.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17825*)
17826 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17827 # A ".." for each directory in $ac_dir_suffix.
17828 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17829 case $ac_top_builddir_sub in
17830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17832 esac ;;
17833esac
17834ac_abs_top_builddir=$ac_pwd
17835ac_abs_builddir=$ac_pwd$ac_dir_suffix
17836# for backward compatibility:
17837ac_top_builddir=$ac_top_build_prefix
35fa52c0 17838
9c60689e
DWT
17839case $srcdir in
17840 .) # We are building in place.
17841 ac_srcdir=.
17842 ac_top_srcdir=$ac_top_builddir_sub
17843 ac_abs_top_srcdir=$ac_pwd ;;
17844 [\\/]* | ?:[\\/]* ) # Absolute name.
17845 ac_srcdir=$srcdir$ac_dir_suffix;
17846 ac_top_srcdir=$srcdir
17847 ac_abs_top_srcdir=$srcdir ;;
17848 *) # Relative name.
17849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17850 ac_top_srcdir=$ac_top_build_prefix$srcdir
17851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17852esac
17853ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
17854
17855
9c60689e
DWT
17856 case $ac_mode in
17857 :F)
17858 #
17859 # CONFIG_FILE
17860 #
35fa52c0 17861
9c60689e
DWT
17862 case $INSTALL in
17863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17865 esac
17866_ACEOF
35fa52c0 17867
9c60689e
DWT
17868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17869# If the template does not know about datarootdir, expand it.
17870# FIXME: This hack should be removed a few years after 2.60.
17871ac_datarootdir_hack=; ac_datarootdir_seen=
17872ac_sed_dataroot='
17873/datarootdir/ {
17874 p
17875 q
17876}
17877/@datadir@/p
17878/@docdir@/p
17879/@infodir@/p
17880/@localedir@/p
17881/@mandir@/p'
17882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17883*datarootdir*) ac_datarootdir_seen=yes;;
17884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17886$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17887_ACEOF
17888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17889 ac_datarootdir_hack='
17890 s&@datadir@&$datadir&g
17891 s&@docdir@&$docdir&g
17892 s&@infodir@&$infodir&g
17893 s&@localedir@&$localedir&g
17894 s&@mandir@&$mandir&g
17895 s&\\\${datarootdir}&$datarootdir&g' ;;
17896esac
17897_ACEOF
35fa52c0 17898
9c60689e
DWT
17899# Neutralize VPATH when `$srcdir' = `.'.
17900# Shell code in configure.ac might set extrasub.
17901# FIXME: do we really want to maintain this feature?
17902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17903ac_sed_extra="$ac_vpsub
17904$extrasub
17905_ACEOF
17906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17907:t
17908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17909s|@configure_input@|$ac_sed_conf_input|;t t
17910s&@top_builddir@&$ac_top_builddir_sub&;t t
17911s&@top_build_prefix@&$ac_top_build_prefix&;t t
17912s&@srcdir@&$ac_srcdir&;t t
17913s&@abs_srcdir@&$ac_abs_srcdir&;t t
17914s&@top_srcdir@&$ac_top_srcdir&;t t
17915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17916s&@builddir@&$ac_builddir&;t t
17917s&@abs_builddir@&$ac_abs_builddir&;t t
17918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17919s&@INSTALL@&$ac_INSTALL&;t t
17920$ac_datarootdir_hack
17921"
17922eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17923 || as_fn_error "could not create $ac_file" "$LINENO" 5
17924
17925test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17926 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17929which seems to be undefined. Please make sure it is defined." >&5
17930$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17931which seems to be undefined. Please make sure it is defined." >&2;}
17932
17933 rm -f "$tmp/stdin"
17934 case $ac_file in
17935 -) cat "$tmp/out" && rm -f "$tmp/out";;
17936 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17937 esac \
17938 || as_fn_error "could not create $ac_file" "$LINENO" 5
17939 ;;
35fa52c0 17940
35fa52c0 17941
9c60689e
DWT
17942 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17943$as_echo "$as_me: executing $ac_file commands" >&6;}
17944 ;;
17945 esac
35fa52c0 17946
35fa52c0 17947
9c60689e
DWT
17948 case $ac_file$ac_mode in
17949 "libtool":C)
17950
17951 # See if we are running on zsh, and set the options which allow our
17952 # commands through without removal of \ escapes.
17953 if test -n "${ZSH_VERSION+set}" ; then
17954 setopt NO_GLOB_SUBST
35fa52c0 17955 fi
35fa52c0 17956
9c60689e
DWT
17957 cfgfile="${ofile}T"
17958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17959 $RM "$cfgfile"
35fa52c0 17960
9c60689e
DWT
17961 cat <<_LT_EOF >> "$cfgfile"
17962#! $SHELL
35fa52c0 17963
9c60689e
DWT
17964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17968#
17969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17970# 2006, 2007, 2008 Free Software Foundation, Inc.
17971# Written by Gordon Matzigkeit, 1996
17972#
17973# This file is part of GNU Libtool.
17974#
17975# GNU Libtool is free software; you can redistribute it and/or
17976# modify it under the terms of the GNU General Public License as
17977# published by the Free Software Foundation; either version 2 of
17978# the License, or (at your option) any later version.
17979#
17980# As a special exception to the GNU General Public License,
17981# if you distribute this file as part of a program or library that
17982# is built using GNU Libtool, you may include this file under the
17983# same distribution terms that you use for the rest of that program.
17984#
17985# GNU Libtool is distributed in the hope that it will be useful,
17986# but WITHOUT ANY WARRANTY; without even the implied warranty of
17987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17988# GNU General Public License for more details.
17989#
17990# You should have received a copy of the GNU General Public License
17991# along with GNU Libtool; see the file COPYING. If not, a copy
17992# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17993# obtained by writing to the Free Software Foundation, Inc.,
17994# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 17995
35fa52c0 17996
9c60689e
DWT
17997# The names of the tagged configurations supported by this script.
17998available_tags="CXX "
35fa52c0 17999
9c60689e 18000# ### BEGIN LIBTOOL CONFIG
35fa52c0 18001
9c60689e
DWT
18002# Which release of libtool.m4 was used?
18003macro_version=$macro_version
18004macro_revision=$macro_revision
35fa52c0 18005
9c60689e
DWT
18006# Whether or not to build static libraries.
18007build_old_libs=$enable_static
35fa52c0 18008
549f29b5
DWT
18009# Whether or not to build shared libraries.
18010build_libtool_libs=$enable_shared
18011
9c60689e
DWT
18012# What type of objects to build.
18013pic_mode=$pic_mode
35fa52c0 18014
9c60689e
DWT
18015# Whether or not to optimize for fast installation.
18016fast_install=$enable_fast_install
35fa52c0 18017
9c60689e
DWT
18018# The host system.
18019host_alias=$host_alias
18020host=$host
18021host_os=$host_os
35fa52c0 18022
9c60689e
DWT
18023# The build system.
18024build_alias=$build_alias
18025build=$build
18026build_os=$build_os
18027
18028# A sed program that does not truncate output.
18029SED=$lt_SED
18030
18031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18032Xsed="\$SED -e 1s/^X//"
18033
18034# A grep program that handles long lines.
18035GREP=$lt_GREP
18036
18037# An ERE matcher.
18038EGREP=$lt_EGREP
18039
18040# A literal string matcher.
18041FGREP=$lt_FGREP
18042
18043# A BSD- or MS-compatible name lister.
18044NM=$lt_NM
18045
18046# Whether we need soft or hard links.
18047LN_S=$lt_LN_S
18048
18049# What is the maximum length of a command?
18050max_cmd_len=$max_cmd_len
18051
18052# Object file suffix (normally "o").
18053objext=$ac_objext
18054
18055# Executable file suffix (normally "").
18056exeext=$exeext
18057
18058# whether the shell understands "unset".
18059lt_unset=$lt_unset
18060
18061# turn spaces into newlines.
18062SP2NL=$lt_lt_SP2NL
18063
18064# turn newlines into spaces.
18065NL2SP=$lt_lt_NL2SP
18066
18067# How to create reloadable object files.
18068reload_flag=$lt_reload_flag
18069reload_cmds=$lt_reload_cmds
18070
18071# An object symbol dumper.
18072OBJDUMP=$lt_OBJDUMP
18073
18074# Method to check whether dependent libraries are shared objects.
18075deplibs_check_method=$lt_deplibs_check_method
18076
18077# Command to use when deplibs_check_method == "file_magic".
18078file_magic_cmd=$lt_file_magic_cmd
18079
18080# The archiver.
18081AR=$lt_AR
18082AR_FLAGS=$lt_AR_FLAGS
18083
18084# A symbol stripping program.
18085STRIP=$lt_STRIP
18086
18087# Commands used to install an old-style archive.
18088RANLIB=$lt_RANLIB
18089old_postinstall_cmds=$lt_old_postinstall_cmds
18090old_postuninstall_cmds=$lt_old_postuninstall_cmds
18091
18092# A C compiler.
18093LTCC=$lt_CC
18094
18095# LTCC compiler flags.
18096LTCFLAGS=$lt_CFLAGS
18097
18098# Take the output of nm and produce a listing of raw symbols and C names.
18099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18100
18101# Transform the output of nm in a proper C declaration.
18102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18103
18104# Transform the output of nm in a C name address pair.
18105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18106
18107# Transform the output of nm in a C name address pair when lib prefix is needed.
18108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18109
18110# The name of the directory that contains temporary libtool files.
18111objdir=$objdir
18112
18113# Shell to use when invoking shell scripts.
18114SHELL=$lt_SHELL
18115
18116# An echo program that does not interpret backslashes.
18117ECHO=$lt_ECHO
18118
18119# Used to examine libraries when file_magic_cmd begins with "file".
18120MAGIC_CMD=$MAGIC_CMD
18121
18122# Must we lock files when doing compilation?
18123need_locks=$lt_need_locks
18124
18125# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18126DSYMUTIL=$lt_DSYMUTIL
18127
18128# Tool to change global to local symbols on Mac OS X.
18129NMEDIT=$lt_NMEDIT
18130
18131# Tool to manipulate fat objects and archives on Mac OS X.
18132LIPO=$lt_LIPO
18133
18134# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18135OTOOL=$lt_OTOOL
18136
18137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18138OTOOL64=$lt_OTOOL64
18139
18140# Old archive suffix (normally "a").
18141libext=$libext
18142
18143# Shared library suffix (normally ".so").
18144shrext_cmds=$lt_shrext_cmds
35fa52c0 18145
9c60689e
DWT
18146# The commands to extract the exported symbol list from a shared archive.
18147extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 18148
9c60689e
DWT
18149# Variables whose values should be saved in libtool wrapper scripts and
18150# restored at link time.
18151variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 18152
9c60689e
DWT
18153# Do we need the "lib" prefix for modules?
18154need_lib_prefix=$need_lib_prefix
35fa52c0 18155
9c60689e
DWT
18156# Do we need a version for libraries?
18157need_version=$need_version
35fa52c0 18158
9c60689e
DWT
18159# Library versioning type.
18160version_type=$version_type
35fa52c0 18161
9c60689e
DWT
18162# Shared library runtime path variable.
18163runpath_var=$runpath_var
35fa52c0 18164
9c60689e
DWT
18165# Shared library path variable.
18166shlibpath_var=$shlibpath_var
35fa52c0 18167
9c60689e
DWT
18168# Is shlibpath searched before the hard-coded library search path?
18169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 18170
9c60689e
DWT
18171# Format of library name prefix.
18172libname_spec=$lt_libname_spec
35fa52c0 18173
9c60689e
DWT
18174# List of archive names. First name is the real one, the rest are links.
18175# The last name is the one that the linker finds with -lNAME
18176library_names_spec=$lt_library_names_spec
dbadc56a 18177
9c60689e
DWT
18178# The coded name of the library, if different from the real name.
18179soname_spec=$lt_soname_spec
dbadc56a 18180
9c60689e
DWT
18181# Command to use after installation of a shared archive.
18182postinstall_cmds=$lt_postinstall_cmds
35fa52c0 18183
9c60689e
DWT
18184# Command to use after uninstallation of a shared archive.
18185postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 18186
9c60689e
DWT
18187# Commands used to finish a libtool library installation in a directory.
18188finish_cmds=$lt_finish_cmds
35fa52c0 18189
9c60689e
DWT
18190# As "finish_cmds", except a single script fragment to be evaled but
18191# not shown.
18192finish_eval=$lt_finish_eval
35fa52c0 18193
9c60689e
DWT
18194# Whether we should hardcode library paths into libraries.
18195hardcode_into_libs=$hardcode_into_libs
dbadc56a 18196
9c60689e
DWT
18197# Compile-time system search path for libraries.
18198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 18199
9c60689e
DWT
18200# Run-time system search path for libraries.
18201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 18202
9c60689e
DWT
18203# Whether dlopen is supported.
18204dlopen_support=$enable_dlopen
dbadc56a 18205
9c60689e
DWT
18206# Whether dlopen of programs is supported.
18207dlopen_self=$enable_dlopen_self
35fa52c0 18208
9c60689e
DWT
18209# Whether dlopen of statically linked programs is supported.
18210dlopen_self_static=$enable_dlopen_self_static
35fa52c0 18211
9c60689e
DWT
18212# Commands to strip libraries.
18213old_striplib=$lt_old_striplib
18214striplib=$lt_striplib
35fa52c0 18215
35fa52c0 18216
9c60689e
DWT
18217# The linker used to build libraries.
18218LD=$lt_LD
dbadc56a 18219
9c60689e
DWT
18220# Commands used to build an old-style archive.
18221old_archive_cmds=$lt_old_archive_cmds
dbadc56a 18222
9c60689e
DWT
18223# A language specific compiler.
18224CC=$lt_compiler
35fa52c0 18225
9c60689e
DWT
18226# Is the compiler the GNU compiler?
18227with_gcc=$GCC
dbadc56a 18228
9c60689e
DWT
18229# Compiler flag to turn off builtin functions.
18230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 18231
9c60689e
DWT
18232# How to pass a linker flag through the compiler.
18233wl=$lt_lt_prog_compiler_wl
35fa52c0 18234
9c60689e
DWT
18235# Additional compiler flags for building library objects.
18236pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 18237
9c60689e
DWT
18238# Compiler flag to prevent dynamic linking.
18239link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 18240
9c60689e
DWT
18241# Does compiler simultaneously support -c and -o options?
18242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 18243
9c60689e
DWT
18244# Whether or not to add -lc for building shared libraries.
18245build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 18246
9c60689e
DWT
18247# Whether or not to disallow shared libs when runtime libs are static.
18248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 18249
9c60689e
DWT
18250# Compiler flag to allow reflexive dlopens.
18251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 18252
9c60689e
DWT
18253# Compiler flag to generate shared objects directly from archives.
18254whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 18255
9c60689e
DWT
18256# Whether the compiler copes with passing no objects directly.
18257compiler_needs_object=$lt_compiler_needs_object
dbadc56a 18258
9c60689e
DWT
18259# Create an old-style archive from a shared archive.
18260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 18261
9c60689e
DWT
18262# Create a temporary old-style archive to link instead of a shared archive.
18263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 18264
9c60689e
DWT
18265# Commands used to build a shared archive.
18266archive_cmds=$lt_archive_cmds
18267archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 18268
9c60689e
DWT
18269# Commands used to build a loadable module if different from building
18270# a shared archive.
18271module_cmds=$lt_module_cmds
18272module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 18273
9c60689e
DWT
18274# Whether we are building with GNU ld or not.
18275with_gnu_ld=$lt_with_gnu_ld
6b66678a 18276
9c60689e
DWT
18277# Flag that allows shared libraries with undefined symbols to be built.
18278allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 18279
9c60689e
DWT
18280# Flag that enforces no undefined symbols.
18281no_undefined_flag=$lt_no_undefined_flag
6b66678a 18282
9c60689e
DWT
18283# Flag to hardcode \$libdir into a binary during linking.
18284# This must work even if \$libdir does not exist
18285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 18286
9c60689e
DWT
18287# If ld is used when linking, flag to hardcode \$libdir into a binary
18288# during linking. This must work even if \$libdir does not exist.
18289hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 18290
9c60689e
DWT
18291# Whether we need a single "-rpath" flag with a separated argument.
18292hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 18293
9c60689e
DWT
18294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18295# DIR into the resulting binary.
18296hardcode_direct=$hardcode_direct
6b66678a 18297
9c60689e
DWT
18298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18299# DIR into the resulting binary and the resulting library dependency is
18300# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18301# library is relocated.
18302hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 18303
9c60689e
DWT
18304# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18305# into the resulting binary.
18306hardcode_minus_L=$hardcode_minus_L
6b66678a 18307
9c60689e
DWT
18308# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18309# into the resulting binary.
18310hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 18311
9c60689e
DWT
18312# Set to "yes" if building a shared library automatically hardcodes DIR
18313# into the library and all subsequent libraries and executables linked
18314# against it.
18315hardcode_automatic=$hardcode_automatic
6b66678a 18316
9c60689e
DWT
18317# Set to yes if linker adds runtime paths of dependent libraries
18318# to runtime path list.
18319inherit_rpath=$inherit_rpath
6b66678a 18320
9c60689e
DWT
18321# Whether libtool must link a program against all its dependency libraries.
18322link_all_deplibs=$link_all_deplibs
18323
18324# Fix the shell variable \$srcfile for the compiler.
18325fix_srcfile_path=$lt_fix_srcfile_path
18326
18327# Set to "yes" if exported symbols are required.
18328always_export_symbols=$always_export_symbols
6b66678a 18329
9c60689e
DWT
18330# The commands to list exported symbols.
18331export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 18332
9c60689e
DWT
18333# Symbols that should not be listed in the preloaded symbols.
18334exclude_expsyms=$lt_exclude_expsyms
6b66678a 18335
9c60689e
DWT
18336# Symbols that must always be exported.
18337include_expsyms=$lt_include_expsyms
6b66678a 18338
9c60689e
DWT
18339# Commands necessary for linking programs (against libraries) with templates.
18340prelink_cmds=$lt_prelink_cmds
6b66678a 18341
9c60689e
DWT
18342# Specify filename containing input files.
18343file_list_spec=$lt_file_list_spec
6b66678a 18344
9c60689e
DWT
18345# How to hardcode a shared library path into an executable.
18346hardcode_action=$hardcode_action
18347
18348# The directories searched by this compiler when creating a shared library.
18349compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18350
18351# Dependencies to place before and after the objects being linked to
18352# create a shared library.
18353predep_objects=$lt_predep_objects
18354postdep_objects=$lt_postdep_objects
18355predeps=$lt_predeps
18356postdeps=$lt_postdeps
18357
18358# The library search path used internally by the compiler when linking
18359# a shared library.
18360compiler_lib_search_path=$lt_compiler_lib_search_path
18361
18362# ### END LIBTOOL CONFIG
18363
18364_LT_EOF
18365
18366 case $host_os in
18367 aix3*)
18368 cat <<\_LT_EOF >> "$cfgfile"
18369# AIX sometimes has problems with the GCC collect2 program. For some
18370# reason, if we set the COLLECT_NAMES environment variable, the problems
18371# vanish in a puff of smoke.
18372if test "X${COLLECT_NAMES+set}" != Xset; then
18373 COLLECT_NAMES=
18374 export COLLECT_NAMES
6b66678a 18375fi
9c60689e
DWT
18376_LT_EOF
18377 ;;
18378 esac
6b66678a
DWT
18379
18380
9c60689e 18381ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 18382
9c60689e
DWT
18383
18384 # We use sed instead of cat because bash on DJGPP gets confused if
18385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18386 # text mode, it properly converts lines to CR/LF. This bash problem
18387 # is reportedly fixed, but why not run on old versions too?
18388 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18389 || (rm -f "$cfgfile"; exit 1)
18390
18391 case $xsi_shell in
18392 yes)
18393 cat << \_LT_EOF >> "$cfgfile"
18394
18395# func_dirname file append nondir_replacement
18396# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18397# otherwise set result to NONDIR_REPLACEMENT.
18398func_dirname ()
6b66678a 18399{
9c60689e
DWT
18400 case ${1} in
18401 */*) func_dirname_result="${1%/*}${2}" ;;
18402 * ) func_dirname_result="${3}" ;;
18403 esac
18404}
6b66678a 18405
9c60689e
DWT
18406# func_basename file
18407func_basename ()
18408{
18409 func_basename_result="${1##*/}"
6b66678a 18410}
6b66678a 18411
9c60689e
DWT
18412# func_dirname_and_basename file append nondir_replacement
18413# perform func_basename and func_dirname in a single function
18414# call:
18415# dirname: Compute the dirname of FILE. If nonempty,
18416# add APPEND to the result, otherwise set result
18417# to NONDIR_REPLACEMENT.
18418# value returned in "$func_dirname_result"
18419# basename: Compute filename of FILE.
18420# value retuned in "$func_basename_result"
18421# Implementation must be kept synchronized with func_dirname
18422# and func_basename. For efficiency, we do not delegate to
18423# those functions but instead duplicate the functionality here.
18424func_dirname_and_basename ()
18425{
18426 case ${1} in
18427 */*) func_dirname_result="${1%/*}${2}" ;;
18428 * ) func_dirname_result="${3}" ;;
18429 esac
18430 func_basename_result="${1##*/}"
18431}
6b66678a 18432
9c60689e
DWT
18433# func_stripname prefix suffix name
18434# strip PREFIX and SUFFIX off of NAME.
18435# PREFIX and SUFFIX must not contain globbing or regex special
18436# characters, hashes, percent signs, but SUFFIX may contain a leading
18437# dot (in which case that matches only a dot).
18438func_stripname ()
18439{
18440 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18441 # positional parameters, so assign one to ordinary parameter first.
18442 func_stripname_result=${3}
18443 func_stripname_result=${func_stripname_result#"${1}"}
18444 func_stripname_result=${func_stripname_result%"${2}"}
18445}
6b66678a 18446
9c60689e
DWT
18447# func_opt_split
18448func_opt_split ()
18449{
18450 func_opt_split_opt=${1%%=*}
18451 func_opt_split_arg=${1#*=}
18452}
6b66678a 18453
9c60689e
DWT
18454# func_lo2o object
18455func_lo2o ()
18456{
18457 case ${1} in
18458 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18459 *) func_lo2o_result=${1} ;;
18460 esac
18461}
6b66678a 18462
9c60689e
DWT
18463# func_xform libobj-or-source
18464func_xform ()
18465{
18466 func_xform_result=${1%.*}.lo
18467}
6b66678a 18468
9c60689e
DWT
18469# func_arith arithmetic-term...
18470func_arith ()
18471{
18472 func_arith_result=$(( $* ))
18473}
6b66678a 18474
9c60689e
DWT
18475# func_len string
18476# STRING may not start with a hyphen.
18477func_len ()
18478{
18479 func_len_result=${#1}
18480}
6b66678a 18481
9c60689e
DWT
18482_LT_EOF
18483 ;;
18484 *) # Bourne compatible functions.
18485 cat << \_LT_EOF >> "$cfgfile"
6b66678a 18486
9c60689e
DWT
18487# func_dirname file append nondir_replacement
18488# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18489# otherwise set result to NONDIR_REPLACEMENT.
18490func_dirname ()
18491{
18492 # Extract subdirectory from the argument.
18493 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18494 if test "X$func_dirname_result" = "X${1}"; then
18495 func_dirname_result="${3}"
18496 else
18497 func_dirname_result="$func_dirname_result${2}"
18498 fi
18499}
6b66678a 18500
9c60689e
DWT
18501# func_basename file
18502func_basename ()
6b66678a 18503{
9c60689e 18504 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6b66678a 18505}
6b66678a 18506
6b66678a 18507
9c60689e
DWT
18508# func_stripname prefix suffix name
18509# strip PREFIX and SUFFIX off of NAME.
18510# PREFIX and SUFFIX must not contain globbing or regex special
18511# characters, hashes, percent signs, but SUFFIX may contain a leading
18512# dot (in which case that matches only a dot).
18513# func_strip_suffix prefix name
18514func_stripname ()
18515{
18516 case ${2} in
18517 .*) func_stripname_result=`$ECHO "X${3}" \
18518 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18519 *) func_stripname_result=`$ECHO "X${3}" \
18520 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18521 esac
18522}
6b66678a 18523
9c60689e
DWT
18524# sed scripts:
18525my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18526my_sed_long_arg='1s/^-[^=]*=//'
6b66678a 18527
9c60689e
DWT
18528# func_opt_split
18529func_opt_split ()
18530{
18531 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18532 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18533}
6b66678a 18534
9c60689e
DWT
18535# func_lo2o object
18536func_lo2o ()
18537{
18538 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18539}
18540
18541# func_xform libobj-or-source
18542func_xform ()
18543{
18544 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18545}
18546
18547# func_arith arithmetic-term...
18548func_arith ()
18549{
18550 func_arith_result=`expr "$@"`
18551}
18552
18553# func_len string
18554# STRING may not start with a hyphen.
18555func_len ()
18556{
18557 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18558}
18559
18560_LT_EOF
18561esac
18562
18563case $lt_shell_append in
18564 yes)
18565 cat << \_LT_EOF >> "$cfgfile"
18566
18567# func_append var value
18568# Append VALUE to the end of shell variable VAR.
18569func_append ()
18570{
18571 eval "$1+=\$2"
18572}
18573_LT_EOF
18574 ;;
18575 *)
18576 cat << \_LT_EOF >> "$cfgfile"
18577
18578# func_append var value
18579# Append VALUE to the end of shell variable VAR.
18580func_append ()
18581{
18582 eval "$1=\$$1\$2"
18583}
18584
18585_LT_EOF
18586 ;;
18587 esac
18588
18589
18590 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18591 || (rm -f "$cfgfile"; exit 1)
18592
18593 mv -f "$cfgfile" "$ofile" ||
18594 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18595 chmod +x "$ofile"
18596
18597
18598 cat <<_LT_EOF >> "$ofile"
18599
18600# ### BEGIN LIBTOOL TAG CONFIG: CXX
18601
18602# The linker used to build libraries.
18603LD=$lt_LD_CXX
18604
18605# Commands used to build an old-style archive.
18606old_archive_cmds=$lt_old_archive_cmds_CXX
18607
18608# A language specific compiler.
18609CC=$lt_compiler_CXX
18610
18611# Is the compiler the GNU compiler?
18612with_gcc=$GCC_CXX
18613
18614# Compiler flag to turn off builtin functions.
18615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 18616
9c60689e
DWT
18617# How to pass a linker flag through the compiler.
18618wl=$lt_lt_prog_compiler_wl_CXX
6b66678a 18619
9c60689e
DWT
18620# Additional compiler flags for building library objects.
18621pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 18622
9c60689e
DWT
18623# Compiler flag to prevent dynamic linking.
18624link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 18625
9c60689e
DWT
18626# Does compiler simultaneously support -c and -o options?
18627compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 18628
9c60689e
DWT
18629# Whether or not to add -lc for building shared libraries.
18630build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 18631
9c60689e
DWT
18632# Whether or not to disallow shared libs when runtime libs are static.
18633allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 18634
9c60689e
DWT
18635# Compiler flag to allow reflexive dlopens.
18636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 18637
9c60689e
DWT
18638# Compiler flag to generate shared objects directly from archives.
18639whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 18640
9c60689e
DWT
18641# Whether the compiler copes with passing no objects directly.
18642compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 18643
9c60689e
DWT
18644# Create an old-style archive from a shared archive.
18645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 18646
9c60689e
DWT
18647# Create a temporary old-style archive to link instead of a shared archive.
18648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 18649
9c60689e
DWT
18650# Commands used to build a shared archive.
18651archive_cmds=$lt_archive_cmds_CXX
18652archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 18653
9c60689e
DWT
18654# Commands used to build a loadable module if different from building
18655# a shared archive.
18656module_cmds=$lt_module_cmds_CXX
18657module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 18658
9c60689e
DWT
18659# Whether we are building with GNU ld or not.
18660with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 18661
9c60689e
DWT
18662# Flag that allows shared libraries with undefined symbols to be built.
18663allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 18664
9c60689e
DWT
18665# Flag that enforces no undefined symbols.
18666no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 18667
9c60689e
DWT
18668# Flag to hardcode \$libdir into a binary during linking.
18669# This must work even if \$libdir does not exist
18670hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 18671
9c60689e
DWT
18672# If ld is used when linking, flag to hardcode \$libdir into a binary
18673# during linking. This must work even if \$libdir does not exist.
18674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 18675
9c60689e
DWT
18676# Whether we need a single "-rpath" flag with a separated argument.
18677hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 18678
9c60689e
DWT
18679# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18680# DIR into the resulting binary.
18681hardcode_direct=$hardcode_direct_CXX
6b66678a 18682
9c60689e
DWT
18683# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18684# DIR into the resulting binary and the resulting library dependency is
18685# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18686# library is relocated.
18687hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 18688
9c60689e
DWT
18689# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18690# into the resulting binary.
18691hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 18692
9c60689e
DWT
18693# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18694# into the resulting binary.
18695hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 18696
9c60689e
DWT
18697# Set to "yes" if building a shared library automatically hardcodes DIR
18698# into the library and all subsequent libraries and executables linked
18699# against it.
18700hardcode_automatic=$hardcode_automatic_CXX
6b66678a 18701
9c60689e
DWT
18702# Set to yes if linker adds runtime paths of dependent libraries
18703# to runtime path list.
18704inherit_rpath=$inherit_rpath_CXX
6b66678a 18705
9c60689e
DWT
18706# Whether libtool must link a program against all its dependency libraries.
18707link_all_deplibs=$link_all_deplibs_CXX
6b66678a 18708
9c60689e
DWT
18709# Fix the shell variable \$srcfile for the compiler.
18710fix_srcfile_path=$lt_fix_srcfile_path_CXX
6b66678a 18711
9c60689e
DWT
18712# Set to "yes" if exported symbols are required.
18713always_export_symbols=$always_export_symbols_CXX
6b66678a 18714
9c60689e
DWT
18715# The commands to list exported symbols.
18716export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 18717
9c60689e
DWT
18718# Symbols that should not be listed in the preloaded symbols.
18719exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 18720
9c60689e
DWT
18721# Symbols that must always be exported.
18722include_expsyms=$lt_include_expsyms_CXX
6b66678a 18723
9c60689e
DWT
18724# Commands necessary for linking programs (against libraries) with templates.
18725prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 18726
9c60689e
DWT
18727# Specify filename containing input files.
18728file_list_spec=$lt_file_list_spec_CXX
dbadc56a 18729
9c60689e
DWT
18730# How to hardcode a shared library path into an executable.
18731hardcode_action=$hardcode_action_CXX
309b0535 18732
9c60689e
DWT
18733# The directories searched by this compiler when creating a shared library.
18734compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 18735
9c60689e
DWT
18736# Dependencies to place before and after the objects being linked to
18737# create a shared library.
18738predep_objects=$lt_predep_objects_CXX
18739postdep_objects=$lt_postdep_objects_CXX
18740predeps=$lt_predeps_CXX
18741postdeps=$lt_postdeps_CXX
309b0535 18742
9c60689e
DWT
18743# The library search path used internally by the compiler when linking
18744# a shared library.
18745compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18746
18747# ### END LIBTOOL TAG CONFIG: CXX
18748_LT_EOF
18749
18750 ;;
18751
18752 esac
18753done # for ac_tag
18754
18755
18756as_fn_exit 0
18757_ACEOF
18758ac_clean_files=$ac_clean_files_save
18759
18760test $ac_write_fail = 0 ||
18761 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18762
18763
18764# configure is writing to config.log, and then calls config.status.
18765# config.status does its own redirection, appending to config.log.
18766# Unfortunately, on DOS this fails, as config.log is still kept open
18767# by configure, so config.status won't be able to write to it; its
18768# output is simply discarded. So we exec the FD to /dev/null,
18769# effectively closing config.log, so it can be properly (re)opened and
18770# appended to by config.status. When coming back to configure, we
18771# need to make the FD available again.
18772if test "$no_create" != yes; then
18773 ac_cs_success=:
18774 ac_config_status_args=
18775 test "$silent" = yes &&
18776 ac_config_status_args="$ac_config_status_args --quiet"
18777 exec 5>/dev/null
18778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18779 exec 5>>config.log
18780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18781 # would make configure fail if this is the last instruction.
18782 $ac_cs_success || as_fn_exit $?
309b0535 18783fi
9c60689e
DWT
18784if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18786$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18787fi
18788