]> git.saurik.com Git - cycript.git/blob - configure
This seems to work a little better.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
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
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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 }
83 fi
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
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
103 IFS=$as_save_IFS
104
105 ;;
106 esac
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.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if 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
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
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
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
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
211 fi; }
212 IFS=$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+"$@"}
224 fi
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
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_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.
272 as_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.
282 as_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.
332 if (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 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # 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.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # 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.
367 as_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
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_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.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_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
455 ECHO_C= ECHO_N= ECHO_T=
456 case `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';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (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
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
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 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_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.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if 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
565 fi
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
571 if 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
669 fi
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.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680 as_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 '
740
741 test -n "$DJDIR" || exec 7<&0 </dev/null
742 exec 6>&1
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.
747 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749 #
750 # Initializations.
751 #
752 ac_default_prefix=/usr/local
753 ac_clean_files=
754 ac_config_libobj_dir=.
755 LIBOBJS=
756 cross_compiling=no
757 subdirs=
758 MFLAGS=
759 MAKEFLAGS=
760
761 # Identity of this package.
762 PACKAGE_NAME='Cycript'
763 PACKAGE_TARNAME='cycript'
764 PACKAGE_VERSION='0.9'
765 PACKAGE_STRING='Cycript 0.9'
766 PACKAGE_BUGREPORT='saurik@saurik.com'
767 PACKAGE_URL='http://www.cycript.org/'
768
769 ac_unique_file="Console.cpp"
770 # Factoring default headers for most tests.
771 ac_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
806 ac_subst_vars='LTLIBOBJS
807 LIBOBJS
808 ifGNUmake
809 GNUSTEP_CONFIG
810 CY_OBJECTIVEC
811 LIBFFI_LIBS
812 LIBFFI_CFLAGS
813 CY_EXECUTE
814 ac_ct_OBJCXX
815 OBJCXXFLAGS
816 OBJCXX
817 WEBKIT_LIBS
818 WEBKIT_CFLAGS
819 LTLIBICONV
820 LIBICONV
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 LTLIBAPR
825 TIME
826 GPERF
827 _BASH
828 FLEX
829 LEXLIB
830 LEX_OUTPUT_ROOT
831 LEX
832 BISON
833 AWK
834 YFLAGS
835 YACC
836 CXXCPP
837 ac_ct_CXX
838 CXXFLAGS
839 CXX
840 PKG_CONFIG
841 CPP
842 OTOOL64
843 OTOOL
844 LIPO
845 NMEDIT
846 DSYMUTIL
847 lt_ECHO
848 RANLIB
849 STRIP
850 AR
851 OBJDUMP
852 LN_S
853 NM
854 ac_ct_DUMPBIN
855 DUMPBIN
856 LD
857 FGREP
858 EGREP
859 GREP
860 SED
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
867 CC
868 host_os
869 host_vendor
870 host_cpu
871 host
872 build_os
873 build_vendor
874 build_cpu
875 build
876 LIBTOOL
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 enable_static
919 enable_shared
920 with_pic
921 enable_fast_install
922 with_gnu_ld
923 enable_libtool_lock
924 with_apr
925 enable_rpath
926 with_libiconv_prefix
927 '
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 PKG_CONFIG
938 CXX
939 CXXFLAGS
940 CCC
941 CXXCPP
942 YACC
943 YFLAGS
944 GPERF
945 WEBKIT_CFLAGS
946 WEBKIT_LIBS
947 OBJCXX
948 OBJCXXFLAGS
949 LIBFFI_CFLAGS
950 LIBFFI_LIBS'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1010 fi
1011
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1245
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1256
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1261
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1266
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1273
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1278
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1281
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1284
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1378 do
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1409 fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1456 fi
1457 else
1458 ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1546
1547 cat <<\_ACEOF
1548
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1553 fi
1554
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of Cycript 0.9:";;
1558 esac
1559 cat <<\_ACEOF
1560
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-static[=PKGS] build static libraries [default=no]
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --disable-rpath do not hardcode runtime library paths
1571
1572 Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-apr=PATH prefix for installed APR or the full path to
1579 apr-config
1580 --with-gnu-ld assume the C compiler uses GNU ld default=no
1581 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1582 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1583
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CPP C preprocessor
1593 PKG_CONFIG path to pkg-config utility
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1596 CXXCPP C++ preprocessor
1597 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1598 the first program found out of: `bison -y', `byacc', `yacc'.
1599 YFLAGS The list of arguments that will be passed by default to $YACC.
1600 This script will default YFLAGS to the empty string to avoid a
1601 default value of `-d' given by some make applications.
1602 GPERF perfect hash function generator
1603 WEBKIT_CFLAGS
1604 C compiler flags for WEBKIT, overriding pkg-config
1605 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1606 OBJCXX Objective C++ compiler command
1607 OBJCXXFLAGS Objective C++ compiler flags
1608 LIBFFI_CFLAGS
1609 C compiler flags for LIBFFI, overriding pkg-config
1610 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1611
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1614
1615 Report bugs to <saurik@saurik.com>.
1616 Cycript home page: <http://www.cycript.org/>.
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 Cycript configure 0.9
1680 generated by GNU Autoconf 2.65
1681
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1687 fi
1688
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1692
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_compile
1730
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_link ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_link
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806 } # ac_fn_c_check_header_compile
1807
1808 # ac_fn_c_try_cpp LINENO
1809 # ----------------------
1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_cpp ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } >/dev/null && {
1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_cpp
1844
1845 # ac_fn_c_try_run LINENO
1846 # ----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848 # that executables *can* be run.
1849 ac_fn_c_try_run ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880 fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_run
1886
1887 # ac_fn_c_check_func LINENO FUNC VAR
1888 # ----------------------------------
1889 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1890 ac_fn_c_check_func ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902 #define $2 innocuous_$2
1903
1904 /* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1908
1909 #ifdef __STDC__
1910 # include <limits.h>
1911 #else
1912 # include <assert.h>
1913 #endif
1914
1915 #undef $2
1916
1917 /* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920 #ifdef __cplusplus
1921 extern "C"
1922 #endif
1923 char $2 ();
1924 /* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927 #if defined __stub_$2 || defined __stub___$2
1928 choke me
1929 #endif
1930
1931 int
1932 main ()
1933 {
1934 return $2 ();
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941 else
1942 eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952 } # ac_fn_c_check_func
1953
1954 # ac_fn_cxx_try_compile LINENO
1955 # ----------------------------
1956 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_compile ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext
1961 if { { ac_try="$ac_compile"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_compile") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest.$ac_objext; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986 fi
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 as_fn_set_status $ac_retval
1989
1990 } # ac_fn_cxx_try_compile
1991
1992 # ac_fn_cxx_try_cpp LINENO
1993 # ------------------------
1994 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_cpp ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { { ac_try="$ac_cpp conftest.$ac_ext"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } >/dev/null && {
2014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 as_fn_set_status $ac_retval
2026
2027 } # ac_fn_cxx_try_cpp
2028
2029 # ac_fn_cxx_try_link LINENO
2030 # -------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_link ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest$ac_exeext
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2049 fi
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest$ac_exeext && {
2055 test "$cross_compiling" = yes ||
2056 $as_test_x conftest$ac_exeext
2057 }; then :
2058 ac_retval=0
2059 else
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=1
2064 fi
2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067 # interfere with the next link command; also delete a directory that is
2068 # left behind by Apple's compiler. We do this before executing the actions.
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_cxx_try_link
2074
2075 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2076 # ---------------------------------------------------------
2077 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2078 # the include files in INCLUDES and setting the cache variable VAR
2079 # accordingly.
2080 ac_fn_cxx_check_header_mongrel ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2088 fi
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 else
2093 # Is the header compilable?
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2095 $as_echo_n "checking $2 usability... " >&6; }
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_cxx_try_compile "$LINENO"; then :
2102 ac_header_compiler=yes
2103 else
2104 ac_header_compiler=no
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2108 $as_echo "$ac_header_compiler" >&6; }
2109
2110 # Is the header present?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2112 $as_echo_n "checking $2 presence... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_cxx_try_cpp "$LINENO"; then :
2118 ac_header_preproc=yes
2119 else
2120 ac_header_preproc=no
2121 fi
2122 rm -f conftest.err conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2124 $as_echo "$ac_header_preproc" >&6; }
2125
2126 # So? What about this header?
2127 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2128 yes:no: )
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2130 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ;;
2134 no:yes:* )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2136 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2138 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2140 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2142 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ( cat <<\_ASBOX
2146 ## -------------------------------- ##
2147 ## Report this to saurik@saurik.com ##
2148 ## -------------------------------- ##
2149 _ASBOX
2150 ) | sed "s/^/$as_me: WARNING: /" >&2
2151 ;;
2152 esac
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156 $as_echo_n "(cached) " >&6
2157 else
2158 eval "$3=\$ac_header_compiler"
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165
2166 } # ac_fn_cxx_check_header_mongrel
2167
2168 # ac_fn_objcxx_try_compile LINENO
2169 # -------------------------------
2170 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_objcxx_try_compile ()
2172 {
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 rm -f conftest.$ac_objext
2175 if { { ac_try="$ac_compile"
2176 case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_compile") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2188 fi
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && {
2191 test -z "$ac_objcxx_werror_flag" ||
2192 test ! -s conftest.err
2193 } && test -s conftest.$ac_objext; then :
2194 ac_retval=0
2195 else
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 ac_retval=1
2200 fi
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 as_fn_set_status $ac_retval
2203
2204 } # ac_fn_objcxx_try_compile
2205
2206 # ac_fn_objcxx_try_link LINENO
2207 # ----------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_objcxx_try_link ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_objcxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 $as_test_x conftest$ac_exeext
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 as_fn_set_status $ac_retval
2249
2250 } # ac_fn_objcxx_try_link
2251 cat >config.log <<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2254
2255 It was created by Cycript $as_me 0.9, which was
2256 generated by GNU Autoconf 2.65. Invocation command line was
2257
2258 $ $0 $@
2259
2260 _ACEOF
2261 exec 5>>config.log
2262 {
2263 cat <<_ASUNAME
2264 ## --------- ##
2265 ## Platform. ##
2266 ## --------- ##
2267
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2276
2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284
2285 _ASUNAME
2286
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 $as_echo "PATH: $as_dir"
2293 done
2294 IFS=$as_save_IFS
2295
2296 } >&5
2297
2298 cat >&5 <<_ACEOF
2299
2300
2301 ## ----------- ##
2302 ## Core tests. ##
2303 ## ----------- ##
2304
2305 _ACEOF
2306
2307
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_configure_args=
2314 ac_configure_args0=
2315 ac_configure_args1=
2316 ac_must_keep_next=false
2317 for ac_pass in 1 2
2318 do
2319 for ac_arg
2320 do
2321 case $ac_arg in
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2325 continue ;;
2326 *\'*)
2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 esac
2329 case $ac_pass in
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331 2)
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2335 else
2336 case $ac_arg in
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 esac
2344 ;;
2345 -* ) ac_must_keep_next=true ;;
2346 esac
2347 fi
2348 as_fn_append ac_configure_args " '$ac_arg'"
2349 ;;
2350 esac
2351 done
2352 done
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2355
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2363 {
2364 echo
2365
2366 cat <<\_ASBOX
2367 ## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##
2370 _ASBOX
2371 echo
2372 # The following way of writing the cache mishandles newlines in values,
2373 (
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in #(
2377 *${as_nl}*)
2378 case $ac_var in #(
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 esac
2382 case $ac_var in #(
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2386 esac ;;
2387 esac
2388 done
2389 (set) 2>&1 |
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2392 sed -n \
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 ;; #(
2396 *)
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 ;;
2399 esac |
2400 sort
2401 )
2402 echo
2403
2404 cat <<\_ASBOX
2405 ## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##
2408 _ASBOX
2409 echo
2410 for ac_var in $ac_subst_vars
2411 do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 esac
2416 $as_echo "$ac_var='\''$ac_val'\''"
2417 done | sort
2418 echo
2419
2420 if test -n "$ac_subst_files"; then
2421 cat <<\_ASBOX
2422 ## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##
2425 _ASBOX
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 cat <<\_ASBOX
2440 ## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##
2443 _ASBOX
2444 echo
2445 cat confdefs.h
2446 echo
2447 fi
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2455 ' 0
2456 for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 done
2459 ac_signal=0
2460
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest* confdefs.h
2463
2464 $as_echo "/* confdefs.h */" > confdefs.h
2465
2466 # Predefined preprocessor variables.
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 _ACEOF
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2490 _ACEOF
2491
2492
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2495 ac_site_file1=NONE
2496 ac_site_file2=NONE
2497 if test -n "$CONFIG_SITE"; then
2498 ac_site_file1=$CONFIG_SITE
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502 else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2505 fi
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507 do
2508 test "x$ac_site_file" = xNONE && continue
2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file"
2514 fi
2515 done
2516
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special files
2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 case $cache_file in
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2526 esac
2527 fi
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 >$cache_file
2532 fi
2533
2534 # Check that the precious variables saved in the cache have kept the same
2535 # value.
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539 eval ac_new_set=\$ac_env_${ac_var}_set
2540 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541 eval ac_new_val=\$ac_env_${ac_var}_value
2542 case $ac_old_set,$ac_new_set in
2543 set,)
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2547 ,set)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2551 ,);;
2552 *)
2553 if test "x$ac_old_val" != "x$ac_new_val"; then
2554 # differences in whitespace do not lead to failure.
2555 ac_old_val_w=`echo x $ac_old_val`
2556 ac_new_val_w=`echo x $ac_new_val`
2557 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560 ac_cache_corrupted=:
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564 eval $ac_var=\$ac_old_val
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2567 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570 fi;;
2571 esac
2572 # Pass precious variables to config.status.
2573 if test "$ac_new_set" = set; then
2574 case $ac_new_val in
2575 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576 *) ac_arg=$ac_var=$ac_new_val ;;
2577 esac
2578 case " $ac_configure_args " in
2579 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2580 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581 esac
2582 fi
2583 done
2584 if $ac_cache_corrupted; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 fi
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603 ac_aux_dir=
2604 for ac_dir in . "$srcdir"/.; do
2605 for ac_t in install-sh install.sh shtool; do
2606 if test -f "$ac_dir/$ac_t"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/$ac_t -c"
2609 break 2
2610 fi
2611 done
2612 done
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2615 fi
2616
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624
2625
2626 case `pwd` in
2627 *\ * | *\ *)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2630 esac
2631
2632
2633
2634 macro_version='2.2.6b'
2635 macro_revision='1.3017'
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649 ltmain="$ac_aux_dir/ltmain.sh"
2650
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2656 $as_echo_n "checking build system type... " >&6; }
2657 if test "${ac_cv_build+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 ac_build_alias=$build_alias
2661 test "x$ac_build_alias" = x &&
2662 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2663 test "x$ac_build_alias" = x &&
2664 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2665 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2666 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2670 $as_echo "$ac_cv_build" >&6; }
2671 case $ac_cv_build in
2672 *-*-*) ;;
2673 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2674 esac
2675 build=$ac_cv_build
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_build
2678 shift
2679 build_cpu=$1
2680 build_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 build_os=$*
2685 IFS=$ac_save_IFS
2686 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2690 $as_echo_n "checking host system type... " >&6; }
2691 if test "${ac_cv_host+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test "x$host_alias" = x; then
2695 ac_cv_host=$ac_cv_build
2696 else
2697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2698 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2703 $as_echo "$ac_cv_host" >&6; }
2704 case $ac_cv_host in
2705 *-*-*) ;;
2706 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2707 esac
2708 host=$ac_cv_host
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_host
2711 shift
2712 host_cpu=$1
2713 host_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 host_os=$*
2718 IFS=$ac_save_IFS
2719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$ac_cv_prog_CC"; then
2767 ac_ct_CC=$CC
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769 set dummy gcc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="gcc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2814 fi
2815 else
2816 CC="$ac_cv_prog_CC"
2817 fi
2818
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858 fi
2859 fi
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 ac_prog_rejected=no
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2881 continue
2882 fi
2883 ac_cv_prog_CC="cc"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2894 shift
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2899 shift
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2901 fi
2902 fi
2903 fi
2904 fi
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914
2915 fi
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2919 do
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 test -n "$CC" && break
2958 done
2959 fi
2960 if test -z "$CC"; then
2961 ac_ct_CC=$CC
2962 for ac_prog in cl.exe
2963 do
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2994 $as_echo "$ac_ct_CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 test -n "$ac_ct_CC" && break
3002 done
3003
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 CC=$ac_ct_CC
3014 fi
3015 fi
3016
3017 fi
3018
3019
3020 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error "no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." "$LINENO" 5; }
3024
3025 # Provide some information about the compiler.
3026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3027 set X $ac_compile
3028 ac_compiler=$2
3029 for ac_option in --version -v -V -qversion; do
3030 { { ac_try="$ac_compiler $ac_option >&5"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3038 ac_status=$?
3039 if test -s conftest.err; then
3040 sed '10a\
3041 ... rest of stderr output deleted ...
3042 10q' conftest.err >conftest.er1
3043 cat conftest.er1 >&5
3044 fi
3045 rm -f conftest.er1 conftest.err
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }
3048 done
3049
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3065 # of exeext.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3067 $as_echo_n "checking whether the C compiler works... " >&6; }
3068 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069
3070 # The possible output files:
3071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3072
3073 ac_rmfiles=
3074 for ac_file in $ac_files
3075 do
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3079 esac
3080 done
3081 rm -f $ac_rmfiles
3082
3083 if { { ac_try="$ac_link_default"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link_default") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3097 # so that the user can short-circuit this test for compilers unknown to
3098 # Autoconf.
3099 for ac_file in $ac_files ''
3100 do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3104 ;;
3105 [ab].out )
3106 # We found the default executable, but exeext='' is most
3107 # certainly right.
3108 break;;
3109 *.* )
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3111 then :; else
3112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 fi
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3118 # actually working.
3119 break;;
3120 * )
3121 break;;
3122 esac
3123 done
3124 test "$ac_cv_exeext" = no && ac_cv_exeext=
3125
3126 else
3127 ac_file=''
3128 fi
3129 if test -z "$ac_file"; then :
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { as_fn_set_status 77
3138 as_fn_error "C compiler cannot create executables
3139 See \`config.log' for more details." "$LINENO" 5; }; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3145 $as_echo_n "checking for C compiler default output file name... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 ac_exeext=$ac_cv_exeext
3149
3150 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3153 $as_echo_n "checking for suffix of executables... " >&6; }
3154 if { { ac_try="$ac_link"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3166 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3167 # work properly (i.e., refer to `conftest.exe'), while it won't with
3168 # `rm'.
3169 for ac_file in conftest.exe conftest conftest.*; do
3170 test -f "$ac_file" || continue
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 break;;
3175 * ) break;;
3176 esac
3177 done
3178 else
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error "cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details." "$LINENO" 5; }
3183 fi
3184 rm -f conftest conftest$ac_cv_exeext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3186 $as_echo "$ac_cv_exeext" >&6; }
3187
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3190 ac_exeext=$EXEEXT
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193 #include <stdio.h>
3194 int
3195 main ()
3196 {
3197 FILE *f = fopen ("conftest.out", "w");
3198 return ferror (f) || fclose (f) != 0;
3199
3200 ;
3201 return 0;
3202 }
3203 _ACEOF
3204 ac_clean_files="$ac_clean_files conftest.out"
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3208 $as_echo_n "checking whether we are cross compiling... " >&6; }
3209 if test "$cross_compiling" != yes; then
3210 { { ac_try="$ac_link"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 if { ac_try='./conftest$ac_cv_exeext'
3222 { { case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_try") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; }; then
3232 cross_compiling=no
3233 else
3234 if test "$cross_compiling" = maybe; then
3235 cross_compiling=yes
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error "cannot run C compiled programs.
3240 If you meant to cross compile, use \`--host'.
3241 See \`config.log' for more details." "$LINENO" 5; }
3242 fi
3243 fi
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3247
3248 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3251 $as_echo_n "checking for suffix of object files... " >&6; }
3252 if test "${ac_cv_objext+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.o conftest.obj
3267 if { { ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compile") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283 break;;
3284 esac
3285 done
3286 else
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error "cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." "$LINENO" 5; }
3294 fi
3295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3298 $as_echo "$ac_cv_objext" >&6; }
3299 OBJEXT=$ac_cv_objext
3300 ac_objext=$OBJEXT
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308
3309 int
3310 main ()
3311 {
3312 #ifndef __GNUC__
3313 choke me
3314 #endif
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_compiler_gnu=yes
3322 else
3323 ac_compiler_gnu=no
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3332 GCC=yes
3333 else
3334 GCC=
3335 fi
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3345 ac_cv_prog_cc_g=no
3346 CFLAGS="-g"
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349
3350 int
3351 main ()
3352 {
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 if ac_fn_c_try_compile "$LINENO"; then :
3359 ac_cv_prog_cc_g=yes
3360 else
3361 CFLAGS=""
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374
3375 else
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377 CFLAGS="-g"
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 int
3382 main ()
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_cv_prog_cc_g=yes
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3400 $as_echo "$ac_cv_prog_cc_g" >&6; }
3401 if test "$ac_test_CFLAGS" = set; then
3402 CFLAGS=$ac_save_CFLAGS
3403 elif test $ac_cv_prog_cc_g = yes; then
3404 if test "$GCC" = yes; then
3405 CFLAGS="-g -O2"
3406 else
3407 CFLAGS="-g"
3408 fi
3409 else
3410 if test "$GCC" = yes; then
3411 CFLAGS="-O2"
3412 else
3413 CFLAGS=
3414 fi
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 ac_cv_prog_cc_c89=no
3422 ac_save_CC=$CC
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433 char **p;
3434 int i;
3435 {
3436 return p[i];
3437 }
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3439 {
3440 char *s;
3441 va_list v;
3442 va_start (v,p);
3443 s = g (p, va_arg (v,int));
3444 va_end (v);
3445 return s;
3446 }
3447
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
3451 as 'x'. The following induces an error, until -std is added to get
3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
3454 that's true only with -std. */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458 inside strings and character constants. */
3459 #define FOO(x) 'x'
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479 CC="$ac_save_CC $ac_arg"
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_cv_prog_cc_c89=$ac_arg
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext
3484 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 done
3486 rm -f conftest.$ac_ext
3487 CC=$ac_save_CC
3488
3489 fi
3490 # AC_CACHE_VAL
3491 case "x$ac_cv_prog_cc_c89" in
3492 x)
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3494 $as_echo "none needed" >&6; } ;;
3495 xno)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3497 $as_echo "unsupported" >&6; } ;;
3498 *)
3499 CC="$CC $ac_cv_prog_cc_c89"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3502 esac
3503 if test "x$ac_cv_prog_cc_c89" != xno; then :
3504
3505 fi
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3514 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3515 if test "${ac_cv_path_SED+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3519 for ac_i in 1 2 3 4 5 6 7; do
3520 ac_script="$ac_script$as_nl$ac_script"
3521 done
3522 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3523 { ac_script=; unset ac_script;}
3524 if test -z "$SED"; then
3525 ac_path_SED_found=false
3526 # Loop through the user's path and test for each of PROGNAME-LIST
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_prog in sed gsed; do
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3535 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3536 # Check for GNU ac_path_SED and select it if it is found.
3537 # Check for GNU $ac_path_SED
3538 case `"$ac_path_SED" --version 2>&1` in
3539 *GNU*)
3540 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3541 *)
3542 ac_count=0
3543 $as_echo_n 0123456789 >"conftest.in"
3544 while :
3545 do
3546 cat "conftest.in" "conftest.in" >"conftest.tmp"
3547 mv "conftest.tmp" "conftest.in"
3548 cp "conftest.in" "conftest.nl"
3549 $as_echo '' >> "conftest.nl"
3550 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3552 as_fn_arith $ac_count + 1 && ac_count=$as_val
3553 if test $ac_count -gt ${ac_path_SED_max-0}; then
3554 # Best one so far, save it but keep looking for a better one
3555 ac_cv_path_SED="$ac_path_SED"
3556 ac_path_SED_max=$ac_count
3557 fi
3558 # 10*(2^10) chars as input seems more than enough
3559 test $ac_count -gt 10 && break
3560 done
3561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3562 esac
3563
3564 $ac_path_SED_found && break 3
3565 done
3566 done
3567 done
3568 IFS=$as_save_IFS
3569 if test -z "$ac_cv_path_SED"; then
3570 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3571 fi
3572 else
3573 ac_cv_path_SED=$SED
3574 fi
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3578 $as_echo "$ac_cv_path_SED" >&6; }
3579 SED="$ac_cv_path_SED"
3580 rm -f conftest.sed
3581
3582 test -z "$SED" && SED=sed
3583 Xsed="$SED -e 1s/^X//"
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3596 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3597 if test "${ac_cv_path_GREP+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 if test -z "$GREP"; then
3601 ac_path_GREP_found=false
3602 # Loop through the user's path and test for each of PROGNAME-LIST
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_prog in grep ggrep; do
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3611 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3612 # Check for GNU ac_path_GREP and select it if it is found.
3613 # Check for GNU $ac_path_GREP
3614 case `"$ac_path_GREP" --version 2>&1` in
3615 *GNU*)
3616 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 *)
3618 ac_count=0
3619 $as_echo_n 0123456789 >"conftest.in"
3620 while :
3621 do
3622 cat "conftest.in" "conftest.in" >"conftest.tmp"
3623 mv "conftest.tmp" "conftest.in"
3624 cp "conftest.in" "conftest.nl"
3625 $as_echo 'GREP' >> "conftest.nl"
3626 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3628 as_fn_arith $ac_count + 1 && ac_count=$as_val
3629 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3630 # Best one so far, save it but keep looking for a better one
3631 ac_cv_path_GREP="$ac_path_GREP"
3632 ac_path_GREP_max=$ac_count
3633 fi
3634 # 10*(2^10) chars as input seems more than enough
3635 test $ac_count -gt 10 && break
3636 done
3637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3638 esac
3639
3640 $ac_path_GREP_found && break 3
3641 done
3642 done
3643 done
3644 IFS=$as_save_IFS
3645 if test -z "$ac_cv_path_GREP"; then
3646 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3647 fi
3648 else
3649 ac_cv_path_GREP=$GREP
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3654 $as_echo "$ac_cv_path_GREP" >&6; }
3655 GREP="$ac_cv_path_GREP"
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3659 $as_echo_n "checking for egrep... " >&6; }
3660 if test "${ac_cv_path_EGREP+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3664 then ac_cv_path_EGREP="$GREP -E"
3665 else
3666 if test -z "$EGREP"; then
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3681 *GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 *)
3684 ac_count=0
3685 $as_echo_n 0123456789 >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 as_fn_arith $ac_count + 1 && ac_count=$as_val
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 esac
3705
3706 $ac_path_EGREP_found && break 3
3707 done
3708 done
3709 done
3710 IFS=$as_save_IFS
3711 if test -z "$ac_cv_path_EGREP"; then
3712 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 fi
3714 else
3715 ac_cv_path_EGREP=$EGREP
3716 fi
3717
3718 fi
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3721 $as_echo "$ac_cv_path_EGREP" >&6; }
3722 EGREP="$ac_cv_path_EGREP"
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3726 $as_echo_n "checking for fgrep... " >&6; }
3727 if test "${ac_cv_path_FGREP+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3731 then ac_cv_path_FGREP="$GREP -F"
3732 else
3733 if test -z "$FGREP"; then
3734 ac_path_FGREP_found=false
3735 # Loop through the user's path and test for each of PROGNAME-LIST
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3738 do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_prog in fgrep; do
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3745 # Check for GNU ac_path_FGREP and select it if it is found.
3746 # Check for GNU $ac_path_FGREP
3747 case `"$ac_path_FGREP" --version 2>&1` in
3748 *GNU*)
3749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3750 *)
3751 ac_count=0
3752 $as_echo_n 0123456789 >"conftest.in"
3753 while :
3754 do
3755 cat "conftest.in" "conftest.in" >"conftest.tmp"
3756 mv "conftest.tmp" "conftest.in"
3757 cp "conftest.in" "conftest.nl"
3758 $as_echo 'FGREP' >> "conftest.nl"
3759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3761 as_fn_arith $ac_count + 1 && ac_count=$as_val
3762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3763 # Best one so far, save it but keep looking for a better one
3764 ac_cv_path_FGREP="$ac_path_FGREP"
3765 ac_path_FGREP_max=$ac_count
3766 fi
3767 # 10*(2^10) chars as input seems more than enough
3768 test $ac_count -gt 10 && break
3769 done
3770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3771 esac
3772
3773 $ac_path_FGREP_found && break 3
3774 done
3775 done
3776 done
3777 IFS=$as_save_IFS
3778 if test -z "$ac_cv_path_FGREP"; then
3779 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3780 fi
3781 else
3782 ac_cv_path_FGREP=$FGREP
3783 fi
3784
3785 fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3788 $as_echo "$ac_cv_path_FGREP" >&6; }
3789 FGREP="$ac_cv_path_FGREP"
3790
3791
3792 test -z "$GREP" && GREP=grep
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812 # Check whether --with-gnu-ld was given.
3813 if test "${with_gnu_ld+set}" = set; then :
3814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3815 else
3816 with_gnu_ld=no
3817 fi
3818
3819 ac_prog=ld
3820 if test "$GCC" = yes; then
3821 # Check if gcc -print-prog-name=ld gives a path.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3823 $as_echo_n "checking for ld used by $CC... " >&6; }
3824 case $host in
3825 *-*-mingw*)
3826 # gcc leaves a trailing carriage return which upsets mingw
3827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3828 *)
3829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3830 esac
3831 case $ac_prog in
3832 # Accept absolute paths.
3833 [\\/]* | ?:[\\/]*)
3834 re_direlt='/[^/][^/]*/\.\./'
3835 # Canonicalize the pathname of ld
3836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3839 done
3840 test -z "$LD" && LD="$ac_prog"
3841 ;;
3842 "")
3843 # If it fails, then pretend we aren't using GCC.
3844 ac_prog=ld
3845 ;;
3846 *)
3847 # If it is relative, then search for the first ld in PATH.
3848 with_gnu_ld=unknown
3849 ;;
3850 esac
3851 elif test "$with_gnu_ld" = yes; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3853 $as_echo_n "checking for GNU ld... " >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3856 $as_echo_n "checking for non-GNU ld... " >&6; }
3857 fi
3858 if test "${lt_cv_path_LD+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -z "$LD"; then
3862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3863 for ac_dir in $PATH; do
3864 IFS="$lt_save_ifs"
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3867 lt_cv_path_LD="$ac_dir/$ac_prog"
3868 # Check to see if the program is GNU ld. I'd rather use --version,
3869 # but apparently some variants of GNU ld only accept -v.
3870 # Break only if it was the GNU/non-GNU ld that we prefer.
3871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3872 *GNU* | *'with BFD'*)
3873 test "$with_gnu_ld" != no && break
3874 ;;
3875 *)
3876 test "$with_gnu_ld" != yes && break
3877 ;;
3878 esac
3879 fi
3880 done
3881 IFS="$lt_save_ifs"
3882 else
3883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3884 fi
3885 fi
3886
3887 LD="$lt_cv_path_LD"
3888 if test -n "$LD"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3890 $as_echo "$LD" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3898 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3902 case `$LD -v 2>&1 </dev/null` in
3903 *GNU* | *'with BFD'*)
3904 lt_cv_prog_gnu_ld=yes
3905 ;;
3906 *)
3907 lt_cv_prog_gnu_ld=no
3908 ;;
3909 esac
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3913 with_gnu_ld=$lt_cv_prog_gnu_ld
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3924 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3925 if test "${lt_cv_path_NM+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$NM"; then
3929 # Let the user override the test.
3930 lt_cv_path_NM="$NM"
3931 else
3932 lt_nm_to_check="${ac_tool_prefix}nm"
3933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3934 lt_nm_to_check="$lt_nm_to_check nm"
3935 fi
3936 for lt_tmp_nm in $lt_nm_to_check; do
3937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3939 IFS="$lt_save_ifs"
3940 test -z "$ac_dir" && ac_dir=.
3941 tmp_nm="$ac_dir/$lt_tmp_nm"
3942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3943 # Check to see if the nm accepts a BSD-compat flag.
3944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3945 # nm: unknown option "B" ignored
3946 # Tru64's nm complains that /dev/null is an invalid object file
3947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3948 */dev/null* | *'Invalid file or object type'*)
3949 lt_cv_path_NM="$tmp_nm -B"
3950 break
3951 ;;
3952 *)
3953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3954 */dev/null*)
3955 lt_cv_path_NM="$tmp_nm -p"
3956 break
3957 ;;
3958 *)
3959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3960 continue # so that we can try to find one that supports BSD flags
3961 ;;
3962 esac
3963 ;;
3964 esac
3965 fi
3966 done
3967 IFS="$lt_save_ifs"
3968 done
3969 : ${lt_cv_path_NM=no}
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3973 $as_echo "$lt_cv_path_NM" >&6; }
3974 if test "$lt_cv_path_NM" != "no"; then
3975 NM="$lt_cv_path_NM"
3976 else
3977 # Didn't find any BSD compatible name lister, look for dumpbin.
3978 if test -n "$ac_tool_prefix"; then
3979 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3980 do
3981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if test -n "$DUMPBIN"; then
3989 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 DUMPBIN=$ac_cv_prog_DUMPBIN
4009 if test -n "$DUMPBIN"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4011 $as_echo "$DUMPBIN" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 test -n "$DUMPBIN" && break
4019 done
4020 fi
4021 if test -z "$DUMPBIN"; then
4022 ac_ct_DUMPBIN=$DUMPBIN
4023 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4024 do
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -n "$ac_ct_DUMPBIN"; then
4033 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4053 if test -n "$ac_ct_DUMPBIN"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4055 $as_echo "$ac_ct_DUMPBIN" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061
4062 test -n "$ac_ct_DUMPBIN" && break
4063 done
4064
4065 if test "x$ac_ct_DUMPBIN" = x; then
4066 DUMPBIN=":"
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 DUMPBIN=$ac_ct_DUMPBIN
4075 fi
4076 fi
4077
4078
4079 if test "$DUMPBIN" != ":"; then
4080 NM="$DUMPBIN"
4081 fi
4082 fi
4083 test -z "$NM" && NM=nm
4084
4085
4086
4087
4088
4089
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4091 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4092 if test "${lt_cv_nm_interface+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 lt_cv_nm_interface="BSD nm"
4096 echo "int some_variable = 0;" > conftest.$ac_ext
4097 (eval echo "\"\$as_me:4097: $ac_compile\"" >&5)
4098 (eval "$ac_compile" 2>conftest.err)
4099 cat conftest.err >&5
4100 (eval echo "\"\$as_me:4100: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4101 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4102 cat conftest.err >&5
4103 (eval echo "\"\$as_me:4103: output\"" >&5)
4104 cat conftest.out >&5
4105 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4106 lt_cv_nm_interface="MS dumpbin"
4107 fi
4108 rm -f conftest*
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4111 $as_echo "$lt_cv_nm_interface" >&6; }
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4114 $as_echo_n "checking whether ln -s works... " >&6; }
4115 LN_S=$as_ln_s
4116 if test "$LN_S" = "ln -s"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118 $as_echo "yes" >&6; }
4119 else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4121 $as_echo "no, using $LN_S" >&6; }
4122 fi
4123
4124 # find the maximum length of command line arguments
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4126 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4127 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 i=0
4131 teststring="ABCD"
4132
4133 case $build_os in
4134 msdosdjgpp*)
4135 # On DJGPP, this test can blow up pretty badly due to problems in libc
4136 # (any single argument exceeding 2000 bytes causes a buffer overrun
4137 # during glob expansion). Even if it were fixed, the result of this
4138 # check would be larger than it should be.
4139 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4140 ;;
4141
4142 gnu*)
4143 # Under GNU Hurd, this test is not required because there is
4144 # no limit to the length of command line arguments.
4145 # Libtool will interpret -1 as no limit whatsoever
4146 lt_cv_sys_max_cmd_len=-1;
4147 ;;
4148
4149 cygwin* | mingw* | cegcc*)
4150 # On Win9x/ME, this test blows up -- it succeeds, but takes
4151 # about 5 minutes as the teststring grows exponentially.
4152 # Worse, since 9x/ME are not pre-emptively multitasking,
4153 # you end up with a "frozen" computer, even though with patience
4154 # the test eventually succeeds (with a max line length of 256k).
4155 # Instead, let's just punt: use the minimum linelength reported by
4156 # all of the supported platforms: 8192 (on NT/2K/XP).
4157 lt_cv_sys_max_cmd_len=8192;
4158 ;;
4159
4160 amigaos*)
4161 # On AmigaOS with pdksh, this test takes hours, literally.
4162 # So we just punt and use a minimum line length of 8192.
4163 lt_cv_sys_max_cmd_len=8192;
4164 ;;
4165
4166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4167 # This has been around since 386BSD, at least. Likely further.
4168 if test -x /sbin/sysctl; then
4169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4170 elif test -x /usr/sbin/sysctl; then
4171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4172 else
4173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4174 fi
4175 # And add a safety zone
4176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4178 ;;
4179
4180 interix*)
4181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4182 lt_cv_sys_max_cmd_len=196608
4183 ;;
4184
4185 osf*)
4186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4188 # nice to cause kernel panics so lets avoid the loop below.
4189 # First set a reasonable default.
4190 lt_cv_sys_max_cmd_len=16384
4191 #
4192 if test -x /sbin/sysconfig; then
4193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4194 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4195 esac
4196 fi
4197 ;;
4198 sco3.2v5*)
4199 lt_cv_sys_max_cmd_len=102400
4200 ;;
4201 sysv5* | sco5v6* | sysv4.2uw2*)
4202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4203 if test -n "$kargmax"; then
4204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4205 else
4206 lt_cv_sys_max_cmd_len=32768
4207 fi
4208 ;;
4209 *)
4210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4211 if test -n "$lt_cv_sys_max_cmd_len"; then
4212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4214 else
4215 # Make teststring a little bigger before we do anything with it.
4216 # a 1K string should be a reasonable start.
4217 for i in 1 2 3 4 5 6 7 8 ; do
4218 teststring=$teststring$teststring
4219 done
4220 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4221 # If test is not a shell built-in, we'll probably end up computing a
4222 # maximum length that is only half of the actual maximum length, but
4223 # we can't tell.
4224 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4225 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4226 test $i != 17 # 1/2 MB should be enough
4227 do
4228 i=`expr $i + 1`
4229 teststring=$teststring$teststring
4230 done
4231 # Only check the string length outside the loop.
4232 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4233 teststring=
4234 # Add a significant safety factor because C++ compilers can tack on
4235 # massive amounts of additional arguments before passing them to the
4236 # linker. It appears as though 1/2 is a usable value.
4237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4238 fi
4239 ;;
4240 esac
4241
4242 fi
4243
4244 if test -n $lt_cv_sys_max_cmd_len ; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4246 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4249 $as_echo "none" >&6; }
4250 fi
4251 max_cmd_len=$lt_cv_sys_max_cmd_len
4252
4253
4254
4255
4256
4257
4258 : ${CP="cp -f"}
4259 : ${MV="mv -f"}
4260 : ${RM="rm -f"}
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4263 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4264 # Try some XSI features
4265 xsi_shell=no
4266 ( _lt_dummy="a/b/c"
4267 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4268 = c,a/b,, \
4269 && eval 'test $(( 1 + 1 )) -eq 2 \
4270 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4271 && xsi_shell=yes
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4273 $as_echo "$xsi_shell" >&6; }
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4277 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4278 lt_shell_append=no
4279 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4280 >/dev/null 2>&1 \
4281 && lt_shell_append=yes
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4283 $as_echo "$lt_shell_append" >&6; }
4284
4285
4286 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4287 lt_unset=unset
4288 else
4289 lt_unset=false
4290 fi
4291
4292
4293
4294
4295
4296 # test EBCDIC or ASCII
4297 case `echo X|tr X '\101'` in
4298 A) # ASCII based system
4299 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4300 lt_SP2NL='tr \040 \012'
4301 lt_NL2SP='tr \015\012 \040\040'
4302 ;;
4303 *) # EBCDIC based system
4304 lt_SP2NL='tr \100 \n'
4305 lt_NL2SP='tr \r\n \100\100'
4306 ;;
4307 esac
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4318 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4319 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 lt_cv_ld_reload_flag='-r'
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4325 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4326 reload_flag=$lt_cv_ld_reload_flag
4327 case $reload_flag in
4328 "" | " "*) ;;
4329 *) reload_flag=" $reload_flag" ;;
4330 esac
4331 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4332 case $host_os in
4333 darwin*)
4334 if test "$GCC" = yes; then
4335 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4336 else
4337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4338 fi
4339 ;;
4340 esac
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$OBJDUMP"; then
4359 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372 done
4373 done
4374 IFS=$as_save_IFS
4375
4376 fi
4377 fi
4378 OBJDUMP=$ac_cv_prog_OBJDUMP
4379 if test -n "$OBJDUMP"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4381 $as_echo "$OBJDUMP" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388 fi
4389 if test -z "$ac_cv_prog_OBJDUMP"; then
4390 ac_ct_OBJDUMP=$OBJDUMP
4391 # Extract the first word of "objdump", so it can be a program name with args.
4392 set dummy objdump; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$ac_ct_OBJDUMP"; then
4399 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4419 if test -n "$ac_ct_OBJDUMP"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4421 $as_echo "$ac_ct_OBJDUMP" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427 if test "x$ac_ct_OBJDUMP" = x; then
4428 OBJDUMP="false"
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4435 esac
4436 OBJDUMP=$ac_ct_OBJDUMP
4437 fi
4438 else
4439 OBJDUMP="$ac_cv_prog_OBJDUMP"
4440 fi
4441
4442 test -z "$OBJDUMP" && OBJDUMP=objdump
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4453 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4454 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 lt_cv_file_magic_cmd='$MAGIC_CMD'
4458 lt_cv_file_magic_test_file=
4459 lt_cv_deplibs_check_method='unknown'
4460 # Need to set the preceding variable on all platforms that support
4461 # interlibrary dependencies.
4462 # 'none' -- dependencies not supported.
4463 # `unknown' -- same as none, but documents that we really don't know.
4464 # 'pass_all' -- all dependencies passed with no checks.
4465 # 'test_compile' -- check by making test program.
4466 # 'file_magic [[regex]]' -- check by looking for files in library path
4467 # which responds to the $file_magic_cmd with a given extended regex.
4468 # If you have `file' or equivalent on your system and you're not sure
4469 # whether `pass_all' will *always* work, you probably want this one.
4470
4471 case $host_os in
4472 aix[4-9]*)
4473 lt_cv_deplibs_check_method=pass_all
4474 ;;
4475
4476 beos*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479
4480 bsdi[45]*)
4481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4482 lt_cv_file_magic_cmd='/usr/bin/file -L'
4483 lt_cv_file_magic_test_file=/shlib/libc.so
4484 ;;
4485
4486 cygwin*)
4487 # func_win32_libid is a shell function defined in ltmain.sh
4488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4489 lt_cv_file_magic_cmd='func_win32_libid'
4490 ;;
4491
4492 mingw* | pw32*)
4493 # Base MSYS/MinGW do not provide the 'file' command needed by
4494 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4495 # unless we find 'file', for example because we are cross-compiling.
4496 if ( file / ) >/dev/null 2>&1; then
4497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4498 lt_cv_file_magic_cmd='func_win32_libid'
4499 else
4500 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4501 lt_cv_file_magic_cmd='$OBJDUMP -f'
4502 fi
4503 ;;
4504
4505 cegcc)
4506 # use the weaker test based on 'objdump'. See mingw*.
4507 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4508 lt_cv_file_magic_cmd='$OBJDUMP -f'
4509 ;;
4510
4511 darwin* | rhapsody*)
4512 lt_cv_deplibs_check_method=pass_all
4513 ;;
4514
4515 freebsd* | dragonfly*)
4516 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4517 case $host_cpu in
4518 i*86 )
4519 # Not sure whether the presence of OpenBSD here was a mistake.
4520 # Let's accept both of them until this is cleared up.
4521 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4522 lt_cv_file_magic_cmd=/usr/bin/file
4523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4524 ;;
4525 esac
4526 else
4527 lt_cv_deplibs_check_method=pass_all
4528 fi
4529 ;;
4530
4531 gnu*)
4532 lt_cv_deplibs_check_method=pass_all
4533 ;;
4534
4535 hpux10.20* | hpux11*)
4536 lt_cv_file_magic_cmd=/usr/bin/file
4537 case $host_cpu in
4538 ia64*)
4539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4541 ;;
4542 hppa*64*)
4543 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]'
4544 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4545 ;;
4546 *)
4547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4549 ;;
4550 esac
4551 ;;
4552
4553 interix[3-9]*)
4554 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4556 ;;
4557
4558 irix5* | irix6* | nonstopux*)
4559 case $LD in
4560 *-32|*"-32 ") libmagic=32-bit;;
4561 *-n32|*"-n32 ") libmagic=N32;;
4562 *-64|*"-64 ") libmagic=64-bit;;
4563 *) libmagic=never-match;;
4564 esac
4565 lt_cv_deplibs_check_method=pass_all
4566 ;;
4567
4568 # This must be Linux ELF.
4569 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4570 lt_cv_deplibs_check_method=pass_all
4571 ;;
4572
4573 netbsd* | netbsdelf*-gnu)
4574 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4576 else
4577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4578 fi
4579 ;;
4580
4581 newos6*)
4582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4583 lt_cv_file_magic_cmd=/usr/bin/file
4584 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4585 ;;
4586
4587 *nto* | *qnx*)
4588 lt_cv_deplibs_check_method=pass_all
4589 ;;
4590
4591 openbsd*)
4592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4594 else
4595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4596 fi
4597 ;;
4598
4599 osf3* | osf4* | osf5*)
4600 lt_cv_deplibs_check_method=pass_all
4601 ;;
4602
4603 rdos*)
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
4606
4607 solaris*)
4608 lt_cv_deplibs_check_method=pass_all
4609 ;;
4610
4611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4612 lt_cv_deplibs_check_method=pass_all
4613 ;;
4614
4615 sysv4 | sysv4.3*)
4616 case $host_vendor in
4617 motorola)
4618 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]'
4619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4620 ;;
4621 ncr)
4622 lt_cv_deplibs_check_method=pass_all
4623 ;;
4624 sequent)
4625 lt_cv_file_magic_cmd='/bin/file'
4626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4627 ;;
4628 sni)
4629 lt_cv_file_magic_cmd='/bin/file'
4630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4631 lt_cv_file_magic_test_file=/lib/libc.so
4632 ;;
4633 siemens)
4634 lt_cv_deplibs_check_method=pass_all
4635 ;;
4636 pc)
4637 lt_cv_deplibs_check_method=pass_all
4638 ;;
4639 esac
4640 ;;
4641
4642 tpf*)
4643 lt_cv_deplibs_check_method=pass_all
4644 ;;
4645 esac
4646
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4649 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4650 file_magic_cmd=$lt_cv_file_magic_cmd
4651 deplibs_check_method=$lt_cv_deplibs_check_method
4652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}ar; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if test "${ac_cv_prog_AR+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$AR"; then
4674 ac_cv_prog_AR="$AR" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_AR="${ac_tool_prefix}ar"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 AR=$ac_cv_prog_AR
4694 if test -n "$AR"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4696 $as_echo "$AR" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4700 fi
4701
4702
4703 fi
4704 if test -z "$ac_cv_prog_AR"; then
4705 ac_ct_AR=$AR
4706 # Extract the first word of "ar", so it can be a program name with args.
4707 set dummy ar; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$ac_ct_AR"; then
4714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_ac_ct_AR="ar"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4734 if test -n "$ac_ct_AR"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4736 $as_echo "$ac_ct_AR" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742 if test "x$ac_ct_AR" = x; then
4743 AR="false"
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749 ac_tool_warned=yes ;;
4750 esac
4751 AR=$ac_ct_AR
4752 fi
4753 else
4754 AR="$ac_cv_prog_AR"
4755 fi
4756
4757 test -z "$AR" && AR=ar
4758 test -z "$AR_FLAGS" && AR_FLAGS=cru
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}strip; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_STRIP+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$STRIP"; then
4779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 STRIP=$ac_cv_prog_STRIP
4799 if test -n "$STRIP"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4801 $as_echo "$STRIP" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 fi
4809 if test -z "$ac_cv_prog_STRIP"; then
4810 ac_ct_STRIP=$STRIP
4811 # Extract the first word of "strip", so it can be a program name with args.
4812 set dummy strip; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$ac_ct_STRIP"; then
4819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_STRIP="strip"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4839 if test -n "$ac_ct_STRIP"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4841 $as_echo "$ac_ct_STRIP" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847 if test "x$ac_ct_STRIP" = x; then
4848 STRIP=":"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851 yes:)
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854 ac_tool_warned=yes ;;
4855 esac
4856 STRIP=$ac_ct_STRIP
4857 fi
4858 else
4859 STRIP="$ac_cv_prog_STRIP"
4860 fi
4861
4862 test -z "$STRIP" && STRIP=:
4863
4864
4865
4866
4867
4868
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$RANLIB"; then
4878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 RANLIB=$ac_cv_prog_RANLIB
4898 if test -n "$RANLIB"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4900 $as_echo "$RANLIB" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907 fi
4908 if test -z "$ac_cv_prog_RANLIB"; then
4909 ac_ct_RANLIB=$RANLIB
4910 # Extract the first word of "ranlib", so it can be a program name with args.
4911 set dummy ranlib; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$ac_ct_RANLIB"; then
4918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_ac_ct_RANLIB="ranlib"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4938 if test -n "$ac_ct_RANLIB"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4940 $as_echo "$ac_ct_RANLIB" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946 if test "x$ac_ct_RANLIB" = x; then
4947 RANLIB=":"
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955 RANLIB=$ac_ct_RANLIB
4956 fi
4957 else
4958 RANLIB="$ac_cv_prog_RANLIB"
4959 fi
4960
4961 test -z "$RANLIB" && RANLIB=:
4962
4963
4964
4965
4966
4967
4968 # Determine commands to create old-style static archives.
4969 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4970 old_postinstall_cmds='chmod 644 $oldlib'
4971 old_postuninstall_cmds=
4972
4973 if test -n "$RANLIB"; then
4974 case $host_os in
4975 openbsd*)
4976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4977 ;;
4978 *)
4979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4980 ;;
4981 esac
4982 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4983 fi
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 # If no C compiler was specified, use CC.
5019 LTCC=${LTCC-"$CC"}
5020
5021 # If no C compiler flags were specified, use CFLAGS.
5022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5023
5024 # Allow CC to be a program name with arguments.
5025 compiler=$CC
5026
5027
5028 # Check for command to grab the raw symbol name followed by C symbol from nm.
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5030 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5031 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034
5035 # These are sane defaults that work on at least a few old systems.
5036 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5037
5038 # Character class describing NM global symbol codes.
5039 symcode='[BCDEGRST]'
5040
5041 # Regexp to match symbols that can be accessed directly from C.
5042 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5043
5044 # Define system-specific variables.
5045 case $host_os in
5046 aix*)
5047 symcode='[BCDT]'
5048 ;;
5049 cygwin* | mingw* | pw32* | cegcc*)
5050 symcode='[ABCDGISTW]'
5051 ;;
5052 hpux*)
5053 if test "$host_cpu" = ia64; then
5054 symcode='[ABCDEGRST]'
5055 fi
5056 ;;
5057 irix* | nonstopux*)
5058 symcode='[BCDEGRST]'
5059 ;;
5060 osf*)
5061 symcode='[BCDEGQRST]'
5062 ;;
5063 solaris*)
5064 symcode='[BDRT]'
5065 ;;
5066 sco3.2v5*)
5067 symcode='[DT]'
5068 ;;
5069 sysv4.2uw2*)
5070 symcode='[DT]'
5071 ;;
5072 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5073 symcode='[ABDT]'
5074 ;;
5075 sysv4)
5076 symcode='[DFNSTU]'
5077 ;;
5078 esac
5079
5080 # If we're using GNU nm, then use its standard symbol codes.
5081 case `$NM -V 2>&1` in
5082 *GNU* | *'with BFD'*)
5083 symcode='[ABCDGIRSTW]' ;;
5084 esac
5085
5086 # Transform an extracted symbol line into a proper C declaration.
5087 # Some systems (esp. on ia64) link data and code symbols differently,
5088 # so use this general approach.
5089 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5090
5091 # Transform an extracted symbol line into symbol name and symbol address
5092 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5094
5095 # Handle CRLF in mingw tool chain
5096 opt_cr=
5097 case $build_os in
5098 mingw*)
5099 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5100 ;;
5101 esac
5102
5103 # Try without a prefix underscore, then with it.
5104 for ac_symprfx in "" "_"; do
5105
5106 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5107 symxfrm="\\1 $ac_symprfx\\2 \\2"
5108
5109 # Write the raw and C identifiers.
5110 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5111 # Fake it for dumpbin and say T for any non-static function
5112 # and D for any global variable.
5113 # Also find C++ and __fastcall symbols from MSVC++,
5114 # which start with @ or ?.
5115 lt_cv_sys_global_symbol_pipe="$AWK '"\
5116 " {last_section=section; section=\$ 3};"\
5117 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5118 " \$ 0!~/External *\|/{next};"\
5119 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5120 " {if(hide[section]) next};"\
5121 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5122 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5123 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5124 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5125 " ' prfx=^$ac_symprfx"
5126 else
5127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5128 fi
5129
5130 # Check to see that the pipe works correctly.
5131 pipe_works=no
5132
5133 rm -f conftest*
5134 cat > conftest.$ac_ext <<_LT_EOF
5135 #ifdef __cplusplus
5136 extern "C" {
5137 #endif
5138 char nm_test_var;
5139 void nm_test_func(void);
5140 void nm_test_func(void){}
5141 #ifdef __cplusplus
5142 }
5143 #endif
5144 int main(){nm_test_var='a';nm_test_func();return(0);}
5145 _LT_EOF
5146
5147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5148 (eval $ac_compile) 2>&5
5149 ac_status=$?
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; then
5152 # Now try to grab the symbols.
5153 nlist=conftest.nm
5154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5155 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5156 ac_status=$?
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; } && test -s "$nlist"; then
5159 # Try sorting and uniquifying the output.
5160 if sort "$nlist" | uniq > "$nlist"T; then
5161 mv -f "$nlist"T "$nlist"
5162 else
5163 rm -f "$nlist"T
5164 fi
5165
5166 # Make sure that we snagged all the symbols we need.
5167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5169 cat <<_LT_EOF > conftest.$ac_ext
5170 #ifdef __cplusplus
5171 extern "C" {
5172 #endif
5173
5174 _LT_EOF
5175 # Now generate the symbol file.
5176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5177
5178 cat <<_LT_EOF >> conftest.$ac_ext
5179
5180 /* The mapping between symbol names and symbols. */
5181 const struct {
5182 const char *name;
5183 void *address;
5184 }
5185 lt__PROGRAM__LTX_preloaded_symbols[] =
5186 {
5187 { "@PROGRAM@", (void *) 0 },
5188 _LT_EOF
5189 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5190 cat <<\_LT_EOF >> conftest.$ac_ext
5191 {0, (void *) 0}
5192 };
5193
5194 /* This works around a problem in FreeBSD linker */
5195 #ifdef FREEBSD_WORKAROUND
5196 static const void *lt_preloaded_setup() {
5197 return lt__PROGRAM__LTX_preloaded_symbols;
5198 }
5199 #endif
5200
5201 #ifdef __cplusplus
5202 }
5203 #endif
5204 _LT_EOF
5205 # Now try linking the two files.
5206 mv conftest.$ac_objext conftstm.$ac_objext
5207 lt_save_LIBS="$LIBS"
5208 lt_save_CFLAGS="$CFLAGS"
5209 LIBS="conftstm.$ac_objext"
5210 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5212 (eval $ac_link) 2>&5
5213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5216 pipe_works=yes
5217 fi
5218 LIBS="$lt_save_LIBS"
5219 CFLAGS="$lt_save_CFLAGS"
5220 else
5221 echo "cannot find nm_test_func in $nlist" >&5
5222 fi
5223 else
5224 echo "cannot find nm_test_var in $nlist" >&5
5225 fi
5226 else
5227 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5228 fi
5229 else
5230 echo "$progname: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 fi
5233 rm -rf conftest* conftst*
5234
5235 # Do not use the global_symbol_pipe unless it works.
5236 if test "$pipe_works" = yes; then
5237 break
5238 else
5239 lt_cv_sys_global_symbol_pipe=
5240 fi
5241 done
5242
5243 fi
5244
5245 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5246 lt_cv_sys_global_symbol_to_cdecl=
5247 fi
5248 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5250 $as_echo "failed" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5253 $as_echo "ok" >&6; }
5254 fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 # Check whether --enable-libtool-lock was given.
5279 if test "${enable_libtool_lock+set}" = set; then :
5280 enableval=$enable_libtool_lock;
5281 fi
5282
5283 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5284
5285 # Some flags need to be propagated to the compiler or linker for good
5286 # libtool support.
5287 case $host in
5288 ia64-*-hpux*)
5289 # Find out which ABI we are using.
5290 echo 'int i;' > conftest.$ac_ext
5291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5292 (eval $ac_compile) 2>&5
5293 ac_status=$?
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }; then
5296 case `/usr/bin/file conftest.$ac_objext` in
5297 *ELF-32*)
5298 HPUX_IA64_MODE="32"
5299 ;;
5300 *ELF-64*)
5301 HPUX_IA64_MODE="64"
5302 ;;
5303 esac
5304 fi
5305 rm -rf conftest*
5306 ;;
5307 *-*-irix6*)
5308 # Find out which ABI we are using.
5309 echo '#line 5309 "configure"' > conftest.$ac_ext
5310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5311 (eval $ac_compile) 2>&5
5312 ac_status=$?
5313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5314 test $ac_status = 0; }; then
5315 if test "$lt_cv_prog_gnu_ld" = yes; then
5316 case `/usr/bin/file conftest.$ac_objext` in
5317 *32-bit*)
5318 LD="${LD-ld} -melf32bsmip"
5319 ;;
5320 *N32*)
5321 LD="${LD-ld} -melf32bmipn32"
5322 ;;
5323 *64-bit*)
5324 LD="${LD-ld} -melf64bmip"
5325 ;;
5326 esac
5327 else
5328 case `/usr/bin/file conftest.$ac_objext` in
5329 *32-bit*)
5330 LD="${LD-ld} -32"
5331 ;;
5332 *N32*)
5333 LD="${LD-ld} -n32"
5334 ;;
5335 *64-bit*)
5336 LD="${LD-ld} -64"
5337 ;;
5338 esac
5339 fi
5340 fi
5341 rm -rf conftest*
5342 ;;
5343
5344 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5345 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5346 # Find out which ABI we are using.
5347 echo 'int i;' > conftest.$ac_ext
5348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5349 (eval $ac_compile) 2>&5
5350 ac_status=$?
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }; then
5353 case `/usr/bin/file conftest.o` in
5354 *32-bit*)
5355 case $host in
5356 x86_64-*kfreebsd*-gnu)
5357 LD="${LD-ld} -m elf_i386_fbsd"
5358 ;;
5359 x86_64-*linux*)
5360 LD="${LD-ld} -m elf_i386"
5361 ;;
5362 ppc64-*linux*|powerpc64-*linux*)
5363 LD="${LD-ld} -m elf32ppclinux"
5364 ;;
5365 s390x-*linux*)
5366 LD="${LD-ld} -m elf_s390"
5367 ;;
5368 sparc64-*linux*)
5369 LD="${LD-ld} -m elf32_sparc"
5370 ;;
5371 esac
5372 ;;
5373 *64-bit*)
5374 case $host in
5375 x86_64-*kfreebsd*-gnu)
5376 LD="${LD-ld} -m elf_x86_64_fbsd"
5377 ;;
5378 x86_64-*linux*)
5379 LD="${LD-ld} -m elf_x86_64"
5380 ;;
5381 ppc*-*linux*|powerpc*-*linux*)
5382 LD="${LD-ld} -m elf64ppc"
5383 ;;
5384 s390*-*linux*|s390*-*tpf*)
5385 LD="${LD-ld} -m elf64_s390"
5386 ;;
5387 sparc*-*linux*)
5388 LD="${LD-ld} -m elf64_sparc"
5389 ;;
5390 esac
5391 ;;
5392 esac
5393 fi
5394 rm -rf conftest*
5395 ;;
5396
5397 *-*-sco3.2v5*)
5398 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5399 SAVE_CFLAGS="$CFLAGS"
5400 CFLAGS="$CFLAGS -belf"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5402 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5403 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_link "$LINENO"; then :
5424 lt_cv_cc_needs_belf=yes
5425 else
5426 lt_cv_cc_needs_belf=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext \
5429 conftest$ac_exeext conftest.$ac_ext
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5438 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5441 CFLAGS="$SAVE_CFLAGS"
5442 fi
5443 ;;
5444 sparc*-*solaris*)
5445 # Find out which ABI we are using.
5446 echo 'int i;' > conftest.$ac_ext
5447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5448 (eval $ac_compile) 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then
5452 case `/usr/bin/file conftest.o` in
5453 *64-bit*)
5454 case $lt_cv_prog_gnu_ld in
5455 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5456 *)
5457 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5458 LD="${LD-ld} -64"
5459 fi
5460 ;;
5461 esac
5462 ;;
5463 esac
5464 fi
5465 rm -rf conftest*
5466 ;;
5467 esac
5468
5469 need_locks="$enable_libtool_lock"
5470
5471
5472 case $host_os in
5473 rhapsody* | darwin*)
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$DSYMUTIL"; then
5483 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496 done
5497 done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5503 if test -n "$DSYMUTIL"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5505 $as_echo "$DSYMUTIL" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 fi
5513 if test -z "$ac_cv_prog_DSYMUTIL"; then
5514 ac_ct_DSYMUTIL=$DSYMUTIL
5515 # Extract the first word of "dsymutil", so it can be a program name with args.
5516 set dummy dsymutil; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$ac_ct_DSYMUTIL"; then
5523 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5543 if test -n "$ac_ct_DSYMUTIL"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5545 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551 if test "x$ac_ct_DSYMUTIL" = x; then
5552 DSYMUTIL=":"
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560 DSYMUTIL=$ac_ct_DSYMUTIL
5561 fi
5562 else
5563 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5564 fi
5565
5566 if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$NMEDIT"; then
5575 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 NMEDIT=$ac_cv_prog_NMEDIT
5595 if test -n "$NMEDIT"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5597 $as_echo "$NMEDIT" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 fi
5605 if test -z "$ac_cv_prog_NMEDIT"; then
5606 ac_ct_NMEDIT=$NMEDIT
5607 # Extract the first word of "nmedit", so it can be a program name with args.
5608 set dummy nmedit; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$ac_ct_NMEDIT"; then
5615 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5635 if test -n "$ac_ct_NMEDIT"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5637 $as_echo "$ac_ct_NMEDIT" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643 if test "x$ac_ct_NMEDIT" = x; then
5644 NMEDIT=":"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 NMEDIT=$ac_ct_NMEDIT
5653 fi
5654 else
5655 NMEDIT="$ac_cv_prog_NMEDIT"
5656 fi
5657
5658 if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5660 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if test "${ac_cv_prog_LIPO+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$LIPO"; then
5667 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 LIPO=$ac_cv_prog_LIPO
5687 if test -n "$LIPO"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5689 $as_echo "$LIPO" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 fi
5697 if test -z "$ac_cv_prog_LIPO"; then
5698 ac_ct_LIPO=$LIPO
5699 # Extract the first word of "lipo", so it can be a program name with args.
5700 set dummy lipo; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$ac_ct_LIPO"; then
5707 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_LIPO="lipo"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5727 if test -n "$ac_ct_LIPO"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5729 $as_echo "$ac_ct_LIPO" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735 if test "x$ac_ct_LIPO" = x; then
5736 LIPO=":"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 LIPO=$ac_ct_LIPO
5745 fi
5746 else
5747 LIPO="$ac_cv_prog_LIPO"
5748 fi
5749
5750 if test -n "$ac_tool_prefix"; then
5751 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5752 set dummy ${ac_tool_prefix}otool; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$OTOOL"; then
5759 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 OTOOL=$ac_cv_prog_OTOOL
5779 if test -n "$OTOOL"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5781 $as_echo "$OTOOL" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787
5788 fi
5789 if test -z "$ac_cv_prog_OTOOL"; then
5790 ac_ct_OTOOL=$OTOOL
5791 # Extract the first word of "otool", so it can be a program name with args.
5792 set dummy otool; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$ac_ct_OTOOL"; then
5799 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_ac_ct_OTOOL="otool"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5819 if test -n "$ac_ct_OTOOL"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5821 $as_echo "$ac_ct_OTOOL" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826
5827 if test "x$ac_ct_OTOOL" = x; then
5828 OTOOL=":"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831 yes:)
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5834 ac_tool_warned=yes ;;
5835 esac
5836 OTOOL=$ac_ct_OTOOL
5837 fi
5838 else
5839 OTOOL="$ac_cv_prog_OTOOL"
5840 fi
5841
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$OTOOL64"; then
5851 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 OTOOL64=$ac_cv_prog_OTOOL64
5871 if test -n "$OTOOL64"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5873 $as_echo "$OTOOL64" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_OTOOL64"; then
5882 ac_ct_OTOOL64=$OTOOL64
5883 # Extract the first word of "otool64", so it can be a program name with args.
5884 set dummy otool64; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$ac_ct_OTOOL64"; then
5891 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_ac_ct_OTOOL64="otool64"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5911 if test -n "$ac_ct_OTOOL64"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5913 $as_echo "$ac_ct_OTOOL64" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919 if test "x$ac_ct_OTOOL64" = x; then
5920 OTOOL64=":"
5921 else
5922 case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928 OTOOL64=$ac_ct_OTOOL64
5929 fi
5930 else
5931 OTOOL64="$ac_cv_prog_OTOOL64"
5932 fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5961 $as_echo_n "checking for -single_module linker flag... " >&6; }
5962 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 lt_cv_apple_cc_single_mod=no
5966 if test -z "${LT_MULTI_MODULE}"; then
5967 # By default we will add the -single_module flag. You can override
5968 # by either setting the environment variable LT_MULTI_MODULE
5969 # non-empty at configure time, or by adding -multi_module to the
5970 # link flags.
5971 rm -rf libconftest.dylib*
5972 echo "int foo(void){return 1;}" > conftest.c
5973 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5974 -dynamiclib -Wl,-single_module conftest.c" >&5
5975 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5976 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5977 _lt_result=$?
5978 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5979 lt_cv_apple_cc_single_mod=yes
5980 else
5981 cat conftest.err >&5
5982 fi
5983 rm -rf libconftest.dylib*
5984 rm -f conftest.*
5985 fi
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5988 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5990 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5991 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 lt_cv_ld_exported_symbols_list=no
5995 save_LDFLAGS=$LDFLAGS
5996 echo "_main" > conftest.sym
5997 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000
6001 int
6002 main ()
6003 {
6004
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_link "$LINENO"; then :
6010 lt_cv_ld_exported_symbols_list=yes
6011 else
6012 lt_cv_ld_exported_symbols_list=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 LDFLAGS="$save_LDFLAGS"
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6020 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6021 case $host_os in
6022 rhapsody* | darwin1.[012])
6023 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6024 darwin1.*)
6025 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6026 darwin*) # darwin 5.x on
6027 # if running on 10.5 or later, the deployment target defaults
6028 # to the OS version, if on x86, and 10.4, the deployment
6029 # target defaults to 10.4. Don't you love it?
6030 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6031 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6033 10.[012]*)
6034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6035 10.*)
6036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6037 esac
6038 ;;
6039 esac
6040 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6041 _lt_dar_single_mod='$single_module'
6042 fi
6043 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6044 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6045 else
6046 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6047 fi
6048 if test "$DSYMUTIL" != ":"; then
6049 _lt_dsymutil='~$DSYMUTIL $lib || :'
6050 else
6051 _lt_dsymutil=
6052 fi
6053 ;;
6054 esac
6055
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6062 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6063 # On Suns, sometimes $CPP names a directory.
6064 if test -n "$CPP" && test -d "$CPP"; then
6065 CPP=
6066 fi
6067 if test -z "$CPP"; then
6068 if test "${ac_cv_prog_CPP+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 # Double quotes because CPP needs to be expanded
6072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6073 do
6074 ac_preproc_ok=false
6075 for ac_c_preproc_warn_flag in '' yes
6076 do
6077 # Use a header file that comes with gcc, so configuring glibc
6078 # with a fresh cross-compiler works.
6079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 # <limits.h> exists even on freestanding compilers.
6081 # On the NeXT, cc -E runs the code through the compiler's parser,
6082 # not just through cpp. "Syntax error" is here to catch this case.
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #ifdef __STDC__
6086 # include <limits.h>
6087 #else
6088 # include <assert.h>
6089 #endif
6090 Syntax error
6091 _ACEOF
6092 if ac_fn_c_try_cpp "$LINENO"; then :
6093
6094 else
6095 # Broken: fails on valid input.
6096 continue
6097 fi
6098 rm -f conftest.err conftest.$ac_ext
6099
6100 # OK, works on sane cases. Now check whether nonexistent headers
6101 # can be detected and how.
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <ac_nonexistent.h>
6105 _ACEOF
6106 if ac_fn_c_try_cpp "$LINENO"; then :
6107 # Broken: success on invalid input.
6108 continue
6109 else
6110 # Passes both tests.
6111 ac_preproc_ok=:
6112 break
6113 fi
6114 rm -f conftest.err conftest.$ac_ext
6115
6116 done
6117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6118 rm -f conftest.err conftest.$ac_ext
6119 if $ac_preproc_ok; then :
6120 break
6121 fi
6122
6123 done
6124 ac_cv_prog_CPP=$CPP
6125
6126 fi
6127 CPP=$ac_cv_prog_CPP
6128 else
6129 ac_cv_prog_CPP=$CPP
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6132 $as_echo "$CPP" >&6; }
6133 ac_preproc_ok=false
6134 for ac_c_preproc_warn_flag in '' yes
6135 do
6136 # Use a header file that comes with gcc, so configuring glibc
6137 # with a fresh cross-compiler works.
6138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6139 # <limits.h> exists even on freestanding compilers.
6140 # On the NeXT, cc -E runs the code through the compiler's parser,
6141 # not just through cpp. "Syntax error" is here to catch this case.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149 Syntax error
6150 _ACEOF
6151 if ac_fn_c_try_cpp "$LINENO"; then :
6152
6153 else
6154 # Broken: fails on valid input.
6155 continue
6156 fi
6157 rm -f conftest.err conftest.$ac_ext
6158
6159 # OK, works on sane cases. Now check whether nonexistent headers
6160 # can be detected and how.
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <ac_nonexistent.h>
6164 _ACEOF
6165 if ac_fn_c_try_cpp "$LINENO"; then :
6166 # Broken: success on invalid input.
6167 continue
6168 else
6169 # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then :
6179
6180 else
6181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6183 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." "$LINENO" 5; }
6185 fi
6186
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6195 $as_echo_n "checking for ANSI C header files... " >&6; }
6196 if test "${ac_cv_header_stdc+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 #include <stdlib.h>
6202 #include <stdarg.h>
6203 #include <string.h>
6204 #include <float.h>
6205
6206 int
6207 main ()
6208 {
6209
6210 ;
6211 return 0;
6212 }
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_cv_header_stdc=yes
6216 else
6217 ac_cv_header_stdc=no
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220
6221 if test $ac_cv_header_stdc = yes; then
6222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <string.h>
6226
6227 _ACEOF
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 $EGREP "memchr" >/dev/null 2>&1; then :
6230
6231 else
6232 ac_cv_header_stdc=no
6233 fi
6234 rm -f conftest*
6235
6236 fi
6237
6238 if test $ac_cv_header_stdc = yes; then
6239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <stdlib.h>
6243
6244 _ACEOF
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 $EGREP "free" >/dev/null 2>&1; then :
6247
6248 else
6249 ac_cv_header_stdc=no
6250 fi
6251 rm -f conftest*
6252
6253 fi
6254
6255 if test $ac_cv_header_stdc = yes; then
6256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6257 if test "$cross_compiling" = yes; then :
6258 :
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <ctype.h>
6263 #include <stdlib.h>
6264 #if ((' ' & 0x0FF) == 0x020)
6265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6267 #else
6268 # define ISLOWER(c) \
6269 (('a' <= (c) && (c) <= 'i') \
6270 || ('j' <= (c) && (c) <= 'r') \
6271 || ('s' <= (c) && (c) <= 'z'))
6272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6273 #endif
6274
6275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6276 int
6277 main ()
6278 {
6279 int i;
6280 for (i = 0; i < 256; i++)
6281 if (XOR (islower (i), ISLOWER (i))
6282 || toupper (i) != TOUPPER (i))
6283 return 2;
6284 return 0;
6285 }
6286 _ACEOF
6287 if ac_fn_c_try_run "$LINENO"; then :
6288
6289 else
6290 ac_cv_header_stdc=no
6291 fi
6292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6293 conftest.$ac_objext conftest.beam conftest.$ac_ext
6294 fi
6295
6296 fi
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6299 $as_echo "$ac_cv_header_stdc" >&6; }
6300 if test $ac_cv_header_stdc = yes; then
6301
6302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6303
6304 fi
6305
6306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6308 inttypes.h stdint.h unistd.h
6309 do :
6310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6312 "
6313 eval as_val=\$$as_ac_Header
6314 if test "x$as_val" = x""yes; then :
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6318
6319 fi
6320
6321 done
6322
6323
6324 for ac_header in dlfcn.h
6325 do :
6326 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6327 "
6328 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6329 cat >>confdefs.h <<_ACEOF
6330 #define HAVE_DLFCN_H 1
6331 _ACEOF
6332
6333 fi
6334
6335 done
6336
6337
6338
6339 # Set options
6340 # Check whether --enable-static was given.
6341 if test "${enable_static+set}" = set; then :
6342 enableval=$enable_static; p=${PACKAGE-default}
6343 case $enableval in
6344 yes) enable_static=yes ;;
6345 no) enable_static=no ;;
6346 *)
6347 enable_static=no
6348 # Look at the argument we got. We use all the common list separators.
6349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6350 for pkg in $enableval; do
6351 IFS="$lt_save_ifs"
6352 if test "X$pkg" = "X$p"; then
6353 enable_static=yes
6354 fi
6355 done
6356 IFS="$lt_save_ifs"
6357 ;;
6358 esac
6359 else
6360 enable_static=no
6361 fi
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 enable_dlopen=no
6373
6374
6375 enable_win32_dll=no
6376
6377
6378 # Check whether --enable-shared was given.
6379 if test "${enable_shared+set}" = set; then :
6380 enableval=$enable_shared; p=${PACKAGE-default}
6381 case $enableval in
6382 yes) enable_shared=yes ;;
6383 no) enable_shared=no ;;
6384 *)
6385 enable_shared=no
6386 # Look at the argument we got. We use all the common list separators.
6387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6388 for pkg in $enableval; do
6389 IFS="$lt_save_ifs"
6390 if test "X$pkg" = "X$p"; then
6391 enable_shared=yes
6392 fi
6393 done
6394 IFS="$lt_save_ifs"
6395 ;;
6396 esac
6397 else
6398 enable_shared=yes
6399 fi
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 # Check whether --with-pic was given.
6412 if test "${with_pic+set}" = set; then :
6413 withval=$with_pic; pic_mode="$withval"
6414 else
6415 pic_mode=default
6416 fi
6417
6418
6419 test -z "$pic_mode" && pic_mode=default
6420
6421
6422
6423
6424
6425
6426
6427 # Check whether --enable-fast-install was given.
6428 if test "${enable_fast_install+set}" = set; then :
6429 enableval=$enable_fast_install; p=${PACKAGE-default}
6430 case $enableval in
6431 yes) enable_fast_install=yes ;;
6432 no) enable_fast_install=no ;;
6433 *)
6434 enable_fast_install=no
6435 # Look at the argument we got. We use all the common list separators.
6436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6437 for pkg in $enableval; do
6438 IFS="$lt_save_ifs"
6439 if test "X$pkg" = "X$p"; then
6440 enable_fast_install=yes
6441 fi
6442 done
6443 IFS="$lt_save_ifs"
6444 ;;
6445 esac
6446 else
6447 enable_fast_install=yes
6448 fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460 # This can be used to rebuild libtool when needed
6461 LIBTOOL_DEPS="$ltmain"
6462
6463 # Always use our own libtool.
6464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 test -z "$LN_S" && LN_S="ln -s"
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505 if test -n "${ZSH_VERSION+set}" ; then
6506 setopt NO_GLOB_SUBST
6507 fi
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6510 $as_echo_n "checking for objdir... " >&6; }
6511 if test "${lt_cv_objdir+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 rm -f .libs 2>/dev/null
6515 mkdir .libs 2>/dev/null
6516 if test -d .libs; then
6517 lt_cv_objdir=.libs
6518 else
6519 # MS-DOS does not allow filenames that begin with a dot.
6520 lt_cv_objdir=_libs
6521 fi
6522 rmdir .libs 2>/dev/null
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6525 $as_echo "$lt_cv_objdir" >&6; }
6526 objdir=$lt_cv_objdir
6527
6528
6529
6530
6531
6532 cat >>confdefs.h <<_ACEOF
6533 #define LT_OBJDIR "$lt_cv_objdir/"
6534 _ACEOF
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 case $host_os in
6553 aix3*)
6554 # AIX sometimes has problems with the GCC collect2 program. For some
6555 # reason, if we set the COLLECT_NAMES environment variable, the problems
6556 # vanish in a puff of smoke.
6557 if test "X${COLLECT_NAMES+set}" != Xset; then
6558 COLLECT_NAMES=
6559 export COLLECT_NAMES
6560 fi
6561 ;;
6562 esac
6563
6564 # Sed substitution that helps us do robust quoting. It backslashifies
6565 # metacharacters that are still active within double-quoted strings.
6566 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6567
6568 # Same as above, but do not quote variable references.
6569 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6570
6571 # Sed substitution to delay expansion of an escaped shell variable in a
6572 # double_quote_subst'ed string.
6573 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574
6575 # Sed substitution to delay expansion of an escaped single quote.
6576 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6577
6578 # Sed substitution to avoid accidental globbing in evaled expressions
6579 no_glob_subst='s/\*/\\\*/g'
6580
6581 # Global variables:
6582 ofile=libtool
6583 can_build_shared=yes
6584
6585 # All known linkers require a `.a' archive for static linking (except MSVC,
6586 # which needs '.lib').
6587 libext=a
6588
6589 with_gnu_ld="$lt_cv_prog_gnu_ld"
6590
6591 old_CC="$CC"
6592 old_CFLAGS="$CFLAGS"
6593
6594 # Set sane defaults for various variables
6595 test -z "$CC" && CC=cc
6596 test -z "$LTCC" && LTCC=$CC
6597 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6598 test -z "$LD" && LD=ld
6599 test -z "$ac_objext" && ac_objext=o
6600
6601 for cc_temp in $compiler""; do
6602 case $cc_temp in
6603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6605 \-*) ;;
6606 *) break;;
6607 esac
6608 done
6609 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6610
6611
6612 # Only perform the check for file, if the check method requires it
6613 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6614 case $deplibs_check_method in
6615 file_magic*)
6616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6618 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 case $MAGIC_CMD in
6623 [\\/*] | ?:[\\/]*)
6624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625 ;;
6626 *)
6627 lt_save_MAGIC_CMD="$MAGIC_CMD"
6628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6630 for ac_dir in $ac_dummy; do
6631 IFS="$lt_save_ifs"
6632 test -z "$ac_dir" && ac_dir=.
6633 if test -f $ac_dir/${ac_tool_prefix}file; then
6634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6635 if test -n "$file_magic_test_file"; then
6636 case $deplibs_check_method in
6637 "file_magic "*)
6638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6641 $EGREP "$file_magic_regex" > /dev/null; then
6642 :
6643 else
6644 cat <<_LT_EOF 1>&2
6645
6646 *** Warning: the command libtool uses to detect shared libraries,
6647 *** $file_magic_cmd, produces output that libtool cannot recognize.
6648 *** The result is that libtool may fail to recognize shared libraries
6649 *** as such. This will affect the creation of libtool libraries that
6650 *** depend on shared libraries, but programs linked with such libtool
6651 *** libraries will work regardless of this problem. Nevertheless, you
6652 *** may want to report the problem to your system manager and/or to
6653 *** bug-libtool@gnu.org
6654
6655 _LT_EOF
6656 fi ;;
6657 esac
6658 fi
6659 break
6660 fi
6661 done
6662 IFS="$lt_save_ifs"
6663 MAGIC_CMD="$lt_save_MAGIC_CMD"
6664 ;;
6665 esac
6666 fi
6667
6668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669 if test -n "$MAGIC_CMD"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6671 $as_echo "$MAGIC_CMD" >&6; }
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677
6678
6679
6680
6681 if test -z "$lt_cv_path_MAGIC_CMD"; then
6682 if test -n "$ac_tool_prefix"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6684 $as_echo_n "checking for file... " >&6; }
6685 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 case $MAGIC_CMD in
6689 [\\/*] | ?:[\\/]*)
6690 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 lt_save_MAGIC_CMD="$MAGIC_CMD"
6694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6696 for ac_dir in $ac_dummy; do
6697 IFS="$lt_save_ifs"
6698 test -z "$ac_dir" && ac_dir=.
6699 if test -f $ac_dir/file; then
6700 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6701 if test -n "$file_magic_test_file"; then
6702 case $deplibs_check_method in
6703 "file_magic "*)
6704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6707 $EGREP "$file_magic_regex" > /dev/null; then
6708 :
6709 else
6710 cat <<_LT_EOF 1>&2
6711
6712 *** Warning: the command libtool uses to detect shared libraries,
6713 *** $file_magic_cmd, produces output that libtool cannot recognize.
6714 *** The result is that libtool may fail to recognize shared libraries
6715 *** as such. This will affect the creation of libtool libraries that
6716 *** depend on shared libraries, but programs linked with such libtool
6717 *** libraries will work regardless of this problem. Nevertheless, you
6718 *** may want to report the problem to your system manager and/or to
6719 *** bug-libtool@gnu.org
6720
6721 _LT_EOF
6722 fi ;;
6723 esac
6724 fi
6725 break
6726 fi
6727 done
6728 IFS="$lt_save_ifs"
6729 MAGIC_CMD="$lt_save_MAGIC_CMD"
6730 ;;
6731 esac
6732 fi
6733
6734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735 if test -n "$MAGIC_CMD"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6737 $as_echo "$MAGIC_CMD" >&6; }
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744 else
6745 MAGIC_CMD=:
6746 fi
6747 fi
6748
6749 fi
6750 ;;
6751 esac
6752
6753 # Use C for the default configuration in the libtool script
6754
6755 lt_save_CC="$CC"
6756 ac_ext=c
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762
6763 # Source file extension for C test sources.
6764 ac_ext=c
6765
6766 # Object file extension for compiled C test sources.
6767 objext=o
6768 objext=$objext
6769
6770 # Code to be used in simple compile tests
6771 lt_simple_compile_test_code="int some_variable = 0;"
6772
6773 # Code to be used in simple link tests
6774 lt_simple_link_test_code='int main(){return(0);}'
6775
6776
6777
6778
6779
6780
6781
6782 # If no C compiler was specified, use CC.
6783 LTCC=${LTCC-"$CC"}
6784
6785 # If no C compiler flags were specified, use CFLAGS.
6786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6787
6788 # Allow CC to be a program name with arguments.
6789 compiler=$CC
6790
6791 # Save the default compiler, since it gets overwritten when the other
6792 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6793 compiler_DEFAULT=$CC
6794
6795 # save warnings/boilerplate of simple test code
6796 ac_outfile=conftest.$ac_objext
6797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799 _lt_compiler_boilerplate=`cat conftest.err`
6800 $RM conftest*
6801
6802 ac_outfile=conftest.$ac_objext
6803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6805 _lt_linker_boilerplate=`cat conftest.err`
6806 $RM -r conftest*
6807
6808
6809 if test -n "$compiler"; then
6810
6811 lt_prog_compiler_no_builtin_flag=
6812
6813 if test "$GCC" = yes; then
6814 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6817 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6818 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 lt_cv_prog_compiler_rtti_exceptions=no
6822 ac_outfile=conftest.$ac_objext
6823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6824 lt_compiler_flag="-fno-rtti -fno-exceptions"
6825 # Insert the option either (1) after the last *FLAGS variable, or
6826 # (2) before a word containing "conftest.", or (3) at the end.
6827 # Note that $ac_compile itself does not contain backslashes and begins
6828 # with a dollar sign (not a hyphen), so the echo should work correctly.
6829 # The option is referenced via a variable to avoid confusing sed.
6830 lt_compile=`echo "$ac_compile" | $SED \
6831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6833 -e 's:$: $lt_compiler_flag:'`
6834 (eval echo "\"\$as_me:6834: $lt_compile\"" >&5)
6835 (eval "$lt_compile" 2>conftest.err)
6836 ac_status=$?
6837 cat conftest.err >&5
6838 echo "$as_me:6838: \$? = $ac_status" >&5
6839 if (exit $ac_status) && test -s "$ac_outfile"; then
6840 # The compiler can only warn and ignore the option if not recognized
6841 # So say no if there are warnings other than the usual output.
6842 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6845 lt_cv_prog_compiler_rtti_exceptions=yes
6846 fi
6847 fi
6848 $RM conftest*
6849
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6852 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6853
6854 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6856 else
6857 :
6858 fi
6859
6860 fi
6861
6862
6863
6864
6865
6866
6867 lt_prog_compiler_wl=
6868 lt_prog_compiler_pic=
6869 lt_prog_compiler_static=
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6872 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6873
6874 if test "$GCC" = yes; then
6875 lt_prog_compiler_wl='-Wl,'
6876 lt_prog_compiler_static='-static'
6877
6878 case $host_os in
6879 aix*)
6880 # All AIX code is PIC.
6881 if test "$host_cpu" = ia64; then
6882 # AIX 5 now supports IA64 processor
6883 lt_prog_compiler_static='-Bstatic'
6884 fi
6885 ;;
6886
6887 amigaos*)
6888 case $host_cpu in
6889 powerpc)
6890 # see comment about AmigaOS4 .so support
6891 lt_prog_compiler_pic='-fPIC'
6892 ;;
6893 m68k)
6894 # FIXME: we need at least 68020 code to build shared libraries, but
6895 # adding the `-m68020' flag to GCC prevents building anything better,
6896 # like `-m68040'.
6897 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6898 ;;
6899 esac
6900 ;;
6901
6902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6903 # PIC is the default for these OSes.
6904 ;;
6905
6906 mingw* | cygwin* | pw32* | os2* | cegcc*)
6907 # This hack is so that the source file can tell whether it is being
6908 # built for inclusion in a dll (and should export symbols for example).
6909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6910 # (--disable-auto-import) libraries
6911 lt_prog_compiler_pic='-DDLL_EXPORT'
6912 ;;
6913
6914 darwin* | rhapsody*)
6915 # PIC is the default on this platform
6916 # Common symbols not allowed in MH_DYLIB files
6917 lt_prog_compiler_pic='-fno-common'
6918 ;;
6919
6920 hpux*)
6921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6923 # sets the default TLS model and affects inlining.
6924 case $host_cpu in
6925 hppa*64*)
6926 # +Z the default
6927 ;;
6928 *)
6929 lt_prog_compiler_pic='-fPIC'
6930 ;;
6931 esac
6932 ;;
6933
6934 interix[3-9]*)
6935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6936 # Instead, we relocate shared libraries at runtime.
6937 ;;
6938
6939 msdosdjgpp*)
6940 # Just because we use GCC doesn't mean we suddenly get shared libraries
6941 # on systems that don't support them.
6942 lt_prog_compiler_can_build_shared=no
6943 enable_shared=no
6944 ;;
6945
6946 *nto* | *qnx*)
6947 # QNX uses GNU C++, but need to define -shared option too, otherwise
6948 # it will coredump.
6949 lt_prog_compiler_pic='-fPIC -shared'
6950 ;;
6951
6952 sysv4*MP*)
6953 if test -d /usr/nec; then
6954 lt_prog_compiler_pic=-Kconform_pic
6955 fi
6956 ;;
6957
6958 *)
6959 lt_prog_compiler_pic='-fPIC'
6960 ;;
6961 esac
6962 else
6963 # PORTME Check for flag to pass linker flags through the system compiler.
6964 case $host_os in
6965 aix*)
6966 lt_prog_compiler_wl='-Wl,'
6967 if test "$host_cpu" = ia64; then
6968 # AIX 5 now supports IA64 processor
6969 lt_prog_compiler_static='-Bstatic'
6970 else
6971 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6972 fi
6973 ;;
6974
6975 mingw* | cygwin* | pw32* | os2* | cegcc*)
6976 # This hack is so that the source file can tell whether it is being
6977 # built for inclusion in a dll (and should export symbols for example).
6978 lt_prog_compiler_pic='-DDLL_EXPORT'
6979 ;;
6980
6981 hpux9* | hpux10* | hpux11*)
6982 lt_prog_compiler_wl='-Wl,'
6983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6984 # not for PA HP-UX.
6985 case $host_cpu in
6986 hppa*64*|ia64*)
6987 # +Z the default
6988 ;;
6989 *)
6990 lt_prog_compiler_pic='+Z'
6991 ;;
6992 esac
6993 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6994 lt_prog_compiler_static='${wl}-a ${wl}archive'
6995 ;;
6996
6997 irix5* | irix6* | nonstopux*)
6998 lt_prog_compiler_wl='-Wl,'
6999 # PIC (with -KPIC) is the default.
7000 lt_prog_compiler_static='-non_shared'
7001 ;;
7002
7003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7004 case $cc_basename in
7005 # old Intel for x86_64 which still supported -KPIC.
7006 ecc*)
7007 lt_prog_compiler_wl='-Wl,'
7008 lt_prog_compiler_pic='-KPIC'
7009 lt_prog_compiler_static='-static'
7010 ;;
7011 # icc used to be incompatible with GCC.
7012 # ICC 10 doesn't accept -KPIC any more.
7013 icc* | ifort*)
7014 lt_prog_compiler_wl='-Wl,'
7015 lt_prog_compiler_pic='-fPIC'
7016 lt_prog_compiler_static='-static'
7017 ;;
7018 # Lahey Fortran 8.1.
7019 lf95*)
7020 lt_prog_compiler_wl='-Wl,'
7021 lt_prog_compiler_pic='--shared'
7022 lt_prog_compiler_static='--static'
7023 ;;
7024 pgcc* | pgf77* | pgf90* | pgf95*)
7025 # Portland Group compilers (*not* the Pentium gcc compiler,
7026 # which looks to be a dead project)
7027 lt_prog_compiler_wl='-Wl,'
7028 lt_prog_compiler_pic='-fpic'
7029 lt_prog_compiler_static='-Bstatic'
7030 ;;
7031 ccc*)
7032 lt_prog_compiler_wl='-Wl,'
7033 # All Alpha code is PIC.
7034 lt_prog_compiler_static='-non_shared'
7035 ;;
7036 xl*)
7037 # IBM XL C 8.0/Fortran 10.1 on PPC
7038 lt_prog_compiler_wl='-Wl,'
7039 lt_prog_compiler_pic='-qpic'
7040 lt_prog_compiler_static='-qstaticlink'
7041 ;;
7042 *)
7043 case `$CC -V 2>&1 | sed 5q` in
7044 *Sun\ C*)
7045 # Sun C 5.9
7046 lt_prog_compiler_pic='-KPIC'
7047 lt_prog_compiler_static='-Bstatic'
7048 lt_prog_compiler_wl='-Wl,'
7049 ;;
7050 *Sun\ F*)
7051 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 lt_prog_compiler_wl=''
7055 ;;
7056 esac
7057 ;;
7058 esac
7059 ;;
7060
7061 newsos6)
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 ;;
7065
7066 *nto* | *qnx*)
7067 # QNX uses GNU C++, but need to define -shared option too, otherwise
7068 # it will coredump.
7069 lt_prog_compiler_pic='-fPIC -shared'
7070 ;;
7071
7072 osf3* | osf4* | osf5*)
7073 lt_prog_compiler_wl='-Wl,'
7074 # All OSF/1 code is PIC.
7075 lt_prog_compiler_static='-non_shared'
7076 ;;
7077
7078 rdos*)
7079 lt_prog_compiler_static='-non_shared'
7080 ;;
7081
7082 solaris*)
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 case $cc_basename in
7086 f77* | f90* | f95*)
7087 lt_prog_compiler_wl='-Qoption ld ';;
7088 *)
7089 lt_prog_compiler_wl='-Wl,';;
7090 esac
7091 ;;
7092
7093 sunos4*)
7094 lt_prog_compiler_wl='-Qoption ld '
7095 lt_prog_compiler_pic='-PIC'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 sysv4 | sysv4.2uw2* | sysv4.3*)
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-Bstatic'
7103 ;;
7104
7105 sysv4*MP*)
7106 if test -d /usr/nec ;then
7107 lt_prog_compiler_pic='-Kconform_pic'
7108 lt_prog_compiler_static='-Bstatic'
7109 fi
7110 ;;
7111
7112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_pic='-KPIC'
7115 lt_prog_compiler_static='-Bstatic'
7116 ;;
7117
7118 unicos*)
7119 lt_prog_compiler_wl='-Wl,'
7120 lt_prog_compiler_can_build_shared=no
7121 ;;
7122
7123 uts4*)
7124 lt_prog_compiler_pic='-pic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127
7128 *)
7129 lt_prog_compiler_can_build_shared=no
7130 ;;
7131 esac
7132 fi
7133
7134 case $host_os in
7135 # For platforms which do not support PIC, -DPIC is meaningless:
7136 *djgpp*)
7137 lt_prog_compiler_pic=
7138 ;;
7139 *)
7140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141 ;;
7142 esac
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7144 $as_echo "$lt_prog_compiler_pic" >&6; }
7145
7146
7147
7148
7149
7150
7151 #
7152 # Check to make sure the PIC flag actually works.
7153 #
7154 if test -n "$lt_prog_compiler_pic"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7156 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7157 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 lt_cv_prog_compiler_pic_works=no
7161 ac_outfile=conftest.$ac_objext
7162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7164 # Insert the option either (1) after the last *FLAGS variable, or
7165 # (2) before a word containing "conftest.", or (3) at the end.
7166 # Note that $ac_compile itself does not contain backslashes and begins
7167 # with a dollar sign (not a hyphen), so the echo should work correctly.
7168 # The option is referenced via a variable to avoid confusing sed.
7169 lt_compile=`echo "$ac_compile" | $SED \
7170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172 -e 's:$: $lt_compiler_flag:'`
7173 (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174 (eval "$lt_compile" 2>conftest.err)
7175 ac_status=$?
7176 cat conftest.err >&5
7177 echo "$as_me:7177: \$? = $ac_status" >&5
7178 if (exit $ac_status) && test -s "$ac_outfile"; then
7179 # The compiler can only warn and ignore the option if not recognized
7180 # So say no if there are warnings other than the usual output.
7181 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7184 lt_cv_prog_compiler_pic_works=yes
7185 fi
7186 fi
7187 $RM conftest*
7188
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7191 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7192
7193 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7194 case $lt_prog_compiler_pic in
7195 "" | " "*) ;;
7196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7197 esac
7198 else
7199 lt_prog_compiler_pic=
7200 lt_prog_compiler_can_build_shared=no
7201 fi
7202
7203 fi
7204
7205
7206
7207
7208
7209
7210 #
7211 # Check to make sure the static flag actually works.
7212 #
7213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7215 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7216 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_prog_compiler_static_works=no
7220 save_LDFLAGS="$LDFLAGS"
7221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7224 # The linker can only warn and ignore the option if not recognized
7225 # So say no if there are warnings
7226 if test -s conftest.err; then
7227 # Append any errors to the config.log.
7228 cat conftest.err 1>&5
7229 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if diff conftest.exp conftest.er2 >/dev/null; then
7232 lt_cv_prog_compiler_static_works=yes
7233 fi
7234 else
7235 lt_cv_prog_compiler_static_works=yes
7236 fi
7237 fi
7238 $RM -r conftest*
7239 LDFLAGS="$save_LDFLAGS"
7240
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7243 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7244
7245 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7246 :
7247 else
7248 lt_prog_compiler_static=
7249 fi
7250
7251
7252
7253
7254
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7259 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 lt_cv_prog_compiler_c_o=no
7263 $RM -r conftest 2>/dev/null
7264 mkdir conftest
7265 cd conftest
7266 mkdir out
7267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268
7269 lt_compiler_flag="-o out/conftest2.$ac_objext"
7270 # Insert the option either (1) after the last *FLAGS variable, or
7271 # (2) before a word containing "conftest.", or (3) at the end.
7272 # Note that $ac_compile itself does not contain backslashes and begins
7273 # with a dollar sign (not a hyphen), so the echo should work correctly.
7274 lt_compile=`echo "$ac_compile" | $SED \
7275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277 -e 's:$: $lt_compiler_flag:'`
7278 (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
7279 (eval "$lt_compile" 2>out/conftest.err)
7280 ac_status=$?
7281 cat out/conftest.err >&5
7282 echo "$as_me:7282: \$? = $ac_status" >&5
7283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284 then
7285 # The compiler can only warn and ignore the option if not recognized
7286 # So say no if there are warnings
7287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7290 lt_cv_prog_compiler_c_o=yes
7291 fi
7292 fi
7293 chmod u+w . 2>&5
7294 $RM conftest*
7295 # SGI C++ compiler will create directory out/ii_files/ for
7296 # template instantiation
7297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298 $RM out/* && rmdir out
7299 cd ..
7300 $RM -r conftest
7301 $RM conftest*
7302
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7306
7307
7308
7309
7310
7311
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 lt_cv_prog_compiler_c_o=no
7318 $RM -r conftest 2>/dev/null
7319 mkdir conftest
7320 cd conftest
7321 mkdir out
7322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323
7324 lt_compiler_flag="-o out/conftest2.$ac_objext"
7325 # Insert the option either (1) after the last *FLAGS variable, or
7326 # (2) before a word containing "conftest.", or (3) at the end.
7327 # Note that $ac_compile itself does not contain backslashes and begins
7328 # with a dollar sign (not a hyphen), so the echo should work correctly.
7329 lt_compile=`echo "$ac_compile" | $SED \
7330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7332 -e 's:$: $lt_compiler_flag:'`
7333 (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
7334 (eval "$lt_compile" 2>out/conftest.err)
7335 ac_status=$?
7336 cat out/conftest.err >&5
7337 echo "$as_me:7337: \$? = $ac_status" >&5
7338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7339 then
7340 # The compiler can only warn and ignore the option if not recognized
7341 # So say no if there are warnings
7342 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7345 lt_cv_prog_compiler_c_o=yes
7346 fi
7347 fi
7348 chmod u+w . 2>&5
7349 $RM conftest*
7350 # SGI C++ compiler will create directory out/ii_files/ for
7351 # template instantiation
7352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7353 $RM out/* && rmdir out
7354 cd ..
7355 $RM -r conftest
7356 $RM conftest*
7357
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7361
7362
7363
7364
7365 hard_links="nottested"
7366 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7367 # do not overwrite the value of need_locks provided by the user
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7369 $as_echo_n "checking if we can lock with hard links... " >&6; }
7370 hard_links=yes
7371 $RM conftest*
7372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7373 touch conftest.a
7374 ln conftest.a conftest.b 2>&5 || hard_links=no
7375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7377 $as_echo "$hard_links" >&6; }
7378 if test "$hard_links" = no; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7381 need_locks=warn
7382 fi
7383 else
7384 need_locks=no
7385 fi
7386
7387
7388
7389
7390
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7394
7395 runpath_var=
7396 allow_undefined_flag=
7397 always_export_symbols=no
7398 archive_cmds=
7399 archive_expsym_cmds=
7400 compiler_needs_object=no
7401 enable_shared_with_static_runtimes=no
7402 export_dynamic_flag_spec=
7403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7404 hardcode_automatic=no
7405 hardcode_direct=no
7406 hardcode_direct_absolute=no
7407 hardcode_libdir_flag_spec=
7408 hardcode_libdir_flag_spec_ld=
7409 hardcode_libdir_separator=
7410 hardcode_minus_L=no
7411 hardcode_shlibpath_var=unsupported
7412 inherit_rpath=no
7413 link_all_deplibs=unknown
7414 module_cmds=
7415 module_expsym_cmds=
7416 old_archive_from_new_cmds=
7417 old_archive_from_expsyms_cmds=
7418 thread_safe_flag_spec=
7419 whole_archive_flag_spec=
7420 # include_expsyms should be a list of space-separated symbols to be *always*
7421 # included in the symbol list
7422 include_expsyms=
7423 # exclude_expsyms can be an extended regexp of symbols to exclude
7424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426 # as well as any symbol that contains `d'.
7427 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429 # platforms (ab)use it in PIC code, but their linkers get confused if
7430 # the symbol is explicitly referenced. Since portable code cannot
7431 # rely on this symbol name, it's probably fine to never include it in
7432 # preloaded symbol tables.
7433 # Exclude shared library initialization/finalization symbols.
7434 extract_expsyms_cmds=
7435
7436 case $host_os in
7437 cygwin* | mingw* | pw32* | cegcc*)
7438 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7439 # When not using gcc, we currently assume that we are using
7440 # Microsoft Visual C++.
7441 if test "$GCC" != yes; then
7442 with_gnu_ld=no
7443 fi
7444 ;;
7445 interix*)
7446 # we just hope/assume this is gcc and not c89 (= MSVC++)
7447 with_gnu_ld=yes
7448 ;;
7449 openbsd*)
7450 with_gnu_ld=no
7451 ;;
7452 linux* | k*bsd*-gnu)
7453 link_all_deplibs=no
7454 ;;
7455 esac
7456
7457 ld_shlibs=yes
7458 if test "$with_gnu_ld" = yes; then
7459 # If archive_cmds runs LD, not CC, wlarc should be empty
7460 wlarc='${wl}'
7461
7462 # Set some defaults for GNU ld with shared library support. These
7463 # are reset later if shared libraries are not supported. Putting them
7464 # here allows them to be overridden if necessary.
7465 runpath_var=LD_RUN_PATH
7466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7467 export_dynamic_flag_spec='${wl}--export-dynamic'
7468 # ancient GNU ld didn't support --whole-archive et. al.
7469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7470 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7471 else
7472 whole_archive_flag_spec=
7473 fi
7474 supports_anon_versioning=no
7475 case `$LD -v 2>&1` in
7476 *GNU\ gold*) supports_anon_versioning=yes ;;
7477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7480 *\ 2.11.*) ;; # other 2.11 versions
7481 *) supports_anon_versioning=yes ;;
7482 esac
7483
7484 # See if GNU ld supports shared libraries.
7485 case $host_os in
7486 aix[3-9]*)
7487 # On AIX/PPC, the GNU linker is very broken
7488 if test "$host_cpu" != ia64; then
7489 ld_shlibs=no
7490 cat <<_LT_EOF 1>&2
7491
7492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7493 *** to be unable to reliably create shared libraries on AIX.
7494 *** Therefore, libtool is disabling shared libraries support. If you
7495 *** really care for shared libraries, you may want to modify your PATH
7496 *** so that a non-GNU linker is found, and then restart.
7497
7498 _LT_EOF
7499 fi
7500 ;;
7501
7502 amigaos*)
7503 case $host_cpu in
7504 powerpc)
7505 # see comment about AmigaOS4 .so support
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 archive_expsym_cmds=''
7508 ;;
7509 m68k)
7510 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)'
7511 hardcode_libdir_flag_spec='-L$libdir'
7512 hardcode_minus_L=yes
7513 ;;
7514 esac
7515 ;;
7516
7517 beos*)
7518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7519 allow_undefined_flag=unsupported
7520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7521 # support --undefined. This deserves some investigation. FIXME
7522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523 else
7524 ld_shlibs=no
7525 fi
7526 ;;
7527
7528 cygwin* | mingw* | pw32* | cegcc*)
7529 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7530 # as there is no search path for DLLs.
7531 hardcode_libdir_flag_spec='-L$libdir'
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=no
7534 enable_shared_with_static_runtimes=yes
7535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7536
7537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7539 # If the export-symbols file already is a .def file (1st line
7540 # is EXPORTS), use it as is; otherwise, prepend...
7541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7542 cp $export_symbols $output_objdir/$soname.def;
7543 else
7544 echo EXPORTS > $output_objdir/$soname.def;
7545 cat $export_symbols >> $output_objdir/$soname.def;
7546 fi~
7547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7548 else
7549 ld_shlibs=no
7550 fi
7551 ;;
7552
7553 interix[3-9]*)
7554 hardcode_direct=no
7555 hardcode_shlibpath_var=no
7556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557 export_dynamic_flag_spec='${wl}-E'
7558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7559 # Instead, shared libraries are loaded at an image base (0x10000000 by
7560 # default) and relocated if they conflict, which is a slow very memory
7561 # consuming and fragmenting process. To avoid this, we pick a random,
7562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7565 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'
7566 ;;
7567
7568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7569 tmp_diet=no
7570 if test "$host_os" = linux-dietlibc; then
7571 case $cc_basename in
7572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7573 esac
7574 fi
7575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7576 && test "$tmp_diet" = no
7577 then
7578 tmp_addflag=
7579 tmp_sharedflag='-shared'
7580 case $cc_basename,$host_cpu in
7581 pgcc*) # Portland Group C compiler
7582 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'
7583 tmp_addflag=' $pic_flag'
7584 ;;
7585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7586 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'
7587 tmp_addflag=' $pic_flag -Mnomain' ;;
7588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7589 tmp_addflag=' -i_dynamic' ;;
7590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7591 tmp_addflag=' -i_dynamic -nofor_main' ;;
7592 ifc* | ifort*) # Intel Fortran compiler
7593 tmp_addflag=' -nofor_main' ;;
7594 lf95*) # Lahey Fortran 8.1
7595 whole_archive_flag_spec=
7596 tmp_sharedflag='--shared' ;;
7597 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7598 tmp_sharedflag='-qmkshrobj'
7599 tmp_addflag= ;;
7600 esac
7601 case `$CC -V 2>&1 | sed 5q` in
7602 *Sun\ C*) # Sun C 5.9
7603 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'
7604 compiler_needs_object=yes
7605 tmp_sharedflag='-G' ;;
7606 *Sun\ F*) # Sun Fortran 8.3
7607 tmp_sharedflag='-G' ;;
7608 esac
7609 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610
7611 if test "x$supports_anon_versioning" = xyes; then
7612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7614 echo "local: *; };" >> $output_objdir/$libname.ver~
7615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7616 fi
7617
7618 case $cc_basename in
7619 xlf*)
7620 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7621 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7622 hardcode_libdir_flag_spec=
7623 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7624 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7625 if test "x$supports_anon_versioning" = xyes; then
7626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7628 echo "local: *; };" >> $output_objdir/$libname.ver~
7629 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7630 fi
7631 ;;
7632 esac
7633 else
7634 ld_shlibs=no
7635 fi
7636 ;;
7637
7638 netbsd* | netbsdelf*-gnu)
7639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7641 wlarc=
7642 else
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 fi
7646 ;;
7647
7648 solaris*)
7649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7650 ld_shlibs=no
7651 cat <<_LT_EOF 1>&2
7652
7653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7654 *** create shared libraries on Solaris systems. Therefore, libtool
7655 *** is disabling shared libraries support. We urge you to upgrade GNU
7656 *** binutils to release 2.9.1 or newer. Another option is to modify
7657 *** your PATH or compiler configuration so that the native linker is
7658 *** used, and then restart.
7659
7660 _LT_EOF
7661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668
7669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7670 case `$LD -v 2>&1` in
7671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7672 ld_shlibs=no
7673 cat <<_LT_EOF 1>&2
7674
7675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7676 *** reliably create shared libraries on SCO systems. Therefore, libtool
7677 *** is disabling shared libraries support. We urge you to upgrade GNU
7678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7679 *** your PATH or compiler configuration so that the native linker is
7680 *** used, and then restart.
7681
7682 _LT_EOF
7683 ;;
7684 *)
7685 # For security reasons, it is highly recommended that you always
7686 # use absolute paths for naming shared libraries, and exclude the
7687 # DT_RUNPATH tag from executables and libraries. But doing so
7688 # requires that you compile everything twice, which is a pain.
7689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7693 else
7694 ld_shlibs=no
7695 fi
7696 ;;
7697 esac
7698 ;;
7699
7700 sunos4*)
7701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702 wlarc=
7703 hardcode_direct=yes
7704 hardcode_shlibpath_var=no
7705 ;;
7706
7707 *)
7708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 else
7712 ld_shlibs=no
7713 fi
7714 ;;
7715 esac
7716
7717 if test "$ld_shlibs" = no; then
7718 runpath_var=
7719 hardcode_libdir_flag_spec=
7720 export_dynamic_flag_spec=
7721 whole_archive_flag_spec=
7722 fi
7723 else
7724 # PORTME fill in a description of your system's linker (not GNU ld)
7725 case $host_os in
7726 aix3*)
7727 allow_undefined_flag=unsupported
7728 always_export_symbols=yes
7729 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'
7730 # Note: this linker hardcodes the directories in LIBPATH if there
7731 # are no directories specified by -L.
7732 hardcode_minus_L=yes
7733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7734 # Neither direct hardcoding nor static linking is supported with a
7735 # broken collect2.
7736 hardcode_direct=unsupported
7737 fi
7738 ;;
7739
7740 aix[4-9]*)
7741 if test "$host_cpu" = ia64; then
7742 # On IA64, the linker does run time linking by default, so we don't
7743 # have to do anything special.
7744 aix_use_runtimelinking=no
7745 exp_sym_flag='-Bexport'
7746 no_entry_flag=""
7747 else
7748 # If we're using GNU nm, then we don't want the "-C" option.
7749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7751 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'
7752 else
7753 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'
7754 fi
7755 aix_use_runtimelinking=no
7756
7757 # Test if we are trying to use run time linking or normal
7758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7759 # need to do runtime linking.
7760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7761 for ld_flag in $LDFLAGS; do
7762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7763 aix_use_runtimelinking=yes
7764 break
7765 fi
7766 done
7767 ;;
7768 esac
7769
7770 exp_sym_flag='-bexport'
7771 no_entry_flag='-bnoentry'
7772 fi
7773
7774 # When large executables or shared objects are built, AIX ld can
7775 # have problems creating the table of contents. If linking a library
7776 # or program results in "error TOC overflow" add -mminimal-toc to
7777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779
7780 archive_cmds=''
7781 hardcode_direct=yes
7782 hardcode_direct_absolute=yes
7783 hardcode_libdir_separator=':'
7784 link_all_deplibs=yes
7785 file_list_spec='${wl}-f,'
7786
7787 if test "$GCC" = yes; then
7788 case $host_os in aix4.[012]|aix4.[012].*)
7789 # We only want to do this on AIX 4.2 and lower, the check
7790 # below for broken collect2 doesn't work under 4.3+
7791 collect2name=`${CC} -print-prog-name=collect2`
7792 if test -f "$collect2name" &&
7793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7794 then
7795 # We have reworked collect2
7796 :
7797 else
7798 # We have old collect2
7799 hardcode_direct=unsupported
7800 # It fails to find uninstalled libraries when the uninstalled
7801 # path is not listed in the libpath. Setting hardcode_minus_L
7802 # to unsupported forces relinking
7803 hardcode_minus_L=yes
7804 hardcode_libdir_flag_spec='-L$libdir'
7805 hardcode_libdir_separator=
7806 fi
7807 ;;
7808 esac
7809 shared_flag='-shared'
7810 if test "$aix_use_runtimelinking" = yes; then
7811 shared_flag="$shared_flag "'${wl}-G'
7812 fi
7813 link_all_deplibs=no
7814 else
7815 # not using gcc
7816 if test "$host_cpu" = ia64; then
7817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7818 # chokes on -Wl,-G. The following line is correct:
7819 shared_flag='-G'
7820 else
7821 if test "$aix_use_runtimelinking" = yes; then
7822 shared_flag='${wl}-G'
7823 else
7824 shared_flag='${wl}-bM:SRE'
7825 fi
7826 fi
7827 fi
7828
7829 export_dynamic_flag_spec='${wl}-bexpall'
7830 # It seems that -bexpall does not export symbols beginning with
7831 # underscore (_), so it is better to generate a list of symbols to export.
7832 always_export_symbols=yes
7833 if test "$aix_use_runtimelinking" = yes; then
7834 # Warning - without using the other runtime loading flags (-brtl),
7835 # -berok will link without error, but may produce a broken library.
7836 allow_undefined_flag='-berok'
7837 # Determine the default libpath from the value encoded in an
7838 # empty executable.
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841
7842 int
7843 main ()
7844 {
7845
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851
7852 lt_aix_libpath_sed='
7853 /Import File Strings/,/^$/ {
7854 /^0/ {
7855 s/^0 *\(.*\)$/\1/
7856 p
7857 }
7858 }'
7859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7860 # Check for a 64-bit object if we didn't find anything.
7861 if test -z "$aix_libpath"; then
7862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7863 fi
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7868
7869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7870 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"
7871 else
7872 if test "$host_cpu" = ia64; then
7873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7874 allow_undefined_flag="-z nodefs"
7875 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"
7876 else
7877 # Determine the default libpath from the value encoded in an
7878 # empty executable.
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881
7882 int
7883 main ()
7884 {
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"; then :
7891
7892 lt_aix_libpath_sed='
7893 /Import File Strings/,/^$/ {
7894 /^0/ {
7895 s/^0 *\(.*\)$/\1/
7896 p
7897 }
7898 }'
7899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7900 # Check for a 64-bit object if we didn't find anything.
7901 if test -z "$aix_libpath"; then
7902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7903 fi
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7908
7909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7910 # Warning - without using the other run time loading flags,
7911 # -berok will link without error, but may produce a broken library.
7912 no_undefined_flag=' ${wl}-bernotok'
7913 allow_undefined_flag=' ${wl}-berok'
7914 # Exported symbols can be pulled into shared objects from archives
7915 whole_archive_flag_spec='$convenience'
7916 archive_cmds_need_lc=yes
7917 # This is similar to how AIX traditionally builds its shared libraries.
7918 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'
7919 fi
7920 fi
7921 ;;
7922
7923 amigaos*)
7924 case $host_cpu in
7925 powerpc)
7926 # see comment about AmigaOS4 .so support
7927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7928 archive_expsym_cmds=''
7929 ;;
7930 m68k)
7931 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)'
7932 hardcode_libdir_flag_spec='-L$libdir'
7933 hardcode_minus_L=yes
7934 ;;
7935 esac
7936 ;;
7937
7938 bsdi[45]*)
7939 export_dynamic_flag_spec=-rdynamic
7940 ;;
7941
7942 cygwin* | mingw* | pw32* | cegcc*)
7943 # When not using gcc, we currently assume that we are using
7944 # Microsoft Visual C++.
7945 # hardcode_libdir_flag_spec is actually meaningless, as there is
7946 # no search path for DLLs.
7947 hardcode_libdir_flag_spec=' '
7948 allow_undefined_flag=unsupported
7949 # Tell ltmain to make .lib files, not .a files.
7950 libext=lib
7951 # Tell ltmain to make .dll files, not .so files.
7952 shrext_cmds=".dll"
7953 # FIXME: Setting linknames here is a bad hack.
7954 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7955 # The linker will automatically build a .lib file if we build a DLL.
7956 old_archive_from_new_cmds='true'
7957 # FIXME: Should let the user specify the lib program.
7958 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7959 fix_srcfile_path='`cygpath -w "$srcfile"`'
7960 enable_shared_with_static_runtimes=yes
7961 ;;
7962
7963 darwin* | rhapsody*)
7964
7965
7966 archive_cmds_need_lc=no
7967 hardcode_direct=no
7968 hardcode_automatic=yes
7969 hardcode_shlibpath_var=unsupported
7970 whole_archive_flag_spec=''
7971 link_all_deplibs=yes
7972 allow_undefined_flag="$_lt_dar_allow_undefined"
7973 case $cc_basename in
7974 ifort*) _lt_dar_can_shared=yes ;;
7975 *) _lt_dar_can_shared=$GCC ;;
7976 esac
7977 if test "$_lt_dar_can_shared" = "yes"; then
7978 output_verbose_link_cmd=echo
7979 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7980 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7981 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}"
7982 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}"
7983
7984 else
7985 ld_shlibs=no
7986 fi
7987
7988 ;;
7989
7990 dgux*)
7991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7992 hardcode_libdir_flag_spec='-L$libdir'
7993 hardcode_shlibpath_var=no
7994 ;;
7995
7996 freebsd1*)
7997 ld_shlibs=no
7998 ;;
7999
8000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8001 # support. Future versions do this automatically, but an explicit c++rt0.o
8002 # does not break anything, and helps significantly (at the cost of a little
8003 # extra space).
8004 freebsd2.2*)
8005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8006 hardcode_libdir_flag_spec='-R$libdir'
8007 hardcode_direct=yes
8008 hardcode_shlibpath_var=no
8009 ;;
8010
8011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8012 freebsd2*)
8013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_direct=yes
8015 hardcode_minus_L=yes
8016 hardcode_shlibpath_var=no
8017 ;;
8018
8019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8020 freebsd* | dragonfly*)
8021 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8022 hardcode_libdir_flag_spec='-R$libdir'
8023 hardcode_direct=yes
8024 hardcode_shlibpath_var=no
8025 ;;
8026
8027 hpux9*)
8028 if test "$GCC" = yes; then
8029 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'
8030 else
8031 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'
8032 fi
8033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8034 hardcode_libdir_separator=:
8035 hardcode_direct=yes
8036
8037 # hardcode_minus_L: Not really in the search PATH,
8038 # but as the default location of the library.
8039 hardcode_minus_L=yes
8040 export_dynamic_flag_spec='${wl}-E'
8041 ;;
8042
8043 hpux10*)
8044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8046 else
8047 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8048 fi
8049 if test "$with_gnu_ld" = no; then
8050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8051 hardcode_libdir_flag_spec_ld='+b $libdir'
8052 hardcode_libdir_separator=:
8053 hardcode_direct=yes
8054 hardcode_direct_absolute=yes
8055 export_dynamic_flag_spec='${wl}-E'
8056 # hardcode_minus_L: Not really in the search PATH,
8057 # but as the default location of the library.
8058 hardcode_minus_L=yes
8059 fi
8060 ;;
8061
8062 hpux11*)
8063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8064 case $host_cpu in
8065 hppa*64*)
8066 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8067 ;;
8068 ia64*)
8069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8070 ;;
8071 *)
8072 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8073 ;;
8074 esac
8075 else
8076 case $host_cpu in
8077 hppa*64*)
8078 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8079 ;;
8080 ia64*)
8081 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8082 ;;
8083 *)
8084 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8085 ;;
8086 esac
8087 fi
8088 if test "$with_gnu_ld" = no; then
8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090 hardcode_libdir_separator=:
8091
8092 case $host_cpu in
8093 hppa*64*|ia64*)
8094 hardcode_direct=no
8095 hardcode_shlibpath_var=no
8096 ;;
8097 *)
8098 hardcode_direct=yes
8099 hardcode_direct_absolute=yes
8100 export_dynamic_flag_spec='${wl}-E'
8101
8102 # hardcode_minus_L: Not really in the search PATH,
8103 # but as the default location of the library.
8104 hardcode_minus_L=yes
8105 ;;
8106 esac
8107 fi
8108 ;;
8109
8110 irix5* | irix6* | nonstopux*)
8111 if test "$GCC" = yes; then
8112 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'
8113 # Try to use the -exported_symbol ld option, if it does not
8114 # work, assume that -exports_file does not work either and
8115 # implicitly export all symbols.
8116 save_LDFLAGS="$LDFLAGS"
8117 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int foo(void) {}
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 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'
8124
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 LDFLAGS="$save_LDFLAGS"
8129 else
8130 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'
8131 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'
8132 fi
8133 archive_cmds_need_lc='no'
8134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8135 hardcode_libdir_separator=:
8136 inherit_rpath=yes
8137 link_all_deplibs=yes
8138 ;;
8139
8140 netbsd* | netbsdelf*-gnu)
8141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8143 else
8144 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8145 fi
8146 hardcode_libdir_flag_spec='-R$libdir'
8147 hardcode_direct=yes
8148 hardcode_shlibpath_var=no
8149 ;;
8150
8151 newsos6)
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_direct=yes
8154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8155 hardcode_libdir_separator=:
8156 hardcode_shlibpath_var=no
8157 ;;
8158
8159 *nto* | *qnx*)
8160 ;;
8161
8162 openbsd*)
8163 if test -f /usr/libexec/ld.so; then
8164 hardcode_direct=yes
8165 hardcode_shlibpath_var=no
8166 hardcode_direct_absolute=yes
8167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8170 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8171 export_dynamic_flag_spec='${wl}-E'
8172 else
8173 case $host_os in
8174 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176 hardcode_libdir_flag_spec='-R$libdir'
8177 ;;
8178 *)
8179 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8181 ;;
8182 esac
8183 fi
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 os2*)
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_minus_L=yes
8192 allow_undefined_flag=unsupported
8193 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'
8194 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8195 ;;
8196
8197 osf3*)
8198 if test "$GCC" = yes; then
8199 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8200 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'
8201 else
8202 allow_undefined_flag=' -expect_unresolved \*'
8203 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'
8204 fi
8205 archive_cmds_need_lc='no'
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 hardcode_libdir_separator=:
8208 ;;
8209
8210 osf4* | osf5*) # as osf3* with the addition of -msym flag
8211 if test "$GCC" = yes; then
8212 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8213 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'
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 else
8216 allow_undefined_flag=' -expect_unresolved \*'
8217 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'
8218 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~
8219 $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'
8220
8221 # Both c and cxx compiler support -rpath directly
8222 hardcode_libdir_flag_spec='-rpath $libdir'
8223 fi
8224 archive_cmds_need_lc='no'
8225 hardcode_libdir_separator=:
8226 ;;
8227
8228 solaris*)
8229 no_undefined_flag=' -z defs'
8230 if test "$GCC" = yes; then
8231 wlarc='${wl}'
8232 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8234 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8235 else
8236 case `$CC -V 2>&1` in
8237 *"Compilers 5.0"*)
8238 wlarc=''
8239 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8242 ;;
8243 *)
8244 wlarc='${wl}'
8245 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8246 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8247 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8248 ;;
8249 esac
8250 fi
8251 hardcode_libdir_flag_spec='-R$libdir'
8252 hardcode_shlibpath_var=no
8253 case $host_os in
8254 solaris2.[0-5] | solaris2.[0-5].*) ;;
8255 *)
8256 # The compiler driver will combine and reorder linker options,
8257 # but understands `-z linker_flag'. GCC discards it without `$wl',
8258 # but is careful enough not to reorder.
8259 # Supported since Solaris 2.6 (maybe 2.5.1?)
8260 if test "$GCC" = yes; then
8261 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8262 else
8263 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8264 fi
8265 ;;
8266 esac
8267 link_all_deplibs=yes
8268 ;;
8269
8270 sunos4*)
8271 if test "x$host_vendor" = xsequent; then
8272 # Use $CC to link under sequent, because it throws in some extra .o
8273 # files that make .init and .fini sections work.
8274 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8275 else
8276 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8277 fi
8278 hardcode_libdir_flag_spec='-L$libdir'
8279 hardcode_direct=yes
8280 hardcode_minus_L=yes
8281 hardcode_shlibpath_var=no
8282 ;;
8283
8284 sysv4)
8285 case $host_vendor in
8286 sni)
8287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_direct=yes # is this really true???
8289 ;;
8290 siemens)
8291 ## LD is ld it makes a PLAMLIB
8292 ## CC just makes a GrossModule.
8293 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8294 reload_cmds='$CC -r -o $output$reload_objs'
8295 hardcode_direct=no
8296 ;;
8297 motorola)
8298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8299 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8300 ;;
8301 esac
8302 runpath_var='LD_RUN_PATH'
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 sysv4.3*)
8307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 hardcode_shlibpath_var=no
8309 export_dynamic_flag_spec='-Bexport'
8310 ;;
8311
8312 sysv4*MP*)
8313 if test -d /usr/nec; then
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_shlibpath_var=no
8316 runpath_var=LD_RUN_PATH
8317 hardcode_runpath_var=yes
8318 ld_shlibs=yes
8319 fi
8320 ;;
8321
8322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8323 no_undefined_flag='${wl}-z,text'
8324 archive_cmds_need_lc=no
8325 hardcode_shlibpath_var=no
8326 runpath_var='LD_RUN_PATH'
8327
8328 if test "$GCC" = yes; then
8329 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 else
8332 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 fi
8335 ;;
8336
8337 sysv5* | sco3.2v5* | sco5v6*)
8338 # Note: We can NOT use -z defs as we might desire, because we do not
8339 # link with -lc, and that would cause any symbols used from libc to
8340 # always be unresolved, which means just about no library would
8341 # ever link correctly. If we're not using GNU ld we use -z text
8342 # though, which does catch some bad symbols but isn't as heavy-handed
8343 # as -z defs.
8344 no_undefined_flag='${wl}-z,text'
8345 allow_undefined_flag='${wl}-z,nodefs'
8346 archive_cmds_need_lc=no
8347 hardcode_shlibpath_var=no
8348 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8349 hardcode_libdir_separator=':'
8350 link_all_deplibs=yes
8351 export_dynamic_flag_spec='${wl}-Bexport'
8352 runpath_var='LD_RUN_PATH'
8353
8354 if test "$GCC" = yes; then
8355 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8356 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8357 else
8358 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8359 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 fi
8361 ;;
8362
8363 uts4*)
8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_shlibpath_var=no
8367 ;;
8368
8369 *)
8370 ld_shlibs=no
8371 ;;
8372 esac
8373
8374 if test x$host_vendor = xsni; then
8375 case $host in
8376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8377 export_dynamic_flag_spec='${wl}-Blargedynsym'
8378 ;;
8379 esac
8380 fi
8381 fi
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8384 $as_echo "$ld_shlibs" >&6; }
8385 test "$ld_shlibs" = no && can_build_shared=no
8386
8387 with_gnu_ld=$with_gnu_ld
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 #
8404 # Do we need to explicitly link libc?
8405 #
8406 case "x$archive_cmds_need_lc" in
8407 x|xyes)
8408 # Assume -lc should be added
8409 archive_cmds_need_lc=yes
8410
8411 if test "$enable_shared" = yes && test "$GCC" = yes; then
8412 case $archive_cmds in
8413 *'~'*)
8414 # FIXME: we may have to deal with multi-command sequences.
8415 ;;
8416 '$CC '*)
8417 # Test whether the compiler implicitly links with -lc since on some
8418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8419 # to ld, don't add -lc before -lgcc.
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8421 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8422 $RM conftest*
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8426 (eval $ac_compile) 2>&5
8427 ac_status=$?
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; } 2>conftest.err; then
8430 soname=conftest
8431 lib=conftest
8432 libobjs=conftest.$ac_objext
8433 deplibs=
8434 wl=$lt_prog_compiler_wl
8435 pic_flag=$lt_prog_compiler_pic
8436 compiler_flags=-v
8437 linker_flags=-v
8438 verstring=
8439 output_objdir=.
8440 libname=conftest
8441 lt_save_allow_undefined_flag=$allow_undefined_flag
8442 allow_undefined_flag=
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8445 ac_status=$?
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; }
8448 then
8449 archive_cmds_need_lc=no
8450 else
8451 archive_cmds_need_lc=yes
8452 fi
8453 allow_undefined_flag=$lt_save_allow_undefined_flag
8454 else
8455 cat conftest.err 1>&5
8456 fi
8457 $RM conftest*
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8459 $as_echo "$archive_cmds_need_lc" >&6; }
8460 ;;
8461 esac
8462 fi
8463 ;;
8464 esac
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
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8623 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8624
8625 if test "$GCC" = yes; then
8626 case $host_os in
8627 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8628 *) lt_awk_arg="/^libraries:/" ;;
8629 esac
8630 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8632 # if the path contains ";" then we assume it to be the separator
8633 # otherwise default to the standard path separator (i.e. ":") - it is
8634 # assumed that no part of a normal pathname contains ";" but that should
8635 # okay in the real world where ";" in dirpaths is itself problematic.
8636 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8637 else
8638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8639 fi
8640 # Ok, now we have the path, separated by spaces, we can step through it
8641 # and add multilib dir if necessary.
8642 lt_tmp_lt_search_path_spec=
8643 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8644 for lt_sys_path in $lt_search_path_spec; do
8645 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8646 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8647 else
8648 test -d "$lt_sys_path" && \
8649 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8650 fi
8651 done
8652 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8653 BEGIN {RS=" "; FS="/|\n";} {
8654 lt_foo="";
8655 lt_count=0;
8656 for (lt_i = NF; lt_i > 0; lt_i--) {
8657 if ($lt_i != "" && $lt_i != ".") {
8658 if ($lt_i == "..") {
8659 lt_count++;
8660 } else {
8661 if (lt_count == 0) {
8662 lt_foo="/" $lt_i lt_foo;
8663 } else {
8664 lt_count--;
8665 }
8666 }
8667 }
8668 }
8669 if (lt_foo != "") { lt_freq[lt_foo]++; }
8670 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8671 }'`
8672 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8673 else
8674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675 fi
8676 library_names_spec=
8677 libname_spec='lib$name'
8678 soname_spec=
8679 shrext_cmds=".so"
8680 postinstall_cmds=
8681 postuninstall_cmds=
8682 finish_cmds=
8683 finish_eval=
8684 shlibpath_var=
8685 shlibpath_overrides_runpath=unknown
8686 version_type=none
8687 dynamic_linker="$host_os ld.so"
8688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8689 need_lib_prefix=unknown
8690 hardcode_into_libs=no
8691
8692 # when you set need_version to no, make sure it does not cause -set_version
8693 # flags to be left without arguments
8694 need_version=unknown
8695
8696 case $host_os in
8697 aix3*)
8698 version_type=linux
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8700 shlibpath_var=LIBPATH
8701
8702 # AIX 3 has no versioning support, so we append a major version to the name.
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 ;;
8705
8706 aix[4-9]*)
8707 version_type=linux
8708 need_lib_prefix=no
8709 need_version=no
8710 hardcode_into_libs=yes
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 supports IA64
8713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 else
8716 # With GCC up to 2.95.x, collect2 would create an import file
8717 # for dependence libraries. The import file would start with
8718 # the line `#! .'. This would cause the generated library to
8719 # depend on `.', always an invalid library. This was fixed in
8720 # development snapshots of GCC prior to 3.0.
8721 case $host_os in
8722 aix4 | aix4.[01] | aix4.[01].*)
8723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8724 echo ' yes '
8725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8726 :
8727 else
8728 can_build_shared=no
8729 fi
8730 ;;
8731 esac
8732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8733 # soname into executable. Probably we can add versioning support to
8734 # collect2, so additional links can be useful in future.
8735 if test "$aix_use_runtimelinking" = yes; then
8736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8737 # instead of lib<name>.a to let people know that these are not
8738 # typical AIX shared libraries.
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 else
8741 # We preserve .a as extension for shared libraries through AIX4.2
8742 # and later when we are not doing run time linking.
8743 library_names_spec='${libname}${release}.a $libname.a'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 fi
8746 shlibpath_var=LIBPATH
8747 fi
8748 ;;
8749
8750 amigaos*)
8751 case $host_cpu in
8752 powerpc)
8753 # Since July 2007 AmigaOS4 officially supports .so libraries.
8754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 ;;
8757 m68k)
8758 library_names_spec='$libname.ixlibrary $libname.a'
8759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8760 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'
8761 ;;
8762 esac
8763 ;;
8764
8765 beos*)
8766 library_names_spec='${libname}${shared_ext}'
8767 dynamic_linker="$host_os ld.so"
8768 shlibpath_var=LIBRARY_PATH
8769 ;;
8770
8771 bsdi[45]*)
8772 version_type=linux
8773 need_version=no
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8777 shlibpath_var=LD_LIBRARY_PATH
8778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8780 # the default ld.so.conf also contains /usr/contrib/lib and
8781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8782 # libtool to hard-code these into programs
8783 ;;
8784
8785 cygwin* | mingw* | pw32* | cegcc*)
8786 version_type=windows
8787 shrext_cmds=".dll"
8788 need_version=no
8789 need_lib_prefix=no
8790
8791 case $GCC,$host_os in
8792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8793 library_names_spec='$libname.dll.a'
8794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8795 postinstall_cmds='base_file=`basename \${file}`~
8796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8797 dldir=$destdir/`dirname \$dlpath`~
8798 test -d \$dldir || mkdir -p \$dldir~
8799 $install_prog $dir/$dlname \$dldir/$dlname~
8800 chmod a+x \$dldir/$dlname~
8801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8803 fi'
8804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8805 dlpath=$dir/\$dldll~
8806 $RM \$dlpath'
8807 shlibpath_overrides_runpath=yes
8808
8809 case $host_os in
8810 cygwin*)
8811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8813 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8814 ;;
8815 mingw* | cegcc*)
8816 # MinGW DLLs use traditional 'lib' prefix
8817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8818 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8820 # It is most probably a Windows format PATH printed by
8821 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8822 # path with ; separators, and with drive letters. We can handle the
8823 # drive letters (cygwin fileutils understands them), so leave them,
8824 # especially as we might pass files found there to a mingw objdump,
8825 # which wouldn't understand a cygwinified path. Ahh.
8826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8827 else
8828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8829 fi
8830 ;;
8831 pw32*)
8832 # pw32 DLLs use 'pw' prefix rather than 'lib'
8833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8834 ;;
8835 esac
8836 ;;
8837
8838 *)
8839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8840 ;;
8841 esac
8842 dynamic_linker='Win32 ld.exe'
8843 # FIXME: first we should search . and the directory the executable is in
8844 shlibpath_var=PATH
8845 ;;
8846
8847 darwin* | rhapsody*)
8848 dynamic_linker="$host_os dyld"
8849 version_type=darwin
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8853 soname_spec='${libname}${release}${major}$shared_ext'
8854 shlibpath_overrides_runpath=yes
8855 shlibpath_var=DYLD_LIBRARY_PATH
8856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8857
8858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8859 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8860 ;;
8861
8862 dgux*)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 ;;
8870
8871 freebsd1*)
8872 dynamic_linker=no
8873 ;;
8874
8875 freebsd* | dragonfly*)
8876 # DragonFly does not have aout. When/if they implement a new
8877 # versioning mechanism, adjust this.
8878 if test -x /usr/bin/objformat; then
8879 objformat=`/usr/bin/objformat`
8880 else
8881 case $host_os in
8882 freebsd[123]*) objformat=aout ;;
8883 *) objformat=elf ;;
8884 esac
8885 fi
8886 version_type=freebsd-$objformat
8887 case $version_type in
8888 freebsd-elf*)
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8890 need_version=no
8891 need_lib_prefix=no
8892 ;;
8893 freebsd-*)
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8895 need_version=yes
8896 ;;
8897 esac
8898 shlibpath_var=LD_LIBRARY_PATH
8899 case $host_os in
8900 freebsd2*)
8901 shlibpath_overrides_runpath=yes
8902 ;;
8903 freebsd3.[01]* | freebsdelf3.[01]*)
8904 shlibpath_overrides_runpath=yes
8905 hardcode_into_libs=yes
8906 ;;
8907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8909 shlibpath_overrides_runpath=no
8910 hardcode_into_libs=yes
8911 ;;
8912 *) # from 4.6 on, and DragonFly
8913 shlibpath_overrides_runpath=yes
8914 hardcode_into_libs=yes
8915 ;;
8916 esac
8917 ;;
8918
8919 gnu*)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 hardcode_into_libs=yes
8927 ;;
8928
8929 hpux9* | hpux10* | hpux11*)
8930 # Give a soname corresponding to the major version so that dld.sl refuses to
8931 # link against other versions.
8932 version_type=sunos
8933 need_lib_prefix=no
8934 need_version=no
8935 case $host_cpu in
8936 ia64*)
8937 shrext_cmds='.so'
8938 hardcode_into_libs=yes
8939 dynamic_linker="$host_os dld.so"
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 if test "X$HPUX_IA64_MODE" = X32; then
8945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8946 else
8947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8948 fi
8949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8950 ;;
8951 hppa*64*)
8952 shrext_cmds='.sl'
8953 hardcode_into_libs=yes
8954 dynamic_linker="$host_os dld.sl"
8955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8961 ;;
8962 *)
8963 shrext_cmds='.sl'
8964 dynamic_linker="$host_os dld.sl"
8965 shlibpath_var=SHLIB_PATH
8966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 ;;
8970 esac
8971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8972 postinstall_cmds='chmod 555 $lib'
8973 ;;
8974
8975 interix[3-9]*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=no
8984 hardcode_into_libs=yes
8985 ;;
8986
8987 irix5* | irix6* | nonstopux*)
8988 case $host_os in
8989 nonstopux*) version_type=nonstopux ;;
8990 *)
8991 if test "$lt_cv_prog_gnu_ld" = yes; then
8992 version_type=linux
8993 else
8994 version_type=irix
8995 fi ;;
8996 esac
8997 need_lib_prefix=no
8998 need_version=no
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9001 case $host_os in
9002 irix5* | nonstopux*)
9003 libsuff= shlibsuff=
9004 ;;
9005 *)
9006 case $LD in # libtool.m4 will add one of these switches to LD
9007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9008 libsuff= shlibsuff= libmagic=32-bit;;
9009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9010 libsuff=32 shlibsuff=N32 libmagic=N32;;
9011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9013 *) libsuff= shlibsuff= libmagic=never-match;;
9014 esac
9015 ;;
9016 esac
9017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9018 shlibpath_overrides_runpath=no
9019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9021 hardcode_into_libs=yes
9022 ;;
9023
9024 # No shared lib support for Linux oldld, aout, or coff.
9025 linux*oldld* | linux*aout* | linux*coff*)
9026 dynamic_linker=no
9027 ;;
9028
9029 # This must be Linux ELF.
9030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=no
9039 # Some binutils ld are patched to set DT_RUNPATH
9040 save_LDFLAGS=$LDFLAGS
9041 save_libdir=$libdir
9042 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9043 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046
9047 int
9048 main ()
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"; then :
9056 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9057 shlibpath_overrides_runpath=yes
9058 fi
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 LDFLAGS=$save_LDFLAGS
9063 libdir=$save_libdir
9064
9065 # This implies no fast_install, which is unacceptable.
9066 # Some rework will be needed to allow for fast_install
9067 # before this can be enabled.
9068 hardcode_into_libs=yes
9069
9070 # Append ld.so.conf contents to the search path
9071 if test -f /etc/ld.so.conf; then
9072 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' ' '`
9073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9074 fi
9075
9076 # We used to test for /lib/ld.so.1 and disable shared libraries on
9077 # powerpc, because MkLinux only supported shared libraries with the
9078 # GNU dynamic linker. Since this was broken with cross compilers,
9079 # most powerpc-linux boxes support dynamic linking these days and
9080 # people can always --disable-shared, the test was removed, and we
9081 # assume the GNU/Linux dynamic linker is in use.
9082 dynamic_linker='GNU/Linux ld.so'
9083 ;;
9084
9085 netbsdelf*-gnu)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 dynamic_linker='NetBSD ld.elf_so'
9095 ;;
9096
9097 netbsd*)
9098 version_type=sunos
9099 need_lib_prefix=no
9100 need_version=no
9101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9104 dynamic_linker='NetBSD (a.out) ld.so'
9105 else
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 dynamic_linker='NetBSD ld.elf_so'
9109 fi
9110 shlibpath_var=LD_LIBRARY_PATH
9111 shlibpath_overrides_runpath=yes
9112 hardcode_into_libs=yes
9113 ;;
9114
9115 newsos6)
9116 version_type=linux
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes
9120 ;;
9121
9122 *nto* | *qnx*)
9123 version_type=qnx
9124 need_lib_prefix=no
9125 need_version=no
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9131 dynamic_linker='ldqnx.so'
9132 ;;
9133
9134 openbsd*)
9135 version_type=sunos
9136 sys_lib_dlsearch_path_spec="/usr/lib"
9137 need_lib_prefix=no
9138 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9139 case $host_os in
9140 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9141 *) need_version=no ;;
9142 esac
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9147 case $host_os in
9148 openbsd2.[89] | openbsd2.[89].*)
9149 shlibpath_overrides_runpath=no
9150 ;;
9151 *)
9152 shlibpath_overrides_runpath=yes
9153 ;;
9154 esac
9155 else
9156 shlibpath_overrides_runpath=yes
9157 fi
9158 ;;
9159
9160 os2*)
9161 libname_spec='$name'
9162 shrext_cmds=".dll"
9163 need_lib_prefix=no
9164 library_names_spec='$libname${shared_ext} $libname.a'
9165 dynamic_linker='OS/2 ld.exe'
9166 shlibpath_var=LIBPATH
9167 ;;
9168
9169 osf3* | osf4* | osf5*)
9170 version_type=osf
9171 need_lib_prefix=no
9172 need_version=no
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9177 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9178 ;;
9179
9180 rdos*)
9181 dynamic_linker=no
9182 ;;
9183
9184 solaris*)
9185 version_type=linux
9186 need_lib_prefix=no
9187 need_version=no
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 hardcode_into_libs=yes
9193 # ldd complains unless libraries are executable
9194 postinstall_cmds='chmod +x $lib'
9195 ;;
9196
9197 sunos4*)
9198 version_type=sunos
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9200 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=yes
9203 if test "$with_gnu_ld" = yes; then
9204 need_lib_prefix=no
9205 fi
9206 need_version=yes
9207 ;;
9208
9209 sysv4 | sysv4.3*)
9210 version_type=linux
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 case $host_vendor in
9215 sni)
9216 shlibpath_overrides_runpath=no
9217 need_lib_prefix=no
9218 runpath_var=LD_RUN_PATH
9219 ;;
9220 siemens)
9221 need_lib_prefix=no
9222 ;;
9223 motorola)
9224 need_lib_prefix=no
9225 need_version=no
9226 shlibpath_overrides_runpath=no
9227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9228 ;;
9229 esac
9230 ;;
9231
9232 sysv4*MP*)
9233 if test -d /usr/nec ;then
9234 version_type=linux
9235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9236 soname_spec='$libname${shared_ext}.$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 fi
9239 ;;
9240
9241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9242 version_type=freebsd-elf
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 if test "$with_gnu_ld" = yes; then
9251 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9252 else
9253 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9254 case $host_os in
9255 sco3.2v5*)
9256 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9257 ;;
9258 esac
9259 fi
9260 sys_lib_dlsearch_path_spec='/usr/lib'
9261 ;;
9262
9263 tpf*)
9264 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9265 version_type=linux
9266 need_lib_prefix=no
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=no
9271 hardcode_into_libs=yes
9272 ;;
9273
9274 uts4*)
9275 version_type=linux
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 ;;
9280
9281 *)
9282 dynamic_linker=no
9283 ;;
9284 esac
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9286 $as_echo "$dynamic_linker" >&6; }
9287 test "$dynamic_linker" = no && can_build_shared=no
9288
9289 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9290 if test "$GCC" = yes; then
9291 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9292 fi
9293
9294 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9295 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9296 fi
9297 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9298 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9389 hardcode_action=
9390 if test -n "$hardcode_libdir_flag_spec" ||
9391 test -n "$runpath_var" ||
9392 test "X$hardcode_automatic" = "Xyes" ; then
9393
9394 # We can hardcode non-existent directories.
9395 if test "$hardcode_direct" != no &&
9396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9397 # have to relink, otherwise we might link with an installed library
9398 # when we should be linking with a yet-to-be-installed one
9399 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9400 test "$hardcode_minus_L" != no; then
9401 # Linking always hardcodes the temporary library directory.
9402 hardcode_action=relink
9403 else
9404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9405 hardcode_action=immediate
9406 fi
9407 else
9408 # We cannot hardcode anything, or else we can only hardcode existing
9409 # directories.
9410 hardcode_action=unsupported
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9413 $as_echo "$hardcode_action" >&6; }
9414
9415 if test "$hardcode_action" = relink ||
9416 test "$inherit_rpath" = yes; then
9417 # Fast installation is not supported
9418 enable_fast_install=no
9419 elif test "$shlibpath_overrides_runpath" = yes ||
9420 test "$enable_shared" = no; then
9421 # Fast installation is not necessary
9422 enable_fast_install=needless
9423 fi
9424
9425
9426
9427
9428
9429
9430 if test "x$enable_dlopen" != xyes; then
9431 enable_dlopen=unknown
9432 enable_dlopen_self=unknown
9433 enable_dlopen_self_static=unknown
9434 else
9435 lt_cv_dlopen=no
9436 lt_cv_dlopen_libs=
9437
9438 case $host_os in
9439 beos*)
9440 lt_cv_dlopen="load_add_on"
9441 lt_cv_dlopen_libs=
9442 lt_cv_dlopen_self=yes
9443 ;;
9444
9445 mingw* | pw32* | cegcc*)
9446 lt_cv_dlopen="LoadLibrary"
9447 lt_cv_dlopen_libs=
9448 ;;
9449
9450 cygwin*)
9451 lt_cv_dlopen="dlopen"
9452 lt_cv_dlopen_libs=
9453 ;;
9454
9455 darwin*)
9456 # if libdl is installed we need to link against it
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-ldl $LIBS"
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466
9467 /* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9470 #ifdef __cplusplus
9471 extern "C"
9472 #endif
9473 char dlopen ();
9474 int
9475 main ()
9476 {
9477 return dlopen ();
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 ac_cv_lib_dl_dlopen=yes
9484 else
9485 ac_cv_lib_dl_dlopen=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9493 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9495 else
9496
9497 lt_cv_dlopen="dyld"
9498 lt_cv_dlopen_libs=
9499 lt_cv_dlopen_self=yes
9500
9501 fi
9502
9503 ;;
9504
9505 *)
9506 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9507 if test "x$ac_cv_func_shl_load" = x""yes; then :
9508 lt_cv_dlopen="shl_load"
9509 else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9511 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9512 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-ldld $LIBS"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519
9520 /* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 char shl_load ();
9527 int
9528 main ()
9529 {
9530 return shl_load ();
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 ac_cv_lib_dld_shl_load=yes
9537 else
9538 ac_cv_lib_dld_shl_load=no
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9545 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9546 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9547 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9548 else
9549 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9550 if test "x$ac_cv_func_dlopen" = x""yes; then :
9551 lt_cv_dlopen="dlopen"
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9554 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9555 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ac_check_lib_save_LIBS=$LIBS
9559 LIBS="-ldl $LIBS"
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char dlopen ();
9570 int
9571 main ()
9572 {
9573 return dlopen ();
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 ac_cv_lib_dl_dlopen=yes
9580 else
9581 ac_cv_lib_dl_dlopen=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LIBS=$ac_check_lib_save_LIBS
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9588 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9589 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9593 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lsvld $LIBS"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 char dlopen ();
9609 int
9610 main ()
9611 {
9612 return dlopen ();
9613 ;
9614 return 0;
9615 }
9616 _ACEOF
9617 if ac_fn_c_try_link "$LINENO"; then :
9618 ac_cv_lib_svld_dlopen=yes
9619 else
9620 ac_cv_lib_svld_dlopen=no
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9625 fi
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9627 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9628 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9632 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-ldld $LIBS"
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char dld_link ();
9648 int
9649 main ()
9650 {
9651 return dld_link ();
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657 ac_cv_lib_dld_dld_link=yes
9658 else
9659 ac_cv_lib_dld_dld_link=no
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 LIBS=$ac_check_lib_save_LIBS
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9666 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9667 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9668 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9669 fi
9670
9671
9672 fi
9673
9674
9675 fi
9676
9677
9678 fi
9679
9680
9681 fi
9682
9683
9684 fi
9685
9686 ;;
9687 esac
9688
9689 if test "x$lt_cv_dlopen" != xno; then
9690 enable_dlopen=yes
9691 else
9692 enable_dlopen=no
9693 fi
9694
9695 case $lt_cv_dlopen in
9696 dlopen)
9697 save_CPPFLAGS="$CPPFLAGS"
9698 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9699
9700 save_LDFLAGS="$LDFLAGS"
9701 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9702
9703 save_LIBS="$LIBS"
9704 LIBS="$lt_cv_dlopen_libs $LIBS"
9705
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9707 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9708 if test "${lt_cv_dlopen_self+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 if test "$cross_compiling" = yes; then :
9712 lt_cv_dlopen_self=cross
9713 else
9714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9715 lt_status=$lt_dlunknown
9716 cat > conftest.$ac_ext <<_LT_EOF
9717 #line 9717 "configure"
9718 #include "confdefs.h"
9719
9720 #if HAVE_DLFCN_H
9721 #include <dlfcn.h>
9722 #endif
9723
9724 #include <stdio.h>
9725
9726 #ifdef RTLD_GLOBAL
9727 # define LT_DLGLOBAL RTLD_GLOBAL
9728 #else
9729 # ifdef DL_GLOBAL
9730 # define LT_DLGLOBAL DL_GLOBAL
9731 # else
9732 # define LT_DLGLOBAL 0
9733 # endif
9734 #endif
9735
9736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9737 find out it does not work in some platform. */
9738 #ifndef LT_DLLAZY_OR_NOW
9739 # ifdef RTLD_LAZY
9740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9741 # else
9742 # ifdef DL_LAZY
9743 # define LT_DLLAZY_OR_NOW DL_LAZY
9744 # else
9745 # ifdef RTLD_NOW
9746 # define LT_DLLAZY_OR_NOW RTLD_NOW
9747 # else
9748 # ifdef DL_NOW
9749 # define LT_DLLAZY_OR_NOW DL_NOW
9750 # else
9751 # define LT_DLLAZY_OR_NOW 0
9752 # endif
9753 # endif
9754 # endif
9755 # endif
9756 #endif
9757
9758 void fnord() { int i=42;}
9759 int main ()
9760 {
9761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9762 int status = $lt_dlunknown;
9763
9764 if (self)
9765 {
9766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9768 /* dlclose (self); */
9769 }
9770 else
9771 puts (dlerror ());
9772
9773 return status;
9774 }
9775 _LT_EOF
9776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9777 (eval $ac_link) 2>&5
9778 ac_status=$?
9779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9780 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9781 (./conftest; exit; ) >&5 2>/dev/null
9782 lt_status=$?
9783 case x$lt_status in
9784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9786 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9787 esac
9788 else :
9789 # compilation failed
9790 lt_cv_dlopen_self=no
9791 fi
9792 fi
9793 rm -fr conftest*
9794
9795
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9798 $as_echo "$lt_cv_dlopen_self" >&6; }
9799
9800 if test "x$lt_cv_dlopen_self" = xyes; then
9801 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9803 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9804 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test "$cross_compiling" = yes; then :
9808 lt_cv_dlopen_self_static=cross
9809 else
9810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9811 lt_status=$lt_dlunknown
9812 cat > conftest.$ac_ext <<_LT_EOF
9813 #line 9813 "configure"
9814 #include "confdefs.h"
9815
9816 #if HAVE_DLFCN_H
9817 #include <dlfcn.h>
9818 #endif
9819
9820 #include <stdio.h>
9821
9822 #ifdef RTLD_GLOBAL
9823 # define LT_DLGLOBAL RTLD_GLOBAL
9824 #else
9825 # ifdef DL_GLOBAL
9826 # define LT_DLGLOBAL DL_GLOBAL
9827 # else
9828 # define LT_DLGLOBAL 0
9829 # endif
9830 #endif
9831
9832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9833 find out it does not work in some platform. */
9834 #ifndef LT_DLLAZY_OR_NOW
9835 # ifdef RTLD_LAZY
9836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9837 # else
9838 # ifdef DL_LAZY
9839 # define LT_DLLAZY_OR_NOW DL_LAZY
9840 # else
9841 # ifdef RTLD_NOW
9842 # define LT_DLLAZY_OR_NOW RTLD_NOW
9843 # else
9844 # ifdef DL_NOW
9845 # define LT_DLLAZY_OR_NOW DL_NOW
9846 # else
9847 # define LT_DLLAZY_OR_NOW 0
9848 # endif
9849 # endif
9850 # endif
9851 # endif
9852 #endif
9853
9854 void fnord() { int i=42;}
9855 int main ()
9856 {
9857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9858 int status = $lt_dlunknown;
9859
9860 if (self)
9861 {
9862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9864 /* dlclose (self); */
9865 }
9866 else
9867 puts (dlerror ());
9868
9869 return status;
9870 }
9871 _LT_EOF
9872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9873 (eval $ac_link) 2>&5
9874 ac_status=$?
9875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9877 (./conftest; exit; ) >&5 2>/dev/null
9878 lt_status=$?
9879 case x$lt_status in
9880 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9881 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9882 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9883 esac
9884 else :
9885 # compilation failed
9886 lt_cv_dlopen_self_static=no
9887 fi
9888 fi
9889 rm -fr conftest*
9890
9891
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9894 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9895 fi
9896
9897 CPPFLAGS="$save_CPPFLAGS"
9898 LDFLAGS="$save_LDFLAGS"
9899 LIBS="$save_LIBS"
9900 ;;
9901 esac
9902
9903 case $lt_cv_dlopen_self in
9904 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9905 *) enable_dlopen_self=unknown ;;
9906 esac
9907
9908 case $lt_cv_dlopen_self_static in
9909 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9910 *) enable_dlopen_self_static=unknown ;;
9911 esac
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930 striplib=
9931 old_striplib=
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9933 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9934 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9936 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9938 $as_echo "yes" >&6; }
9939 else
9940 # FIXME - insert some real tests, host_os isn't really good enough
9941 case $host_os in
9942 darwin*)
9943 if test -n "$STRIP" ; then
9944 striplib="$STRIP -x"
9945 old_striplib="$STRIP -S"
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 fi
9952 ;;
9953 *)
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 ;;
9957 esac
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 # Report which library types will actually be built
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9973 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9975 $as_echo "$can_build_shared" >&6; }
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9978 $as_echo_n "checking whether to build shared libraries... " >&6; }
9979 test "$can_build_shared" = "no" && enable_shared=no
9980
9981 # On AIX, shared libraries and static libraries use the same namespace, and
9982 # are all built from PIC.
9983 case $host_os in
9984 aix3*)
9985 test "$enable_shared" = yes && enable_static=no
9986 if test -n "$RANLIB"; then
9987 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9988 postinstall_cmds='$RANLIB $lib'
9989 fi
9990 ;;
9991
9992 aix[4-9]*)
9993 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9994 test "$enable_shared" = yes && enable_static=no
9995 fi
9996 ;;
9997 esac
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9999 $as_echo "$enable_shared" >&6; }
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10002 $as_echo_n "checking whether to build static libraries... " >&6; }
10003 # Make sure either enable_shared or enable_static is yes.
10004 test "$enable_shared" = yes || enable_static=yes
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10006 $as_echo "$enable_static" >&6; }
10007
10008
10009
10010
10011 fi
10012 ac_ext=c
10013 ac_cpp='$CPP $CPPFLAGS'
10014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10017
10018 CC="$lt_save_CC"
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 ac_config_commands="$ac_config_commands libtool"
10033
10034
10035
10036
10037 # Only expand once:
10038
10039
10040
10041
10042 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10043 if test -n "$ac_tool_prefix"; then
10044 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10045 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 case $PKG_CONFIG in
10052 [\\/]* | ?:[\\/]*)
10053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10054 ;;
10055 *)
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10058 do
10059 IFS=$as_save_IFS
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 break 2
10066 fi
10067 done
10068 done
10069 IFS=$as_save_IFS
10070
10071 ;;
10072 esac
10073 fi
10074 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10075 if test -n "$PKG_CONFIG"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10077 $as_echo "$PKG_CONFIG" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 fi
10082
10083
10084 fi
10085 if test -z "$ac_cv_path_PKG_CONFIG"; then
10086 ac_pt_PKG_CONFIG=$PKG_CONFIG
10087 # Extract the first word of "pkg-config", so it can be a program name with args.
10088 set dummy pkg-config; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 case $ac_pt_PKG_CONFIG in
10095 [\\/]* | ?:[\\/]*)
10096 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10097 ;;
10098 *)
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10101 do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10106 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110 done
10111 done
10112 IFS=$as_save_IFS
10113
10114 ;;
10115 esac
10116 fi
10117 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10118 if test -n "$ac_pt_PKG_CONFIG"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10120 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10124 fi
10125
10126 if test "x$ac_pt_PKG_CONFIG" = x; then
10127 PKG_CONFIG=""
10128 else
10129 case $cross_compiling:$ac_tool_warned in
10130 yes:)
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10133 ac_tool_warned=yes ;;
10134 esac
10135 PKG_CONFIG=$ac_pt_PKG_CONFIG
10136 fi
10137 else
10138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10139 fi
10140
10141 fi
10142 if test -n "$PKG_CONFIG"; then
10143 _pkg_min_version=0.22
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10145 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 PKG_CONFIG=""
10153 fi
10154
10155 fi
10156 ac_ext=cpp
10157 ac_cpp='$CXXCPP $CPPFLAGS'
10158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10161 if test -z "$CXX"; then
10162 if test -n "$CCC"; then
10163 CXX=$CCC
10164 else
10165 if test -n "$ac_tool_prefix"; then
10166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10167 do
10168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if test "${ac_cv_prog_CXX+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test -n "$CXX"; then
10176 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10180 do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10188 fi
10189 done
10190 done
10191 IFS=$as_save_IFS
10192
10193 fi
10194 fi
10195 CXX=$ac_cv_prog_CXX
10196 if test -n "$CXX"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10198 $as_echo "$CXX" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10202 fi
10203
10204
10205 test -n "$CXX" && break
10206 done
10207 fi
10208 if test -z "$CXX"; then
10209 ac_ct_CXX=$CXX
10210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10211 do
10212 # Extract the first word of "$ac_prog", so it can be a program name with args.
10213 set dummy $ac_prog; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 if test -n "$ac_ct_CXX"; then
10220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10221 else
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_prog_ac_ct_CXX="$ac_prog"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10232 fi
10233 done
10234 done
10235 IFS=$as_save_IFS
10236
10237 fi
10238 fi
10239 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10240 if test -n "$ac_ct_CXX"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10242 $as_echo "$ac_ct_CXX" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10246 fi
10247
10248
10249 test -n "$ac_ct_CXX" && break
10250 done
10251
10252 if test "x$ac_ct_CXX" = x; then
10253 CXX="g++"
10254 else
10255 case $cross_compiling:$ac_tool_warned in
10256 yes:)
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10259 ac_tool_warned=yes ;;
10260 esac
10261 CXX=$ac_ct_CXX
10262 fi
10263 fi
10264
10265 fi
10266 fi
10267 # Provide some information about the compiler.
10268 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10269 set X $ac_compile
10270 ac_compiler=$2
10271 for ac_option in --version -v -V -qversion; do
10272 { { ac_try="$ac_compiler $ac_option >&5"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10278 $as_echo "$ac_try_echo"; } >&5
10279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10280 ac_status=$?
10281 if test -s conftest.err; then
10282 sed '10a\
10283 ... rest of stderr output deleted ...
10284 10q' conftest.err >conftest.er1
10285 cat conftest.er1 >&5
10286 fi
10287 rm -f conftest.er1 conftest.err
10288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10289 test $ac_status = 0; }
10290 done
10291
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10293 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10294 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299
10300 int
10301 main ()
10302 {
10303 #ifndef __GNUC__
10304 choke me
10305 #endif
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_cxx_try_compile "$LINENO"; then :
10312 ac_compiler_gnu=yes
10313 else
10314 ac_compiler_gnu=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10318
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10321 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10322 if test $ac_compiler_gnu = yes; then
10323 GXX=yes
10324 else
10325 GXX=
10326 fi
10327 ac_test_CXXFLAGS=${CXXFLAGS+set}
10328 ac_save_CXXFLAGS=$CXXFLAGS
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10330 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10331 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10335 ac_cxx_werror_flag=yes
10336 ac_cv_prog_cxx_g=no
10337 CXXFLAGS="-g"
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340
10341 int
10342 main ()
10343 {
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_cxx_try_compile "$LINENO"; then :
10350 ac_cv_prog_cxx_g=yes
10351 else
10352 CXXFLAGS=""
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 int
10357 main ()
10358 {
10359
10360 ;
10361 return 0;
10362 }
10363 _ACEOF
10364 if ac_fn_cxx_try_compile "$LINENO"; then :
10365
10366 else
10367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10368 CXXFLAGS="-g"
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10371
10372 int
10373 main ()
10374 {
10375
10376 ;
10377 return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_cxx_try_compile "$LINENO"; then :
10381 ac_cv_prog_cxx_g=yes
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10391 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10392 if test "$ac_test_CXXFLAGS" = set; then
10393 CXXFLAGS=$ac_save_CXXFLAGS
10394 elif test $ac_cv_prog_cxx_g = yes; then
10395 if test "$GXX" = yes; then
10396 CXXFLAGS="-g -O2"
10397 else
10398 CXXFLAGS="-g"
10399 fi
10400 else
10401 if test "$GXX" = yes; then
10402 CXXFLAGS="-O2"
10403 else
10404 CXXFLAGS=
10405 fi
10406 fi
10407 ac_ext=c
10408 ac_cpp='$CPP $CPPFLAGS'
10409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10412
10413
10414 ac_ext=cpp
10415 ac_cpp='$CXXCPP $CPPFLAGS'
10416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10419 if test -z "$CXX"; then
10420 if test -n "$CCC"; then
10421 CXX=$CCC
10422 else
10423 if test -n "$ac_tool_prefix"; then
10424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10425 do
10426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if test "${ac_cv_prog_CXX+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 if test -n "$CXX"; then
10434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10438 do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447 done
10448 done
10449 IFS=$as_save_IFS
10450
10451 fi
10452 fi
10453 CXX=$ac_cv_prog_CXX
10454 if test -n "$CXX"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10456 $as_echo "$CXX" >&6; }
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461
10462
10463 test -n "$CXX" && break
10464 done
10465 fi
10466 if test -z "$CXX"; then
10467 ac_ct_CXX=$CXX
10468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10469 do
10470 # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 if test -n "$ac_ct_CXX"; then
10478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_ac_ct_CXX="$ac_prog"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491 done
10492 done
10493 IFS=$as_save_IFS
10494
10495 fi
10496 fi
10497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10498 if test -n "$ac_ct_CXX"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10500 $as_echo "$ac_ct_CXX" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 fi
10505
10506
10507 test -n "$ac_ct_CXX" && break
10508 done
10509
10510 if test "x$ac_ct_CXX" = x; then
10511 CXX="g++"
10512 else
10513 case $cross_compiling:$ac_tool_warned in
10514 yes:)
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10517 ac_tool_warned=yes ;;
10518 esac
10519 CXX=$ac_ct_CXX
10520 fi
10521 fi
10522
10523 fi
10524 fi
10525 # Provide some information about the compiler.
10526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10527 set X $ac_compile
10528 ac_compiler=$2
10529 for ac_option in --version -v -V -qversion; do
10530 { { ac_try="$ac_compiler $ac_option >&5"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10536 $as_echo "$ac_try_echo"; } >&5
10537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10538 ac_status=$?
10539 if test -s conftest.err; then
10540 sed '10a\
10541 ... rest of stderr output deleted ...
10542 10q' conftest.err >conftest.er1
10543 cat conftest.er1 >&5
10544 fi
10545 rm -f conftest.er1 conftest.err
10546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10547 test $ac_status = 0; }
10548 done
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10551 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10552 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557
10558 int
10559 main ()
10560 {
10561 #ifndef __GNUC__
10562 choke me
10563 #endif
10564
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_cxx_try_compile "$LINENO"; then :
10570 ac_compiler_gnu=yes
10571 else
10572 ac_compiler_gnu=no
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10576
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10579 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10580 if test $ac_compiler_gnu = yes; then
10581 GXX=yes
10582 else
10583 GXX=
10584 fi
10585 ac_test_CXXFLAGS=${CXXFLAGS+set}
10586 ac_save_CXXFLAGS=$CXXFLAGS
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10588 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10589 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10593 ac_cxx_werror_flag=yes
10594 ac_cv_prog_cxx_g=no
10595 CXXFLAGS="-g"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598
10599 int
10600 main ()
10601 {
10602
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_cxx_try_compile "$LINENO"; then :
10608 ac_cv_prog_cxx_g=yes
10609 else
10610 CXXFLAGS=""
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613
10614 int
10615 main ()
10616 {
10617
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_cxx_try_compile "$LINENO"; then :
10623
10624 else
10625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10626 CXXFLAGS="-g"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629
10630 int
10631 main ()
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_cxx_try_compile "$LINENO"; then :
10639 ac_cv_prog_cxx_g=yes
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10649 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10650 if test "$ac_test_CXXFLAGS" = set; then
10651 CXXFLAGS=$ac_save_CXXFLAGS
10652 elif test $ac_cv_prog_cxx_g = yes; then
10653 if test "$GXX" = yes; then
10654 CXXFLAGS="-g -O2"
10655 else
10656 CXXFLAGS="-g"
10657 fi
10658 else
10659 if test "$GXX" = yes; then
10660 CXXFLAGS="-O2"
10661 else
10662 CXXFLAGS=
10663 fi
10664 fi
10665 ac_ext=c
10666 ac_cpp='$CPP $CPPFLAGS'
10667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10670
10671 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10673 (test "X$CXX" != "Xg++"))) ; then
10674 ac_ext=cpp
10675 ac_cpp='$CXXCPP $CPPFLAGS'
10676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10680 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10681 if test -z "$CXXCPP"; then
10682 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 # Double quotes because CXXCPP needs to be expanded
10686 for CXXCPP in "$CXX -E" "/lib/cpp"
10687 do
10688 ac_preproc_ok=false
10689 for ac_cxx_preproc_warn_flag in '' yes
10690 do
10691 # Use a header file that comes with gcc, so configuring glibc
10692 # with a fresh cross-compiler works.
10693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694 # <limits.h> exists even on freestanding compilers.
10695 # On the NeXT, cc -E runs the code through the compiler's parser,
10696 # not just through cpp. "Syntax error" is here to catch this case.
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 #ifdef __STDC__
10700 # include <limits.h>
10701 #else
10702 # include <assert.h>
10703 #endif
10704 Syntax error
10705 _ACEOF
10706 if ac_fn_cxx_try_cpp "$LINENO"; then :
10707
10708 else
10709 # Broken: fails on valid input.
10710 continue
10711 fi
10712 rm -f conftest.err conftest.$ac_ext
10713
10714 # OK, works on sane cases. Now check whether nonexistent headers
10715 # can be detected and how.
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include <ac_nonexistent.h>
10719 _ACEOF
10720 if ac_fn_cxx_try_cpp "$LINENO"; then :
10721 # Broken: success on invalid input.
10722 continue
10723 else
10724 # Passes both tests.
10725 ac_preproc_ok=:
10726 break
10727 fi
10728 rm -f conftest.err conftest.$ac_ext
10729
10730 done
10731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10732 rm -f conftest.err conftest.$ac_ext
10733 if $ac_preproc_ok; then :
10734 break
10735 fi
10736
10737 done
10738 ac_cv_prog_CXXCPP=$CXXCPP
10739
10740 fi
10741 CXXCPP=$ac_cv_prog_CXXCPP
10742 else
10743 ac_cv_prog_CXXCPP=$CXXCPP
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10746 $as_echo "$CXXCPP" >&6; }
10747 ac_preproc_ok=false
10748 for ac_cxx_preproc_warn_flag in '' yes
10749 do
10750 # Use a header file that comes with gcc, so configuring glibc
10751 # with a fresh cross-compiler works.
10752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10753 # <limits.h> exists even on freestanding compilers.
10754 # On the NeXT, cc -E runs the code through the compiler's parser,
10755 # not just through cpp. "Syntax error" is here to catch this case.
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763 Syntax error
10764 _ACEOF
10765 if ac_fn_cxx_try_cpp "$LINENO"; then :
10766
10767 else
10768 # Broken: fails on valid input.
10769 continue
10770 fi
10771 rm -f conftest.err conftest.$ac_ext
10772
10773 # OK, works on sane cases. Now check whether nonexistent headers
10774 # can be detected and how.
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <ac_nonexistent.h>
10778 _ACEOF
10779 if ac_fn_cxx_try_cpp "$LINENO"; then :
10780 # Broken: success on invalid input.
10781 continue
10782 else
10783 # Passes both tests.
10784 ac_preproc_ok=:
10785 break
10786 fi
10787 rm -f conftest.err conftest.$ac_ext
10788
10789 done
10790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10791 rm -f conftest.err conftest.$ac_ext
10792 if $ac_preproc_ok; then :
10793
10794 else
10795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10797 _lt_caught_CXX_error=yes; }
10798 fi
10799
10800 ac_ext=c
10801 ac_cpp='$CPP $CPPFLAGS'
10802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10805
10806 else
10807 _lt_caught_CXX_error=yes
10808 fi
10809
10810
10811
10812
10813 ac_ext=cpp
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10818
10819 archive_cmds_need_lc_CXX=no
10820 allow_undefined_flag_CXX=
10821 always_export_symbols_CXX=no
10822 archive_expsym_cmds_CXX=
10823 compiler_needs_object_CXX=no
10824 export_dynamic_flag_spec_CXX=
10825 hardcode_direct_CXX=no
10826 hardcode_direct_absolute_CXX=no
10827 hardcode_libdir_flag_spec_CXX=
10828 hardcode_libdir_flag_spec_ld_CXX=
10829 hardcode_libdir_separator_CXX=
10830 hardcode_minus_L_CXX=no
10831 hardcode_shlibpath_var_CXX=unsupported
10832 hardcode_automatic_CXX=no
10833 inherit_rpath_CXX=no
10834 module_cmds_CXX=
10835 module_expsym_cmds_CXX=
10836 link_all_deplibs_CXX=unknown
10837 old_archive_cmds_CXX=$old_archive_cmds
10838 no_undefined_flag_CXX=
10839 whole_archive_flag_spec_CXX=
10840 enable_shared_with_static_runtimes_CXX=no
10841
10842 # Source file extension for C++ test sources.
10843 ac_ext=cpp
10844
10845 # Object file extension for compiled C++ test sources.
10846 objext=o
10847 objext_CXX=$objext
10848
10849 # No sense in running all these tests if we already determined that
10850 # the CXX compiler isn't working. Some variables (like enable_shared)
10851 # are currently assumed to apply to all compilers on this platform,
10852 # and will be corrupted by setting them based on a non-working compiler.
10853 if test "$_lt_caught_CXX_error" != yes; then
10854 # Code to be used in simple compile tests
10855 lt_simple_compile_test_code="int some_variable = 0;"
10856
10857 # Code to be used in simple link tests
10858 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10859
10860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10861
10862
10863
10864
10865
10866
10867 # If no C compiler was specified, use CC.
10868 LTCC=${LTCC-"$CC"}
10869
10870 # If no C compiler flags were specified, use CFLAGS.
10871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10872
10873 # Allow CC to be a program name with arguments.
10874 compiler=$CC
10875
10876
10877 # save warnings/boilerplate of simple test code
10878 ac_outfile=conftest.$ac_objext
10879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10881 _lt_compiler_boilerplate=`cat conftest.err`
10882 $RM conftest*
10883
10884 ac_outfile=conftest.$ac_objext
10885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10887 _lt_linker_boilerplate=`cat conftest.err`
10888 $RM -r conftest*
10889
10890
10891 # Allow CC to be a program name with arguments.
10892 lt_save_CC=$CC
10893 lt_save_LD=$LD
10894 lt_save_GCC=$GCC
10895 GCC=$GXX
10896 lt_save_with_gnu_ld=$with_gnu_ld
10897 lt_save_path_LD=$lt_cv_path_LD
10898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10900 else
10901 $as_unset lt_cv_prog_gnu_ld
10902 fi
10903 if test -n "${lt_cv_path_LDCXX+set}"; then
10904 lt_cv_path_LD=$lt_cv_path_LDCXX
10905 else
10906 $as_unset lt_cv_path_LD
10907 fi
10908 test -z "${LDCXX+set}" || LD=$LDCXX
10909 CC=${CXX-"c++"}
10910 compiler=$CC
10911 compiler_CXX=$CC
10912 for cc_temp in $compiler""; do
10913 case $cc_temp in
10914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10916 \-*) ;;
10917 *) break;;
10918 esac
10919 done
10920 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10921
10922
10923 if test -n "$compiler"; then
10924 # We don't want -fno-exception when compiling C++ code, so set the
10925 # no_builtin_flag separately
10926 if test "$GXX" = yes; then
10927 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10928 else
10929 lt_prog_compiler_no_builtin_flag_CXX=
10930 fi
10931
10932 if test "$GXX" = yes; then
10933 # Set up default GNU C++ configuration
10934
10935
10936
10937 # Check whether --with-gnu-ld was given.
10938 if test "${with_gnu_ld+set}" = set; then :
10939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10940 else
10941 with_gnu_ld=no
10942 fi
10943
10944 ac_prog=ld
10945 if test "$GCC" = yes; then
10946 # Check if gcc -print-prog-name=ld gives a path.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10948 $as_echo_n "checking for ld used by $CC... " >&6; }
10949 case $host in
10950 *-*-mingw*)
10951 # gcc leaves a trailing carriage return which upsets mingw
10952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10953 *)
10954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10955 esac
10956 case $ac_prog in
10957 # Accept absolute paths.
10958 [\\/]* | ?:[\\/]*)
10959 re_direlt='/[^/][^/]*/\.\./'
10960 # Canonicalize the pathname of ld
10961 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10962 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10963 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10964 done
10965 test -z "$LD" && LD="$ac_prog"
10966 ;;
10967 "")
10968 # If it fails, then pretend we aren't using GCC.
10969 ac_prog=ld
10970 ;;
10971 *)
10972 # If it is relative, then search for the first ld in PATH.
10973 with_gnu_ld=unknown
10974 ;;
10975 esac
10976 elif test "$with_gnu_ld" = yes; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10978 $as_echo_n "checking for GNU ld... " >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10981 $as_echo_n "checking for non-GNU ld... " >&6; }
10982 fi
10983 if test "${lt_cv_path_LD+set}" = set; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 if test -z "$LD"; then
10987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10988 for ac_dir in $PATH; do
10989 IFS="$lt_save_ifs"
10990 test -z "$ac_dir" && ac_dir=.
10991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10992 lt_cv_path_LD="$ac_dir/$ac_prog"
10993 # Check to see if the program is GNU ld. I'd rather use --version,
10994 # but apparently some variants of GNU ld only accept -v.
10995 # Break only if it was the GNU/non-GNU ld that we prefer.
10996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10997 *GNU* | *'with BFD'*)
10998 test "$with_gnu_ld" != no && break
10999 ;;
11000 *)
11001 test "$with_gnu_ld" != yes && break
11002 ;;
11003 esac
11004 fi
11005 done
11006 IFS="$lt_save_ifs"
11007 else
11008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11009 fi
11010 fi
11011
11012 LD="$lt_cv_path_LD"
11013 if test -n "$LD"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11015 $as_echo "$LD" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11019 fi
11020 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11023 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11027 case `$LD -v 2>&1 </dev/null` in
11028 *GNU* | *'with BFD'*)
11029 lt_cv_prog_gnu_ld=yes
11030 ;;
11031 *)
11032 lt_cv_prog_gnu_ld=no
11033 ;;
11034 esac
11035 fi
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11037 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11038 with_gnu_ld=$lt_cv_prog_gnu_ld
11039
11040
11041
11042
11043
11044
11045
11046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11047 # archiving commands below assume that GNU ld is being used.
11048 if test "$with_gnu_ld" = yes; then
11049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11050 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'
11051
11052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11054
11055 # If archive_cmds runs LD, not CC, wlarc should be empty
11056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11057 # investigate it a little bit more. (MM)
11058 wlarc='${wl}'
11059
11060 # ancient GNU ld didn't support --whole-archive et. al.
11061 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11062 $GREP 'no-whole-archive' > /dev/null; then
11063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11064 else
11065 whole_archive_flag_spec_CXX=
11066 fi
11067 else
11068 with_gnu_ld=no
11069 wlarc=
11070
11071 # A generic and very simple default shared library creation
11072 # command for GNU C++ for the case where it uses the native
11073 # linker, instead of GNU ld. If possible, this setting should
11074 # overridden to take advantage of the native linker features on
11075 # the platform it is being used on.
11076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11077 fi
11078
11079 # Commands to make compiler produce verbose output that lists
11080 # what "hidden" libraries, object files and flags are used when
11081 # linking a shared library.
11082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11083
11084 else
11085 GXX=no
11086 with_gnu_ld=no
11087 wlarc=
11088 fi
11089
11090 # PORTME: fill in a description of your system's C++ link characteristics
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11093 ld_shlibs_CXX=yes
11094 case $host_os in
11095 aix3*)
11096 # FIXME: insert proper C++ library support
11097 ld_shlibs_CXX=no
11098 ;;
11099 aix[4-9]*)
11100 if test "$host_cpu" = ia64; then
11101 # On IA64, the linker does run time linking by default, so we don't
11102 # have to do anything special.
11103 aix_use_runtimelinking=no
11104 exp_sym_flag='-Bexport'
11105 no_entry_flag=""
11106 else
11107 aix_use_runtimelinking=no
11108
11109 # Test if we are trying to use run time linking or normal
11110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11111 # need to do runtime linking.
11112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11113 for ld_flag in $LDFLAGS; do
11114 case $ld_flag in
11115 *-brtl*)
11116 aix_use_runtimelinking=yes
11117 break
11118 ;;
11119 esac
11120 done
11121 ;;
11122 esac
11123
11124 exp_sym_flag='-bexport'
11125 no_entry_flag='-bnoentry'
11126 fi
11127
11128 # When large executables or shared objects are built, AIX ld can
11129 # have problems creating the table of contents. If linking a library
11130 # or program results in "error TOC overflow" add -mminimal-toc to
11131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11133
11134 archive_cmds_CXX=''
11135 hardcode_direct_CXX=yes
11136 hardcode_direct_absolute_CXX=yes
11137 hardcode_libdir_separator_CXX=':'
11138 link_all_deplibs_CXX=yes
11139 file_list_spec_CXX='${wl}-f,'
11140
11141 if test "$GXX" = yes; then
11142 case $host_os in aix4.[012]|aix4.[012].*)
11143 # We only want to do this on AIX 4.2 and lower, the check
11144 # below for broken collect2 doesn't work under 4.3+
11145 collect2name=`${CC} -print-prog-name=collect2`
11146 if test -f "$collect2name" &&
11147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11148 then
11149 # We have reworked collect2
11150 :
11151 else
11152 # We have old collect2
11153 hardcode_direct_CXX=unsupported
11154 # It fails to find uninstalled libraries when the uninstalled
11155 # path is not listed in the libpath. Setting hardcode_minus_L
11156 # to unsupported forces relinking
11157 hardcode_minus_L_CXX=yes
11158 hardcode_libdir_flag_spec_CXX='-L$libdir'
11159 hardcode_libdir_separator_CXX=
11160 fi
11161 esac
11162 shared_flag='-shared'
11163 if test "$aix_use_runtimelinking" = yes; then
11164 shared_flag="$shared_flag "'${wl}-G'
11165 fi
11166 else
11167 # not using gcc
11168 if test "$host_cpu" = ia64; then
11169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11170 # chokes on -Wl,-G. The following line is correct:
11171 shared_flag='-G'
11172 else
11173 if test "$aix_use_runtimelinking" = yes; then
11174 shared_flag='${wl}-G'
11175 else
11176 shared_flag='${wl}-bM:SRE'
11177 fi
11178 fi
11179 fi
11180
11181 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11182 # It seems that -bexpall does not export symbols beginning with
11183 # underscore (_), so it is better to generate a list of symbols to
11184 # export.
11185 always_export_symbols_CXX=yes
11186 if test "$aix_use_runtimelinking" = yes; then
11187 # Warning - without using the other runtime loading flags (-brtl),
11188 # -berok will link without error, but may produce a broken library.
11189 allow_undefined_flag_CXX='-berok'
11190 # Determine the default libpath from the value encoded in an empty
11191 # executable.
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 int
11196 main ()
11197 {
11198
11199 ;
11200 return 0;
11201 }
11202 _ACEOF
11203 if ac_fn_cxx_try_link "$LINENO"; then :
11204
11205 lt_aix_libpath_sed='
11206 /Import File Strings/,/^$/ {
11207 /^0/ {
11208 s/^0 *\(.*\)$/\1/
11209 p
11210 }
11211 }'
11212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11213 # Check for a 64-bit object if we didn't find anything.
11214 if test -z "$aix_libpath"; then
11215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11216 fi
11217 fi
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11221
11222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11223
11224 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"
11225 else
11226 if test "$host_cpu" = ia64; then
11227 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11228 allow_undefined_flag_CXX="-z nodefs"
11229 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"
11230 else
11231 # Determine the default libpath from the value encoded in an
11232 # empty executable.
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 int
11237 main ()
11238 {
11239
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_cxx_try_link "$LINENO"; then :
11245
11246 lt_aix_libpath_sed='
11247 /Import File Strings/,/^$/ {
11248 /^0/ {
11249 s/^0 *\(.*\)$/\1/
11250 p
11251 }
11252 }'
11253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11254 # Check for a 64-bit object if we didn't find anything.
11255 if test -z "$aix_libpath"; then
11256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11257 fi
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11262
11263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11264 # Warning - without using the other run time loading flags,
11265 # -berok will link without error, but may produce a broken library.
11266 no_undefined_flag_CXX=' ${wl}-bernotok'
11267 allow_undefined_flag_CXX=' ${wl}-berok'
11268 # Exported symbols can be pulled into shared objects from archives
11269 whole_archive_flag_spec_CXX='$convenience'
11270 archive_cmds_need_lc_CXX=yes
11271 # This is similar to how AIX traditionally builds its shared
11272 # libraries.
11273 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'
11274 fi
11275 fi
11276 ;;
11277
11278 beos*)
11279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11280 allow_undefined_flag_CXX=unsupported
11281 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11282 # support --undefined. This deserves some investigation. FIXME
11283 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11284 else
11285 ld_shlibs_CXX=no
11286 fi
11287 ;;
11288
11289 chorus*)
11290 case $cc_basename in
11291 *)
11292 # FIXME: insert proper C++ library support
11293 ld_shlibs_CXX=no
11294 ;;
11295 esac
11296 ;;
11297
11298 cygwin* | mingw* | pw32* | cegcc*)
11299 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11300 # as there is no search path for DLLs.
11301 hardcode_libdir_flag_spec_CXX='-L$libdir'
11302 allow_undefined_flag_CXX=unsupported
11303 always_export_symbols_CXX=no
11304 enable_shared_with_static_runtimes_CXX=yes
11305
11306 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11307 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'
11308 # If the export-symbols file already is a .def file (1st line
11309 # is EXPORTS), use it as is; otherwise, prepend...
11310 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11311 cp $export_symbols $output_objdir/$soname.def;
11312 else
11313 echo EXPORTS > $output_objdir/$soname.def;
11314 cat $export_symbols >> $output_objdir/$soname.def;
11315 fi~
11316 $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'
11317 else
11318 ld_shlibs_CXX=no
11319 fi
11320 ;;
11321 darwin* | rhapsody*)
11322
11323
11324 archive_cmds_need_lc_CXX=no
11325 hardcode_direct_CXX=no
11326 hardcode_automatic_CXX=yes
11327 hardcode_shlibpath_var_CXX=unsupported
11328 whole_archive_flag_spec_CXX=''
11329 link_all_deplibs_CXX=yes
11330 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11331 case $cc_basename in
11332 ifort*) _lt_dar_can_shared=yes ;;
11333 *) _lt_dar_can_shared=$GCC ;;
11334 esac
11335 if test "$_lt_dar_can_shared" = "yes"; then
11336 output_verbose_link_cmd=echo
11337 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}"
11338 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11339 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}"
11340 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}"
11341 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11342 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}"
11343 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}"
11344 fi
11345
11346 else
11347 ld_shlibs_CXX=no
11348 fi
11349
11350 ;;
11351
11352 dgux*)
11353 case $cc_basename in
11354 ec++*)
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11357 ;;
11358 ghcx*)
11359 # Green Hills C++ Compiler
11360 # FIXME: insert proper C++ library support
11361 ld_shlibs_CXX=no
11362 ;;
11363 *)
11364 # FIXME: insert proper C++ library support
11365 ld_shlibs_CXX=no
11366 ;;
11367 esac
11368 ;;
11369
11370 freebsd[12]*)
11371 # C++ shared libraries reported to be fairly broken before
11372 # switch to ELF
11373 ld_shlibs_CXX=no
11374 ;;
11375
11376 freebsd-elf*)
11377 archive_cmds_need_lc_CXX=no
11378 ;;
11379
11380 freebsd* | dragonfly*)
11381 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11382 # conventions
11383 ld_shlibs_CXX=yes
11384 ;;
11385
11386 gnu*)
11387 ;;
11388
11389 hpux9*)
11390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11391 hardcode_libdir_separator_CXX=:
11392 export_dynamic_flag_spec_CXX='${wl}-E'
11393 hardcode_direct_CXX=yes
11394 hardcode_minus_L_CXX=yes # Not in the search PATH,
11395 # but as the default
11396 # location of the library.
11397
11398 case $cc_basename in
11399 CC*)
11400 # FIXME: insert proper C++ library support
11401 ld_shlibs_CXX=no
11402 ;;
11403 aCC*)
11404 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'
11405 # Commands to make compiler produce verbose output that lists
11406 # what "hidden" libraries, object files and flags are used when
11407 # linking a shared library.
11408 #
11409 # There doesn't appear to be a way to prevent this compiler from
11410 # explicitly linking system object files so we need to strip them
11411 # from the output so that they don't get included in the library
11412 # dependencies.
11413 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'
11414 ;;
11415 *)
11416 if test "$GXX" = yes; then
11417 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'
11418 else
11419 # FIXME: insert proper C++ library support
11420 ld_shlibs_CXX=no
11421 fi
11422 ;;
11423 esac
11424 ;;
11425
11426 hpux10*|hpux11*)
11427 if test $with_gnu_ld = no; then
11428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11429 hardcode_libdir_separator_CXX=:
11430
11431 case $host_cpu in
11432 hppa*64*|ia64*)
11433 ;;
11434 *)
11435 export_dynamic_flag_spec_CXX='${wl}-E'
11436 ;;
11437 esac
11438 fi
11439 case $host_cpu in
11440 hppa*64*|ia64*)
11441 hardcode_direct_CXX=no
11442 hardcode_shlibpath_var_CXX=no
11443 ;;
11444 *)
11445 hardcode_direct_CXX=yes
11446 hardcode_direct_absolute_CXX=yes
11447 hardcode_minus_L_CXX=yes # Not in the search PATH,
11448 # but as the default
11449 # location of the library.
11450 ;;
11451 esac
11452
11453 case $cc_basename in
11454 CC*)
11455 # FIXME: insert proper C++ library support
11456 ld_shlibs_CXX=no
11457 ;;
11458 aCC*)
11459 case $host_cpu in
11460 hppa*64*)
11461 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11462 ;;
11463 ia64*)
11464 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465 ;;
11466 *)
11467 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11468 ;;
11469 esac
11470 # Commands to make compiler produce verbose output that lists
11471 # what "hidden" libraries, object files and flags are used when
11472 # linking a shared library.
11473 #
11474 # There doesn't appear to be a way to prevent this compiler from
11475 # explicitly linking system object files so we need to strip them
11476 # from the output so that they don't get included in the library
11477 # dependencies.
11478 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'
11479 ;;
11480 *)
11481 if test "$GXX" = yes; then
11482 if test $with_gnu_ld = no; then
11483 case $host_cpu in
11484 hppa*64*)
11485 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486 ;;
11487 ia64*)
11488 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11489 ;;
11490 *)
11491 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'
11492 ;;
11493 esac
11494 fi
11495 else
11496 # FIXME: insert proper C++ library support
11497 ld_shlibs_CXX=no
11498 fi
11499 ;;
11500 esac
11501 ;;
11502
11503 interix[3-9]*)
11504 hardcode_direct_CXX=no
11505 hardcode_shlibpath_var_CXX=no
11506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11507 export_dynamic_flag_spec_CXX='${wl}-E'
11508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11509 # Instead, shared libraries are loaded at an image base (0x10000000 by
11510 # default) and relocated if they conflict, which is a slow very memory
11511 # consuming and fragmenting process. To avoid this, we pick a random,
11512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11514 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'
11515 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'
11516 ;;
11517 irix5* | irix6*)
11518 case $cc_basename in
11519 CC*)
11520 # SGI C++
11521 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'
11522
11523 # Archives containing C++ object files must be created using
11524 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11525 # necessary to make sure instantiated templates are included
11526 # in the archive.
11527 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11528 ;;
11529 *)
11530 if test "$GXX" = yes; then
11531 if test "$with_gnu_ld" = no; then
11532 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'
11533 else
11534 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'
11535 fi
11536 fi
11537 link_all_deplibs_CXX=yes
11538 ;;
11539 esac
11540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11541 hardcode_libdir_separator_CXX=:
11542 inherit_rpath_CXX=yes
11543 ;;
11544
11545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11546 case $cc_basename in
11547 KCC*)
11548 # Kuck and Associates, Inc. (KAI) C++ Compiler
11549
11550 # KCC will only create a shared library if the output file
11551 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11552 # to its proper name (with version) after linking.
11553 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'
11554 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'
11555 # Commands to make compiler produce verbose output that lists
11556 # what "hidden" libraries, object files and flags are used when
11557 # linking a shared library.
11558 #
11559 # There doesn't appear to be a way to prevent this compiler from
11560 # explicitly linking system object files so we need to strip them
11561 # from the output so that they don't get included in the library
11562 # dependencies.
11563 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'
11564
11565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11566 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11567
11568 # Archives containing C++ object files must be created using
11569 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11570 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11571 ;;
11572 icpc* | ecpc* )
11573 # Intel C++
11574 with_gnu_ld=yes
11575 # version 8.0 and above of icpc choke on multiply defined symbols
11576 # if we add $predep_objects and $postdep_objects, however 7.1 and
11577 # earlier do not add the objects themselves.
11578 case `$CC -V 2>&1` in
11579 *"Version 7."*)
11580 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11581 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'
11582 ;;
11583 *) # Version 8.0 or newer
11584 tmp_idyn=
11585 case $host_cpu in
11586 ia64*) tmp_idyn=' -i_dynamic';;
11587 esac
11588 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11589 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'
11590 ;;
11591 esac
11592 archive_cmds_need_lc_CXX=no
11593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11595 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11596 ;;
11597 pgCC* | pgcpp*)
11598 # Portland Group C++ compiler
11599 case `$CC -V` in
11600 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11601 prelink_cmds_CXX='tpldir=Template.dir~
11602 rm -rf $tpldir~
11603 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11604 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11605 old_archive_cmds_CXX='tpldir=Template.dir~
11606 rm -rf $tpldir~
11607 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11608 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11609 $RANLIB $oldlib'
11610 archive_cmds_CXX='tpldir=Template.dir~
11611 rm -rf $tpldir~
11612 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11613 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11614 archive_expsym_cmds_CXX='tpldir=Template.dir~
11615 rm -rf $tpldir~
11616 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11617 $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'
11618 ;;
11619 *) # Version 6 will use weak symbols
11620 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11621 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'
11622 ;;
11623 esac
11624
11625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627 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'
11628 ;;
11629 cxx*)
11630 # Compaq C++
11631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632 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'
11633
11634 runpath_var=LD_RUN_PATH
11635 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636 hardcode_libdir_separator_CXX=:
11637
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 #
11642 # There doesn't appear to be a way to prevent this compiler from
11643 # explicitly linking system object files so we need to strip them
11644 # from the output so that they don't get included in the library
11645 # dependencies.
11646 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'
11647 ;;
11648 xl*)
11649 # IBM XL 8.0 on PPC, with GNU ld
11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11652 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11653 if test "x$supports_anon_versioning" = xyes; then
11654 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11656 echo "local: *; };" >> $output_objdir/$libname.ver~
11657 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11658 fi
11659 ;;
11660 *)
11661 case `$CC -V 2>&1 | sed 5q` in
11662 *Sun\ C*)
11663 # Sun C++ 5.9
11664 no_undefined_flag_CXX=' -zdefs'
11665 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11666 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'
11667 hardcode_libdir_flag_spec_CXX='-R$libdir'
11668 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'
11669 compiler_needs_object_CXX=yes
11670
11671 # Not sure whether something based on
11672 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11673 # would be better.
11674 output_verbose_link_cmd='echo'
11675
11676 # Archives containing C++ object files must be created using
11677 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11678 # necessary to make sure instantiated templates are included
11679 # in the archive.
11680 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11681 ;;
11682 esac
11683 ;;
11684 esac
11685 ;;
11686
11687 lynxos*)
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 ;;
11691
11692 m88k*)
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696
11697 mvs*)
11698 case $cc_basename in
11699 cxx*)
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 *)
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 ;;
11707 esac
11708 ;;
11709
11710 netbsd*)
11711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11712 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11713 wlarc=
11714 hardcode_libdir_flag_spec_CXX='-R$libdir'
11715 hardcode_direct_CXX=yes
11716 hardcode_shlibpath_var_CXX=no
11717 fi
11718 # Workaround some broken pre-1.5 toolchains
11719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11720 ;;
11721
11722 *nto* | *qnx*)
11723 ld_shlibs_CXX=yes
11724 ;;
11725
11726 openbsd2*)
11727 # C++ shared libraries are fairly broken
11728 ld_shlibs_CXX=no
11729 ;;
11730
11731 openbsd*)
11732 if test -f /usr/libexec/ld.so; then
11733 hardcode_direct_CXX=yes
11734 hardcode_shlibpath_var_CXX=no
11735 hardcode_direct_absolute_CXX=yes
11736 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11740 export_dynamic_flag_spec_CXX='${wl}-E'
11741 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11742 fi
11743 output_verbose_link_cmd=echo
11744 else
11745 ld_shlibs_CXX=no
11746 fi
11747 ;;
11748
11749 osf3* | osf4* | osf5*)
11750 case $cc_basename in
11751 KCC*)
11752 # Kuck and Associates, Inc. (KAI) C++ Compiler
11753
11754 # KCC will only create a shared library if the output file
11755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11756 # to its proper name (with version) after linking.
11757 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'
11758
11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11760 hardcode_libdir_separator_CXX=:
11761
11762 # Archives containing C++ object files must be created using
11763 # the KAI C++ compiler.
11764 case $host in
11765 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11766 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11767 esac
11768 ;;
11769 RCC*)
11770 # Rational C++ 2.4.1
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11773 ;;
11774 cxx*)
11775 case $host in
11776 osf3*)
11777 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11778 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'
11779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11780 ;;
11781 *)
11782 allow_undefined_flag_CXX=' -expect_unresolved \*'
11783 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'
11784 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11785 echo "-hidden">> $lib.exp~
11786 $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~
11787 $RM $lib.exp'
11788 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11789 ;;
11790 esac
11791
11792 hardcode_libdir_separator_CXX=:
11793
11794 # Commands to make compiler produce verbose output that lists
11795 # what "hidden" libraries, object files and flags are used when
11796 # linking a shared library.
11797 #
11798 # There doesn't appear to be a way to prevent this compiler from
11799 # explicitly linking system object files so we need to strip them
11800 # from the output so that they don't get included in the library
11801 # dependencies.
11802 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'
11803 ;;
11804 *)
11805 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11807 case $host in
11808 osf3*)
11809 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'
11810 ;;
11811 *)
11812 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'
11813 ;;
11814 esac
11815
11816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11817 hardcode_libdir_separator_CXX=:
11818
11819 # Commands to make compiler produce verbose output that lists
11820 # what "hidden" libraries, object files and flags are used when
11821 # linking a shared library.
11822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11823
11824 else
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11827 fi
11828 ;;
11829 esac
11830 ;;
11831
11832 psos*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836
11837 sunos4*)
11838 case $cc_basename in
11839 CC*)
11840 # Sun C++ 4.x
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11843 ;;
11844 lcc*)
11845 # Lucid
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 *)
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 esac
11854 ;;
11855
11856 solaris*)
11857 case $cc_basename in
11858 CC*)
11859 # Sun C++ 4.2, 5.x and Centerline C++
11860 archive_cmds_need_lc_CXX=yes
11861 no_undefined_flag_CXX=' -zdefs'
11862 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11865
11866 hardcode_libdir_flag_spec_CXX='-R$libdir'
11867 hardcode_shlibpath_var_CXX=no
11868 case $host_os in
11869 solaris2.[0-5] | solaris2.[0-5].*) ;;
11870 *)
11871 # The compiler driver will combine and reorder linker options,
11872 # but understands `-z linker_flag'.
11873 # Supported since Solaris 2.6 (maybe 2.5.1?)
11874 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11875 ;;
11876 esac
11877 link_all_deplibs_CXX=yes
11878
11879 output_verbose_link_cmd='echo'
11880
11881 # Archives containing C++ object files must be created using
11882 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11883 # necessary to make sure instantiated templates are included
11884 # in the archive.
11885 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11886 ;;
11887 gcx*)
11888 # Green Hills C++ Compiler
11889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11890
11891 # The C++ compiler must be used to create the archive.
11892 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11893 ;;
11894 *)
11895 # GNU C++ compiler with Solaris linker
11896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11897 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11898 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11899 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11900 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11901 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11902
11903 # Commands to make compiler produce verbose output that lists
11904 # what "hidden" libraries, object files and flags are used when
11905 # linking a shared library.
11906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11907 else
11908 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11909 # platform.
11910 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11911 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11912 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11913
11914 # Commands to make compiler produce verbose output that lists
11915 # what "hidden" libraries, object files and flags are used when
11916 # linking a shared library.
11917 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11918 fi
11919
11920 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11921 case $host_os in
11922 solaris2.[0-5] | solaris2.[0-5].*) ;;
11923 *)
11924 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11925 ;;
11926 esac
11927 fi
11928 ;;
11929 esac
11930 ;;
11931
11932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11933 no_undefined_flag_CXX='${wl}-z,text'
11934 archive_cmds_need_lc_CXX=no
11935 hardcode_shlibpath_var_CXX=no
11936 runpath_var='LD_RUN_PATH'
11937
11938 case $cc_basename in
11939 CC*)
11940 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 ;;
11943 *)
11944 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 ;;
11947 esac
11948 ;;
11949
11950 sysv5* | sco3.2v5* | sco5v6*)
11951 # Note: We can NOT use -z defs as we might desire, because we do not
11952 # link with -lc, and that would cause any symbols used from libc to
11953 # always be unresolved, which means just about no library would
11954 # ever link correctly. If we're not using GNU ld we use -z text
11955 # though, which does catch some bad symbols but isn't as heavy-handed
11956 # as -z defs.
11957 no_undefined_flag_CXX='${wl}-z,text'
11958 allow_undefined_flag_CXX='${wl}-z,nodefs'
11959 archive_cmds_need_lc_CXX=no
11960 hardcode_shlibpath_var_CXX=no
11961 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11962 hardcode_libdir_separator_CXX=':'
11963 link_all_deplibs_CXX=yes
11964 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11965 runpath_var='LD_RUN_PATH'
11966
11967 case $cc_basename in
11968 CC*)
11969 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11970 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 ;;
11972 *)
11973 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 ;;
11976 esac
11977 ;;
11978
11979 tandem*)
11980 case $cc_basename in
11981 NCC*)
11982 # NonStop-UX NCC 3.20
11983 # FIXME: insert proper C++ library support
11984 ld_shlibs_CXX=no
11985 ;;
11986 *)
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11989 ;;
11990 esac
11991 ;;
11992
11993 vxworks*)
11994 # FIXME: insert proper C++ library support
11995 ld_shlibs_CXX=no
11996 ;;
11997
11998 *)
11999 # FIXME: insert proper C++ library support
12000 ld_shlibs_CXX=no
12001 ;;
12002 esac
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12005 $as_echo "$ld_shlibs_CXX" >&6; }
12006 test "$ld_shlibs_CXX" = no && can_build_shared=no
12007
12008 GCC_CXX="$GXX"
12009 LD_CXX="$LD"
12010
12011 ## CAVEAT EMPTOR:
12012 ## There is no encapsulation within the following macros, do not change
12013 ## the running order or otherwise move them around unless you know exactly
12014 ## what you are doing...
12015 # Dependencies to place before and after the object being linked:
12016 predep_objects_CXX=
12017 postdep_objects_CXX=
12018 predeps_CXX=
12019 postdeps_CXX=
12020 compiler_lib_search_path_CXX=
12021
12022 cat > conftest.$ac_ext <<_LT_EOF
12023 class Foo
12024 {
12025 public:
12026 Foo (void) { a = 0; }
12027 private:
12028 int a;
12029 };
12030 _LT_EOF
12031
12032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12033 (eval $ac_compile) 2>&5
12034 ac_status=$?
12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; }; then
12037 # Parse the compiler output and extract the necessary
12038 # objects, libraries and library flags.
12039
12040 # Sentinel used to keep track of whether or not we are before
12041 # the conftest object file.
12042 pre_test_object_deps_done=no
12043
12044 for p in `eval "$output_verbose_link_cmd"`; do
12045 case $p in
12046
12047 -L* | -R* | -l*)
12048 # Some compilers place space between "-{L,R}" and the path.
12049 # Remove the space.
12050 if test $p = "-L" ||
12051 test $p = "-R"; then
12052 prev=$p
12053 continue
12054 else
12055 prev=
12056 fi
12057
12058 if test "$pre_test_object_deps_done" = no; then
12059 case $p in
12060 -L* | -R*)
12061 # Internal compiler library paths should come after those
12062 # provided the user. The postdeps already come after the
12063 # user supplied libs so there is no need to process them.
12064 if test -z "$compiler_lib_search_path_CXX"; then
12065 compiler_lib_search_path_CXX="${prev}${p}"
12066 else
12067 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12068 fi
12069 ;;
12070 # The "-l" case would never come before the object being
12071 # linked, so don't bother handling this case.
12072 esac
12073 else
12074 if test -z "$postdeps_CXX"; then
12075 postdeps_CXX="${prev}${p}"
12076 else
12077 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12078 fi
12079 fi
12080 ;;
12081
12082 *.$objext)
12083 # This assumes that the test object file only shows up
12084 # once in the compiler output.
12085 if test "$p" = "conftest.$objext"; then
12086 pre_test_object_deps_done=yes
12087 continue
12088 fi
12089
12090 if test "$pre_test_object_deps_done" = no; then
12091 if test -z "$predep_objects_CXX"; then
12092 predep_objects_CXX="$p"
12093 else
12094 predep_objects_CXX="$predep_objects_CXX $p"
12095 fi
12096 else
12097 if test -z "$postdep_objects_CXX"; then
12098 postdep_objects_CXX="$p"
12099 else
12100 postdep_objects_CXX="$postdep_objects_CXX $p"
12101 fi
12102 fi
12103 ;;
12104
12105 *) ;; # Ignore the rest.
12106
12107 esac
12108 done
12109
12110 # Clean up.
12111 rm -f a.out a.exe
12112 else
12113 echo "libtool.m4: error: problem compiling CXX test program"
12114 fi
12115
12116 $RM -f confest.$objext
12117
12118 # PORTME: override above test on systems where it is broken
12119 case $host_os in
12120 interix[3-9]*)
12121 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12122 # hack all around it, let's just trust "g++" to DTRT.
12123 predep_objects_CXX=
12124 postdep_objects_CXX=
12125 postdeps_CXX=
12126 ;;
12127
12128 linux*)
12129 case `$CC -V 2>&1 | sed 5q` in
12130 *Sun\ C*)
12131 # Sun C++ 5.9
12132
12133 # The more standards-conforming stlport4 library is
12134 # incompatible with the Cstd library. Avoid specifying
12135 # it if it's in CXXFLAGS. Ignore libCrun as
12136 # -library=stlport4 depends on it.
12137 case " $CXX $CXXFLAGS " in
12138 *" -library=stlport4 "*)
12139 solaris_use_stlport4=yes
12140 ;;
12141 esac
12142
12143 if test "$solaris_use_stlport4" != yes; then
12144 postdeps_CXX='-library=Cstd -library=Crun'
12145 fi
12146 ;;
12147 esac
12148 ;;
12149
12150 solaris*)
12151 case $cc_basename in
12152 CC*)
12153 # The more standards-conforming stlport4 library is
12154 # incompatible with the Cstd library. Avoid specifying
12155 # it if it's in CXXFLAGS. Ignore libCrun as
12156 # -library=stlport4 depends on it.
12157 case " $CXX $CXXFLAGS " in
12158 *" -library=stlport4 "*)
12159 solaris_use_stlport4=yes
12160 ;;
12161 esac
12162
12163 # Adding this requires a known-good setup of shared libraries for
12164 # Sun compiler versions before 5.6, else PIC objects from an old
12165 # archive will be linked into the output, leading to subtle bugs.
12166 if test "$solaris_use_stlport4" != yes; then
12167 postdeps_CXX='-library=Cstd -library=Crun'
12168 fi
12169 ;;
12170 esac
12171 ;;
12172 esac
12173
12174
12175 case " $postdeps_CXX " in
12176 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12177 esac
12178 compiler_lib_search_dirs_CXX=
12179 if test -n "${compiler_lib_search_path_CXX}"; then
12180 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12181 fi
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 lt_prog_compiler_wl_CXX=
12214 lt_prog_compiler_pic_CXX=
12215 lt_prog_compiler_static_CXX=
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12218 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12219
12220 # C++ specific cases for pic, static, wl, etc.
12221 if test "$GXX" = yes; then
12222 lt_prog_compiler_wl_CXX='-Wl,'
12223 lt_prog_compiler_static_CXX='-static'
12224
12225 case $host_os in
12226 aix*)
12227 # All AIX code is PIC.
12228 if test "$host_cpu" = ia64; then
12229 # AIX 5 now supports IA64 processor
12230 lt_prog_compiler_static_CXX='-Bstatic'
12231 fi
12232 ;;
12233
12234 amigaos*)
12235 case $host_cpu in
12236 powerpc)
12237 # see comment about AmigaOS4 .so support
12238 lt_prog_compiler_pic_CXX='-fPIC'
12239 ;;
12240 m68k)
12241 # FIXME: we need at least 68020 code to build shared libraries, but
12242 # adding the `-m68020' flag to GCC prevents building anything better,
12243 # like `-m68040'.
12244 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12245 ;;
12246 esac
12247 ;;
12248
12249 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12250 # PIC is the default for these OSes.
12251 ;;
12252 mingw* | cygwin* | os2* | pw32* | cegcc*)
12253 # This hack is so that the source file can tell whether it is being
12254 # built for inclusion in a dll (and should export symbols for example).
12255 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12256 # (--disable-auto-import) libraries
12257 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12258 ;;
12259 darwin* | rhapsody*)
12260 # PIC is the default on this platform
12261 # Common symbols not allowed in MH_DYLIB files
12262 lt_prog_compiler_pic_CXX='-fno-common'
12263 ;;
12264 *djgpp*)
12265 # DJGPP does not support shared libraries at all
12266 lt_prog_compiler_pic_CXX=
12267 ;;
12268 interix[3-9]*)
12269 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12270 # Instead, we relocate shared libraries at runtime.
12271 ;;
12272 sysv4*MP*)
12273 if test -d /usr/nec; then
12274 lt_prog_compiler_pic_CXX=-Kconform_pic
12275 fi
12276 ;;
12277 hpux*)
12278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12280 # sets the default TLS model and affects inlining.
12281 case $host_cpu in
12282 hppa*64*)
12283 ;;
12284 *)
12285 lt_prog_compiler_pic_CXX='-fPIC'
12286 ;;
12287 esac
12288 ;;
12289 *qnx* | *nto*)
12290 # QNX uses GNU C++, but need to define -shared option too, otherwise
12291 # it will coredump.
12292 lt_prog_compiler_pic_CXX='-fPIC -shared'
12293 ;;
12294 *)
12295 lt_prog_compiler_pic_CXX='-fPIC'
12296 ;;
12297 esac
12298 else
12299 case $host_os in
12300 aix[4-9]*)
12301 # All AIX code is PIC.
12302 if test "$host_cpu" = ia64; then
12303 # AIX 5 now supports IA64 processor
12304 lt_prog_compiler_static_CXX='-Bstatic'
12305 else
12306 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12307 fi
12308 ;;
12309 chorus*)
12310 case $cc_basename in
12311 cxch68*)
12312 # Green Hills C++ Compiler
12313 # _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"
12314 ;;
12315 esac
12316 ;;
12317 dgux*)
12318 case $cc_basename in
12319 ec++*)
12320 lt_prog_compiler_pic_CXX='-KPIC'
12321 ;;
12322 ghcx*)
12323 # Green Hills C++ Compiler
12324 lt_prog_compiler_pic_CXX='-pic'
12325 ;;
12326 *)
12327 ;;
12328 esac
12329 ;;
12330 freebsd* | dragonfly*)
12331 # FreeBSD uses GNU C++
12332 ;;
12333 hpux9* | hpux10* | hpux11*)
12334 case $cc_basename in
12335 CC*)
12336 lt_prog_compiler_wl_CXX='-Wl,'
12337 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12338 if test "$host_cpu" != ia64; then
12339 lt_prog_compiler_pic_CXX='+Z'
12340 fi
12341 ;;
12342 aCC*)
12343 lt_prog_compiler_wl_CXX='-Wl,'
12344 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12345 case $host_cpu in
12346 hppa*64*|ia64*)
12347 # +Z the default
12348 ;;
12349 *)
12350 lt_prog_compiler_pic_CXX='+Z'
12351 ;;
12352 esac
12353 ;;
12354 *)
12355 ;;
12356 esac
12357 ;;
12358 interix*)
12359 # This is c89, which is MS Visual C++ (no shared libs)
12360 # Anyone wants to do a port?
12361 ;;
12362 irix5* | irix6* | nonstopux*)
12363 case $cc_basename in
12364 CC*)
12365 lt_prog_compiler_wl_CXX='-Wl,'
12366 lt_prog_compiler_static_CXX='-non_shared'
12367 # CC pic flag -KPIC is the default.
12368 ;;
12369 *)
12370 ;;
12371 esac
12372 ;;
12373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12374 case $cc_basename in
12375 KCC*)
12376 # KAI C++ Compiler
12377 lt_prog_compiler_wl_CXX='--backend -Wl,'
12378 lt_prog_compiler_pic_CXX='-fPIC'
12379 ;;
12380 ecpc* )
12381 # old Intel C++ for x86_64 which still supported -KPIC.
12382 lt_prog_compiler_wl_CXX='-Wl,'
12383 lt_prog_compiler_pic_CXX='-KPIC'
12384 lt_prog_compiler_static_CXX='-static'
12385 ;;
12386 icpc* )
12387 # Intel C++, used to be incompatible with GCC.
12388 # ICC 10 doesn't accept -KPIC any more.
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 lt_prog_compiler_pic_CXX='-fPIC'
12391 lt_prog_compiler_static_CXX='-static'
12392 ;;
12393 pgCC* | pgcpp*)
12394 # Portland Group C++ compiler
12395 lt_prog_compiler_wl_CXX='-Wl,'
12396 lt_prog_compiler_pic_CXX='-fpic'
12397 lt_prog_compiler_static_CXX='-Bstatic'
12398 ;;
12399 cxx*)
12400 # Compaq C++
12401 # Make sure the PIC flag is empty. It appears that all Alpha
12402 # Linux and Compaq Tru64 Unix objects are PIC.
12403 lt_prog_compiler_pic_CXX=
12404 lt_prog_compiler_static_CXX='-non_shared'
12405 ;;
12406 xlc* | xlC*)
12407 # IBM XL 8.0 on PPC
12408 lt_prog_compiler_wl_CXX='-Wl,'
12409 lt_prog_compiler_pic_CXX='-qpic'
12410 lt_prog_compiler_static_CXX='-qstaticlink'
12411 ;;
12412 *)
12413 case `$CC -V 2>&1 | sed 5q` in
12414 *Sun\ C*)
12415 # Sun C++ 5.9
12416 lt_prog_compiler_pic_CXX='-KPIC'
12417 lt_prog_compiler_static_CXX='-Bstatic'
12418 lt_prog_compiler_wl_CXX='-Qoption ld '
12419 ;;
12420 esac
12421 ;;
12422 esac
12423 ;;
12424 lynxos*)
12425 ;;
12426 m88k*)
12427 ;;
12428 mvs*)
12429 case $cc_basename in
12430 cxx*)
12431 lt_prog_compiler_pic_CXX='-W c,exportall'
12432 ;;
12433 *)
12434 ;;
12435 esac
12436 ;;
12437 netbsd* | netbsdelf*-gnu)
12438 ;;
12439 *qnx* | *nto*)
12440 # QNX uses GNU C++, but need to define -shared option too, otherwise
12441 # it will coredump.
12442 lt_prog_compiler_pic_CXX='-fPIC -shared'
12443 ;;
12444 osf3* | osf4* | osf5*)
12445 case $cc_basename in
12446 KCC*)
12447 lt_prog_compiler_wl_CXX='--backend -Wl,'
12448 ;;
12449 RCC*)
12450 # Rational C++ 2.4.1
12451 lt_prog_compiler_pic_CXX='-pic'
12452 ;;
12453 cxx*)
12454 # Digital/Compaq C++
12455 lt_prog_compiler_wl_CXX='-Wl,'
12456 # Make sure the PIC flag is empty. It appears that all Alpha
12457 # Linux and Compaq Tru64 Unix objects are PIC.
12458 lt_prog_compiler_pic_CXX=
12459 lt_prog_compiler_static_CXX='-non_shared'
12460 ;;
12461 *)
12462 ;;
12463 esac
12464 ;;
12465 psos*)
12466 ;;
12467 solaris*)
12468 case $cc_basename in
12469 CC*)
12470 # Sun C++ 4.2, 5.x and Centerline C++
12471 lt_prog_compiler_pic_CXX='-KPIC'
12472 lt_prog_compiler_static_CXX='-Bstatic'
12473 lt_prog_compiler_wl_CXX='-Qoption ld '
12474 ;;
12475 gcx*)
12476 # Green Hills C++ Compiler
12477 lt_prog_compiler_pic_CXX='-PIC'
12478 ;;
12479 *)
12480 ;;
12481 esac
12482 ;;
12483 sunos4*)
12484 case $cc_basename in
12485 CC*)
12486 # Sun C++ 4.x
12487 lt_prog_compiler_pic_CXX='-pic'
12488 lt_prog_compiler_static_CXX='-Bstatic'
12489 ;;
12490 lcc*)
12491 # Lucid
12492 lt_prog_compiler_pic_CXX='-pic'
12493 ;;
12494 *)
12495 ;;
12496 esac
12497 ;;
12498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12499 case $cc_basename in
12500 CC*)
12501 lt_prog_compiler_wl_CXX='-Wl,'
12502 lt_prog_compiler_pic_CXX='-KPIC'
12503 lt_prog_compiler_static_CXX='-Bstatic'
12504 ;;
12505 esac
12506 ;;
12507 tandem*)
12508 case $cc_basename in
12509 NCC*)
12510 # NonStop-UX NCC 3.20
12511 lt_prog_compiler_pic_CXX='-KPIC'
12512 ;;
12513 *)
12514 ;;
12515 esac
12516 ;;
12517 vxworks*)
12518 ;;
12519 *)
12520 lt_prog_compiler_can_build_shared_CXX=no
12521 ;;
12522 esac
12523 fi
12524
12525 case $host_os in
12526 # For platforms which do not support PIC, -DPIC is meaningless:
12527 *djgpp*)
12528 lt_prog_compiler_pic_CXX=
12529 ;;
12530 *)
12531 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12532 ;;
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12535 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12536
12537
12538
12539 #
12540 # Check to make sure the PIC flag actually works.
12541 #
12542 if test -n "$lt_prog_compiler_pic_CXX"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12545 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 lt_cv_prog_compiler_pic_works_CXX=no
12549 ac_outfile=conftest.$ac_objext
12550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12551 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 # The option is referenced via a variable to avoid confusing sed.
12557 lt_compile=`echo "$ac_compile" | $SED \
12558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12560 -e 's:$: $lt_compiler_flag:'`
12561 (eval echo "\"\$as_me:12561: $lt_compile\"" >&5)
12562 (eval "$lt_compile" 2>conftest.err)
12563 ac_status=$?
12564 cat conftest.err >&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 if (exit $ac_status) && test -s "$ac_outfile"; then
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings other than the usual output.
12569 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_pic_works_CXX=yes
12573 fi
12574 fi
12575 $RM conftest*
12576
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12579 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12580
12581 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12582 case $lt_prog_compiler_pic_CXX in
12583 "" | " "*) ;;
12584 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12585 esac
12586 else
12587 lt_prog_compiler_pic_CXX=
12588 lt_prog_compiler_can_build_shared_CXX=no
12589 fi
12590
12591 fi
12592
12593
12594
12595 #
12596 # Check to make sure the static flag actually works.
12597 #
12598 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12601 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 lt_cv_prog_compiler_static_works_CXX=no
12605 save_LDFLAGS="$LDFLAGS"
12606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12609 # The linker can only warn and ignore the option if not recognized
12610 # So say no if there are warnings
12611 if test -s conftest.err; then
12612 # Append any errors to the config.log.
12613 cat conftest.err 1>&5
12614 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12616 if diff conftest.exp conftest.er2 >/dev/null; then
12617 lt_cv_prog_compiler_static_works_CXX=yes
12618 fi
12619 else
12620 lt_cv_prog_compiler_static_works_CXX=yes
12621 fi
12622 fi
12623 $RM -r conftest*
12624 LDFLAGS="$save_LDFLAGS"
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12628 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12629
12630 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12631 :
12632 else
12633 lt_prog_compiler_static_CXX=
12634 fi
12635
12636
12637
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12641 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 lt_cv_prog_compiler_c_o_CXX=no
12645 $RM -r conftest 2>/dev/null
12646 mkdir conftest
12647 cd conftest
12648 mkdir out
12649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12650
12651 lt_compiler_flag="-o out/conftest2.$ac_objext"
12652 # Insert the option either (1) after the last *FLAGS variable, or
12653 # (2) before a word containing "conftest.", or (3) at the end.
12654 # Note that $ac_compile itself does not contain backslashes and begins
12655 # with a dollar sign (not a hyphen), so the echo should work correctly.
12656 lt_compile=`echo "$ac_compile" | $SED \
12657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12659 -e 's:$: $lt_compiler_flag:'`
12660 (eval echo "\"\$as_me:12660: $lt_compile\"" >&5)
12661 (eval "$lt_compile" 2>out/conftest.err)
12662 ac_status=$?
12663 cat out/conftest.err >&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12666 then
12667 # The compiler can only warn and ignore the option if not recognized
12668 # So say no if there are warnings
12669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12672 lt_cv_prog_compiler_c_o_CXX=yes
12673 fi
12674 fi
12675 chmod u+w . 2>&5
12676 $RM conftest*
12677 # SGI C++ compiler will create directory out/ii_files/ for
12678 # template instantiation
12679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12680 $RM out/* && rmdir out
12681 cd ..
12682 $RM -r conftest
12683 $RM conftest*
12684
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12687 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12688
12689
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12693 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 lt_cv_prog_compiler_c_o_CXX=no
12697 $RM -r conftest 2>/dev/null
12698 mkdir conftest
12699 cd conftest
12700 mkdir out
12701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12702
12703 lt_compiler_flag="-o out/conftest2.$ac_objext"
12704 # Insert the option either (1) after the last *FLAGS variable, or
12705 # (2) before a word containing "conftest.", or (3) at the end.
12706 # Note that $ac_compile itself does not contain backslashes and begins
12707 # with a dollar sign (not a hyphen), so the echo should work correctly.
12708 lt_compile=`echo "$ac_compile" | $SED \
12709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711 -e 's:$: $lt_compiler_flag:'`
12712 (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
12713 (eval "$lt_compile" 2>out/conftest.err)
12714 ac_status=$?
12715 cat out/conftest.err >&5
12716 echo "$as_me:12716: \$? = $ac_status" >&5
12717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12718 then
12719 # The compiler can only warn and ignore the option if not recognized
12720 # So say no if there are warnings
12721 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12724 lt_cv_prog_compiler_c_o_CXX=yes
12725 fi
12726 fi
12727 chmod u+w . 2>&5
12728 $RM conftest*
12729 # SGI C++ compiler will create directory out/ii_files/ for
12730 # template instantiation
12731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12732 $RM out/* && rmdir out
12733 cd ..
12734 $RM -r conftest
12735 $RM conftest*
12736
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12739 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12740
12741
12742
12743
12744 hard_links="nottested"
12745 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12746 # do not overwrite the value of need_locks provided by the user
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12748 $as_echo_n "checking if we can lock with hard links... " >&6; }
12749 hard_links=yes
12750 $RM conftest*
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 touch conftest.a
12753 ln conftest.a conftest.b 2>&5 || hard_links=no
12754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12756 $as_echo "$hard_links" >&6; }
12757 if test "$hard_links" = no; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12759 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12760 need_locks=warn
12761 fi
12762 else
12763 need_locks=no
12764 fi
12765
12766
12767
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12770
12771 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12772 case $host_os in
12773 aix[4-9]*)
12774 # If we're using GNU nm, then we don't want the "-C" option.
12775 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12776 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12777 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'
12778 else
12779 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'
12780 fi
12781 ;;
12782 pw32*)
12783 export_symbols_cmds_CXX="$ltdll_cmds"
12784 ;;
12785 cygwin* | mingw* | cegcc*)
12786 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'
12787 ;;
12788 linux* | k*bsd*-gnu)
12789 link_all_deplibs_CXX=no
12790 ;;
12791 *)
12792 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12793 ;;
12794 esac
12795 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12798 $as_echo "$ld_shlibs_CXX" >&6; }
12799 test "$ld_shlibs_CXX" = no && can_build_shared=no
12800
12801 with_gnu_ld_CXX=$with_gnu_ld
12802
12803
12804
12805
12806
12807
12808 #
12809 # Do we need to explicitly link libc?
12810 #
12811 case "x$archive_cmds_need_lc_CXX" in
12812 x|xyes)
12813 # Assume -lc should be added
12814 archive_cmds_need_lc_CXX=yes
12815
12816 if test "$enable_shared" = yes && test "$GCC" = yes; then
12817 case $archive_cmds_CXX in
12818 *'~'*)
12819 # FIXME: we may have to deal with multi-command sequences.
12820 ;;
12821 '$CC '*)
12822 # Test whether the compiler implicitly links with -lc since on some
12823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12824 # to ld, don't add -lc before -lgcc.
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12827 $RM conftest*
12828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12829
12830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12831 (eval $ac_compile) 2>&5
12832 ac_status=$?
12833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834 test $ac_status = 0; } 2>conftest.err; then
12835 soname=conftest
12836 lib=conftest
12837 libobjs=conftest.$ac_objext
12838 deplibs=
12839 wl=$lt_prog_compiler_wl_CXX
12840 pic_flag=$lt_prog_compiler_pic_CXX
12841 compiler_flags=-v
12842 linker_flags=-v
12843 verstring=
12844 output_objdir=.
12845 libname=conftest
12846 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12847 allow_undefined_flag_CXX=
12848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12849 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852 test $ac_status = 0; }
12853 then
12854 archive_cmds_need_lc_CXX=no
12855 else
12856 archive_cmds_need_lc_CXX=yes
12857 fi
12858 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12859 else
12860 cat conftest.err 1>&5
12861 fi
12862 $RM conftest*
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12864 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12865 ;;
12866 esac
12867 fi
12868 ;;
12869 esac
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12935 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12936
12937 library_names_spec=
12938 libname_spec='lib$name'
12939 soname_spec=
12940 shrext_cmds=".so"
12941 postinstall_cmds=
12942 postuninstall_cmds=
12943 finish_cmds=
12944 finish_eval=
12945 shlibpath_var=
12946 shlibpath_overrides_runpath=unknown
12947 version_type=none
12948 dynamic_linker="$host_os ld.so"
12949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12950 need_lib_prefix=unknown
12951 hardcode_into_libs=no
12952
12953 # when you set need_version to no, make sure it does not cause -set_version
12954 # flags to be left without arguments
12955 need_version=unknown
12956
12957 case $host_os in
12958 aix3*)
12959 version_type=linux
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12961 shlibpath_var=LIBPATH
12962
12963 # AIX 3 has no versioning support, so we append a major version to the name.
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 ;;
12966
12967 aix[4-9]*)
12968 version_type=linux
12969 need_lib_prefix=no
12970 need_version=no
12971 hardcode_into_libs=yes
12972 if test "$host_cpu" = ia64; then
12973 # AIX 5 supports IA64
12974 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 else
12977 # With GCC up to 2.95.x, collect2 would create an import file
12978 # for dependence libraries. The import file would start with
12979 # the line `#! .'. This would cause the generated library to
12980 # depend on `.', always an invalid library. This was fixed in
12981 # development snapshots of GCC prior to 3.0.
12982 case $host_os in
12983 aix4 | aix4.[01] | aix4.[01].*)
12984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12985 echo ' yes '
12986 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12987 :
12988 else
12989 can_build_shared=no
12990 fi
12991 ;;
12992 esac
12993 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12994 # soname into executable. Probably we can add versioning support to
12995 # collect2, so additional links can be useful in future.
12996 if test "$aix_use_runtimelinking" = yes; then
12997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12998 # instead of lib<name>.a to let people know that these are not
12999 # typical AIX shared libraries.
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 else
13002 # We preserve .a as extension for shared libraries through AIX4.2
13003 # and later when we are not doing run time linking.
13004 library_names_spec='${libname}${release}.a $libname.a'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 fi
13007 shlibpath_var=LIBPATH
13008 fi
13009 ;;
13010
13011 amigaos*)
13012 case $host_cpu in
13013 powerpc)
13014 # Since July 2007 AmigaOS4 officially supports .so libraries.
13015 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 ;;
13018 m68k)
13019 library_names_spec='$libname.ixlibrary $libname.a'
13020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13021 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'
13022 ;;
13023 esac
13024 ;;
13025
13026 beos*)
13027 library_names_spec='${libname}${shared_ext}'
13028 dynamic_linker="$host_os ld.so"
13029 shlibpath_var=LIBRARY_PATH
13030 ;;
13031
13032 bsdi[45]*)
13033 version_type=linux
13034 need_version=no
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13036 soname_spec='${libname}${release}${shared_ext}$major'
13037 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13040 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13041 # the default ld.so.conf also contains /usr/contrib/lib and
13042 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13043 # libtool to hard-code these into programs
13044 ;;
13045
13046 cygwin* | mingw* | pw32* | cegcc*)
13047 version_type=windows
13048 shrext_cmds=".dll"
13049 need_version=no
13050 need_lib_prefix=no
13051
13052 case $GCC,$host_os in
13053 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13054 library_names_spec='$libname.dll.a'
13055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13056 postinstall_cmds='base_file=`basename \${file}`~
13057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13058 dldir=$destdir/`dirname \$dlpath`~
13059 test -d \$dldir || mkdir -p \$dldir~
13060 $install_prog $dir/$dlname \$dldir/$dlname~
13061 chmod a+x \$dldir/$dlname~
13062 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13063 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13064 fi'
13065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13066 dlpath=$dir/\$dldll~
13067 $RM \$dlpath'
13068 shlibpath_overrides_runpath=yes
13069
13070 case $host_os in
13071 cygwin*)
13072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13073 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13075 ;;
13076 mingw* | cegcc*)
13077 # MinGW DLLs use traditional 'lib' prefix
13078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13079 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13081 # It is most probably a Windows format PATH printed by
13082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13083 # path with ; separators, and with drive letters. We can handle the
13084 # drive letters (cygwin fileutils understands them), so leave them,
13085 # especially as we might pass files found there to a mingw objdump,
13086 # which wouldn't understand a cygwinified path. Ahh.
13087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13088 else
13089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13090 fi
13091 ;;
13092 pw32*)
13093 # pw32 DLLs use 'pw' prefix rather than 'lib'
13094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095 ;;
13096 esac
13097 ;;
13098
13099 *)
13100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13101 ;;
13102 esac
13103 dynamic_linker='Win32 ld.exe'
13104 # FIXME: first we should search . and the directory the executable is in
13105 shlibpath_var=PATH
13106 ;;
13107
13108 darwin* | rhapsody*)
13109 dynamic_linker="$host_os dyld"
13110 version_type=darwin
13111 need_lib_prefix=no
13112 need_version=no
13113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13114 soname_spec='${libname}${release}${major}$shared_ext'
13115 shlibpath_overrides_runpath=yes
13116 shlibpath_var=DYLD_LIBRARY_PATH
13117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13118
13119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13120 ;;
13121
13122 dgux*)
13123 version_type=linux
13124 need_lib_prefix=no
13125 need_version=no
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 ;;
13130
13131 freebsd1*)
13132 dynamic_linker=no
13133 ;;
13134
13135 freebsd* | dragonfly*)
13136 # DragonFly does not have aout. When/if they implement a new
13137 # versioning mechanism, adjust this.
13138 if test -x /usr/bin/objformat; then
13139 objformat=`/usr/bin/objformat`
13140 else
13141 case $host_os in
13142 freebsd[123]*) objformat=aout ;;
13143 *) objformat=elf ;;
13144 esac
13145 fi
13146 version_type=freebsd-$objformat
13147 case $version_type in
13148 freebsd-elf*)
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13150 need_version=no
13151 need_lib_prefix=no
13152 ;;
13153 freebsd-*)
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13155 need_version=yes
13156 ;;
13157 esac
13158 shlibpath_var=LD_LIBRARY_PATH
13159 case $host_os in
13160 freebsd2*)
13161 shlibpath_overrides_runpath=yes
13162 ;;
13163 freebsd3.[01]* | freebsdelf3.[01]*)
13164 shlibpath_overrides_runpath=yes
13165 hardcode_into_libs=yes
13166 ;;
13167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13169 shlibpath_overrides_runpath=no
13170 hardcode_into_libs=yes
13171 ;;
13172 *) # from 4.6 on, and DragonFly
13173 shlibpath_overrides_runpath=yes
13174 hardcode_into_libs=yes
13175 ;;
13176 esac
13177 ;;
13178
13179 gnu*)
13180 version_type=linux
13181 need_lib_prefix=no
13182 need_version=no
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 hardcode_into_libs=yes
13187 ;;
13188
13189 hpux9* | hpux10* | hpux11*)
13190 # Give a soname corresponding to the major version so that dld.sl refuses to
13191 # link against other versions.
13192 version_type=sunos
13193 need_lib_prefix=no
13194 need_version=no
13195 case $host_cpu in
13196 ia64*)
13197 shrext_cmds='.so'
13198 hardcode_into_libs=yes
13199 dynamic_linker="$host_os dld.so"
13200 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 if test "X$HPUX_IA64_MODE" = X32; then
13205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13206 else
13207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13208 fi
13209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13210 ;;
13211 hppa*64*)
13212 shrext_cmds='.sl'
13213 hardcode_into_libs=yes
13214 dynamic_linker="$host_os dld.sl"
13215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221 ;;
13222 *)
13223 shrext_cmds='.sl'
13224 dynamic_linker="$host_os dld.sl"
13225 shlibpath_var=SHLIB_PATH
13226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 ;;
13230 esac
13231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13232 postinstall_cmds='chmod 555 $lib'
13233 ;;
13234
13235 interix[3-9]*)
13236 version_type=linux
13237 need_lib_prefix=no
13238 need_version=no
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=no
13244 hardcode_into_libs=yes
13245 ;;
13246
13247 irix5* | irix6* | nonstopux*)
13248 case $host_os in
13249 nonstopux*) version_type=nonstopux ;;
13250 *)
13251 if test "$lt_cv_prog_gnu_ld" = yes; then
13252 version_type=linux
13253 else
13254 version_type=irix
13255 fi ;;
13256 esac
13257 need_lib_prefix=no
13258 need_version=no
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13261 case $host_os in
13262 irix5* | nonstopux*)
13263 libsuff= shlibsuff=
13264 ;;
13265 *)
13266 case $LD in # libtool.m4 will add one of these switches to LD
13267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13268 libsuff= shlibsuff= libmagic=32-bit;;
13269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13270 libsuff=32 shlibsuff=N32 libmagic=N32;;
13271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13273 *) libsuff= shlibsuff= libmagic=never-match;;
13274 esac
13275 ;;
13276 esac
13277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13278 shlibpath_overrides_runpath=no
13279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13281 hardcode_into_libs=yes
13282 ;;
13283
13284 # No shared lib support for Linux oldld, aout, or coff.
13285 linux*oldld* | linux*aout* | linux*coff*)
13286 dynamic_linker=no
13287 ;;
13288
13289 # This must be Linux ELF.
13290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13291 version_type=linux
13292 need_lib_prefix=no
13293 need_version=no
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 # Some binutils ld are patched to set DT_RUNPATH
13300 save_LDFLAGS=$LDFLAGS
13301 save_libdir=$libdir
13302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306
13307 int
13308 main ()
13309 {
13310
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_cxx_try_link "$LINENO"; then :
13316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13317 shlibpath_overrides_runpath=yes
13318 fi
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LDFLAGS=$save_LDFLAGS
13323 libdir=$save_libdir
13324
13325 # This implies no fast_install, which is unacceptable.
13326 # Some rework will be needed to allow for fast_install
13327 # before this can be enabled.
13328 hardcode_into_libs=yes
13329
13330 # Append ld.so.conf contents to the search path
13331 if test -f /etc/ld.so.conf; then
13332 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' ' '`
13333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13334 fi
13335
13336 # We used to test for /lib/ld.so.1 and disable shared libraries on
13337 # powerpc, because MkLinux only supported shared libraries with the
13338 # GNU dynamic linker. Since this was broken with cross compilers,
13339 # most powerpc-linux boxes support dynamic linking these days and
13340 # people can always --disable-shared, the test was removed, and we
13341 # assume the GNU/Linux dynamic linker is in use.
13342 dynamic_linker='GNU/Linux ld.so'
13343 ;;
13344
13345 netbsdelf*-gnu)
13346 version_type=linux
13347 need_lib_prefix=no
13348 need_version=no
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=no
13353 hardcode_into_libs=yes
13354 dynamic_linker='NetBSD ld.elf_so'
13355 ;;
13356
13357 netbsd*)
13358 version_type=sunos
13359 need_lib_prefix=no
13360 need_version=no
13361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13364 dynamic_linker='NetBSD (a.out) ld.so'
13365 else
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 dynamic_linker='NetBSD ld.elf_so'
13369 fi
13370 shlibpath_var=LD_LIBRARY_PATH
13371 shlibpath_overrides_runpath=yes
13372 hardcode_into_libs=yes
13373 ;;
13374
13375 newsos6)
13376 version_type=linux
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=yes
13380 ;;
13381
13382 *nto* | *qnx*)
13383 version_type=qnx
13384 need_lib_prefix=no
13385 need_version=no
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 shlibpath_overrides_runpath=no
13390 hardcode_into_libs=yes
13391 dynamic_linker='ldqnx.so'
13392 ;;
13393
13394 openbsd*)
13395 version_type=sunos
13396 sys_lib_dlsearch_path_spec="/usr/lib"
13397 need_lib_prefix=no
13398 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13399 case $host_os in
13400 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13401 *) need_version=no ;;
13402 esac
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13407 case $host_os in
13408 openbsd2.[89] | openbsd2.[89].*)
13409 shlibpath_overrides_runpath=no
13410 ;;
13411 *)
13412 shlibpath_overrides_runpath=yes
13413 ;;
13414 esac
13415 else
13416 shlibpath_overrides_runpath=yes
13417 fi
13418 ;;
13419
13420 os2*)
13421 libname_spec='$name'
13422 shrext_cmds=".dll"
13423 need_lib_prefix=no
13424 library_names_spec='$libname${shared_ext} $libname.a'
13425 dynamic_linker='OS/2 ld.exe'
13426 shlibpath_var=LIBPATH
13427 ;;
13428
13429 osf3* | osf4* | osf5*)
13430 version_type=osf
13431 need_lib_prefix=no
13432 need_version=no
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13437 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13438 ;;
13439
13440 rdos*)
13441 dynamic_linker=no
13442 ;;
13443
13444 solaris*)
13445 version_type=linux
13446 need_lib_prefix=no
13447 need_version=no
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=yes
13452 hardcode_into_libs=yes
13453 # ldd complains unless libraries are executable
13454 postinstall_cmds='chmod +x $lib'
13455 ;;
13456
13457 sunos4*)
13458 version_type=sunos
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13463 if test "$with_gnu_ld" = yes; then
13464 need_lib_prefix=no
13465 fi
13466 need_version=yes
13467 ;;
13468
13469 sysv4 | sysv4.3*)
13470 version_type=linux
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 case $host_vendor in
13475 sni)
13476 shlibpath_overrides_runpath=no
13477 need_lib_prefix=no
13478 runpath_var=LD_RUN_PATH
13479 ;;
13480 siemens)
13481 need_lib_prefix=no
13482 ;;
13483 motorola)
13484 need_lib_prefix=no
13485 need_version=no
13486 shlibpath_overrides_runpath=no
13487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13488 ;;
13489 esac
13490 ;;
13491
13492 sysv4*MP*)
13493 if test -d /usr/nec ;then
13494 version_type=linux
13495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13496 soname_spec='$libname${shared_ext}.$major'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 fi
13499 ;;
13500
13501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13502 version_type=freebsd-elf
13503 need_lib_prefix=no
13504 need_version=no
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13506 soname_spec='${libname}${release}${shared_ext}$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 shlibpath_overrides_runpath=yes
13509 hardcode_into_libs=yes
13510 if test "$with_gnu_ld" = yes; then
13511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13512 else
13513 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13514 case $host_os in
13515 sco3.2v5*)
13516 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13517 ;;
13518 esac
13519 fi
13520 sys_lib_dlsearch_path_spec='/usr/lib'
13521 ;;
13522
13523 tpf*)
13524 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13525 version_type=linux
13526 need_lib_prefix=no
13527 need_version=no
13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=no
13531 hardcode_into_libs=yes
13532 ;;
13533
13534 uts4*)
13535 version_type=linux
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 ;;
13540
13541 *)
13542 dynamic_linker=no
13543 ;;
13544 esac
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13546 $as_echo "$dynamic_linker" >&6; }
13547 test "$dynamic_linker" = no && can_build_shared=no
13548
13549 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13550 if test "$GCC" = yes; then
13551 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13552 fi
13553
13554 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13555 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13556 fi
13557 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13558 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13559 fi
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13598 hardcode_action_CXX=
13599 if test -n "$hardcode_libdir_flag_spec_CXX" ||
13600 test -n "$runpath_var_CXX" ||
13601 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13602
13603 # We can hardcode non-existent directories.
13604 if test "$hardcode_direct_CXX" != no &&
13605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13606 # have to relink, otherwise we might link with an installed library
13607 # when we should be linking with a yet-to-be-installed one
13608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13609 test "$hardcode_minus_L_CXX" != no; then
13610 # Linking always hardcodes the temporary library directory.
13611 hardcode_action_CXX=relink
13612 else
13613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13614 hardcode_action_CXX=immediate
13615 fi
13616 else
13617 # We cannot hardcode anything, or else we can only hardcode existing
13618 # directories.
13619 hardcode_action_CXX=unsupported
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13622 $as_echo "$hardcode_action_CXX" >&6; }
13623
13624 if test "$hardcode_action_CXX" = relink ||
13625 test "$inherit_rpath_CXX" = yes; then
13626 # Fast installation is not supported
13627 enable_fast_install=no
13628 elif test "$shlibpath_overrides_runpath" = yes ||
13629 test "$enable_shared" = no; then
13630 # Fast installation is not necessary
13631 enable_fast_install=needless
13632 fi
13633
13634
13635
13636
13637
13638
13639
13640 fi # test -n "$compiler"
13641
13642 CC=$lt_save_CC
13643 LDCXX=$LD
13644 LD=$lt_save_LD
13645 GCC=$lt_save_GCC
13646 with_gnu_ld=$lt_save_with_gnu_ld
13647 lt_cv_path_LDCXX=$lt_cv_path_LD
13648 lt_cv_path_LD=$lt_save_path_LD
13649 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13650 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13651 fi # test "$_lt_caught_CXX_error" != yes
13652
13653 ac_ext=c
13654 ac_cpp='$CPP $CPPFLAGS'
13655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13658
13659
13660 ac_ext=cpp
13661 ac_cpp='$CXXCPP $CPPFLAGS'
13662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13665
13666 for ac_prog in 'bison -y' byacc
13667 do
13668 # Extract the first word of "$ac_prog", so it can be a program name with args.
13669 set dummy $ac_prog; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if test "${ac_cv_prog_YACC+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 if test -n "$YACC"; then
13676 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13677 else
13678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679 for as_dir in $PATH
13680 do
13681 IFS=$as_save_IFS
13682 test -z "$as_dir" && as_dir=.
13683 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13685 ac_cv_prog_YACC="$ac_prog"
13686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13687 break 2
13688 fi
13689 done
13690 done
13691 IFS=$as_save_IFS
13692
13693 fi
13694 fi
13695 YACC=$ac_cv_prog_YACC
13696 if test -n "$YACC"; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13698 $as_echo "$YACC" >&6; }
13699 else
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703
13704
13705 test -n "$YACC" && break
13706 done
13707 test -n "$YACC" || YACC="yacc"
13708
13709
13710
13711
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13714 $as_echo_n "checking if bison is the parser generator... " >&6; }
13715 if test "${ax_cv_prog_bison+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718
13719 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
13720
13721 ax_cv_prog_bison=yes
13722
13723 else
13724
13725 ax_cv_prog_bison=no
13726
13727 fi
13728
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13731 $as_echo "$ax_cv_prog_bison" >&6; }
13732 if test "$ax_cv_prog_bison" = yes; then :
13733
13734 :
13735
13736 BISON=`echo $YACC | $SED -e 's/ -y//'`
13737 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
13738
13739
13740 else
13741
13742 :
13743 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
13744
13745 fi
13746
13747 for ac_prog in gawk mawk nawk awk
13748 do
13749 # Extract the first word of "$ac_prog", so it can be a program name with args.
13750 set dummy $ac_prog; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if test "${ac_cv_prog_AWK+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 if test -n "$AWK"; then
13757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766 ac_cv_prog_AWK="$ac_prog"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770 done
13771 done
13772 IFS=$as_save_IFS
13773
13774 fi
13775 fi
13776 AWK=$ac_cv_prog_AWK
13777 if test -n "$AWK"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13779 $as_echo "$AWK" >&6; }
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 fi
13784
13785
13786 test -n "$AWK" && break
13787 done
13788
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5
13790 $as_echo_n "checking if bison is >= 2.3... " >&6; }
13791 as_arg_v1=$BISON_VERSION
13792 as_arg_v2=2.3
13793 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13794 case $? in #(
13795 1) :
13796
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
13800 ;; #(
13801 0) :
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13803 $as_echo "yes" >&6; } ;; #(
13804 2) :
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13806 $as_echo "yes" >&6; } ;; #(
13807 *) :
13808 ;;
13809 esac
13810
13811 # expand $ac_aux_dir to an absolute path
13812 am_aux_dir=`cd $ac_aux_dir && pwd`
13813
13814 if test x"${MISSING+set}" != xset; then
13815 case $am_aux_dir in
13816 *\ * | *\ *)
13817 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13818 *)
13819 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13820 esac
13821 fi
13822 # Use eval to expand $SHELL
13823 if eval "$MISSING --run true"; then
13824 am_missing_run="$MISSING --run "
13825 else
13826 am_missing_run=
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13828 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13829 fi
13830
13831 for ac_prog in flex lex
13832 do
13833 # Extract the first word of "$ac_prog", so it can be a program name with args.
13834 set dummy $ac_prog; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_prog_LEX+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 if test -n "$LEX"; then
13841 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_prog_LEX="$ac_prog"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13853 fi
13854 done
13855 done
13856 IFS=$as_save_IFS
13857
13858 fi
13859 fi
13860 LEX=$ac_cv_prog_LEX
13861 if test -n "$LEX"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13863 $as_echo "$LEX" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13867 fi
13868
13869
13870 test -n "$LEX" && break
13871 done
13872 test -n "$LEX" || LEX=":"
13873
13874 if test "x$LEX" != "x:"; then
13875 cat >conftest.l <<_ACEOF
13876 %%
13877 a { ECHO; }
13878 b { REJECT; }
13879 c { yymore (); }
13880 d { yyless (1); }
13881 e { yyless (input () != 0); }
13882 f { unput (yytext[0]); }
13883 . { BEGIN INITIAL; }
13884 %%
13885 #ifdef YYTEXT_POINTER
13886 extern char *yytext;
13887 #endif
13888 int
13889 main (void)
13890 {
13891 return ! yylex () + ! yywrap ();
13892 }
13893 _ACEOF
13894 { { ac_try="$LEX conftest.l"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13900 $as_echo "$ac_try_echo"; } >&5
13901 (eval "$LEX conftest.l") 2>&5
13902 ac_status=$?
13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13906 $as_echo_n "checking lex output file root... " >&6; }
13907 if test "${ac_cv_prog_lex_root+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910
13911 if test -f lex.yy.c; then
13912 ac_cv_prog_lex_root=lex.yy
13913 elif test -f lexyy.c; then
13914 ac_cv_prog_lex_root=lexyy
13915 else
13916 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13917 fi
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13920 $as_echo "$ac_cv_prog_lex_root" >&6; }
13921 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13922
13923 if test -z "${LEXLIB+set}"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13925 $as_echo_n "checking lex library... " >&6; }
13926 if test "${ac_cv_lib_lex+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929
13930 ac_save_LIBS=$LIBS
13931 ac_cv_lib_lex='none needed'
13932 for ac_lib in '' -lfl -ll; do
13933 LIBS="$ac_lib $ac_save_LIBS"
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 `cat $LEX_OUTPUT_ROOT.c`
13937 _ACEOF
13938 if ac_fn_cxx_try_link "$LINENO"; then :
13939 ac_cv_lib_lex=$ac_lib
13940 fi
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 test "$ac_cv_lib_lex" != 'none needed' && break
13944 done
13945 LIBS=$ac_save_LIBS
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13949 $as_echo "$ac_cv_lib_lex" >&6; }
13950 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13951 fi
13952
13953
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13955 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13956 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 # POSIX says lex can declare yytext either as a pointer or an array; the
13960 # default is implementation-dependent. Figure out which it is, since
13961 # not all implementations provide the %pointer and %array declarations.
13962 ac_cv_prog_lex_yytext_pointer=no
13963 ac_save_LIBS=$LIBS
13964 LIBS="$LEXLIB $ac_save_LIBS"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13967 #define YYTEXT_POINTER 1
13968 `cat $LEX_OUTPUT_ROOT.c`
13969 _ACEOF
13970 if ac_fn_cxx_try_link "$LINENO"; then :
13971 ac_cv_prog_lex_yytext_pointer=yes
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_save_LIBS
13976
13977 fi
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13979 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13980 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13981
13982 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13983
13984 fi
13985 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13986
13987 fi
13988 if test "$LEX" = :; then
13989 LEX=${am_missing_run}flex
13990 fi
13991
13992
13993
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
13996 $as_echo_n "checking if flex is the lexer generator... " >&6; }
13997 if test "${ax_cv_prog_flex+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000
14001 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
14002
14003 ax_cv_prog_flex=yes
14004
14005 else
14006
14007 ax_cv_prog_flex=no
14008
14009 fi
14010
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
14013 $as_echo "$ax_cv_prog_flex" >&6; }
14014 if test "$ax_cv_prog_flex" = yes; then :
14015
14016 :
14017
14018 FLEX=$LEX
14019 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14020
14021
14022 else
14023
14024 :
14025 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14026
14027 fi
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
14030 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
14031 as_arg_v1=$FLEX_VERSION
14032 as_arg_v2=2.5.33
14033 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14034 case $? in #(
14035 1) :
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 $as_echo "no" >&6; }
14039 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14040 ;; #(
14041 0) :
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14043 $as_echo "yes" >&6; } ;; #(
14044 2) :
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14046 $as_echo "yes" >&6; } ;; #(
14047 *) :
14048 ;;
14049 esac
14050
14051 for ac_prog in bash
14052 do
14053 # Extract the first word of "$ac_prog", so it can be a program name with args.
14054 set dummy $ac_prog; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if test "${ac_cv_prog__BASH+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test -n "$_BASH"; then
14061 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14065 do
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070 ac_cv_prog__BASH="$ac_prog"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14073 fi
14074 done
14075 done
14076 IFS=$as_save_IFS
14077
14078 fi
14079 fi
14080 _BASH=$ac_cv_prog__BASH
14081 if test -n "$_BASH"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14083 $as_echo "$_BASH" >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14087 fi
14088
14089
14090 test -n "$_BASH" && break
14091 done
14092
14093
14094 for ac_prog in gperf
14095 do
14096 # Extract the first word of "$ac_prog", so it can be a program name with args.
14097 set dummy $ac_prog; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if test "${ac_cv_prog_GPERF+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 if test -n "$GPERF"; then
14104 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14108 do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_GPERF="$ac_prog"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14120
14121 fi
14122 fi
14123 GPERF=$ac_cv_prog_GPERF
14124 if test -n "$GPERF"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14126 $as_echo "$GPERF" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132
14133 test -n "$GPERF" && break
14134 done
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14137 $as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14138 GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14139 as_arg_v1=$GPERF_VERSION
14140 as_arg_v2=3.0.3
14141 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14142 case $? in #(
14143 1) :
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14147 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14148 ;; #(
14149 0) :
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14151 $as_echo "yes" >&6; } ;; #(
14152 2) :
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 $as_echo "yes" >&6; } ;; #(
14155 *) :
14156 ;;
14157 esac
14158 for ac_prog in time
14159 do
14160 # Extract the first word of "$ac_prog", so it can be a program name with args.
14161 set dummy $ac_prog; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_prog_TIME+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 if test -n "$TIME"; then
14168 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14169 else
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14172 do
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177 ac_cv_prog_TIME="$ac_prog"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 break 2
14180 fi
14181 done
14182 done
14183 IFS=$as_save_IFS
14184
14185 fi
14186 fi
14187 TIME=$ac_cv_prog_TIME
14188 if test -n "$TIME"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14190 $as_echo "$TIME" >&6; }
14191 else
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14194 fi
14195
14196
14197 test -n "$TIME" && break
14198 done
14199
14200
14201 apr_found="no"
14202
14203 if test "$target_os" = "os2-emx"; then
14204 # Scripts don't pass test -x on OS/2
14205 TEST_X="test -f"
14206 else
14207 TEST_X="test -x"
14208 fi
14209
14210 acceptable_majors="1"
14211
14212 apr_temp_acceptable_apr_config=""
14213 for apr_temp_major in $acceptable_majors
14214 do
14215 case $apr_temp_major in
14216 0)
14217 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14218 ;;
14219 *)
14220 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14221 ;;
14222 esac
14223 done
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14226 $as_echo_n "checking for APR... " >&6; }
14227
14228 # Check whether --with-apr was given.
14229 if test "${with_apr+set}" = set; then :
14230 withval=$with_apr;
14231 if test "$withval" = "no" || test "$withval" = "yes"; then
14232 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14233 fi
14234
14235 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14236 do
14237 for lookdir in "$withval/bin" "$withval"
14238 do
14239 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14240 apr_config="$lookdir/$apr_temp_apr_config_file"
14241
14242 apr_found="yes"
14243 break 2
14244 fi
14245 done
14246 done
14247
14248 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14249 apr_config="$withval"
14250 apr_found="yes"
14251 fi
14252
14253 if test "$apr_found" != "yes"; then
14254 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
14255 fi
14256
14257 else
14258
14259 if test -n "1" && test "1" = "1"; then
14260 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14261 do
14262 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14263 apr_config="$apr_temp_apr_config_file"
14264
14265 apr_found="yes"
14266 break
14267 else
14268 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14269 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14270 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14271
14272 apr_found="yes"
14273 break 2
14274 fi
14275 done
14276 fi
14277 done
14278 fi
14279 if test "$apr_found" = "no" && test -d ""; then
14280 apr_temp_abs_srcdir="`cd && pwd`"
14281 apr_found="reconfig"
14282 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14283 case $apr_bundled_major in
14284 "")
14285 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14286 ;;
14287 0)
14288 apr_temp_apr_config_file="apr-config"
14289 ;;
14290 *)
14291 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14292 ;;
14293 esac
14294 if test -n ""; then
14295 apr_config="/$apr_temp_apr_config_file"
14296 else
14297 apr_config="/$apr_temp_apr_config_file"
14298 fi
14299 fi
14300
14301 fi
14302
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14305 $as_echo "$apr_found" >&6; }
14306
14307 case $apr_found in #(
14308 yes) :
14309
14310
14311 for element in `$apr_config --includes`; do
14312 haveit=
14313 for x in $CPPFLAGS; do
14314
14315 acl_save_prefix="$prefix"
14316 prefix="$acl_final_prefix"
14317 acl_save_exec_prefix="$exec_prefix"
14318 exec_prefix="$acl_final_exec_prefix"
14319 eval x=\"$x\"
14320 exec_prefix="$acl_save_exec_prefix"
14321 prefix="$acl_save_prefix"
14322
14323 if test "X$x" = "X$element"; then
14324 haveit=yes
14325 break
14326 fi
14327 done
14328 if test -z "$haveit"; then
14329 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14330 fi
14331 done
14332
14333 LTLIBAPR=`$apr_config --link-libtool`
14334
14335 ;; #(
14336 *) :
14337 as_fn_error "You need apr" "$LINENO" 5 ;;
14338 esac
14339
14340
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14342 $as_echo_n "checking for a readline compatible library... " >&6; }
14343 if test "${vl_cv_lib_readline+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346
14347 ORIG_LIBS="$LIBS"
14348 for readline_lib in readline edit editline; do
14349 for termcap_lib in "" termcap curses ncurses; do
14350 if test -z "$termcap_lib"; then
14351 TRY_LIB="-l$readline_lib"
14352 else
14353 TRY_LIB="-l$readline_lib -l$termcap_lib"
14354 fi
14355 LIBS="$ORIG_LIBS $TRY_LIB"
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char readline ();
14366 int
14367 main ()
14368 {
14369 return readline ();
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 if ac_fn_cxx_try_link "$LINENO"; then :
14375 vl_cv_lib_readline="$TRY_LIB"
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 if test -n "$vl_cv_lib_readline"; then
14380 break
14381 fi
14382 done
14383 if test -n "$vl_cv_lib_readline"; then
14384 break
14385 fi
14386 done
14387 if test -z "$vl_cv_lib_readline"; then
14388 vl_cv_lib_readline="no"
14389 LIBS="$ORIG_LIBS"
14390 fi
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14394 $as_echo "$vl_cv_lib_readline" >&6; }
14395
14396 if test "$vl_cv_lib_readline" != "no"; then
14397
14398 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14399
14400 for ac_header in readline.h readline/readline.h
14401 do :
14402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14403 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14404 eval as_val=\$$as_ac_Header
14405 if test "x$as_val" = x""yes; then :
14406 cat >>confdefs.h <<_ACEOF
14407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14408 _ACEOF
14409
14410 fi
14411
14412 done
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14415 $as_echo_n "checking whether readline supports history... " >&6; }
14416 if test "${vl_cv_lib_readline_history+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419
14420 vl_cv_lib_readline_history="no"
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423
14424 /* Override any GCC internal prototype to avoid an error.
14425 Use char because int might match the return type of a GCC
14426 builtin and then its argument prototype would still apply. */
14427 #ifdef __cplusplus
14428 extern "C"
14429 #endif
14430 char add_history ();
14431 int
14432 main ()
14433 {
14434 return add_history ();
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 if ac_fn_cxx_try_link "$LINENO"; then :
14440 vl_cv_lib_readline_history="yes"
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14444
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14447 $as_echo "$vl_cv_lib_readline_history" >&6; }
14448 if test "$vl_cv_lib_readline_history" = "yes"; then
14449
14450 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14451
14452 for ac_header in history.h readline/history.h
14453 do :
14454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14455 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14456 eval as_val=\$$as_ac_Header
14457 if test "x$as_val" = x""yes; then :
14458 cat >>confdefs.h <<_ACEOF
14459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14460 _ACEOF
14461
14462 fi
14463
14464 done
14465
14466 fi
14467 fi
14468
14469 # Find a good install program. We prefer a C program (faster),
14470 # so one script is as good as another. But avoid the broken or
14471 # incompatible versions:
14472 # SysV /etc/install, /usr/sbin/install
14473 # SunOS /usr/etc/install
14474 # IRIX /sbin/install
14475 # AIX /bin/install
14476 # AmigaOS /C/install, which installs bootblocks on floppy discs
14477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14480 # OS/2's system install, which has a completely different semantic
14481 # ./install, which can be erroneously created by make from ./install.sh.
14482 # Reject install programs that cannot install multiple files.
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14484 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14485 if test -z "$INSTALL"; then
14486 if test "${ac_cv_path_install+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14491 do
14492 IFS=$as_save_IFS
14493 test -z "$as_dir" && as_dir=.
14494 # Account for people who put trailing slashes in PATH elements.
14495 case $as_dir/ in #((
14496 ./ | .// | /[cC]/* | \
14497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14499 /usr/ucb/* ) ;;
14500 *)
14501 # OSF1 and SCO ODT 3.0 have their own names for install.
14502 # Don't use installbsd from OSF since it installs stuff as root
14503 # by default.
14504 for ac_prog in ginstall scoinst install; do
14505 for ac_exec_ext in '' $ac_executable_extensions; do
14506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14507 if test $ac_prog = install &&
14508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14509 # AIX install. It has an incompatible calling convention.
14510 :
14511 elif test $ac_prog = install &&
14512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14513 # program-specific install script used by HP pwplus--don't use.
14514 :
14515 else
14516 rm -rf conftest.one conftest.two conftest.dir
14517 echo one > conftest.one
14518 echo two > conftest.two
14519 mkdir conftest.dir
14520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14521 test -s conftest.one && test -s conftest.two &&
14522 test -s conftest.dir/conftest.one &&
14523 test -s conftest.dir/conftest.two
14524 then
14525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14526 break 3
14527 fi
14528 fi
14529 fi
14530 done
14531 done
14532 ;;
14533 esac
14534
14535 done
14536 IFS=$as_save_IFS
14537
14538 rm -rf conftest.one conftest.two conftest.dir
14539
14540 fi
14541 if test "${ac_cv_path_install+set}" = set; then
14542 INSTALL=$ac_cv_path_install
14543 else
14544 # As a last resort, use the slow shell script. Don't cache a
14545 # value for INSTALL within a source directory, because that will
14546 # break other packages using the cache if that directory is
14547 # removed, or if the value is a relative name.
14548 INSTALL=$ac_install_sh
14549 fi
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14552 $as_echo "$INSTALL" >&6; }
14553
14554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14555 # It thinks the first close brace ends the variable substitution.
14556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14557
14558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14559
14560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14561
14562 ac_ext=c
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14567
14568
14569 if test "X$prefix" = "XNONE"; then
14570 acl_final_prefix="$ac_default_prefix"
14571 else
14572 acl_final_prefix="$prefix"
14573 fi
14574 if test "X$exec_prefix" = "XNONE"; then
14575 acl_final_exec_prefix='${prefix}'
14576 else
14577 acl_final_exec_prefix="$exec_prefix"
14578 fi
14579 acl_save_prefix="$prefix"
14580 prefix="$acl_final_prefix"
14581 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14582 prefix="$acl_save_prefix"
14583
14584
14585 # Check whether --with-gnu-ld was given.
14586 if test "${with_gnu_ld+set}" = set; then :
14587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14588 else
14589 with_gnu_ld=no
14590 fi
14591
14592 # Prepare PATH_SEPARATOR.
14593 # The user is always right.
14594 if test "${PATH_SEPARATOR+set}" != set; then
14595 echo "#! /bin/sh" >conf$$.sh
14596 echo "exit 0" >>conf$$.sh
14597 chmod +x conf$$.sh
14598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14599 PATH_SEPARATOR=';'
14600 else
14601 PATH_SEPARATOR=:
14602 fi
14603 rm -f conf$$.sh
14604 fi
14605 ac_prog=ld
14606 if test "$GCC" = yes; then
14607 # Check if gcc -print-prog-name=ld gives a path.
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14609 $as_echo_n "checking for ld used by GCC... " >&6; }
14610 case $host in
14611 *-*-mingw*)
14612 # gcc leaves a trailing carriage return which upsets mingw
14613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14614 *)
14615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14616 esac
14617 case $ac_prog in
14618 # Accept absolute paths.
14619 [\\/]* | [A-Za-z]:[\\/]*)
14620 re_direlt='/[^/][^/]*/\.\./'
14621 # Canonicalize the path of ld
14622 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14624 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14625 done
14626 test -z "$LD" && LD="$ac_prog"
14627 ;;
14628 "")
14629 # If it fails, then pretend we aren't using GCC.
14630 ac_prog=ld
14631 ;;
14632 *)
14633 # If it is relative, then search for the first ld in PATH.
14634 with_gnu_ld=unknown
14635 ;;
14636 esac
14637 elif test "$with_gnu_ld" = yes; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14639 $as_echo_n "checking for GNU ld... " >&6; }
14640 else
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14642 $as_echo_n "checking for non-GNU ld... " >&6; }
14643 fi
14644 if test "${acl_cv_path_LD+set}" = set; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test -z "$LD"; then
14648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14649 for ac_dir in $PATH; do
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14652 acl_cv_path_LD="$ac_dir/$ac_prog"
14653 # Check to see if the program is GNU ld. I'd rather use --version,
14654 # but apparently some GNU ld's only accept -v.
14655 # Break only if it was the GNU/non-GNU ld that we prefer.
14656 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14657 *GNU* | *'with BFD'*)
14658 test "$with_gnu_ld" != no && break ;;
14659 *)
14660 test "$with_gnu_ld" != yes && break ;;
14661 esac
14662 fi
14663 done
14664 IFS="$ac_save_ifs"
14665 else
14666 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14667 fi
14668 fi
14669
14670 LD="$acl_cv_path_LD"
14671 if test -n "$LD"; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14673 $as_echo "$LD" >&6; }
14674 else
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14676 $as_echo "no" >&6; }
14677 fi
14678 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14681 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14685 case `$LD -v 2>&1 </dev/null` in
14686 *GNU* | *'with BFD'*)
14687 acl_cv_prog_gnu_ld=yes ;;
14688 *)
14689 acl_cv_prog_gnu_ld=no ;;
14690 esac
14691 fi
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14693 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14694 with_gnu_ld=$acl_cv_prog_gnu_ld
14695
14696
14697
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14700 $as_echo_n "checking for shared library run path origin... " >&6; }
14701 if test "${acl_cv_rpath+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704
14705 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14706 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14707 . ./conftest.sh
14708 rm -f ./conftest.sh
14709 acl_cv_rpath=done
14710
14711 fi
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14713 $as_echo "$acl_cv_rpath" >&6; }
14714 wl="$acl_cv_wl"
14715 acl_libext="$acl_cv_libext"
14716 acl_shlibext="$acl_cv_shlibext"
14717 acl_libname_spec="$acl_cv_libname_spec"
14718 acl_library_names_spec="$acl_cv_library_names_spec"
14719 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14720 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14721 acl_hardcode_direct="$acl_cv_hardcode_direct"
14722 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14723 # Check whether --enable-rpath was given.
14724 if test "${enable_rpath+set}" = set; then :
14725 enableval=$enable_rpath; :
14726 else
14727 enable_rpath=yes
14728 fi
14729
14730
14731
14732 acl_libdirstem=lib
14733 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14734 if test -n "$searchpath"; then
14735 acl_save_IFS="${IFS= }"; IFS=":"
14736 for searchdir in $searchpath; do
14737 if test -d "$searchdir"; then
14738 case "$searchdir" in
14739 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14740 *) searchdir=`cd "$searchdir" && pwd`
14741 case "$searchdir" in
14742 */lib64 ) acl_libdirstem=lib64 ;;
14743 esac ;;
14744 esac
14745 fi
14746 done
14747 IFS="$acl_save_IFS"
14748 fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758 use_additional=yes
14759
14760 acl_save_prefix="$prefix"
14761 prefix="$acl_final_prefix"
14762 acl_save_exec_prefix="$exec_prefix"
14763 exec_prefix="$acl_final_exec_prefix"
14764
14765 eval additional_includedir=\"$includedir\"
14766 eval additional_libdir=\"$libdir\"
14767
14768 exec_prefix="$acl_save_exec_prefix"
14769 prefix="$acl_save_prefix"
14770
14771
14772 # Check whether --with-libiconv-prefix was given.
14773 if test "${with_libiconv_prefix+set}" = set; then :
14774 withval=$with_libiconv_prefix;
14775 if test "X$withval" = "Xno"; then
14776 use_additional=no
14777 else
14778 if test "X$withval" = "X"; then
14779
14780 acl_save_prefix="$prefix"
14781 prefix="$acl_final_prefix"
14782 acl_save_exec_prefix="$exec_prefix"
14783 exec_prefix="$acl_final_exec_prefix"
14784
14785 eval additional_includedir=\"$includedir\"
14786 eval additional_libdir=\"$libdir\"
14787
14788 exec_prefix="$acl_save_exec_prefix"
14789 prefix="$acl_save_prefix"
14790
14791 else
14792 additional_includedir="$withval/include"
14793 additional_libdir="$withval/$acl_libdirstem"
14794 fi
14795 fi
14796
14797 fi
14798
14799 LIBICONV=
14800 LTLIBICONV=
14801 INCICONV=
14802 LIBICONV_PREFIX=
14803 rpathdirs=
14804 ltrpathdirs=
14805 names_already_handled=
14806 names_next_round='iconv '
14807 while test -n "$names_next_round"; do
14808 names_this_round="$names_next_round"
14809 names_next_round=
14810 for name in $names_this_round; do
14811 already_handled=
14812 for n in $names_already_handled; do
14813 if test "$n" = "$name"; then
14814 already_handled=yes
14815 break
14816 fi
14817 done
14818 if test -z "$already_handled"; then
14819 names_already_handled="$names_already_handled $name"
14820 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14821 eval value=\"\$HAVE_LIB$uppername\"
14822 if test -n "$value"; then
14823 if test "$value" = yes; then
14824 eval value=\"\$LIB$uppername\"
14825 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14826 eval value=\"\$LTLIB$uppername\"
14827 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14828 else
14829 :
14830 fi
14831 else
14832 found_dir=
14833 found_la=
14834 found_so=
14835 found_a=
14836 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14837 if test -n "$acl_shlibext"; then
14838 shrext=".$acl_shlibext" # typically: shrext=.so
14839 else
14840 shrext=
14841 fi
14842 if test $use_additional = yes; then
14843 dir="$additional_libdir"
14844 if test -n "$acl_shlibext"; then
14845 if test -f "$dir/$libname$shrext"; then
14846 found_dir="$dir"
14847 found_so="$dir/$libname$shrext"
14848 else
14849 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14850 ver=`(cd "$dir" && \
14851 for f in "$libname$shrext".*; do echo "$f"; done \
14852 | sed -e "s,^$libname$shrext\\\\.,," \
14853 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14854 | sed 1q ) 2>/dev/null`
14855 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14856 found_dir="$dir"
14857 found_so="$dir/$libname$shrext.$ver"
14858 fi
14859 else
14860 eval library_names=\"$acl_library_names_spec\"
14861 for f in $library_names; do
14862 if test -f "$dir/$f"; then
14863 found_dir="$dir"
14864 found_so="$dir/$f"
14865 break
14866 fi
14867 done
14868 fi
14869 fi
14870 fi
14871 if test "X$found_dir" = "X"; then
14872 if test -f "$dir/$libname.$acl_libext"; then
14873 found_dir="$dir"
14874 found_a="$dir/$libname.$acl_libext"
14875 fi
14876 fi
14877 if test "X$found_dir" != "X"; then
14878 if test -f "$dir/$libname.la"; then
14879 found_la="$dir/$libname.la"
14880 fi
14881 fi
14882 fi
14883 if test "X$found_dir" = "X"; then
14884 for x in $LDFLAGS $LTLIBICONV; do
14885
14886 acl_save_prefix="$prefix"
14887 prefix="$acl_final_prefix"
14888 acl_save_exec_prefix="$exec_prefix"
14889 exec_prefix="$acl_final_exec_prefix"
14890 eval x=\"$x\"
14891 exec_prefix="$acl_save_exec_prefix"
14892 prefix="$acl_save_prefix"
14893
14894 case "$x" in
14895 -L*)
14896 dir=`echo "X$x" | sed -e 's/^X-L//'`
14897 if test -n "$acl_shlibext"; then
14898 if test -f "$dir/$libname$shrext"; then
14899 found_dir="$dir"
14900 found_so="$dir/$libname$shrext"
14901 else
14902 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14903 ver=`(cd "$dir" && \
14904 for f in "$libname$shrext".*; do echo "$f"; done \
14905 | sed -e "s,^$libname$shrext\\\\.,," \
14906 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14907 | sed 1q ) 2>/dev/null`
14908 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14909 found_dir="$dir"
14910 found_so="$dir/$libname$shrext.$ver"
14911 fi
14912 else
14913 eval library_names=\"$acl_library_names_spec\"
14914 for f in $library_names; do
14915 if test -f "$dir/$f"; then
14916 found_dir="$dir"
14917 found_so="$dir/$f"
14918 break
14919 fi
14920 done
14921 fi
14922 fi
14923 fi
14924 if test "X$found_dir" = "X"; then
14925 if test -f "$dir/$libname.$acl_libext"; then
14926 found_dir="$dir"
14927 found_a="$dir/$libname.$acl_libext"
14928 fi
14929 fi
14930 if test "X$found_dir" != "X"; then
14931 if test -f "$dir/$libname.la"; then
14932 found_la="$dir/$libname.la"
14933 fi
14934 fi
14935 ;;
14936 esac
14937 if test "X$found_dir" != "X"; then
14938 break
14939 fi
14940 done
14941 fi
14942 if test "X$found_dir" != "X"; then
14943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14944 if test "X$found_so" != "X"; then
14945 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14947 else
14948 haveit=
14949 for x in $ltrpathdirs; do
14950 if test "X$x" = "X$found_dir"; then
14951 haveit=yes
14952 break
14953 fi
14954 done
14955 if test -z "$haveit"; then
14956 ltrpathdirs="$ltrpathdirs $found_dir"
14957 fi
14958 if test "$acl_hardcode_direct" = yes; then
14959 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14960 else
14961 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14963 haveit=
14964 for x in $rpathdirs; do
14965 if test "X$x" = "X$found_dir"; then
14966 haveit=yes
14967 break
14968 fi
14969 done
14970 if test -z "$haveit"; then
14971 rpathdirs="$rpathdirs $found_dir"
14972 fi
14973 else
14974 haveit=
14975 for x in $LDFLAGS $LIBICONV; do
14976
14977 acl_save_prefix="$prefix"
14978 prefix="$acl_final_prefix"
14979 acl_save_exec_prefix="$exec_prefix"
14980 exec_prefix="$acl_final_exec_prefix"
14981 eval x=\"$x\"
14982 exec_prefix="$acl_save_exec_prefix"
14983 prefix="$acl_save_prefix"
14984
14985 if test "X$x" = "X-L$found_dir"; then
14986 haveit=yes
14987 break
14988 fi
14989 done
14990 if test -z "$haveit"; then
14991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14992 fi
14993 if test "$acl_hardcode_minus_L" != no; then
14994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14995 else
14996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14997 fi
14998 fi
14999 fi
15000 fi
15001 else
15002 if test "X$found_a" != "X"; then
15003 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15004 else
15005 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15006 fi
15007 fi
15008 additional_includedir=
15009 case "$found_dir" in
15010 */$acl_libdirstem | */$acl_libdirstem/)
15011 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15012 LIBICONV_PREFIX="$basedir"
15013 additional_includedir="$basedir/include"
15014 ;;
15015 esac
15016 if test "X$additional_includedir" != "X"; then
15017 if test "X$additional_includedir" != "X/usr/include"; then
15018 haveit=
15019 if test "X$additional_includedir" = "X/usr/local/include"; then
15020 if test -n "$GCC"; then
15021 case $host_os in
15022 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15023 esac
15024 fi
15025 fi
15026 if test -z "$haveit"; then
15027 for x in $CPPFLAGS $INCICONV; do
15028
15029 acl_save_prefix="$prefix"
15030 prefix="$acl_final_prefix"
15031 acl_save_exec_prefix="$exec_prefix"
15032 exec_prefix="$acl_final_exec_prefix"
15033 eval x=\"$x\"
15034 exec_prefix="$acl_save_exec_prefix"
15035 prefix="$acl_save_prefix"
15036
15037 if test "X$x" = "X-I$additional_includedir"; then
15038 haveit=yes
15039 break
15040 fi
15041 done
15042 if test -z "$haveit"; then
15043 if test -d "$additional_includedir"; then
15044 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15045 fi
15046 fi
15047 fi
15048 fi
15049 fi
15050 if test -n "$found_la"; then
15051 save_libdir="$libdir"
15052 case "$found_la" in
15053 */* | *\\*) . "$found_la" ;;
15054 *) . "./$found_la" ;;
15055 esac
15056 libdir="$save_libdir"
15057 for dep in $dependency_libs; do
15058 case "$dep" in
15059 -L*)
15060 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15061 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15062 haveit=
15063 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15064 if test -n "$GCC"; then
15065 case $host_os in
15066 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15067 esac
15068 fi
15069 fi
15070 if test -z "$haveit"; then
15071 haveit=
15072 for x in $LDFLAGS $LIBICONV; do
15073
15074 acl_save_prefix="$prefix"
15075 prefix="$acl_final_prefix"
15076 acl_save_exec_prefix="$exec_prefix"
15077 exec_prefix="$acl_final_exec_prefix"
15078 eval x=\"$x\"
15079 exec_prefix="$acl_save_exec_prefix"
15080 prefix="$acl_save_prefix"
15081
15082 if test "X$x" = "X-L$additional_libdir"; then
15083 haveit=yes
15084 break
15085 fi
15086 done
15087 if test -z "$haveit"; then
15088 if test -d "$additional_libdir"; then
15089 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15090 fi
15091 fi
15092 haveit=
15093 for x in $LDFLAGS $LTLIBICONV; do
15094
15095 acl_save_prefix="$prefix"
15096 prefix="$acl_final_prefix"
15097 acl_save_exec_prefix="$exec_prefix"
15098 exec_prefix="$acl_final_exec_prefix"
15099 eval x=\"$x\"
15100 exec_prefix="$acl_save_exec_prefix"
15101 prefix="$acl_save_prefix"
15102
15103 if test "X$x" = "X-L$additional_libdir"; then
15104 haveit=yes
15105 break
15106 fi
15107 done
15108 if test -z "$haveit"; then
15109 if test -d "$additional_libdir"; then
15110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15111 fi
15112 fi
15113 fi
15114 fi
15115 ;;
15116 -R*)
15117 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15118 if test "$enable_rpath" != no; then
15119 haveit=
15120 for x in $rpathdirs; do
15121 if test "X$x" = "X$dir"; then
15122 haveit=yes
15123 break
15124 fi
15125 done
15126 if test -z "$haveit"; then
15127 rpathdirs="$rpathdirs $dir"
15128 fi
15129 haveit=
15130 for x in $ltrpathdirs; do
15131 if test "X$x" = "X$dir"; then
15132 haveit=yes
15133 break
15134 fi
15135 done
15136 if test -z "$haveit"; then
15137 ltrpathdirs="$ltrpathdirs $dir"
15138 fi
15139 fi
15140 ;;
15141 -l*)
15142 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15143 ;;
15144 *.la)
15145 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15146 ;;
15147 *)
15148 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15149 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15150 ;;
15151 esac
15152 done
15153 fi
15154 else
15155 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15157 fi
15158 fi
15159 fi
15160 done
15161 done
15162 if test "X$rpathdirs" != "X"; then
15163 if test -n "$acl_hardcode_libdir_separator"; then
15164 alldirs=
15165 for found_dir in $rpathdirs; do
15166 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15167 done
15168 acl_save_libdir="$libdir"
15169 libdir="$alldirs"
15170 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15171 libdir="$acl_save_libdir"
15172 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15173 else
15174 for found_dir in $rpathdirs; do
15175 acl_save_libdir="$libdir"
15176 libdir="$found_dir"
15177 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15178 libdir="$acl_save_libdir"
15179 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15180 done
15181 fi
15182 fi
15183 if test "X$ltrpathdirs" != "X"; then
15184 for found_dir in $ltrpathdirs; do
15185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15186 done
15187 fi
15188
15189
15190
15191
15192
15193
15194
15195 am_save_CPPFLAGS="$CPPFLAGS"
15196
15197 for element in $INCICONV; do
15198 haveit=
15199 for x in $CPPFLAGS; do
15200
15201 acl_save_prefix="$prefix"
15202 prefix="$acl_final_prefix"
15203 acl_save_exec_prefix="$exec_prefix"
15204 exec_prefix="$acl_final_exec_prefix"
15205 eval x=\"$x\"
15206 exec_prefix="$acl_save_exec_prefix"
15207 prefix="$acl_save_prefix"
15208
15209 if test "X$x" = "X$element"; then
15210 haveit=yes
15211 break
15212 fi
15213 done
15214 if test -z "$haveit"; then
15215 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15216 fi
15217 done
15218
15219
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15221 $as_echo_n "checking for iconv... " >&6; }
15222 if test "${am_cv_func_iconv+set}" = set; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225
15226 am_cv_func_iconv="no, consider installing GNU libiconv"
15227 am_cv_lib_iconv=no
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <stdlib.h>
15231 #include <iconv.h>
15232 int
15233 main ()
15234 {
15235 iconv_t cd = iconv_open("","");
15236 iconv(cd,NULL,NULL,NULL,NULL);
15237 iconv_close(cd);
15238 ;
15239 return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 am_cv_func_iconv=yes
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 if test "$am_cv_func_iconv" != yes; then
15248 am_save_LIBS="$LIBS"
15249 LIBS="$LIBS $LIBICONV"
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 #include <stdlib.h>
15253 #include <iconv.h>
15254 int
15255 main ()
15256 {
15257 iconv_t cd = iconv_open("","");
15258 iconv(cd,NULL,NULL,NULL,NULL);
15259 iconv_close(cd);
15260 ;
15261 return 0;
15262 }
15263 _ACEOF
15264 if ac_fn_c_try_link "$LINENO"; then :
15265 am_cv_lib_iconv=yes
15266 am_cv_func_iconv=yes
15267 fi
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS="$am_save_LIBS"
15271 fi
15272
15273 fi
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15275 $as_echo "$am_cv_func_iconv" >&6; }
15276 if test "$am_cv_func_iconv" = yes; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15278 $as_echo_n "checking for working iconv... " >&6; }
15279 if test "${am_cv_func_iconv_works+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282
15283 am_save_LIBS="$LIBS"
15284 if test $am_cv_lib_iconv = yes; then
15285 LIBS="$LIBS $LIBICONV"
15286 fi
15287 if test "$cross_compiling" = yes; then :
15288 case "$host_os" in
15289 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15290 *) am_cv_func_iconv_works="guessing yes" ;;
15291 esac
15292 else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295
15296 #include <iconv.h>
15297 #include <string.h>
15298 int main ()
15299 {
15300 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15301 returns. */
15302 {
15303 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15304 if (cd_utf8_to_88591 != (iconv_t)(-1))
15305 {
15306 static const char input[] = "\342\202\254"; /* EURO SIGN */
15307 char buf[10];
15308 const char *inptr = input;
15309 size_t inbytesleft = strlen (input);
15310 char *outptr = buf;
15311 size_t outbytesleft = sizeof (buf);
15312 size_t res = iconv (cd_utf8_to_88591,
15313 (char **) &inptr, &inbytesleft,
15314 &outptr, &outbytesleft);
15315 if (res == 0)
15316 return 1;
15317 }
15318 }
15319 #if 0 /* This bug could be worked around by the caller. */
15320 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15321 {
15322 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15323 if (cd_88591_to_utf8 != (iconv_t)(-1))
15324 {
15325 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15326 char buf[50];
15327 const char *inptr = input;
15328 size_t inbytesleft = strlen (input);
15329 char *outptr = buf;
15330 size_t outbytesleft = sizeof (buf);
15331 size_t res = iconv (cd_88591_to_utf8,
15332 (char **) &inptr, &inbytesleft,
15333 &outptr, &outbytesleft);
15334 if ((int)res > 0)
15335 return 1;
15336 }
15337 }
15338 #endif
15339 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15340 provided. */
15341 if (/* Try standardized names. */
15342 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15343 /* Try IRIX, OSF/1 names. */
15344 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15345 /* Try AIX names. */
15346 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15347 /* Try HP-UX names. */
15348 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15349 return 1;
15350 return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_run "$LINENO"; then :
15354 am_cv_func_iconv_works=yes
15355 else
15356 am_cv_func_iconv_works=no
15357 fi
15358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15359 conftest.$ac_objext conftest.beam conftest.$ac_ext
15360 fi
15361
15362 LIBS="$am_save_LIBS"
15363
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15366 $as_echo "$am_cv_func_iconv_works" >&6; }
15367 case "$am_cv_func_iconv_works" in
15368 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15369 *) am_func_iconv=yes ;;
15370 esac
15371 else
15372 am_func_iconv=no am_cv_lib_iconv=no
15373 fi
15374 if test "$am_func_iconv" = yes; then
15375
15376 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15377
15378 fi
15379 if test "$am_cv_lib_iconv" = yes; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15381 $as_echo_n "checking how to link with libiconv... " >&6; }
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15383 $as_echo "$LIBICONV" >&6; }
15384 else
15385 CPPFLAGS="$am_save_CPPFLAGS"
15386 LIBICONV=
15387 LTLIBICONV=
15388 fi
15389
15390
15391
15392 if test "$am_cv_func_iconv" = yes; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15394 $as_echo_n "checking for iconv declaration... " >&6; }
15395 if test "${am_cv_proto_iconv+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401
15402 #include <stdlib.h>
15403 #include <iconv.h>
15404 extern
15405 #ifdef __cplusplus
15406 "C"
15407 #endif
15408 #if defined(__STDC__) || defined(__cplusplus)
15409 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15410 #else
15411 size_t iconv();
15412 #endif
15413
15414 int
15415 main ()
15416 {
15417
15418 ;
15419 return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 am_cv_proto_iconv_arg1=""
15424 else
15425 am_cv_proto_iconv_arg1="const"
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 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);"
15429 fi
15430
15431 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15433 }$am_cv_proto_iconv" >&5
15434 $as_echo "${ac_t:-
15435 }$am_cv_proto_iconv" >&6; }
15436
15437 cat >>confdefs.h <<_ACEOF
15438 #define ICONV_CONST $am_cv_proto_iconv_arg1
15439 _ACEOF
15440
15441 fi
15442
15443 ac_ext=cpp
15444 ac_cpp='$CXXCPP $CPPFLAGS'
15445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15448
15449 case $am_cv_func_iconv in #(
15450 yes) :
15451 ;; #(
15452 *) :
15453 as_fn_error "You need iconv" "$LINENO" 5 ;;
15454 esac
15455
15456 pkg_failed=no
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15458 $as_echo_n "checking for WEBKIT... " >&6; }
15459
15460 if test -n "$PKG_CONFIG"; then
15461 if test -n "$WEBKIT_CFLAGS"; then
15462 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15463 else
15464 if test -n "$PKG_CONFIG" && \
15465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15466 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15467 ac_status=$?
15468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469 test $ac_status = 0; }; then
15470 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15471 else
15472 pkg_failed=yes
15473 fi
15474 fi
15475 else
15476 pkg_failed=untried
15477 fi
15478 if test -n "$PKG_CONFIG"; then
15479 if test -n "$WEBKIT_LIBS"; then
15480 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15481 else
15482 if test -n "$PKG_CONFIG" && \
15483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15484 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15485 ac_status=$?
15486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15487 test $ac_status = 0; }; then
15488 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15489 else
15490 pkg_failed=yes
15491 fi
15492 fi
15493 else
15494 pkg_failed=untried
15495 fi
15496
15497
15498
15499 if test $pkg_failed = yes; then
15500
15501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15502 _pkg_short_errors_supported=yes
15503 else
15504 _pkg_short_errors_supported=no
15505 fi
15506 if test $_pkg_short_errors_supported = yes; then
15507 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15508 else
15509 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15510 fi
15511 # Put the nasty error message in config.log where it belongs
15512 echo "$WEBKIT_PKG_ERRORS" >&5
15513
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15515 $as_echo "no" >&6; }
15516
15517
15518 pkg_failed=no
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15520 $as_echo_n "checking for WEBKIT... " >&6; }
15521
15522 if test -n "$PKG_CONFIG"; then
15523 if test -n "$WEBKIT_CFLAGS"; then
15524 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15525 else
15526 if test -n "$PKG_CONFIG" && \
15527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15528 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15529 ac_status=$?
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; }; then
15532 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15533 else
15534 pkg_failed=yes
15535 fi
15536 fi
15537 else
15538 pkg_failed=untried
15539 fi
15540 if test -n "$PKG_CONFIG"; then
15541 if test -n "$WEBKIT_LIBS"; then
15542 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15543 else
15544 if test -n "$PKG_CONFIG" && \
15545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15546 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15547 ac_status=$?
15548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15549 test $ac_status = 0; }; then
15550 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15551 else
15552 pkg_failed=yes
15553 fi
15554 fi
15555 else
15556 pkg_failed=untried
15557 fi
15558
15559
15560
15561 if test $pkg_failed = yes; then
15562
15563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15564 _pkg_short_errors_supported=yes
15565 else
15566 _pkg_short_errors_supported=no
15567 fi
15568 if test $_pkg_short_errors_supported = yes; then
15569 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15570 else
15571 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15572 fi
15573 # Put the nasty error message in config.log where it belongs
15574 echo "$WEBKIT_PKG_ERRORS" >&5
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15578
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15581 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15582 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15583 $as_echo_n "(cached) " >&6
15584 else
15585
15586 ac_check_framework_save_LIBS=$LIBS
15587 LIBS="-framework JavaScriptCore $LIBS"
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590
15591 #include <JavaScriptCore/JSBase.h>
15592
15593 int
15594 main ()
15595 {
15596 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15597 ;
15598 return 0;
15599 }
15600 _ACEOF
15601 if ac_fn_cxx_try_link "$LINENO"; then :
15602
15603 ac_cv_framework_JavaScriptCore=yes
15604
15605 else
15606 ac_cv_framework_JavaScriptCore=no
15607 fi
15608 rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_framework_save_LIBS
15611
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15614 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15615 if test $ac_cv_framework_JavaScriptCore = yes; then :
15616
15617
15618 for element in "-framework JavaScriptCore $LIBS"; do
15619 haveit=
15620 for x in $LIBS; do
15621
15622 acl_save_prefix="$prefix"
15623 prefix="$acl_final_prefix"
15624 acl_save_exec_prefix="$exec_prefix"
15625 exec_prefix="$acl_final_exec_prefix"
15626 eval x=\"$x\"
15627 exec_prefix="$acl_save_exec_prefix"
15628 prefix="$acl_save_prefix"
15629
15630 if test "X$x" = "X$element"; then
15631 haveit=yes
15632 break
15633 fi
15634 done
15635 if test -z "$haveit"; then
15636 LIBS="${LIBS}${LIBS:+ }$element"
15637 fi
15638 done
15639
15640 CY_EXECUTE=1
15641
15642 fi
15643
15644 elif test $pkg_failed = untried; then
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15648 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15649 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15650 $as_echo_n "(cached) " >&6
15651 else
15652
15653 ac_check_framework_save_LIBS=$LIBS
15654 LIBS="-framework JavaScriptCore $LIBS"
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657
15658 #include <JavaScriptCore/JSBase.h>
15659
15660 int
15661 main ()
15662 {
15663 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15664 ;
15665 return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_cxx_try_link "$LINENO"; then :
15669
15670 ac_cv_framework_JavaScriptCore=yes
15671
15672 else
15673 ac_cv_framework_JavaScriptCore=no
15674 fi
15675 rm -f core conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15677 LIBS=$ac_check_framework_save_LIBS
15678
15679 fi
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15681 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15682 if test $ac_cv_framework_JavaScriptCore = yes; then :
15683
15684
15685 for element in "-framework JavaScriptCore $LIBS"; 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 CY_EXECUTE=1
15708
15709 fi
15710
15711 else
15712 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15713 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715 $as_echo "yes" >&6; }
15716
15717 CY_EXECUTE=1
15718
15719 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15720 haveit=
15721 for x in $CXXFLAGS; do
15722
15723 acl_save_prefix="$prefix"
15724 prefix="$acl_final_prefix"
15725 acl_save_exec_prefix="$exec_prefix"
15726 exec_prefix="$acl_final_exec_prefix"
15727 eval x=\"$x\"
15728 exec_prefix="$acl_save_exec_prefix"
15729 prefix="$acl_save_prefix"
15730
15731 if test "X$x" = "X$element"; then
15732 haveit=yes
15733 break
15734 fi
15735 done
15736 if test -z "$haveit"; then
15737 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15738 fi
15739 done
15740
15741
15742 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15743 haveit=
15744 for x in $LIBS; do
15745
15746 acl_save_prefix="$prefix"
15747 prefix="$acl_final_prefix"
15748 acl_save_exec_prefix="$exec_prefix"
15749 exec_prefix="$acl_final_exec_prefix"
15750 eval x=\"$x\"
15751 exec_prefix="$acl_save_exec_prefix"
15752 prefix="$acl_save_prefix"
15753
15754 if test "X$x" = "X$element"; then
15755 haveit=yes
15756 break
15757 fi
15758 done
15759 if test -z "$haveit"; then
15760 LIBS="${LIBS}${LIBS:+ }$element"
15761 fi
15762 done
15763
15764
15765 fi
15766
15767 elif test $pkg_failed = untried; then
15768
15769
15770 pkg_failed=no
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15772 $as_echo_n "checking for WEBKIT... " >&6; }
15773
15774 if test -n "$PKG_CONFIG"; then
15775 if test -n "$WEBKIT_CFLAGS"; then
15776 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15777 else
15778 if test -n "$PKG_CONFIG" && \
15779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15780 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15781 ac_status=$?
15782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15783 test $ac_status = 0; }; then
15784 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15785 else
15786 pkg_failed=yes
15787 fi
15788 fi
15789 else
15790 pkg_failed=untried
15791 fi
15792 if test -n "$PKG_CONFIG"; then
15793 if test -n "$WEBKIT_LIBS"; then
15794 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15795 else
15796 if test -n "$PKG_CONFIG" && \
15797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15798 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15799 ac_status=$?
15800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801 test $ac_status = 0; }; then
15802 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15803 else
15804 pkg_failed=yes
15805 fi
15806 fi
15807 else
15808 pkg_failed=untried
15809 fi
15810
15811
15812
15813 if test $pkg_failed = yes; then
15814
15815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15816 _pkg_short_errors_supported=yes
15817 else
15818 _pkg_short_errors_supported=no
15819 fi
15820 if test $_pkg_short_errors_supported = yes; then
15821 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15822 else
15823 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15824 fi
15825 # Put the nasty error message in config.log where it belongs
15826 echo "$WEBKIT_PKG_ERRORS" >&5
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15833 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15834 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837
15838 ac_check_framework_save_LIBS=$LIBS
15839 LIBS="-framework JavaScriptCore $LIBS"
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842
15843 #include <JavaScriptCore/JSBase.h>
15844
15845 int
15846 main ()
15847 {
15848 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_cxx_try_link "$LINENO"; then :
15854
15855 ac_cv_framework_JavaScriptCore=yes
15856
15857 else
15858 ac_cv_framework_JavaScriptCore=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_framework_save_LIBS
15863
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15866 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15867 if test $ac_cv_framework_JavaScriptCore = yes; then :
15868
15869
15870 for element in "-framework JavaScriptCore $LIBS"; do
15871 haveit=
15872 for x in $LIBS; do
15873
15874 acl_save_prefix="$prefix"
15875 prefix="$acl_final_prefix"
15876 acl_save_exec_prefix="$exec_prefix"
15877 exec_prefix="$acl_final_exec_prefix"
15878 eval x=\"$x\"
15879 exec_prefix="$acl_save_exec_prefix"
15880 prefix="$acl_save_prefix"
15881
15882 if test "X$x" = "X$element"; then
15883 haveit=yes
15884 break
15885 fi
15886 done
15887 if test -z "$haveit"; then
15888 LIBS="${LIBS}${LIBS:+ }$element"
15889 fi
15890 done
15891
15892 CY_EXECUTE=1
15893
15894 fi
15895
15896 elif test $pkg_failed = untried; then
15897
15898
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15900 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15901 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904
15905 ac_check_framework_save_LIBS=$LIBS
15906 LIBS="-framework JavaScriptCore $LIBS"
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909
15910 #include <JavaScriptCore/JSBase.h>
15911
15912 int
15913 main ()
15914 {
15915 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15916 ;
15917 return 0;
15918 }
15919 _ACEOF
15920 if ac_fn_cxx_try_link "$LINENO"; then :
15921
15922 ac_cv_framework_JavaScriptCore=yes
15923
15924 else
15925 ac_cv_framework_JavaScriptCore=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
15929 LIBS=$ac_check_framework_save_LIBS
15930
15931 fi
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15933 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15934 if test $ac_cv_framework_JavaScriptCore = yes; then :
15935
15936
15937 for element in "-framework JavaScriptCore $LIBS"; do
15938 haveit=
15939 for x in $LIBS; do
15940
15941 acl_save_prefix="$prefix"
15942 prefix="$acl_final_prefix"
15943 acl_save_exec_prefix="$exec_prefix"
15944 exec_prefix="$acl_final_exec_prefix"
15945 eval x=\"$x\"
15946 exec_prefix="$acl_save_exec_prefix"
15947 prefix="$acl_save_prefix"
15948
15949 if test "X$x" = "X$element"; then
15950 haveit=yes
15951 break
15952 fi
15953 done
15954 if test -z "$haveit"; then
15955 LIBS="${LIBS}${LIBS:+ }$element"
15956 fi
15957 done
15958
15959 CY_EXECUTE=1
15960
15961 fi
15962
15963 else
15964 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15965 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15967 $as_echo "yes" >&6; }
15968
15969 CY_EXECUTE=1
15970
15971 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15972 haveit=
15973 for x in $CXXFLAGS; do
15974
15975 acl_save_prefix="$prefix"
15976 prefix="$acl_final_prefix"
15977 acl_save_exec_prefix="$exec_prefix"
15978 exec_prefix="$acl_final_exec_prefix"
15979 eval x=\"$x\"
15980 exec_prefix="$acl_save_exec_prefix"
15981 prefix="$acl_save_prefix"
15982
15983 if test "X$x" = "X$element"; then
15984 haveit=yes
15985 break
15986 fi
15987 done
15988 if test -z "$haveit"; then
15989 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15990 fi
15991 done
15992
15993
15994 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15995 haveit=
15996 for x in $LIBS; do
15997
15998 acl_save_prefix="$prefix"
15999 prefix="$acl_final_prefix"
16000 acl_save_exec_prefix="$exec_prefix"
16001 exec_prefix="$acl_final_exec_prefix"
16002 eval x=\"$x\"
16003 exec_prefix="$acl_save_exec_prefix"
16004 prefix="$acl_save_prefix"
16005
16006 if test "X$x" = "X$element"; then
16007 haveit=yes
16008 break
16009 fi
16010 done
16011 if test -z "$haveit"; then
16012 LIBS="${LIBS}${LIBS:+ }$element"
16013 fi
16014 done
16015
16016
16017 fi
16018
16019 else
16020 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16021 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16023 $as_echo "yes" >&6; }
16024
16025 CY_EXECUTE=1
16026
16027 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16028 haveit=
16029 for x in $CXXFLAGS; do
16030
16031 acl_save_prefix="$prefix"
16032 prefix="$acl_final_prefix"
16033 acl_save_exec_prefix="$exec_prefix"
16034 exec_prefix="$acl_final_exec_prefix"
16035 eval x=\"$x\"
16036 exec_prefix="$acl_save_exec_prefix"
16037 prefix="$acl_save_prefix"
16038
16039 if test "X$x" = "X$element"; then
16040 haveit=yes
16041 break
16042 fi
16043 done
16044 if test -z "$haveit"; then
16045 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16046 fi
16047 done
16048
16049
16050 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16051 haveit=
16052 for x in $LIBS; do
16053
16054 acl_save_prefix="$prefix"
16055 prefix="$acl_final_prefix"
16056 acl_save_exec_prefix="$exec_prefix"
16057 exec_prefix="$acl_final_exec_prefix"
16058 eval x=\"$x\"
16059 exec_prefix="$acl_save_exec_prefix"
16060 prefix="$acl_save_prefix"
16061
16062 if test "X$x" = "X$element"; then
16063 haveit=yes
16064 break
16065 fi
16066 done
16067 if test -z "$haveit"; then
16068 LIBS="${LIBS}${LIBS:+ }$element"
16069 fi
16070 done
16071
16072
16073 fi
16074 ac_ext=mm
16075 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16076 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16077 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16078 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16079 if test -n "$ac_tool_prefix"; then
16080 for ac_prog in g++ objc++ objcxx c++ CXX
16081 do
16082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085 $as_echo_n "checking for $ac_word... " >&6; }
16086 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 if test -n "$OBJCXX"; then
16090 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
16091 else
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16094 do
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16099 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16102 fi
16103 done
16104 done
16105 IFS=$as_save_IFS
16106
16107 fi
16108 fi
16109 OBJCXX=$ac_cv_prog_OBJCXX
16110 if test -n "$OBJCXX"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
16112 $as_echo "$OBJCXX" >&6; }
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16116 fi
16117
16118
16119 test -n "$OBJCXX" && break
16120 done
16121 fi
16122 if test -z "$OBJCXX"; then
16123 ac_ct_OBJCXX=$OBJCXX
16124 for ac_prog in g++ objc++ objcxx c++ CXX
16125 do
16126 # Extract the first word of "$ac_prog", so it can be a program name with args.
16127 set dummy $ac_prog; ac_word=$2
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129 $as_echo_n "checking for $ac_word... " >&6; }
16130 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 if test -n "$ac_ct_OBJCXX"; then
16134 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
16135 else
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137 for as_dir in $PATH
16138 do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16143 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145 break 2
16146 fi
16147 done
16148 done
16149 IFS=$as_save_IFS
16150
16151 fi
16152 fi
16153 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
16154 if test -n "$ac_ct_OBJCXX"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
16156 $as_echo "$ac_ct_OBJCXX" >&6; }
16157 else
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159 $as_echo "no" >&6; }
16160 fi
16161
16162
16163 test -n "$ac_ct_OBJCXX" && break
16164 done
16165
16166 if test "x$ac_ct_OBJCXX" = x; then
16167 OBJCXX="g++"
16168 else
16169 case $cross_compiling:$ac_tool_warned in
16170 yes:)
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16173 ac_tool_warned=yes ;;
16174 esac
16175 OBJCXX=$ac_ct_OBJCXX
16176 fi
16177 fi
16178
16179 # Provide some information about the compiler.
16180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
16181 set X $ac_compile
16182 ac_compiler=$2
16183 for ac_option in --version -v -V -qversion; do
16184 { { ac_try="$ac_compiler $ac_option >&5"
16185 case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188 esac
16189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16190 $as_echo "$ac_try_echo"; } >&5
16191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16192 ac_status=$?
16193 if test -s conftest.err; then
16194 sed '10a\
16195 ... rest of stderr output deleted ...
16196 10q' conftest.err >conftest.er1
16197 cat conftest.er1 >&5
16198 fi
16199 rm -f conftest.er1 conftest.err
16200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201 test $ac_status = 0; }
16202 done
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
16205 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
16206 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
16207 $as_echo_n "(cached) " >&6
16208 else
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211
16212 int
16213 main ()
16214 {
16215 #ifndef __GNUC__
16216 choke me
16217 #endif
16218
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_objcxx_try_compile "$LINENO"; then :
16224 ac_compiler_gnu=yes
16225 else
16226 ac_compiler_gnu=no
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16230
16231 fi
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16233 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16234 if test $ac_compiler_gnu = yes; then
16235 GOBJCXX=yes
16236 else
16237 GOBJCXX=
16238 fi
16239 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16240 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16242 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16243 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16247 ac_objcxx_werror_flag=yes
16248 ac_cv_prog_objcxx_g=no
16249 OBJCXXFLAGS="-g"
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252
16253 int
16254 main ()
16255 {
16256
16257 ;
16258 return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_objcxx_try_compile "$LINENO"; then :
16262 ac_cv_prog_objcxx_g=yes
16263 else
16264 OBJCXXFLAGS=""
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267
16268 int
16269 main ()
16270 {
16271
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 if ac_fn_objcxx_try_compile "$LINENO"; then :
16277
16278 else
16279 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16280 OBJCXXFLAGS="-g"
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284 int
16285 main ()
16286 {
16287
16288 ;
16289 return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_objcxx_try_compile "$LINENO"; then :
16293 ac_cv_prog_objcxx_g=yes
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16303 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
16304 if test "$ac_test_OBJCXXFLAGS" = set; then
16305 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16306 elif test $ac_cv_prog_objcxx_g = yes; then
16307 if test "$GOBJCXX" = yes; then
16308 OBJCXXFLAGS="-g -O2"
16309 else
16310 OBJCXXFLAGS="-g"
16311 fi
16312 else
16313 if test "$GOBJCXX" = yes; then
16314 OBJCXXFLAGS="-O2"
16315 else
16316 OBJCXXFLAGS=
16317 fi
16318 fi
16319 ac_ext=cpp
16320 ac_cpp='$CXXCPP $CPPFLAGS'
16321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16324
16325
16326 case $CY_EXECUTE in #(
16327 1) :
16328
16329
16330
16331 pkg_failed=no
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16333 $as_echo_n "checking for LIBFFI... " >&6; }
16334
16335 if test -n "$PKG_CONFIG"; then
16336 if test -n "$LIBFFI_CFLAGS"; then
16337 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16338 else
16339 if test -n "$PKG_CONFIG" && \
16340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16341 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16342 ac_status=$?
16343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16344 test $ac_status = 0; }; then
16345 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
16346 else
16347 pkg_failed=yes
16348 fi
16349 fi
16350 else
16351 pkg_failed=untried
16352 fi
16353 if test -n "$PKG_CONFIG"; then
16354 if test -n "$LIBFFI_LIBS"; then
16355 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16356 else
16357 if test -n "$PKG_CONFIG" && \
16358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16359 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16360 ac_status=$?
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; then
16363 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
16364 else
16365 pkg_failed=yes
16366 fi
16367 fi
16368 else
16369 pkg_failed=untried
16370 fi
16371
16372
16373
16374 if test $pkg_failed = yes; then
16375
16376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16377 _pkg_short_errors_supported=yes
16378 else
16379 _pkg_short_errors_supported=no
16380 fi
16381 if test $_pkg_short_errors_supported = yes; then
16382 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
16383 else
16384 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
16385 fi
16386 # Put the nasty error message in config.log where it belongs
16387 echo "$LIBFFI_PKG_ERRORS" >&5
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391
16392 for ac_header in ffi.h ffi/ffi.h
16393 do :
16394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16396 eval as_val=\$$as_ac_Header
16397 if test "x$as_val" = x""yes; then :
16398 cat >>confdefs.h <<_ACEOF
16399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16400 _ACEOF
16401 break
16402 fi
16403
16404 done
16405
16406 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16407
16408 as_fn_error "You need libffi" "$LINENO" 5
16409
16410 fi
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16412 $as_echo_n "checking for library containing ffi_call... " >&6; }
16413 if test "${ac_cv_search_ffi_call+set}" = set; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 ac_func_search_save_LIBS=$LIBS
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419
16420 /* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 char ffi_call ();
16427 int
16428 main ()
16429 {
16430 return ffi_call ();
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 for ac_lib in '' ffi; do
16436 if test -z "$ac_lib"; then
16437 ac_res="none required"
16438 else
16439 ac_res=-l$ac_lib
16440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16441 fi
16442 if ac_fn_cxx_try_link "$LINENO"; then :
16443 ac_cv_search_ffi_call=$ac_res
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext \
16446 conftest$ac_exeext
16447 if test "${ac_cv_search_ffi_call+set}" = set; then :
16448 break
16449 fi
16450 done
16451 if test "${ac_cv_search_ffi_call+set}" = set; then :
16452
16453 else
16454 ac_cv_search_ffi_call=no
16455 fi
16456 rm conftest.$ac_ext
16457 LIBS=$ac_func_search_save_LIBS
16458 fi
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16460 $as_echo "$ac_cv_search_ffi_call" >&6; }
16461 ac_res=$ac_cv_search_ffi_call
16462 if test "$ac_res" != no; then :
16463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16464
16465 fi
16466
16467 case $ac_cv_search_ffi_call in #(
16468 no) :
16469
16470 as_fn_error "You need libffi" "$LINENO" 5
16471 ;; #(
16472 *) :
16473 ;;
16474 esac
16475
16476 elif test $pkg_failed = untried; then
16477
16478 for ac_header in ffi.h ffi/ffi.h
16479 do :
16480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16481 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16482 eval as_val=\$$as_ac_Header
16483 if test "x$as_val" = x""yes; then :
16484 cat >>confdefs.h <<_ACEOF
16485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16486 _ACEOF
16487 break
16488 fi
16489
16490 done
16491
16492 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16493
16494 as_fn_error "You need libffi" "$LINENO" 5
16495
16496 fi
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16498 $as_echo_n "checking for library containing ffi_call... " >&6; }
16499 if test "${ac_cv_search_ffi_call+set}" = set; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 ac_func_search_save_LIBS=$LIBS
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505
16506 /* Override any GCC internal prototype to avoid an error.
16507 Use char because int might match the return type of a GCC
16508 builtin and then its argument prototype would still apply. */
16509 #ifdef __cplusplus
16510 extern "C"
16511 #endif
16512 char ffi_call ();
16513 int
16514 main ()
16515 {
16516 return ffi_call ();
16517 ;
16518 return 0;
16519 }
16520 _ACEOF
16521 for ac_lib in '' ffi; do
16522 if test -z "$ac_lib"; then
16523 ac_res="none required"
16524 else
16525 ac_res=-l$ac_lib
16526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16527 fi
16528 if ac_fn_cxx_try_link "$LINENO"; then :
16529 ac_cv_search_ffi_call=$ac_res
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext
16533 if test "${ac_cv_search_ffi_call+set}" = set; then :
16534 break
16535 fi
16536 done
16537 if test "${ac_cv_search_ffi_call+set}" = set; then :
16538
16539 else
16540 ac_cv_search_ffi_call=no
16541 fi
16542 rm conftest.$ac_ext
16543 LIBS=$ac_func_search_save_LIBS
16544 fi
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16546 $as_echo "$ac_cv_search_ffi_call" >&6; }
16547 ac_res=$ac_cv_search_ffi_call
16548 if test "$ac_res" != no; then :
16549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16550
16551 fi
16552
16553 case $ac_cv_search_ffi_call in #(
16554 no) :
16555
16556 as_fn_error "You need libffi" "$LINENO" 5
16557 ;; #(
16558 *) :
16559 ;;
16560 esac
16561
16562 else
16563 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16564 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16567
16568
16569 for element in `$PKG_CONFIG --cflags libffi`; do
16570 haveit=
16571 for x in $CXXFLAGS; do
16572
16573 acl_save_prefix="$prefix"
16574 prefix="$acl_final_prefix"
16575 acl_save_exec_prefix="$exec_prefix"
16576 exec_prefix="$acl_final_exec_prefix"
16577 eval x=\"$x\"
16578 exec_prefix="$acl_save_exec_prefix"
16579 prefix="$acl_save_prefix"
16580
16581 if test "X$x" = "X$element"; then
16582 haveit=yes
16583 break
16584 fi
16585 done
16586 if test -z "$haveit"; then
16587 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16588 fi
16589 done
16590
16591
16592 for element in `$PKG_CONFIG --libs libffi`; do
16593 haveit=
16594 for x in $LIBS; do
16595
16596 acl_save_prefix="$prefix"
16597 prefix="$acl_final_prefix"
16598 acl_save_exec_prefix="$exec_prefix"
16599 exec_prefix="$acl_final_exec_prefix"
16600 eval x=\"$x\"
16601 exec_prefix="$acl_save_exec_prefix"
16602 prefix="$acl_save_prefix"
16603
16604 if test "X$x" = "X$element"; then
16605 haveit=yes
16606 break
16607 fi
16608 done
16609 if test -z "$haveit"; then
16610 LIBS="${LIBS}${LIBS:+ }$element"
16611 fi
16612 done
16613
16614
16615 fi
16616 ac_ext=mm
16617 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16618 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
16623 $as_echo_n "checking if we really have Objective C++... " >&6; }
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626
16627 // This space intentionally left blank
16628
16629 _ACEOF
16630 if ac_fn_objcxx_try_compile "$LINENO"; then :
16631
16632 CY_OBJECTIVEC=1
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16634 $as_echo "yes" >&6; }
16635
16636 else
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 fi
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 if test "x$CY_OBJECTIVEC" = x1; then :
16642
16643
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
16645 $as_echo_n "checking for framework CoreFoundation... " >&6; }
16646 if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
16647 $as_echo_n "(cached) " >&6
16648 else
16649
16650 ac_check_framework_save_LIBS=$LIBS
16651 LIBS="-framework CoreFoundation $LIBS"
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654
16655 #include <CoreFoundation/CFBase.h>
16656
16657 int
16658 main ()
16659 {
16660 CFAllocatorGetDefault();
16661 ;
16662 return 0;
16663 }
16664 _ACEOF
16665 if ac_fn_objcxx_try_link "$LINENO"; then :
16666
16667 ac_cv_framework_CoreFoundation=yes
16668
16669 else
16670 ac_cv_framework_CoreFoundation=no
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext \
16673 conftest$ac_exeext conftest.$ac_ext
16674 LIBS=$ac_check_framework_save_LIBS
16675
16676 fi
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
16678 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
16679 if test $ac_cv_framework_CoreFoundation = yes; then :
16680
16681
16682 for element in "-framework CoreFoundation $LIBS"; do
16683 haveit=
16684 for x in $LIBS; do
16685
16686 acl_save_prefix="$prefix"
16687 prefix="$acl_final_prefix"
16688 acl_save_exec_prefix="$exec_prefix"
16689 exec_prefix="$acl_final_exec_prefix"
16690 eval x=\"$x\"
16691 exec_prefix="$acl_save_exec_prefix"
16692 prefix="$acl_save_prefix"
16693
16694 if test "X$x" = "X$element"; then
16695 haveit=yes
16696 break
16697 fi
16698 done
16699 if test -z "$haveit"; then
16700 LIBS="${LIBS}${LIBS:+ }$element"
16701 fi
16702 done
16703
16704
16705
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
16709 $as_echo_n "checking for framework Foundation... " >&6; }
16710 if test "${ac_cv_framework_Foundation+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713
16714 ac_check_framework_save_LIBS=$LIBS
16715 LIBS="-framework Foundation $LIBS"
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718
16719 #include <Foundation/NSObject.h>
16720
16721 int
16722 main ()
16723 {
16724 [[NSObject alloc] init];
16725 ;
16726 return 0;
16727 }
16728 _ACEOF
16729 if ac_fn_objcxx_try_link "$LINENO"; then :
16730
16731 ac_cv_framework_Foundation=yes
16732
16733 else
16734 ac_cv_framework_Foundation=no
16735 fi
16736 rm -f core conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_framework_save_LIBS
16739
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
16742 $as_echo "$ac_cv_framework_Foundation" >&6; }
16743 if test $ac_cv_framework_Foundation = yes; then :
16744
16745
16746 for element in "-framework Foundation $LIBS"; do
16747 haveit=
16748 for x in $LIBS; do
16749
16750 acl_save_prefix="$prefix"
16751 prefix="$acl_final_prefix"
16752 acl_save_exec_prefix="$exec_prefix"
16753 exec_prefix="$acl_final_exec_prefix"
16754 eval x=\"$x\"
16755 exec_prefix="$acl_save_exec_prefix"
16756 prefix="$acl_save_prefix"
16757
16758 if test "X$x" = "X$element"; then
16759 haveit=yes
16760 break
16761 fi
16762 done
16763 if test -z "$haveit"; then
16764 LIBS="${LIBS}${LIBS:+ }$element"
16765 fi
16766 done
16767
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_FRAMEWORK_FOUNDATION 1
16770 _ACEOF
16771
16772
16773 fi
16774
16775
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
16777 $as_echo_n "checking for framework WebKit... " >&6; }
16778 if test "${ac_cv_framework_WebKit+set}" = set; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781
16782 ac_check_framework_save_LIBS=$LIBS
16783 LIBS="-framework WebKit $LIBS"
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16786
16787 #include <WebKit/WebScriptObject.h>
16788
16789 int
16790 main ()
16791 {
16792 [[WebScriptObject alloc] init];
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 if ac_fn_objcxx_try_link "$LINENO"; then :
16798
16799 ac_cv_framework_WebKit=yes
16800
16801 else
16802 ac_cv_framework_WebKit=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext \
16805 conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_framework_save_LIBS
16807
16808 fi
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
16810 $as_echo "$ac_cv_framework_WebKit" >&6; }
16811 if test $ac_cv_framework_WebKit = yes; then :
16812
16813
16814 for element in "-framework WebKit $LIBS"; do
16815 haveit=
16816 for x in $LIBS; do
16817
16818 acl_save_prefix="$prefix"
16819 prefix="$acl_final_prefix"
16820 acl_save_exec_prefix="$exec_prefix"
16821 exec_prefix="$acl_final_exec_prefix"
16822 eval x=\"$x\"
16823 exec_prefix="$acl_save_exec_prefix"
16824 prefix="$acl_save_prefix"
16825
16826 if test "X$x" = "X$element"; then
16827 haveit=yes
16828 break
16829 fi
16830 done
16831 if test -z "$haveit"; then
16832 LIBS="${LIBS}${LIBS:+ }$element"
16833 fi
16834 done
16835
16836 cat >>confdefs.h <<_ACEOF
16837 #define HAVE_FRAMEWORK_WEBKIT 1
16838 _ACEOF
16839
16840
16841 fi
16842
16843
16844 else
16845
16846 for ac_prog in gnustep-config
16847 do
16848 # Extract the first word of "$ac_prog", so it can be a program name with args.
16849 set dummy $ac_prog; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16851 $as_echo_n "checking for $ac_word... " >&6; }
16852 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 if test -n "$GNUSTEP_CONFIG"; then
16856 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
16857 else
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16860 do
16861 IFS=$as_save_IFS
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16865 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 break 2
16868 fi
16869 done
16870 done
16871 IFS=$as_save_IFS
16872
16873 fi
16874 fi
16875 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
16876 if test -n "$GNUSTEP_CONFIG"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
16878 $as_echo "$GNUSTEP_CONFIG" >&6; }
16879 else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882 fi
16883
16884
16885 test -n "$GNUSTEP_CONFIG" && break
16886 done
16887
16888 if test "x$GNUSTEP_CONFIG" != x; then :
16889
16890
16891
16892 for element in `$GNUSTEP_CONFIG --objc-flags`; do
16893 haveit=
16894 for x in $OBJCXXFLAGS; do
16895
16896 acl_save_prefix="$prefix"
16897 prefix="$acl_final_prefix"
16898 acl_save_exec_prefix="$exec_prefix"
16899 exec_prefix="$acl_final_exec_prefix"
16900 eval x=\"$x\"
16901 exec_prefix="$acl_save_exec_prefix"
16902 prefix="$acl_save_prefix"
16903
16904 if test "X$x" = "X$element"; then
16905 haveit=yes
16906 break
16907 fi
16908 done
16909 if test -z "$haveit"; then
16910 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16911 fi
16912 done
16913
16914
16915 for element in `$GNUSTEP_CONFIG --base-libs`; do
16916 haveit=
16917 for x in $LIBS; do
16918
16919 acl_save_prefix="$prefix"
16920 prefix="$acl_final_prefix"
16921 acl_save_exec_prefix="$exec_prefix"
16922 exec_prefix="$acl_final_exec_prefix"
16923 eval x=\"$x\"
16924 exec_prefix="$acl_save_exec_prefix"
16925 prefix="$acl_save_prefix"
16926
16927 if test "X$x" = "X$element"; then
16928 haveit=yes
16929 break
16930 fi
16931 done
16932 if test -z "$haveit"; then
16933 LIBS="${LIBS}${LIBS:+ }$element"
16934 fi
16935 done
16936
16937
16938 else
16939 CY_OBJECTIVEC=0
16940
16941 fi
16942
16943 fi
16944
16945 fi
16946 ac_ext=cpp
16947 ac_cpp='$CXXCPP $CPPFLAGS'
16948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16951
16952 ;; #(
16953 *) :
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
16956 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
16957 ;;
16958 esac
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16960 $as_echo_n "checking for GNU make... " >&6; }
16961 if test "${_cv_gnu_make_command+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 _cv_gnu_make_command='' ;
16965 for a in "$MAKE" make gmake gnumake ; do
16966 if test -z "$a" ; then continue ; fi ;
16967 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
16968 _cv_gnu_make_command=$a ;
16969 break;
16970 fi
16971 done ;
16972
16973 fi
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
16975 $as_echo "$_cv_gnu_make_command" >&6; } ;
16976 if test "x$_cv_gnu_make_command" != "x" ; then
16977 ifGNUmake='' ;
16978 else
16979 ifGNUmake='#' ;
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16981 $as_echo "\"Not found\"" >&6; };
16982 fi
16983
16984
16985 if test "x$_cv_gnu_make_command" = x; then :
16986 as_fn_error "You need GNU make" "$LINENO" 5
16987 fi
16988 ac_config_files="$ac_config_files GNUmakefile"
16989
16990 cat >confcache <<\_ACEOF
16991 # This file is a shell script that caches the results of configure
16992 # tests run on this system so they can be shared between configure
16993 # scripts and configure runs, see configure's option --config-cache.
16994 # It is not useful on other systems. If it contains results you don't
16995 # want to keep, you may remove or edit it.
16996 #
16997 # config.status only pays attention to the cache file if you give it
16998 # the --recheck option to rerun configure.
16999 #
17000 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17002 # following values.
17003
17004 _ACEOF
17005
17006 # The following way of writing the cache mishandles newlines in values,
17007 # but we know of no workaround that is simple, portable, and efficient.
17008 # So, we kill variables containing newlines.
17009 # Ultrix sh set writes to stderr and can't be redirected directly,
17010 # and sets the high bit in the cache file unless we assign to the vars.
17011 (
17012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17013 eval ac_val=\$$ac_var
17014 case $ac_val in #(
17015 *${as_nl}*)
17016 case $ac_var in #(
17017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17018 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17019 esac
17020 case $ac_var in #(
17021 _ | IFS | as_nl) ;; #(
17022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17023 *) { eval $ac_var=; unset $ac_var;} ;;
17024 esac ;;
17025 esac
17026 done
17027
17028 (set) 2>&1 |
17029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17030 *${as_nl}ac_space=\ *)
17031 # `set' does not quote correctly, so add quotes: double-quote
17032 # substitution turns \\\\ into \\, and sed turns \\ into \.
17033 sed -n \
17034 "s/'/'\\\\''/g;
17035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17036 ;; #(
17037 *)
17038 # `set' quotes correctly as required by POSIX, so do not add quotes.
17039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17040 ;;
17041 esac |
17042 sort
17043 ) |
17044 sed '
17045 /^ac_cv_env_/b end
17046 t clear
17047 :clear
17048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17049 t end
17050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17051 :end' >>confcache
17052 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17053 if test -w "$cache_file"; then
17054 test "x$cache_file" != "x/dev/null" &&
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17056 $as_echo "$as_me: updating cache $cache_file" >&6;}
17057 cat confcache >$cache_file
17058 else
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17061 fi
17062 fi
17063 rm -f confcache
17064
17065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17066 # Let make expand exec_prefix.
17067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17068
17069 # Transform confdefs.h into DEFS.
17070 # Protect against shell expansion while executing Makefile rules.
17071 # Protect against Makefile macro expansion.
17072 #
17073 # If the first sed substitution is executed (which looks for macros that
17074 # take arguments), then branch to the quote section. Otherwise,
17075 # look for a macro that doesn't take arguments.
17076 ac_script='
17077 :mline
17078 /\\$/{
17079 N
17080 s,\\\n,,
17081 b mline
17082 }
17083 t clear
17084 :clear
17085 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17086 t quote
17087 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17088 t quote
17089 b any
17090 :quote
17091 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17092 s/\[/\\&/g
17093 s/\]/\\&/g
17094 s/\$/$$/g
17095 H
17096 :any
17097 ${
17098 g
17099 s/^\n//
17100 s/\n/ /g
17101 p
17102 }
17103 '
17104 DEFS=`sed -n "$ac_script" confdefs.h`
17105
17106
17107 ac_libobjs=
17108 ac_ltlibobjs=
17109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17110 # 1. Remove the extension, and $U if already installed.
17111 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17112 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17113 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17114 # will be set to the directory where LIBOBJS objects are built.
17115 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17116 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17117 done
17118 LIBOBJS=$ac_libobjs
17119
17120 LTLIBOBJS=$ac_ltlibobjs
17121
17122
17123
17124 : ${CONFIG_STATUS=./config.status}
17125 ac_write_fail=0
17126 ac_clean_files_save=$ac_clean_files
17127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17130 as_write_fail=0
17131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17132 #! $SHELL
17133 # Generated by $as_me.
17134 # Run this file to recreate the current configuration.
17135 # Compiler output produced by configure, useful for debugging
17136 # configure, is in config.log if it exists.
17137
17138 debug=false
17139 ac_cs_recheck=false
17140 ac_cs_silent=false
17141
17142 SHELL=\${CONFIG_SHELL-$SHELL}
17143 export SHELL
17144 _ASEOF
17145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17146 ## -------------------- ##
17147 ## M4sh Initialization. ##
17148 ## -------------------- ##
17149
17150 # Be more Bourne compatible
17151 DUALCASE=1; export DUALCASE # for MKS sh
17152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17153 emulate sh
17154 NULLCMD=:
17155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
17158 setopt NO_GLOB_SUBST
17159 else
17160 case `(set -o) 2>/dev/null` in #(
17161 *posix*) :
17162 set -o posix ;; #(
17163 *) :
17164 ;;
17165 esac
17166 fi
17167
17168
17169 as_nl='
17170 '
17171 export as_nl
17172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17173 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17176 # Prefer a ksh shell builtin over an external printf program on Solaris,
17177 # but without wasting forks for bash or zsh.
17178 if test -z "$BASH_VERSION$ZSH_VERSION" \
17179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17180 as_echo='print -r --'
17181 as_echo_n='print -rn --'
17182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17183 as_echo='printf %s\n'
17184 as_echo_n='printf %s'
17185 else
17186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17187 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17188 as_echo_n='/usr/ucb/echo -n'
17189 else
17190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17191 as_echo_n_body='eval
17192 arg=$1;
17193 case $arg in #(
17194 *"$as_nl"*)
17195 expr "X$arg" : "X\\(.*\\)$as_nl";
17196 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17197 esac;
17198 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17199 '
17200 export as_echo_n_body
17201 as_echo_n='sh -c $as_echo_n_body as_echo'
17202 fi
17203 export as_echo_body
17204 as_echo='sh -c $as_echo_body as_echo'
17205 fi
17206
17207 # The user is always right.
17208 if test "${PATH_SEPARATOR+set}" != set; then
17209 PATH_SEPARATOR=:
17210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17211 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17212 PATH_SEPARATOR=';'
17213 }
17214 fi
17215
17216
17217 # IFS
17218 # We need space, tab and new line, in precisely that order. Quoting is
17219 # there to prevent editors from complaining about space-tab.
17220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17221 # splitting by setting IFS to empty value.)
17222 IFS=" "" $as_nl"
17223
17224 # Find who we are. Look in the path if we contain no directory separator.
17225 case $0 in #((
17226 *[\\/]* ) as_myself=$0 ;;
17227 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17228 for as_dir in $PATH
17229 do
17230 IFS=$as_save_IFS
17231 test -z "$as_dir" && as_dir=.
17232 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17233 done
17234 IFS=$as_save_IFS
17235
17236 ;;
17237 esac
17238 # We did not find ourselves, most probably we were run as `sh COMMAND'
17239 # in which case we are not to be found in the path.
17240 if test "x$as_myself" = x; then
17241 as_myself=$0
17242 fi
17243 if test ! -f "$as_myself"; then
17244 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17245 exit 1
17246 fi
17247
17248 # Unset variables that we do not need and which cause bugs (e.g. in
17249 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17250 # suppresses any "Segmentation fault" message there. '((' could
17251 # trigger a bug in pdksh 5.2.14.
17252 for as_var in BASH_ENV ENV MAIL MAILPATH
17253 do eval test x\${$as_var+set} = xset \
17254 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17255 done
17256 PS1='$ '
17257 PS2='> '
17258 PS4='+ '
17259
17260 # NLS nuisances.
17261 LC_ALL=C
17262 export LC_ALL
17263 LANGUAGE=C
17264 export LANGUAGE
17265
17266 # CDPATH.
17267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17268
17269
17270 # as_fn_error ERROR [LINENO LOG_FD]
17271 # ---------------------------------
17272 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17273 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17274 # script with status $?, using 1 if that was 0.
17275 as_fn_error ()
17276 {
17277 as_status=$?; test $as_status -eq 0 && as_status=1
17278 if test "$3"; then
17279 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17280 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17281 fi
17282 $as_echo "$as_me: error: $1" >&2
17283 as_fn_exit $as_status
17284 } # as_fn_error
17285
17286
17287 # as_fn_set_status STATUS
17288 # -----------------------
17289 # Set $? to STATUS, without forking.
17290 as_fn_set_status ()
17291 {
17292 return $1
17293 } # as_fn_set_status
17294
17295 # as_fn_exit STATUS
17296 # -----------------
17297 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17298 as_fn_exit ()
17299 {
17300 set +e
17301 as_fn_set_status $1
17302 exit $1
17303 } # as_fn_exit
17304
17305 # as_fn_unset VAR
17306 # ---------------
17307 # Portably unset VAR.
17308 as_fn_unset ()
17309 {
17310 { eval $1=; unset $1;}
17311 }
17312 as_unset=as_fn_unset
17313 # as_fn_append VAR VALUE
17314 # ----------------------
17315 # Append the text in VALUE to the end of the definition contained in VAR. Take
17316 # advantage of any shell optimizations that allow amortized linear growth over
17317 # repeated appends, instead of the typical quadratic growth present in naive
17318 # implementations.
17319 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17320 eval 'as_fn_append ()
17321 {
17322 eval $1+=\$2
17323 }'
17324 else
17325 as_fn_append ()
17326 {
17327 eval $1=\$$1\$2
17328 }
17329 fi # as_fn_append
17330
17331 # as_fn_arith ARG...
17332 # ------------------
17333 # Perform arithmetic evaluation on the ARGs, and store the result in the
17334 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17335 # must be portable across $(()) and expr.
17336 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17337 eval 'as_fn_arith ()
17338 {
17339 as_val=$(( $* ))
17340 }'
17341 else
17342 as_fn_arith ()
17343 {
17344 as_val=`expr "$@" || test $? -eq 1`
17345 }
17346 fi # as_fn_arith
17347
17348
17349 if expr a : '\(a\)' >/dev/null 2>&1 &&
17350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17351 as_expr=expr
17352 else
17353 as_expr=false
17354 fi
17355
17356 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17357 as_basename=basename
17358 else
17359 as_basename=false
17360 fi
17361
17362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17363 as_dirname=dirname
17364 else
17365 as_dirname=false
17366 fi
17367
17368 as_me=`$as_basename -- "$0" ||
17369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17370 X"$0" : 'X\(//\)$' \| \
17371 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17372 $as_echo X/"$0" |
17373 sed '/^.*\/\([^/][^/]*\)\/*$/{
17374 s//\1/
17375 q
17376 }
17377 /^X\/\(\/\/\)$/{
17378 s//\1/
17379 q
17380 }
17381 /^X\/\(\/\).*/{
17382 s//\1/
17383 q
17384 }
17385 s/.*/./; q'`
17386
17387 # Avoid depending upon Character Ranges.
17388 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17389 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17390 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17391 as_cr_digits='0123456789'
17392 as_cr_alnum=$as_cr_Letters$as_cr_digits
17393
17394 ECHO_C= ECHO_N= ECHO_T=
17395 case `echo -n x` in #(((((
17396 -n*)
17397 case `echo 'xy\c'` in
17398 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17399 xy) ECHO_C='\c';;
17400 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17401 ECHO_T=' ';;
17402 esac;;
17403 *)
17404 ECHO_N='-n';;
17405 esac
17406
17407 rm -f conf$$ conf$$.exe conf$$.file
17408 if test -d conf$$.dir; then
17409 rm -f conf$$.dir/conf$$.file
17410 else
17411 rm -f conf$$.dir
17412 mkdir conf$$.dir 2>/dev/null
17413 fi
17414 if (echo >conf$$.file) 2>/dev/null; then
17415 if ln -s conf$$.file conf$$ 2>/dev/null; then
17416 as_ln_s='ln -s'
17417 # ... but there are two gotchas:
17418 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17419 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17420 # In both cases, we have to default to `cp -p'.
17421 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17422 as_ln_s='cp -p'
17423 elif ln conf$$.file conf$$ 2>/dev/null; then
17424 as_ln_s=ln
17425 else
17426 as_ln_s='cp -p'
17427 fi
17428 else
17429 as_ln_s='cp -p'
17430 fi
17431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17432 rmdir conf$$.dir 2>/dev/null
17433
17434
17435 # as_fn_mkdir_p
17436 # -------------
17437 # Create "$as_dir" as a directory, including parents if necessary.
17438 as_fn_mkdir_p ()
17439 {
17440
17441 case $as_dir in #(
17442 -*) as_dir=./$as_dir;;
17443 esac
17444 test -d "$as_dir" || eval $as_mkdir_p || {
17445 as_dirs=
17446 while :; do
17447 case $as_dir in #(
17448 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17449 *) as_qdir=$as_dir;;
17450 esac
17451 as_dirs="'$as_qdir' $as_dirs"
17452 as_dir=`$as_dirname -- "$as_dir" ||
17453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17454 X"$as_dir" : 'X\(//\)[^/]' \| \
17455 X"$as_dir" : 'X\(//\)$' \| \
17456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17457 $as_echo X"$as_dir" |
17458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17459 s//\1/
17460 q
17461 }
17462 /^X\(\/\/\)[^/].*/{
17463 s//\1/
17464 q
17465 }
17466 /^X\(\/\/\)$/{
17467 s//\1/
17468 q
17469 }
17470 /^X\(\/\).*/{
17471 s//\1/
17472 q
17473 }
17474 s/.*/./; q'`
17475 test -d "$as_dir" && break
17476 done
17477 test -z "$as_dirs" || eval "mkdir $as_dirs"
17478 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17479
17480
17481 } # as_fn_mkdir_p
17482 if mkdir -p . 2>/dev/null; then
17483 as_mkdir_p='mkdir -p "$as_dir"'
17484 else
17485 test -d ./-p && rmdir ./-p
17486 as_mkdir_p=false
17487 fi
17488
17489 if test -x / >/dev/null 2>&1; then
17490 as_test_x='test -x'
17491 else
17492 if ls -dL / >/dev/null 2>&1; then
17493 as_ls_L_option=L
17494 else
17495 as_ls_L_option=
17496 fi
17497 as_test_x='
17498 eval sh -c '\''
17499 if test -d "$1"; then
17500 test -d "$1/.";
17501 else
17502 case $1 in #(
17503 -*)set "./$1";;
17504 esac;
17505 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17506 ???[sx]*):;;*)false;;esac;fi
17507 '\'' sh
17508 '
17509 fi
17510 as_executable_p=$as_test_x
17511
17512 # Sed expression to map a string onto a valid CPP name.
17513 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17514
17515 # Sed expression to map a string onto a valid variable name.
17516 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17517
17518
17519 exec 6>&1
17520 ## ----------------------------------- ##
17521 ## Main body of $CONFIG_STATUS script. ##
17522 ## ----------------------------------- ##
17523 _ASEOF
17524 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17525
17526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17527 # Save the log message, to keep $0 and so on meaningful, and to
17528 # report actual input values of CONFIG_FILES etc. instead of their
17529 # values after options handling.
17530 ac_log="
17531 This file was extended by Cycript $as_me 0.9, which was
17532 generated by GNU Autoconf 2.65. Invocation command line was
17533
17534 CONFIG_FILES = $CONFIG_FILES
17535 CONFIG_HEADERS = $CONFIG_HEADERS
17536 CONFIG_LINKS = $CONFIG_LINKS
17537 CONFIG_COMMANDS = $CONFIG_COMMANDS
17538 $ $0 $@
17539
17540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17541 "
17542
17543 _ACEOF
17544
17545 case $ac_config_files in *"
17546 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17547 esac
17548
17549
17550
17551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552 # Files that config.status was made for.
17553 config_files="$ac_config_files"
17554 config_commands="$ac_config_commands"
17555
17556 _ACEOF
17557
17558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17559 ac_cs_usage="\
17560 \`$as_me' instantiates files and other configuration actions
17561 from templates according to the current configuration. Unless the files
17562 and actions are specified as TAGs, all are instantiated by default.
17563
17564 Usage: $0 [OPTION]... [TAG]...
17565
17566 -h, --help print this help, then exit
17567 -V, --version print version number and configuration settings, then exit
17568 --config print configuration, then exit
17569 -q, --quiet, --silent
17570 do not print progress messages
17571 -d, --debug don't remove temporary files
17572 --recheck update $as_me by reconfiguring in the same conditions
17573 --file=FILE[:TEMPLATE]
17574 instantiate the configuration file FILE
17575
17576 Configuration files:
17577 $config_files
17578
17579 Configuration commands:
17580 $config_commands
17581
17582 Report bugs to <saurik@saurik.com>.
17583 Cycript home page: <http://www.cycript.org/>."
17584
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17588 ac_cs_version="\\
17589 Cycript config.status 0.9
17590 configured by $0, generated by GNU Autoconf 2.65,
17591 with options \\"\$ac_cs_config\\"
17592
17593 Copyright (C) 2009 Free Software Foundation, Inc.
17594 This config.status script is free software; the Free Software Foundation
17595 gives unlimited permission to copy, distribute and modify it."
17596
17597 ac_pwd='$ac_pwd'
17598 srcdir='$srcdir'
17599 INSTALL='$INSTALL'
17600 AWK='$AWK'
17601 test -n "\$AWK" || AWK=awk
17602 _ACEOF
17603
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 # The default lists apply if the user does not specify any file.
17606 ac_need_defaults=:
17607 while test $# != 0
17608 do
17609 case $1 in
17610 --*=*)
17611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17613 ac_shift=:
17614 ;;
17615 *)
17616 ac_option=$1
17617 ac_optarg=$2
17618 ac_shift=shift
17619 ;;
17620 esac
17621
17622 case $ac_option in
17623 # Handling of the options.
17624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17625 ac_cs_recheck=: ;;
17626 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17627 $as_echo "$ac_cs_version"; exit ;;
17628 --config | --confi | --conf | --con | --co | --c )
17629 $as_echo "$ac_cs_config"; exit ;;
17630 --debug | --debu | --deb | --de | --d | -d )
17631 debug=: ;;
17632 --file | --fil | --fi | --f )
17633 $ac_shift
17634 case $ac_optarg in
17635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17636 esac
17637 as_fn_append CONFIG_FILES " '$ac_optarg'"
17638 ac_need_defaults=false;;
17639 --he | --h | --help | --hel | -h )
17640 $as_echo "$ac_cs_usage"; exit ;;
17641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17643 ac_cs_silent=: ;;
17644
17645 # This is an error.
17646 -*) as_fn_error "unrecognized option: \`$1'
17647 Try \`$0 --help' for more information." ;;
17648
17649 *) as_fn_append ac_config_targets " $1"
17650 ac_need_defaults=false ;;
17651
17652 esac
17653 shift
17654 done
17655
17656 ac_configure_extra_args=
17657
17658 if $ac_cs_silent; then
17659 exec 6>/dev/null
17660 ac_configure_extra_args="$ac_configure_extra_args --silent"
17661 fi
17662
17663 _ACEOF
17664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17665 if \$ac_cs_recheck; then
17666 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17667 shift
17668 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17669 CONFIG_SHELL='$SHELL'
17670 export CONFIG_SHELL
17671 exec "\$@"
17672 fi
17673
17674 _ACEOF
17675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17676 exec 5>>config.log
17677 {
17678 echo
17679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17680 ## Running $as_me. ##
17681 _ASBOX
17682 $as_echo "$ac_log"
17683 } >&5
17684
17685 _ACEOF
17686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17687 #
17688 # INIT-COMMANDS
17689 #
17690
17691
17692 # The HP-UX ksh and POSIX shell print the target directory to stdout
17693 # if CDPATH is set.
17694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17695
17696 sed_quote_subst='$sed_quote_subst'
17697 double_quote_subst='$double_quote_subst'
17698 delay_variable_subst='$delay_variable_subst'
17699 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17700 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17701 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17702 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17703 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17704 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17705 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17706 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17707 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17708 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17709 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17710 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17711 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17712 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17713 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17714 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17715 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17716 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17717 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17718 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17719 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17720 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17721 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17722 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17723 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17724 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17725 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17726 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17727 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17728 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17729 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17730 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17731 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17732 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17733 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17734 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17735 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17736 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17737 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17738 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17739 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17740 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17741 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17742 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17743 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17744 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17745 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17746 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17747 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17748 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17749 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17750 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17751 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17752 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17753 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17754 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17755 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17756 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17757 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17758 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17759 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17760 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17761 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17762 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17763 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17764 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17765 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17766 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17767 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17768 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17769 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17770 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17771 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17772 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17773 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17774 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17775 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17776 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17777 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17778 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17779 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17780 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17781 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17782 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17783 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17784 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17785 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17786 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17787 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17788 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17789 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17790 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17791 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17792 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17793 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17794 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17795 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17796 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17797 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17798 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17799 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17800 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17801 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17802 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17803 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17804 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17805 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17806 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17807 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17808 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17809 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17810 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17811 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17812 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17813 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17814 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17815 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17816 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17817 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17818 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17819 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17820 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17821 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17822 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17823 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17824 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17825 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17826 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17827 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17828 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17829 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17830 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17831 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17832 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17833 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17834 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17835 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17836 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17837 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17838 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17839 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17840 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17841 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17842 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17843 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17844 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17845 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17846 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17847 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17848 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17849 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17850 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17851 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17852 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17853 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17854 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17855 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17856 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17857 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17858 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17859 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17860 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17861 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17862 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17863 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17864 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17865 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17866 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17867 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17868 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17869 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17870
17871 LTCC='$LTCC'
17872 LTCFLAGS='$LTCFLAGS'
17873 compiler='$compiler_DEFAULT'
17874
17875 # Quote evaled strings.
17876 for var in SED \
17877 GREP \
17878 EGREP \
17879 FGREP \
17880 LD \
17881 NM \
17882 LN_S \
17883 lt_SP2NL \
17884 lt_NL2SP \
17885 reload_flag \
17886 OBJDUMP \
17887 deplibs_check_method \
17888 file_magic_cmd \
17889 AR \
17890 AR_FLAGS \
17891 STRIP \
17892 RANLIB \
17893 CC \
17894 CFLAGS \
17895 compiler \
17896 lt_cv_sys_global_symbol_pipe \
17897 lt_cv_sys_global_symbol_to_cdecl \
17898 lt_cv_sys_global_symbol_to_c_name_address \
17899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17900 SHELL \
17901 ECHO \
17902 lt_prog_compiler_no_builtin_flag \
17903 lt_prog_compiler_wl \
17904 lt_prog_compiler_pic \
17905 lt_prog_compiler_static \
17906 lt_cv_prog_compiler_c_o \
17907 need_locks \
17908 DSYMUTIL \
17909 NMEDIT \
17910 LIPO \
17911 OTOOL \
17912 OTOOL64 \
17913 shrext_cmds \
17914 export_dynamic_flag_spec \
17915 whole_archive_flag_spec \
17916 compiler_needs_object \
17917 with_gnu_ld \
17918 allow_undefined_flag \
17919 no_undefined_flag \
17920 hardcode_libdir_flag_spec \
17921 hardcode_libdir_flag_spec_ld \
17922 hardcode_libdir_separator \
17923 fix_srcfile_path \
17924 exclude_expsyms \
17925 include_expsyms \
17926 file_list_spec \
17927 variables_saved_for_relink \
17928 libname_spec \
17929 library_names_spec \
17930 soname_spec \
17931 finish_eval \
17932 old_striplib \
17933 striplib \
17934 compiler_lib_search_dirs \
17935 predep_objects \
17936 postdep_objects \
17937 predeps \
17938 postdeps \
17939 compiler_lib_search_path \
17940 LD_CXX \
17941 compiler_CXX \
17942 lt_prog_compiler_no_builtin_flag_CXX \
17943 lt_prog_compiler_wl_CXX \
17944 lt_prog_compiler_pic_CXX \
17945 lt_prog_compiler_static_CXX \
17946 lt_cv_prog_compiler_c_o_CXX \
17947 export_dynamic_flag_spec_CXX \
17948 whole_archive_flag_spec_CXX \
17949 compiler_needs_object_CXX \
17950 with_gnu_ld_CXX \
17951 allow_undefined_flag_CXX \
17952 no_undefined_flag_CXX \
17953 hardcode_libdir_flag_spec_CXX \
17954 hardcode_libdir_flag_spec_ld_CXX \
17955 hardcode_libdir_separator_CXX \
17956 fix_srcfile_path_CXX \
17957 exclude_expsyms_CXX \
17958 include_expsyms_CXX \
17959 file_list_spec_CXX \
17960 compiler_lib_search_dirs_CXX \
17961 predep_objects_CXX \
17962 postdep_objects_CXX \
17963 predeps_CXX \
17964 postdeps_CXX \
17965 compiler_lib_search_path_CXX; do
17966 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17967 *[\\\\\\\`\\"\\\$]*)
17968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17969 ;;
17970 *)
17971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17972 ;;
17973 esac
17974 done
17975
17976 # Double-quote double-evaled strings.
17977 for var in reload_cmds \
17978 old_postinstall_cmds \
17979 old_postuninstall_cmds \
17980 old_archive_cmds \
17981 extract_expsyms_cmds \
17982 old_archive_from_new_cmds \
17983 old_archive_from_expsyms_cmds \
17984 archive_cmds \
17985 archive_expsym_cmds \
17986 module_cmds \
17987 module_expsym_cmds \
17988 export_symbols_cmds \
17989 prelink_cmds \
17990 postinstall_cmds \
17991 postuninstall_cmds \
17992 finish_cmds \
17993 sys_lib_search_path_spec \
17994 sys_lib_dlsearch_path_spec \
17995 old_archive_cmds_CXX \
17996 old_archive_from_new_cmds_CXX \
17997 old_archive_from_expsyms_cmds_CXX \
17998 archive_cmds_CXX \
17999 archive_expsym_cmds_CXX \
18000 module_cmds_CXX \
18001 module_expsym_cmds_CXX \
18002 export_symbols_cmds_CXX \
18003 prelink_cmds_CXX; do
18004 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18005 *[\\\\\\\`\\"\\\$]*)
18006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18007 ;;
18008 *)
18009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18010 ;;
18011 esac
18012 done
18013
18014 # Fix-up fallback echo if it was mangled by the above quoting rules.
18015 case \$lt_ECHO in
18016 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18017 ;;
18018 esac
18019
18020 ac_aux_dir='$ac_aux_dir'
18021 xsi_shell='$xsi_shell'
18022 lt_shell_append='$lt_shell_append'
18023
18024 # See if we are running on zsh, and set the options which allow our
18025 # commands through without removal of \ escapes INIT.
18026 if test -n "\${ZSH_VERSION+set}" ; then
18027 setopt NO_GLOB_SUBST
18028 fi
18029
18030
18031 PACKAGE='$PACKAGE'
18032 VERSION='$VERSION'
18033 TIMESTAMP='$TIMESTAMP'
18034 RM='$RM'
18035 ofile='$ofile'
18036
18037
18038
18039
18040
18041
18042 _ACEOF
18043
18044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18045
18046 # Handling of arguments.
18047 for ac_config_target in $ac_config_targets
18048 do
18049 case $ac_config_target in
18050 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18051 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18052
18053 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18054 esac
18055 done
18056
18057
18058 # If the user did not use the arguments to specify the items to instantiate,
18059 # then the envvar interface is used. Set only those that are not.
18060 # We use the long form for the default assignment because of an extremely
18061 # bizarre bug on SunOS 4.1.3.
18062 if $ac_need_defaults; then
18063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18065 fi
18066
18067 # Have a temporary directory for convenience. Make it in the build tree
18068 # simply because there is no reason against having it here, and in addition,
18069 # creating and moving files from /tmp can sometimes cause problems.
18070 # Hook for its removal unless debugging.
18071 # Note that there is a small window in which the directory will not be cleaned:
18072 # after its creation but before its name has been assigned to `$tmp'.
18073 $debug ||
18074 {
18075 tmp=
18076 trap 'exit_status=$?
18077 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18078 ' 0
18079 trap 'as_fn_exit 1' 1 2 13 15
18080 }
18081 # Create a (secure) tmp directory for tmp files.
18082
18083 {
18084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18085 test -n "$tmp" && test -d "$tmp"
18086 } ||
18087 {
18088 tmp=./conf$$-$RANDOM
18089 (umask 077 && mkdir "$tmp")
18090 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18091
18092 # Set up the scripts for CONFIG_FILES section.
18093 # No need to generate them if there are no CONFIG_FILES.
18094 # This happens for instance with `./config.status config.h'.
18095 if test -n "$CONFIG_FILES"; then
18096
18097
18098 ac_cr=`echo X | tr X '\015'`
18099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18100 # But we know of no other shell where ac_cr would be empty at this
18101 # point, so we can use a bashism as a fallback.
18102 if test "x$ac_cr" = x; then
18103 eval ac_cr=\$\'\\r\'
18104 fi
18105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18107 ac_cs_awk_cr='\r'
18108 else
18109 ac_cs_awk_cr=$ac_cr
18110 fi
18111
18112 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18113 _ACEOF
18114
18115
18116 {
18117 echo "cat >conf$$subs.awk <<_ACEOF" &&
18118 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18119 echo "_ACEOF"
18120 } >conf$$subs.sh ||
18121 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18123 ac_delim='%!_!# '
18124 for ac_last_try in false false false false false :; do
18125 . ./conf$$subs.sh ||
18126 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18127
18128 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18129 if test $ac_delim_n = $ac_delim_num; then
18130 break
18131 elif $ac_last_try; then
18132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18133 else
18134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18135 fi
18136 done
18137 rm -f conf$$subs.sh
18138
18139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18140 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18141 _ACEOF
18142 sed -n '
18143 h
18144 s/^/S["/; s/!.*/"]=/
18145 p
18146 g
18147 s/^[^!]*!//
18148 :repl
18149 t repl
18150 s/'"$ac_delim"'$//
18151 t delim
18152 :nl
18153 h
18154 s/\(.\{148\}\)..*/\1/
18155 t more1
18156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18157 p
18158 n
18159 b repl
18160 :more1
18161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18162 p
18163 g
18164 s/.\{148\}//
18165 t nl
18166 :delim
18167 h
18168 s/\(.\{148\}\)..*/\1/
18169 t more2
18170 s/["\\]/\\&/g; s/^/"/; s/$/"/
18171 p
18172 b
18173 :more2
18174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18175 p
18176 g
18177 s/.\{148\}//
18178 t delim
18179 ' <conf$$subs.awk | sed '
18180 /^[^""]/{
18181 N
18182 s/\n//
18183 }
18184 ' >>$CONFIG_STATUS || ac_write_fail=1
18185 rm -f conf$$subs.awk
18186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18187 _ACAWK
18188 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18189 for (key in S) S_is_set[key] = 1
18190 FS = "\a"
18191
18192 }
18193 {
18194 line = $ 0
18195 nfields = split(line, field, "@")
18196 substed = 0
18197 len = length(field[1])
18198 for (i = 2; i < nfields; i++) {
18199 key = field[i]
18200 keylen = length(key)
18201 if (S_is_set[key]) {
18202 value = S[key]
18203 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18204 len += length(value) + length(field[++i])
18205 substed = 1
18206 } else
18207 len += 1 + keylen
18208 }
18209
18210 print line
18211 }
18212
18213 _ACAWK
18214 _ACEOF
18215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18218 else
18219 cat
18220 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18221 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18222 _ACEOF
18223
18224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18226 # trailing colons and then remove the whole line if VPATH becomes empty
18227 # (actually we leave an empty line to preserve line numbers).
18228 if test "x$srcdir" = x.; then
18229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18230 s/:*\$(srcdir):*/:/
18231 s/:*\${srcdir}:*/:/
18232 s/:*@srcdir@:*/:/
18233 s/^\([^=]*=[ ]*\):*/\1/
18234 s/:*$//
18235 s/^[^=]*=[ ]*$//
18236 }'
18237 fi
18238
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240 fi # test -n "$CONFIG_FILES"
18241
18242
18243 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18244 shift
18245 for ac_tag
18246 do
18247 case $ac_tag in
18248 :[FHLC]) ac_mode=$ac_tag; continue;;
18249 esac
18250 case $ac_mode$ac_tag in
18251 :[FHL]*:*);;
18252 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18253 :[FH]-) ac_tag=-:-;;
18254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18255 esac
18256 ac_save_IFS=$IFS
18257 IFS=:
18258 set x $ac_tag
18259 IFS=$ac_save_IFS
18260 shift
18261 ac_file=$1
18262 shift
18263
18264 case $ac_mode in
18265 :L) ac_source=$1;;
18266 :[FH])
18267 ac_file_inputs=
18268 for ac_f
18269 do
18270 case $ac_f in
18271 -) ac_f="$tmp/stdin";;
18272 *) # Look for the file first in the build tree, then in the source tree
18273 # (if the path is not absolute). The absolute path cannot be DOS-style,
18274 # because $ac_f cannot contain `:'.
18275 test -f "$ac_f" ||
18276 case $ac_f in
18277 [\\/$]*) false;;
18278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18279 esac ||
18280 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18281 esac
18282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18283 as_fn_append ac_file_inputs " '$ac_f'"
18284 done
18285
18286 # Let's still pretend it is `configure' which instantiates (i.e., don't
18287 # use $as_me), people would be surprised to read:
18288 # /* config.h. Generated by config.status. */
18289 configure_input='Generated from '`
18290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18291 `' by configure.'
18292 if test x"$ac_file" != x-; then
18293 configure_input="$ac_file. $configure_input"
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18295 $as_echo "$as_me: creating $ac_file" >&6;}
18296 fi
18297 # Neutralize special characters interpreted by sed in replacement strings.
18298 case $configure_input in #(
18299 *\&* | *\|* | *\\* )
18300 ac_sed_conf_input=`$as_echo "$configure_input" |
18301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18302 *) ac_sed_conf_input=$configure_input;;
18303 esac
18304
18305 case $ac_tag in
18306 *:-:* | *:-) cat >"$tmp/stdin" \
18307 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18308 esac
18309 ;;
18310 esac
18311
18312 ac_dir=`$as_dirname -- "$ac_file" ||
18313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18314 X"$ac_file" : 'X\(//\)[^/]' \| \
18315 X"$ac_file" : 'X\(//\)$' \| \
18316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18317 $as_echo X"$ac_file" |
18318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18319 s//\1/
18320 q
18321 }
18322 /^X\(\/\/\)[^/].*/{
18323 s//\1/
18324 q
18325 }
18326 /^X\(\/\/\)$/{
18327 s//\1/
18328 q
18329 }
18330 /^X\(\/\).*/{
18331 s//\1/
18332 q
18333 }
18334 s/.*/./; q'`
18335 as_dir="$ac_dir"; as_fn_mkdir_p
18336 ac_builddir=.
18337
18338 case "$ac_dir" in
18339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18340 *)
18341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18342 # A ".." for each directory in $ac_dir_suffix.
18343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18344 case $ac_top_builddir_sub in
18345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18347 esac ;;
18348 esac
18349 ac_abs_top_builddir=$ac_pwd
18350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18351 # for backward compatibility:
18352 ac_top_builddir=$ac_top_build_prefix
18353
18354 case $srcdir in
18355 .) # We are building in place.
18356 ac_srcdir=.
18357 ac_top_srcdir=$ac_top_builddir_sub
18358 ac_abs_top_srcdir=$ac_pwd ;;
18359 [\\/]* | ?:[\\/]* ) # Absolute name.
18360 ac_srcdir=$srcdir$ac_dir_suffix;
18361 ac_top_srcdir=$srcdir
18362 ac_abs_top_srcdir=$srcdir ;;
18363 *) # Relative name.
18364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18365 ac_top_srcdir=$ac_top_build_prefix$srcdir
18366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18367 esac
18368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18369
18370
18371 case $ac_mode in
18372 :F)
18373 #
18374 # CONFIG_FILE
18375 #
18376
18377 case $INSTALL in
18378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18380 esac
18381 _ACEOF
18382
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 # If the template does not know about datarootdir, expand it.
18385 # FIXME: This hack should be removed a few years after 2.60.
18386 ac_datarootdir_hack=; ac_datarootdir_seen=
18387 ac_sed_dataroot='
18388 /datarootdir/ {
18389 p
18390 q
18391 }
18392 /@datadir@/p
18393 /@docdir@/p
18394 /@infodir@/p
18395 /@localedir@/p
18396 /@mandir@/p'
18397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18398 *datarootdir*) ac_datarootdir_seen=yes;;
18399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18401 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18402 _ACEOF
18403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18404 ac_datarootdir_hack='
18405 s&@datadir@&$datadir&g
18406 s&@docdir@&$docdir&g
18407 s&@infodir@&$infodir&g
18408 s&@localedir@&$localedir&g
18409 s&@mandir@&$mandir&g
18410 s&\\\${datarootdir}&$datarootdir&g' ;;
18411 esac
18412 _ACEOF
18413
18414 # Neutralize VPATH when `$srcdir' = `.'.
18415 # Shell code in configure.ac might set extrasub.
18416 # FIXME: do we really want to maintain this feature?
18417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18418 ac_sed_extra="$ac_vpsub
18419 $extrasub
18420 _ACEOF
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 :t
18423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18424 s|@configure_input@|$ac_sed_conf_input|;t t
18425 s&@top_builddir@&$ac_top_builddir_sub&;t t
18426 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18427 s&@srcdir@&$ac_srcdir&;t t
18428 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18429 s&@top_srcdir@&$ac_top_srcdir&;t t
18430 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18431 s&@builddir@&$ac_builddir&;t t
18432 s&@abs_builddir@&$ac_abs_builddir&;t t
18433 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18434 s&@INSTALL@&$ac_INSTALL&;t t
18435 $ac_datarootdir_hack
18436 "
18437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18438 || as_fn_error "could not create $ac_file" "$LINENO" 5
18439
18440 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18441 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18444 which seems to be undefined. Please make sure it is defined." >&5
18445 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18446 which seems to be undefined. Please make sure it is defined." >&2;}
18447
18448 rm -f "$tmp/stdin"
18449 case $ac_file in
18450 -) cat "$tmp/out" && rm -f "$tmp/out";;
18451 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18452 esac \
18453 || as_fn_error "could not create $ac_file" "$LINENO" 5
18454 ;;
18455
18456
18457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18458 $as_echo "$as_me: executing $ac_file commands" >&6;}
18459 ;;
18460 esac
18461
18462
18463 case $ac_file$ac_mode in
18464 "libtool":C)
18465
18466 # See if we are running on zsh, and set the options which allow our
18467 # commands through without removal of \ escapes.
18468 if test -n "${ZSH_VERSION+set}" ; then
18469 setopt NO_GLOB_SUBST
18470 fi
18471
18472 cfgfile="${ofile}T"
18473 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18474 $RM "$cfgfile"
18475
18476 cat <<_LT_EOF >> "$cfgfile"
18477 #! $SHELL
18478
18479 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18480 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18482 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18483 #
18484 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18485 # 2006, 2007, 2008 Free Software Foundation, Inc.
18486 # Written by Gordon Matzigkeit, 1996
18487 #
18488 # This file is part of GNU Libtool.
18489 #
18490 # GNU Libtool is free software; you can redistribute it and/or
18491 # modify it under the terms of the GNU General Public License as
18492 # published by the Free Software Foundation; either version 2 of
18493 # the License, or (at your option) any later version.
18494 #
18495 # As a special exception to the GNU General Public License,
18496 # if you distribute this file as part of a program or library that
18497 # is built using GNU Libtool, you may include this file under the
18498 # same distribution terms that you use for the rest of that program.
18499 #
18500 # GNU Libtool is distributed in the hope that it will be useful,
18501 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18503 # GNU General Public License for more details.
18504 #
18505 # You should have received a copy of the GNU General Public License
18506 # along with GNU Libtool; see the file COPYING. If not, a copy
18507 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18508 # obtained by writing to the Free Software Foundation, Inc.,
18509 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18510
18511
18512 # The names of the tagged configurations supported by this script.
18513 available_tags="CXX "
18514
18515 # ### BEGIN LIBTOOL CONFIG
18516
18517 # Which release of libtool.m4 was used?
18518 macro_version=$macro_version
18519 macro_revision=$macro_revision
18520
18521 # Whether or not to build static libraries.
18522 build_old_libs=$enable_static
18523
18524 # Whether or not to build shared libraries.
18525 build_libtool_libs=$enable_shared
18526
18527 # What type of objects to build.
18528 pic_mode=$pic_mode
18529
18530 # Whether or not to optimize for fast installation.
18531 fast_install=$enable_fast_install
18532
18533 # The host system.
18534 host_alias=$host_alias
18535 host=$host
18536 host_os=$host_os
18537
18538 # The build system.
18539 build_alias=$build_alias
18540 build=$build
18541 build_os=$build_os
18542
18543 # A sed program that does not truncate output.
18544 SED=$lt_SED
18545
18546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18547 Xsed="\$SED -e 1s/^X//"
18548
18549 # A grep program that handles long lines.
18550 GREP=$lt_GREP
18551
18552 # An ERE matcher.
18553 EGREP=$lt_EGREP
18554
18555 # A literal string matcher.
18556 FGREP=$lt_FGREP
18557
18558 # A BSD- or MS-compatible name lister.
18559 NM=$lt_NM
18560
18561 # Whether we need soft or hard links.
18562 LN_S=$lt_LN_S
18563
18564 # What is the maximum length of a command?
18565 max_cmd_len=$max_cmd_len
18566
18567 # Object file suffix (normally "o").
18568 objext=$ac_objext
18569
18570 # Executable file suffix (normally "").
18571 exeext=$exeext
18572
18573 # whether the shell understands "unset".
18574 lt_unset=$lt_unset
18575
18576 # turn spaces into newlines.
18577 SP2NL=$lt_lt_SP2NL
18578
18579 # turn newlines into spaces.
18580 NL2SP=$lt_lt_NL2SP
18581
18582 # How to create reloadable object files.
18583 reload_flag=$lt_reload_flag
18584 reload_cmds=$lt_reload_cmds
18585
18586 # An object symbol dumper.
18587 OBJDUMP=$lt_OBJDUMP
18588
18589 # Method to check whether dependent libraries are shared objects.
18590 deplibs_check_method=$lt_deplibs_check_method
18591
18592 # Command to use when deplibs_check_method == "file_magic".
18593 file_magic_cmd=$lt_file_magic_cmd
18594
18595 # The archiver.
18596 AR=$lt_AR
18597 AR_FLAGS=$lt_AR_FLAGS
18598
18599 # A symbol stripping program.
18600 STRIP=$lt_STRIP
18601
18602 # Commands used to install an old-style archive.
18603 RANLIB=$lt_RANLIB
18604 old_postinstall_cmds=$lt_old_postinstall_cmds
18605 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18606
18607 # A C compiler.
18608 LTCC=$lt_CC
18609
18610 # LTCC compiler flags.
18611 LTCFLAGS=$lt_CFLAGS
18612
18613 # Take the output of nm and produce a listing of raw symbols and C names.
18614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18615
18616 # Transform the output of nm in a proper C declaration.
18617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18618
18619 # Transform the output of nm in a C name address pair.
18620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18621
18622 # Transform the output of nm in a C name address pair when lib prefix is needed.
18623 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18624
18625 # The name of the directory that contains temporary libtool files.
18626 objdir=$objdir
18627
18628 # Shell to use when invoking shell scripts.
18629 SHELL=$lt_SHELL
18630
18631 # An echo program that does not interpret backslashes.
18632 ECHO=$lt_ECHO
18633
18634 # Used to examine libraries when file_magic_cmd begins with "file".
18635 MAGIC_CMD=$MAGIC_CMD
18636
18637 # Must we lock files when doing compilation?
18638 need_locks=$lt_need_locks
18639
18640 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18641 DSYMUTIL=$lt_DSYMUTIL
18642
18643 # Tool to change global to local symbols on Mac OS X.
18644 NMEDIT=$lt_NMEDIT
18645
18646 # Tool to manipulate fat objects and archives on Mac OS X.
18647 LIPO=$lt_LIPO
18648
18649 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18650 OTOOL=$lt_OTOOL
18651
18652 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18653 OTOOL64=$lt_OTOOL64
18654
18655 # Old archive suffix (normally "a").
18656 libext=$libext
18657
18658 # Shared library suffix (normally ".so").
18659 shrext_cmds=$lt_shrext_cmds
18660
18661 # The commands to extract the exported symbol list from a shared archive.
18662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18663
18664 # Variables whose values should be saved in libtool wrapper scripts and
18665 # restored at link time.
18666 variables_saved_for_relink=$lt_variables_saved_for_relink
18667
18668 # Do we need the "lib" prefix for modules?
18669 need_lib_prefix=$need_lib_prefix
18670
18671 # Do we need a version for libraries?
18672 need_version=$need_version
18673
18674 # Library versioning type.
18675 version_type=$version_type
18676
18677 # Shared library runtime path variable.
18678 runpath_var=$runpath_var
18679
18680 # Shared library path variable.
18681 shlibpath_var=$shlibpath_var
18682
18683 # Is shlibpath searched before the hard-coded library search path?
18684 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18685
18686 # Format of library name prefix.
18687 libname_spec=$lt_libname_spec
18688
18689 # List of archive names. First name is the real one, the rest are links.
18690 # The last name is the one that the linker finds with -lNAME
18691 library_names_spec=$lt_library_names_spec
18692
18693 # The coded name of the library, if different from the real name.
18694 soname_spec=$lt_soname_spec
18695
18696 # Command to use after installation of a shared archive.
18697 postinstall_cmds=$lt_postinstall_cmds
18698
18699 # Command to use after uninstallation of a shared archive.
18700 postuninstall_cmds=$lt_postuninstall_cmds
18701
18702 # Commands used to finish a libtool library installation in a directory.
18703 finish_cmds=$lt_finish_cmds
18704
18705 # As "finish_cmds", except a single script fragment to be evaled but
18706 # not shown.
18707 finish_eval=$lt_finish_eval
18708
18709 # Whether we should hardcode library paths into libraries.
18710 hardcode_into_libs=$hardcode_into_libs
18711
18712 # Compile-time system search path for libraries.
18713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18714
18715 # Run-time system search path for libraries.
18716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18717
18718 # Whether dlopen is supported.
18719 dlopen_support=$enable_dlopen
18720
18721 # Whether dlopen of programs is supported.
18722 dlopen_self=$enable_dlopen_self
18723
18724 # Whether dlopen of statically linked programs is supported.
18725 dlopen_self_static=$enable_dlopen_self_static
18726
18727 # Commands to strip libraries.
18728 old_striplib=$lt_old_striplib
18729 striplib=$lt_striplib
18730
18731
18732 # The linker used to build libraries.
18733 LD=$lt_LD
18734
18735 # Commands used to build an old-style archive.
18736 old_archive_cmds=$lt_old_archive_cmds
18737
18738 # A language specific compiler.
18739 CC=$lt_compiler
18740
18741 # Is the compiler the GNU compiler?
18742 with_gcc=$GCC
18743
18744 # Compiler flag to turn off builtin functions.
18745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18746
18747 # How to pass a linker flag through the compiler.
18748 wl=$lt_lt_prog_compiler_wl
18749
18750 # Additional compiler flags for building library objects.
18751 pic_flag=$lt_lt_prog_compiler_pic
18752
18753 # Compiler flag to prevent dynamic linking.
18754 link_static_flag=$lt_lt_prog_compiler_static
18755
18756 # Does compiler simultaneously support -c and -o options?
18757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18758
18759 # Whether or not to add -lc for building shared libraries.
18760 build_libtool_need_lc=$archive_cmds_need_lc
18761
18762 # Whether or not to disallow shared libs when runtime libs are static.
18763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18764
18765 # Compiler flag to allow reflexive dlopens.
18766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18767
18768 # Compiler flag to generate shared objects directly from archives.
18769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18770
18771 # Whether the compiler copes with passing no objects directly.
18772 compiler_needs_object=$lt_compiler_needs_object
18773
18774 # Create an old-style archive from a shared archive.
18775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18776
18777 # Create a temporary old-style archive to link instead of a shared archive.
18778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18779
18780 # Commands used to build a shared archive.
18781 archive_cmds=$lt_archive_cmds
18782 archive_expsym_cmds=$lt_archive_expsym_cmds
18783
18784 # Commands used to build a loadable module if different from building
18785 # a shared archive.
18786 module_cmds=$lt_module_cmds
18787 module_expsym_cmds=$lt_module_expsym_cmds
18788
18789 # Whether we are building with GNU ld or not.
18790 with_gnu_ld=$lt_with_gnu_ld
18791
18792 # Flag that allows shared libraries with undefined symbols to be built.
18793 allow_undefined_flag=$lt_allow_undefined_flag
18794
18795 # Flag that enforces no undefined symbols.
18796 no_undefined_flag=$lt_no_undefined_flag
18797
18798 # Flag to hardcode \$libdir into a binary during linking.
18799 # This must work even if \$libdir does not exist
18800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18801
18802 # If ld is used when linking, flag to hardcode \$libdir into a binary
18803 # during linking. This must work even if \$libdir does not exist.
18804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18805
18806 # Whether we need a single "-rpath" flag with a separated argument.
18807 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18808
18809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18810 # DIR into the resulting binary.
18811 hardcode_direct=$hardcode_direct
18812
18813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18814 # DIR into the resulting binary and the resulting library dependency is
18815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18816 # library is relocated.
18817 hardcode_direct_absolute=$hardcode_direct_absolute
18818
18819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18820 # into the resulting binary.
18821 hardcode_minus_L=$hardcode_minus_L
18822
18823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18824 # into the resulting binary.
18825 hardcode_shlibpath_var=$hardcode_shlibpath_var
18826
18827 # Set to "yes" if building a shared library automatically hardcodes DIR
18828 # into the library and all subsequent libraries and executables linked
18829 # against it.
18830 hardcode_automatic=$hardcode_automatic
18831
18832 # Set to yes if linker adds runtime paths of dependent libraries
18833 # to runtime path list.
18834 inherit_rpath=$inherit_rpath
18835
18836 # Whether libtool must link a program against all its dependency libraries.
18837 link_all_deplibs=$link_all_deplibs
18838
18839 # Fix the shell variable \$srcfile for the compiler.
18840 fix_srcfile_path=$lt_fix_srcfile_path
18841
18842 # Set to "yes" if exported symbols are required.
18843 always_export_symbols=$always_export_symbols
18844
18845 # The commands to list exported symbols.
18846 export_symbols_cmds=$lt_export_symbols_cmds
18847
18848 # Symbols that should not be listed in the preloaded symbols.
18849 exclude_expsyms=$lt_exclude_expsyms
18850
18851 # Symbols that must always be exported.
18852 include_expsyms=$lt_include_expsyms
18853
18854 # Commands necessary for linking programs (against libraries) with templates.
18855 prelink_cmds=$lt_prelink_cmds
18856
18857 # Specify filename containing input files.
18858 file_list_spec=$lt_file_list_spec
18859
18860 # How to hardcode a shared library path into an executable.
18861 hardcode_action=$hardcode_action
18862
18863 # The directories searched by this compiler when creating a shared library.
18864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18865
18866 # Dependencies to place before and after the objects being linked to
18867 # create a shared library.
18868 predep_objects=$lt_predep_objects
18869 postdep_objects=$lt_postdep_objects
18870 predeps=$lt_predeps
18871 postdeps=$lt_postdeps
18872
18873 # The library search path used internally by the compiler when linking
18874 # a shared library.
18875 compiler_lib_search_path=$lt_compiler_lib_search_path
18876
18877 # ### END LIBTOOL CONFIG
18878
18879 _LT_EOF
18880
18881 case $host_os in
18882 aix3*)
18883 cat <<\_LT_EOF >> "$cfgfile"
18884 # AIX sometimes has problems with the GCC collect2 program. For some
18885 # reason, if we set the COLLECT_NAMES environment variable, the problems
18886 # vanish in a puff of smoke.
18887 if test "X${COLLECT_NAMES+set}" != Xset; then
18888 COLLECT_NAMES=
18889 export COLLECT_NAMES
18890 fi
18891 _LT_EOF
18892 ;;
18893 esac
18894
18895
18896 ltmain="$ac_aux_dir/ltmain.sh"
18897
18898
18899 # We use sed instead of cat because bash on DJGPP gets confused if
18900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18901 # text mode, it properly converts lines to CR/LF. This bash problem
18902 # is reportedly fixed, but why not run on old versions too?
18903 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18904 || (rm -f "$cfgfile"; exit 1)
18905
18906 case $xsi_shell in
18907 yes)
18908 cat << \_LT_EOF >> "$cfgfile"
18909
18910 # func_dirname file append nondir_replacement
18911 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18912 # otherwise set result to NONDIR_REPLACEMENT.
18913 func_dirname ()
18914 {
18915 case ${1} in
18916 */*) func_dirname_result="${1%/*}${2}" ;;
18917 * ) func_dirname_result="${3}" ;;
18918 esac
18919 }
18920
18921 # func_basename file
18922 func_basename ()
18923 {
18924 func_basename_result="${1##*/}"
18925 }
18926
18927 # func_dirname_and_basename file append nondir_replacement
18928 # perform func_basename and func_dirname in a single function
18929 # call:
18930 # dirname: Compute the dirname of FILE. If nonempty,
18931 # add APPEND to the result, otherwise set result
18932 # to NONDIR_REPLACEMENT.
18933 # value returned in "$func_dirname_result"
18934 # basename: Compute filename of FILE.
18935 # value retuned in "$func_basename_result"
18936 # Implementation must be kept synchronized with func_dirname
18937 # and func_basename. For efficiency, we do not delegate to
18938 # those functions but instead duplicate the functionality here.
18939 func_dirname_and_basename ()
18940 {
18941 case ${1} in
18942 */*) func_dirname_result="${1%/*}${2}" ;;
18943 * ) func_dirname_result="${3}" ;;
18944 esac
18945 func_basename_result="${1##*/}"
18946 }
18947
18948 # func_stripname prefix suffix name
18949 # strip PREFIX and SUFFIX off of NAME.
18950 # PREFIX and SUFFIX must not contain globbing or regex special
18951 # characters, hashes, percent signs, but SUFFIX may contain a leading
18952 # dot (in which case that matches only a dot).
18953 func_stripname ()
18954 {
18955 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18956 # positional parameters, so assign one to ordinary parameter first.
18957 func_stripname_result=${3}
18958 func_stripname_result=${func_stripname_result#"${1}"}
18959 func_stripname_result=${func_stripname_result%"${2}"}
18960 }
18961
18962 # func_opt_split
18963 func_opt_split ()
18964 {
18965 func_opt_split_opt=${1%%=*}
18966 func_opt_split_arg=${1#*=}
18967 }
18968
18969 # func_lo2o object
18970 func_lo2o ()
18971 {
18972 case ${1} in
18973 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18974 *) func_lo2o_result=${1} ;;
18975 esac
18976 }
18977
18978 # func_xform libobj-or-source
18979 func_xform ()
18980 {
18981 func_xform_result=${1%.*}.lo
18982 }
18983
18984 # func_arith arithmetic-term...
18985 func_arith ()
18986 {
18987 func_arith_result=$(( $* ))
18988 }
18989
18990 # func_len string
18991 # STRING may not start with a hyphen.
18992 func_len ()
18993 {
18994 func_len_result=${#1}
18995 }
18996
18997 _LT_EOF
18998 ;;
18999 *) # Bourne compatible functions.
19000 cat << \_LT_EOF >> "$cfgfile"
19001
19002 # func_dirname file append nondir_replacement
19003 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19004 # otherwise set result to NONDIR_REPLACEMENT.
19005 func_dirname ()
19006 {
19007 # Extract subdirectory from the argument.
19008 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19009 if test "X$func_dirname_result" = "X${1}"; then
19010 func_dirname_result="${3}"
19011 else
19012 func_dirname_result="$func_dirname_result${2}"
19013 fi
19014 }
19015
19016 # func_basename file
19017 func_basename ()
19018 {
19019 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19020 }
19021
19022
19023 # func_stripname prefix suffix name
19024 # strip PREFIX and SUFFIX off of NAME.
19025 # PREFIX and SUFFIX must not contain globbing or regex special
19026 # characters, hashes, percent signs, but SUFFIX may contain a leading
19027 # dot (in which case that matches only a dot).
19028 # func_strip_suffix prefix name
19029 func_stripname ()
19030 {
19031 case ${2} in
19032 .*) func_stripname_result=`$ECHO "X${3}" \
19033 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19034 *) func_stripname_result=`$ECHO "X${3}" \
19035 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19036 esac
19037 }
19038
19039 # sed scripts:
19040 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19041 my_sed_long_arg='1s/^-[^=]*=//'
19042
19043 # func_opt_split
19044 func_opt_split ()
19045 {
19046 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19047 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19048 }
19049
19050 # func_lo2o object
19051 func_lo2o ()
19052 {
19053 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19054 }
19055
19056 # func_xform libobj-or-source
19057 func_xform ()
19058 {
19059 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19060 }
19061
19062 # func_arith arithmetic-term...
19063 func_arith ()
19064 {
19065 func_arith_result=`expr "$@"`
19066 }
19067
19068 # func_len string
19069 # STRING may not start with a hyphen.
19070 func_len ()
19071 {
19072 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19073 }
19074
19075 _LT_EOF
19076 esac
19077
19078 case $lt_shell_append in
19079 yes)
19080 cat << \_LT_EOF >> "$cfgfile"
19081
19082 # func_append var value
19083 # Append VALUE to the end of shell variable VAR.
19084 func_append ()
19085 {
19086 eval "$1+=\$2"
19087 }
19088 _LT_EOF
19089 ;;
19090 *)
19091 cat << \_LT_EOF >> "$cfgfile"
19092
19093 # func_append var value
19094 # Append VALUE to the end of shell variable VAR.
19095 func_append ()
19096 {
19097 eval "$1=\$$1\$2"
19098 }
19099
19100 _LT_EOF
19101 ;;
19102 esac
19103
19104
19105 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19106 || (rm -f "$cfgfile"; exit 1)
19107
19108 mv -f "$cfgfile" "$ofile" ||
19109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19110 chmod +x "$ofile"
19111
19112
19113 cat <<_LT_EOF >> "$ofile"
19114
19115 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19116
19117 # The linker used to build libraries.
19118 LD=$lt_LD_CXX
19119
19120 # Commands used to build an old-style archive.
19121 old_archive_cmds=$lt_old_archive_cmds_CXX
19122
19123 # A language specific compiler.
19124 CC=$lt_compiler_CXX
19125
19126 # Is the compiler the GNU compiler?
19127 with_gcc=$GCC_CXX
19128
19129 # Compiler flag to turn off builtin functions.
19130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19131
19132 # How to pass a linker flag through the compiler.
19133 wl=$lt_lt_prog_compiler_wl_CXX
19134
19135 # Additional compiler flags for building library objects.
19136 pic_flag=$lt_lt_prog_compiler_pic_CXX
19137
19138 # Compiler flag to prevent dynamic linking.
19139 link_static_flag=$lt_lt_prog_compiler_static_CXX
19140
19141 # Does compiler simultaneously support -c and -o options?
19142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19143
19144 # Whether or not to add -lc for building shared libraries.
19145 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19146
19147 # Whether or not to disallow shared libs when runtime libs are static.
19148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19149
19150 # Compiler flag to allow reflexive dlopens.
19151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19152
19153 # Compiler flag to generate shared objects directly from archives.
19154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19155
19156 # Whether the compiler copes with passing no objects directly.
19157 compiler_needs_object=$lt_compiler_needs_object_CXX
19158
19159 # Create an old-style archive from a shared archive.
19160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19161
19162 # Create a temporary old-style archive to link instead of a shared archive.
19163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19164
19165 # Commands used to build a shared archive.
19166 archive_cmds=$lt_archive_cmds_CXX
19167 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19168
19169 # Commands used to build a loadable module if different from building
19170 # a shared archive.
19171 module_cmds=$lt_module_cmds_CXX
19172 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19173
19174 # Whether we are building with GNU ld or not.
19175 with_gnu_ld=$lt_with_gnu_ld_CXX
19176
19177 # Flag that allows shared libraries with undefined symbols to be built.
19178 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19179
19180 # Flag that enforces no undefined symbols.
19181 no_undefined_flag=$lt_no_undefined_flag_CXX
19182
19183 # Flag to hardcode \$libdir into a binary during linking.
19184 # This must work even if \$libdir does not exist
19185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19186
19187 # If ld is used when linking, flag to hardcode \$libdir into a binary
19188 # during linking. This must work even if \$libdir does not exist.
19189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19190
19191 # Whether we need a single "-rpath" flag with a separated argument.
19192 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19193
19194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19195 # DIR into the resulting binary.
19196 hardcode_direct=$hardcode_direct_CXX
19197
19198 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19199 # DIR into the resulting binary and the resulting library dependency is
19200 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19201 # library is relocated.
19202 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19203
19204 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19205 # into the resulting binary.
19206 hardcode_minus_L=$hardcode_minus_L_CXX
19207
19208 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19209 # into the resulting binary.
19210 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19211
19212 # Set to "yes" if building a shared library automatically hardcodes DIR
19213 # into the library and all subsequent libraries and executables linked
19214 # against it.
19215 hardcode_automatic=$hardcode_automatic_CXX
19216
19217 # Set to yes if linker adds runtime paths of dependent libraries
19218 # to runtime path list.
19219 inherit_rpath=$inherit_rpath_CXX
19220
19221 # Whether libtool must link a program against all its dependency libraries.
19222 link_all_deplibs=$link_all_deplibs_CXX
19223
19224 # Fix the shell variable \$srcfile for the compiler.
19225 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19226
19227 # Set to "yes" if exported symbols are required.
19228 always_export_symbols=$always_export_symbols_CXX
19229
19230 # The commands to list exported symbols.
19231 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19232
19233 # Symbols that should not be listed in the preloaded symbols.
19234 exclude_expsyms=$lt_exclude_expsyms_CXX
19235
19236 # Symbols that must always be exported.
19237 include_expsyms=$lt_include_expsyms_CXX
19238
19239 # Commands necessary for linking programs (against libraries) with templates.
19240 prelink_cmds=$lt_prelink_cmds_CXX
19241
19242 # Specify filename containing input files.
19243 file_list_spec=$lt_file_list_spec_CXX
19244
19245 # How to hardcode a shared library path into an executable.
19246 hardcode_action=$hardcode_action_CXX
19247
19248 # The directories searched by this compiler when creating a shared library.
19249 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19250
19251 # Dependencies to place before and after the objects being linked to
19252 # create a shared library.
19253 predep_objects=$lt_predep_objects_CXX
19254 postdep_objects=$lt_postdep_objects_CXX
19255 predeps=$lt_predeps_CXX
19256 postdeps=$lt_postdeps_CXX
19257
19258 # The library search path used internally by the compiler when linking
19259 # a shared library.
19260 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19261
19262 # ### END LIBTOOL TAG CONFIG: CXX
19263 _LT_EOF
19264
19265 ;;
19266
19267 esac
19268 done # for ac_tag
19269
19270
19271 as_fn_exit 0
19272 _ACEOF
19273 ac_clean_files=$ac_clean_files_save
19274
19275 test $ac_write_fail = 0 ||
19276 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19277
19278
19279 # configure is writing to config.log, and then calls config.status.
19280 # config.status does its own redirection, appending to config.log.
19281 # Unfortunately, on DOS this fails, as config.log is still kept open
19282 # by configure, so config.status won't be able to write to it; its
19283 # output is simply discarded. So we exec the FD to /dev/null,
19284 # effectively closing config.log, so it can be properly (re)opened and
19285 # appended to by config.status. When coming back to configure, we
19286 # need to make the FD available again.
19287 if test "$no_create" != yes; then
19288 ac_cs_success=:
19289 ac_config_status_args=
19290 test "$silent" = yes &&
19291 ac_config_status_args="$ac_config_status_args --quiet"
19292 exec 5>/dev/null
19293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19294 exec 5>>config.log
19295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19296 # would make configure fail if this is the last instruction.
19297 $ac_cs_success || as_fn_exit $?
19298 fi
19299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19301 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19302 fi
19303