]> git.saurik.com Git - cycript.git/blob - configure
GNUstep worky.
[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 CY_OBJECTIVEC
810 GNUSTEP_CONFIG
811 ac_ct_OBJCXX
812 OBJCXXFLAGS
813 OBJCXX
814 LIBFFI_LIBS
815 LIBFFI_CFLAGS
816 CY_EXECUTE
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 WEBKIT_CFLAGS
945 WEBKIT_LIBS
946 LIBFFI_CFLAGS
947 LIBFFI_LIBS
948 OBJCXX
949 OBJCXXFLAGS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1009 fi
1010
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1015
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018 case $ac_dashdash$ac_option in
1019 --)
1020 ac_dashdash=yes ;;
1021
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1026
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1031
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1038
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1041
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1046
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1053
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1079
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1104
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1108
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1115
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1120
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1126
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1133
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1138
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1143
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1150
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1155
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1162
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1167
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1171
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1175
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1179
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1188
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1193
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1200
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1207
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1224
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1229
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1234
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1238
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1244
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1255
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1260
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1265
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1272
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1277
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1280
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1283
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1299
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=no ;;
1315
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1319
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1326
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1333
1334 -*) as_fn_error "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1336 ;;
1337
1338 *=*)
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1344 esac
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1347
1348 *)
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 ;;
1355
1356 esac
1357 done
1358
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error "missing argument to $ac_option"
1362 fi
1363
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1366 no) ;;
1367 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 esac
1370 fi
1371
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1377 do
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1380 case $ac_val in
1381 */ )
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1384 esac
1385 # Be sure to have absolute directory names.
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 done
1392
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1399
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1408 fi
1409 fi
1410
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414 test "$silent" = yes && exec 6>/dev/null
1415
1416
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error "pwd does not report name of working directory"
1423
1424
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\/\)$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\).*/{
1448 s//\1/
1449 q
1450 }
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1455 fi
1456 else
1457 ac_srcdir_defaulted=no
1458 fi
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1462 fi
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1470 fi
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1483
1484 #
1485 # Report the --help message.
1486 #
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1492
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1497
1498 Defaults for the options are specified in brackets.
1499
1500 Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1516
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1521
1522 For better control, use the options below.
1523
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544 _ACEOF
1545
1546 cat <<\_ACEOF
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of Cycript 0.9:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-static[=PKGS] build static libraries [default=no]
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --disable-rpath do not hardcode runtime library paths
1570
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-apr=PATH prefix for installed APR or the full path to
1578 apr-config
1579 --with-gnu-ld assume the C compiler uses GNU ld default=no
1580 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1581 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1582
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 PKG_CONFIG path to pkg-config utility
1593 CXX C++ compiler command
1594 CXXFLAGS C++ compiler flags
1595 CXXCPP C++ preprocessor
1596 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1597 the first program found out of: `bison -y', `byacc', `yacc'.
1598 YFLAGS The list of arguments that will be passed by default to $YACC.
1599 This script will default YFLAGS to the empty string to avoid a
1600 default value of `-d' given by some make applications.
1601 WEBKIT_CFLAGS
1602 C compiler flags for WEBKIT, overriding pkg-config
1603 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1604 LIBFFI_CFLAGS
1605 C compiler flags for LIBFFI, overriding pkg-config
1606 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1607 OBJCXX Objective C++ compiler command
1608 OBJCXXFLAGS Objective C++ compiler flags
1609
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1612
1613 Report bugs to <saurik@saurik.com>.
1614 Cycript home page: <http://www.cycript.org/>.
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 continue
1625 ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644 .) # We are building in place.
1645 ac_srcdir=.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1667 else
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1671 done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676 cat <<\_ACEOF
1677 Cycript configure 0.9
1678 generated by GNU Autoconf 2.65
1679
1680 Copyright (C) 2009 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1683 _ACEOF
1684 exit
1685 fi
1686
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_link
1774
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1786 else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804 } # ac_fn_c_check_header_compile
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } >/dev/null && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_cpp
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878 fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900 #define $2 innocuous_$2
1901
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907 #ifdef __STDC__
1908 # include <limits.h>
1909 #else
1910 # include <assert.h>
1911 #endif
1912
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 ();
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main ()
1931 {
1932 return $2 ();
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_func
1951
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984 fi
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 as_fn_set_status $ac_retval
1987
1988 } # ac_fn_cxx_try_compile
1989
1990 # ac_fn_cxx_try_cpp LINENO
1991 # ------------------------
1992 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_cxx_try_cpp ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_cpp conftest.$ac_ext"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } >/dev/null && {
2012 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021 fi
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 as_fn_set_status $ac_retval
2024
2025 } # ac_fn_cxx_try_cpp
2026
2027 # ac_fn_cxx_try_link LINENO
2028 # -------------------------
2029 # Try to link conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_cxx_try_link ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext conftest$ac_exeext
2034 if { { ac_try="$ac_link"
2035 case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_link") 2>conftest.err
2042 ac_status=$?
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2047 fi
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_cxx_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest$ac_exeext && {
2053 test "$cross_compiling" = yes ||
2054 $as_test_x conftest$ac_exeext
2055 }; then :
2056 ac_retval=0
2057 else
2058 $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 ac_retval=1
2062 fi
2063 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2064 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2065 # interfere with the next link command; also delete a directory that is
2066 # left behind by Apple's compiler. We do this before executing the actions.
2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 as_fn_set_status $ac_retval
2070
2071 } # ac_fn_cxx_try_link
2072
2073 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2074 # ---------------------------------------------------------
2075 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076 # the include files in INCLUDES and setting the cache variable VAR
2077 # accordingly.
2078 ac_fn_cxx_check_header_mongrel ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2086 fi
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 else
2091 # Is the header compilable?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093 $as_echo_n "checking $2 usability... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 ac_header_compiler=yes
2101 else
2102 ac_header_compiler=no
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106 $as_echo "$ac_header_compiler" >&6; }
2107
2108 # Is the header present?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110 $as_echo_n "checking $2 presence... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 #include <$2>
2114 _ACEOF
2115 if ac_fn_cxx_try_cpp "$LINENO"; then :
2116 ac_header_preproc=yes
2117 else
2118 ac_header_preproc=no
2119 fi
2120 rm -f conftest.err conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122 $as_echo "$ac_header_preproc" >&6; }
2123
2124 # So? What about this header?
2125 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2126 yes:no: )
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 ;;
2132 no:yes:* )
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2136 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2140 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143 ( cat <<\_ASBOX
2144 ## -------------------------------- ##
2145 ## Report this to saurik@saurik.com ##
2146 ## -------------------------------- ##
2147 _ASBOX
2148 ) | sed "s/^/$as_me: WARNING: /" >&2
2149 ;;
2150 esac
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2154 $as_echo_n "(cached) " >&6
2155 else
2156 eval "$3=\$ac_header_compiler"
2157 fi
2158 eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 fi
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163
2164 } # ac_fn_cxx_check_header_mongrel
2165
2166 # ac_fn_cxx_try_run LINENO
2167 # ------------------------
2168 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2169 # that executables *can* be run.
2170 ac_fn_cxx_try_run ()
2171 {
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 if { { ac_try="$ac_link"
2174 case "(($ac_try" in
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_link") 2>&5
2181 ac_status=$?
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2184 { { case "(($ac_try" in
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2187 esac
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_try") 2>&5
2191 ac_status=$?
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; }; }; then :
2194 ac_retval=0
2195 else
2196 $as_echo "$as_me: program exited with status $ac_status" >&5
2197 $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 ac_retval=$ac_status
2201 fi
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204 as_fn_set_status $ac_retval
2205
2206 } # ac_fn_cxx_try_run
2207
2208 # ac_fn_objcxx_try_compile LINENO
2209 # -------------------------------
2210 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_objcxx_try_compile ()
2212 {
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext
2215 if { { ac_try="$ac_compile"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_compile") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2228 fi
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_objcxx_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest.$ac_objext; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238
2239 ac_retval=1
2240 fi
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 as_fn_set_status $ac_retval
2243
2244 } # ac_fn_objcxx_try_compile
2245 cat >config.log <<_ACEOF
2246 This file contains any messages produced by compilers while
2247 running configure, to aid debugging if configure makes a mistake.
2248
2249 It was created by Cycript $as_me 0.9, which was
2250 generated by GNU Autoconf 2.65. Invocation command line was
2251
2252 $ $0 $@
2253
2254 _ACEOF
2255 exec 5>>config.log
2256 {
2257 cat <<_ASUNAME
2258 ## --------- ##
2259 ## Platform. ##
2260 ## --------- ##
2261
2262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267
2268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270
2271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278
2279 _ASUNAME
2280
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 $as_echo "PATH: $as_dir"
2287 done
2288 IFS=$as_save_IFS
2289
2290 } >&5
2291
2292 cat >&5 <<_ACEOF
2293
2294
2295 ## ----------- ##
2296 ## Core tests. ##
2297 ## ----------- ##
2298
2299 _ACEOF
2300
2301
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2307 ac_configure_args=
2308 ac_configure_args0=
2309 ac_configure_args1=
2310 ac_must_keep_next=false
2311 for ac_pass in 1 2
2312 do
2313 for ac_arg
2314 do
2315 case $ac_arg in
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2319 continue ;;
2320 *\'*)
2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 esac
2323 case $ac_pass in
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 2)
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2329 else
2330 case $ac_arg in
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337 esac
2338 ;;
2339 -* ) ac_must_keep_next=true ;;
2340 esac
2341 fi
2342 as_fn_append ac_configure_args " '$ac_arg'"
2343 ;;
2344 esac
2345 done
2346 done
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2349
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2357 {
2358 echo
2359
2360 cat <<\_ASBOX
2361 ## ---------------- ##
2362 ## Cache variables. ##
2363 ## ---------------- ##
2364 _ASBOX
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
2367 (
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2390 *)
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 ;;
2393 esac |
2394 sort
2395 )
2396 echo
2397
2398 cat <<\_ASBOX
2399 ## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##
2402 _ASBOX
2403 echo
2404 for ac_var in $ac_subst_vars
2405 do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2413
2414 if test -n "$ac_subst_files"; then
2415 cat <<\_ASBOX
2416 ## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##
2419 _ASBOX
2420 echo
2421 for ac_var in $ac_subst_files
2422 do
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 $as_echo "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2430 fi
2431
2432 if test -s confdefs.h; then
2433 cat <<\_ASBOX
2434 ## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##
2437 _ASBOX
2438 echo
2439 cat confdefs.h
2440 echo
2441 fi
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2445 } >&5
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448 exit $exit_status
2449 ' 0
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2452 done
2453 ac_signal=0
2454
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2457
2458 $as_echo "/* confdefs.h */" > confdefs.h
2459
2460 # Predefined preprocessor variables.
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2464 _ACEOF
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2484 _ACEOF
2485
2486
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2489 ac_site_file1=NONE
2490 ac_site_file2=NONE
2491 if test -n "$CONFIG_SITE"; then
2492 ac_site_file1=$CONFIG_SITE
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2496 else
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2499 fi
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501 do
2502 test "x$ac_site_file" = xNONE && continue
2503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2507 . "$ac_site_file"
2508 fi
2509 done
2510
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special files
2513 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2514 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2517 case $cache_file in
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2520 esac
2521 fi
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2525 >$cache_file
2526 fi
2527
2528 # Check that the precious variables saved in the cache have kept the same
2529 # value.
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2537 set,)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,set)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,);;
2546 *)
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2559 fi
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 fi;;
2565 esac
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2568 case $ac_new_val in
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2571 esac
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2575 esac
2576 fi
2577 done
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 fi
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596
2597 ac_aux_dir=
2598 for ac_dir in . "$srcdir"/.; do
2599 for ac_t in install-sh install.sh shtool; do
2600 if test -f "$ac_dir/$ac_t"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/$ac_t -c"
2603 break 2
2604 fi
2605 done
2606 done
2607 if test -z "$ac_aux_dir"; then
2608 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2609 fi
2610
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2618
2619
2620 case `pwd` in
2621 *\ * | *\ *)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2623 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2624 esac
2625
2626
2627
2628 macro_version='2.2.6b'
2629 macro_revision='1.3017'
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643 ltmain="$ac_aux_dir/ltmain.sh"
2644
2645 # Make sure we can run config.sub.
2646 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2647 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2650 $as_echo_n "checking build system type... " >&6; }
2651 if test "${ac_cv_build+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 ac_build_alias=$build_alias
2655 test "x$ac_build_alias" = x &&
2656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2657 test "x$ac_build_alias" = x &&
2658 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2660 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2666 *-*-*) ;;
2667 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2668 esac
2669 build=$ac_cv_build
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_build
2672 shift
2673 build_cpu=$1
2674 build_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 build_os=$*
2679 IFS=$ac_save_IFS
2680 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2684 $as_echo_n "checking host system type... " >&6; }
2685 if test "${ac_cv_host+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test "x$host_alias" = x; then
2689 ac_cv_host=$ac_cv_build
2690 else
2691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2692 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 fi
2694
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2697 $as_echo "$ac_cv_host" >&6; }
2698 case $ac_cv_host in
2699 *-*-*) ;;
2700 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2701 esac
2702 host=$ac_cv_host
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_host
2705 shift
2706 host_cpu=$1
2707 host_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 host_os=$*
2712 IFS=$ac_save_IFS
2713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2714
2715
2716 ac_ext=c
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792 $as_echo "$ac_ct_CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807 CC=$ac_ct_CC
2808 fi
2809 else
2810 CC="$ac_cv_prog_CC"
2811 fi
2812
2813 if test -z "$CC"; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="${ac_tool_prefix}cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 fi
2853 fi
2854 if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856 set dummy cc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 ac_prog_rejected=no
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2875 continue
2876 fi
2877 ac_cv_prog_CC="cc"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 if test $ac_prog_rejected = yes; then
2886 # We found a bogon in the path, so make sure we never use it.
2887 set dummy $ac_cv_prog_CC
2888 shift
2889 if test $# != 0; then
2890 # We chose a different compiler from the bogus one.
2891 # However, it has the same basename, so the bogon will be chosen
2892 # first if we set CC to just the basename; use the full file name.
2893 shift
2894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2895 fi
2896 fi
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$CC"; then
2911 if test -n "$ac_tool_prefix"; then
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 test -n "$CC" && break
2952 done
2953 fi
2954 if test -z "$CC"; then
2955 ac_ct_CC=$CC
2956 for ac_prog in cl.exe
2957 do
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 test -n "$ac_ct_CC" && break
2996 done
2997
2998 if test "x$ac_ct_CC" = x; then
2999 CC=""
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 CC=$ac_ct_CC
3008 fi
3009 fi
3010
3011 fi
3012
3013
3014 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error "no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." "$LINENO" 5; }
3018
3019 # Provide some information about the compiler.
3020 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021 set X $ac_compile
3022 ac_compiler=$2
3023 for ac_option in --version -v -V -qversion; do
3024 { { ac_try="$ac_compiler $ac_option >&5"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032 ac_status=$?
3033 if test -s conftest.err; then
3034 sed '10a\
3035 ... rest of stderr output deleted ...
3036 10q' conftest.err >conftest.er1
3037 cat conftest.er1 >&5
3038 fi
3039 rm -f conftest.er1 conftest.err
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }
3042 done
3043
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3046
3047 int
3048 main ()
3049 {
3050
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 ac_clean_files_save=$ac_clean_files
3056 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3059 # of exeext.
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061 $as_echo_n "checking whether the C compiler works... " >&6; }
3062 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063
3064 # The possible output files:
3065 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066
3067 ac_rmfiles=
3068 for ac_file in $ac_files
3069 do
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 esac
3074 done
3075 rm -f $ac_rmfiles
3076
3077 if { { ac_try="$ac_link_default"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_link_default") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3091 # so that the user can short-circuit this test for compilers unknown to
3092 # Autoconf.
3093 for ac_file in $ac_files ''
3094 do
3095 test -f "$ac_file" || continue
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3098 ;;
3099 [ab].out )
3100 # We found the default executable, but exeext='' is most
3101 # certainly right.
3102 break;;
3103 *.* )
3104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105 then :; else
3106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 fi
3108 # We set ac_cv_exeext here because the later test for it is not
3109 # safe: cross compilers may not add the suffix if given an `-o'
3110 # argument, so we may need to know it at that point already.
3111 # Even if this section looks crufty: it has the advantage of
3112 # actually working.
3113 break;;
3114 * )
3115 break;;
3116 esac
3117 done
3118 test "$ac_cv_exeext" = no && ac_cv_exeext=
3119
3120 else
3121 ac_file=''
3122 fi
3123 if test -z "$ac_file"; then :
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 { as_fn_set_status 77
3132 as_fn_error "C compiler cannot create executables
3133 See \`config.log' for more details." "$LINENO" 5; }; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3139 $as_echo_n "checking for C compiler default output file name... " >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141 $as_echo "$ac_file" >&6; }
3142 ac_exeext=$ac_cv_exeext
3143
3144 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3145 ac_clean_files=$ac_clean_files_save
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3147 $as_echo_n "checking for suffix of executables... " >&6; }
3148 if { { ac_try="$ac_link"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164 test -f "$ac_file" || continue
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 break;;
3169 * ) break;;
3170 esac
3171 done
3172 else
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error "cannot compute suffix of executables: cannot compile and link
3176 See \`config.log' for more details." "$LINENO" 5; }
3177 fi
3178 rm -f conftest conftest$ac_cv_exeext
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3180 $as_echo "$ac_cv_exeext" >&6; }
3181
3182 rm -f conftest.$ac_ext
3183 EXEEXT=$ac_cv_exeext
3184 ac_exeext=$EXEEXT
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187 #include <stdio.h>
3188 int
3189 main ()
3190 {
3191 FILE *f = fopen ("conftest.out", "w");
3192 return ferror (f) || fclose (f) != 0;
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 ac_clean_files="$ac_clean_files conftest.out"
3199 # Check that the compiler produces executables we can run. If not, either
3200 # the compiler is broken, or we cross compile.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
3203 if test "$cross_compiling" != yes; then
3204 { { ac_try="$ac_link"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link") 2>&5
3212 ac_status=$?
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3215 if { ac_try='./conftest$ac_cv_exeext'
3216 { { case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_try") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; }; then
3226 cross_compiling=no
3227 else
3228 if test "$cross_compiling" = maybe; then
3229 cross_compiling=yes
3230 else
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error "cannot run C compiled programs.
3234 If you meant to cross compile, use \`--host'.
3235 See \`config.log' for more details." "$LINENO" 5; }
3236 fi
3237 fi
3238 fi
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3240 $as_echo "$cross_compiling" >&6; }
3241
3242 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3243 ac_clean_files=$ac_clean_files_save
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3245 $as_echo_n "checking for suffix of object files... " >&6; }
3246 if test "${ac_cv_objext+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.o conftest.obj
3261 if { { ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_compile") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 for ac_file in conftest.o conftest.obj conftest.*; do
3273 test -f "$ac_file" || continue;
3274 case $ac_file in
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3277 break;;
3278 esac
3279 done
3280 else
3281 $as_echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error "cannot compute suffix of object files: cannot compile
3287 See \`config.log' for more details." "$LINENO" 5; }
3288 fi
3289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3292 $as_echo "$ac_cv_objext" >&6; }
3293 OBJEXT=$ac_cv_objext
3294 ac_objext=$OBJEXT
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3297 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306 #ifndef __GNUC__
3307 choke me
3308 #endif
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_compiler_gnu=yes
3316 else
3317 ac_compiler_gnu=no
3318 fi
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3324 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3325 if test $ac_compiler_gnu = yes; then
3326 GCC=yes
3327 else
3328 GCC=
3329 fi
3330 ac_test_CFLAGS=${CFLAGS+set}
3331 ac_save_CFLAGS=$CFLAGS
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3333 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3334 if test "${ac_cv_prog_cc_g+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 ac_save_c_werror_flag=$ac_c_werror_flag
3338 ac_c_werror_flag=yes
3339 ac_cv_prog_cc_g=no
3340 CFLAGS="-g"
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_g=yes
3354 else
3355 CFLAGS=""
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368
3369 else
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3371 CFLAGS="-g"
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374
3375 int
3376 main ()
3377 {
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_cv_prog_cc_g=yes
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3392 fi
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3394 $as_echo "$ac_cv_prog_cc_g" >&6; }
3395 if test "$ac_test_CFLAGS" = set; then
3396 CFLAGS=$ac_save_CFLAGS
3397 elif test $ac_cv_prog_cc_g = yes; then
3398 if test "$GCC" = yes; then
3399 CFLAGS="-g -O2"
3400 else
3401 CFLAGS="-g"
3402 fi
3403 else
3404 if test "$GCC" = yes; then
3405 CFLAGS="-O2"
3406 else
3407 CFLAGS=
3408 fi
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3412 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 ac_cv_prog_cc_c89=no
3416 ac_save_CC=$CC
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <stdarg.h>
3420 #include <stdio.h>
3421 #include <sys/types.h>
3422 #include <sys/stat.h>
3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424 struct buf { int x; };
3425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426 static char *e (p, i)
3427 char **p;
3428 int i;
3429 {
3430 return p[i];
3431 }
3432 static char *f (char * (*g) (char **, int), char **p, ...)
3433 {
3434 char *s;
3435 va_list v;
3436 va_start (v,p);
3437 s = g (p, va_arg (v,int));
3438 va_end (v);
3439 return s;
3440 }
3441
3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
3445 as 'x'. The following induces an error, until -std is added to get
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
3448 that's true only with -std. */
3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
3451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452 inside strings and character constants. */
3453 #define FOO(x) 'x'
3454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455
3456 int test (int i, double x);
3457 struct s1 {int (*f) (int a);};
3458 struct s2 {int (*f) (double a);};
3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 int argc;
3461 char **argv;
3462 int
3463 main ()
3464 {
3465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472 do
3473 CC="$ac_save_CC $ac_arg"
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_c89=$ac_arg
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 done
3480 rm -f conftest.$ac_ext
3481 CC=$ac_save_CC
3482
3483 fi
3484 # AC_CACHE_VAL
3485 case "x$ac_cv_prog_cc_c89" in
3486 x)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488 $as_echo "none needed" >&6; } ;;
3489 xno)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491 $as_echo "unsupported" >&6; } ;;
3492 *)
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3496 esac
3497 if test "x$ac_cv_prog_cc_c89" != xno; then :
3498
3499 fi
3500
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3509 if test "${ac_cv_path_SED+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3513 for ac_i in 1 2 3 4 5 6 7; do
3514 ac_script="$ac_script$as_nl$ac_script"
3515 done
3516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3517 { ac_script=; unset ac_script;}
3518 if test -z "$SED"; then
3519 ac_path_SED_found=false
3520 # Loop through the user's path and test for each of PROGNAME-LIST
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_prog in sed gsed; do
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3530 # Check for GNU ac_path_SED and select it if it is found.
3531 # Check for GNU $ac_path_SED
3532 case `"$ac_path_SED" --version 2>&1` in
3533 *GNU*)
3534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3535 *)
3536 ac_count=0
3537 $as_echo_n 0123456789 >"conftest.in"
3538 while :
3539 do
3540 cat "conftest.in" "conftest.in" >"conftest.tmp"
3541 mv "conftest.tmp" "conftest.in"
3542 cp "conftest.in" "conftest.nl"
3543 $as_echo '' >> "conftest.nl"
3544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3546 as_fn_arith $ac_count + 1 && ac_count=$as_val
3547 if test $ac_count -gt ${ac_path_SED_max-0}; then
3548 # Best one so far, save it but keep looking for a better one
3549 ac_cv_path_SED="$ac_path_SED"
3550 ac_path_SED_max=$ac_count
3551 fi
3552 # 10*(2^10) chars as input seems more than enough
3553 test $ac_count -gt 10 && break
3554 done
3555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3556 esac
3557
3558 $ac_path_SED_found && break 3
3559 done
3560 done
3561 done
3562 IFS=$as_save_IFS
3563 if test -z "$ac_cv_path_SED"; then
3564 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3565 fi
3566 else
3567 ac_cv_path_SED=$SED
3568 fi
3569
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3572 $as_echo "$ac_cv_path_SED" >&6; }
3573 SED="$ac_cv_path_SED"
3574 rm -f conftest.sed
3575
3576 test -z "$SED" && SED=sed
3577 Xsed="$SED -e 1s/^X//"
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3591 if test "${ac_cv_path_GREP+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -z "$GREP"; then
3595 ac_path_GREP_found=false
3596 # Loop through the user's path and test for each of PROGNAME-LIST
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_prog in grep ggrep; do
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3606 # Check for GNU ac_path_GREP and select it if it is found.
3607 # Check for GNU $ac_path_GREP
3608 case `"$ac_path_GREP" --version 2>&1` in
3609 *GNU*)
3610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3611 *)
3612 ac_count=0
3613 $as_echo_n 0123456789 >"conftest.in"
3614 while :
3615 do
3616 cat "conftest.in" "conftest.in" >"conftest.tmp"
3617 mv "conftest.tmp" "conftest.in"
3618 cp "conftest.in" "conftest.nl"
3619 $as_echo 'GREP' >> "conftest.nl"
3620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3622 as_fn_arith $ac_count + 1 && ac_count=$as_val
3623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624 # Best one so far, save it but keep looking for a better one
3625 ac_cv_path_GREP="$ac_path_GREP"
3626 ac_path_GREP_max=$ac_count
3627 fi
3628 # 10*(2^10) chars as input seems more than enough
3629 test $ac_count -gt 10 && break
3630 done
3631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3632 esac
3633
3634 $ac_path_GREP_found && break 3
3635 done
3636 done
3637 done
3638 IFS=$as_save_IFS
3639 if test -z "$ac_cv_path_GREP"; then
3640 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3641 fi
3642 else
3643 ac_cv_path_GREP=$GREP
3644 fi
3645
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3648 $as_echo "$ac_cv_path_GREP" >&6; }
3649 GREP="$ac_cv_path_GREP"
3650
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3653 $as_echo_n "checking for egrep... " >&6; }
3654 if test "${ac_cv_path_EGREP+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3658 then ac_cv_path_EGREP="$GREP -E"
3659 else
3660 if test -z "$EGREP"; then
3661 ac_path_EGREP_found=false
3662 # Loop through the user's path and test for each of PROGNAME-LIST
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_prog in egrep; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3672 # Check for GNU ac_path_EGREP and select it if it is found.
3673 # Check for GNU $ac_path_EGREP
3674 case `"$ac_path_EGREP" --version 2>&1` in
3675 *GNU*)
3676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3677 *)
3678 ac_count=0
3679 $as_echo_n 0123456789 >"conftest.in"
3680 while :
3681 do
3682 cat "conftest.in" "conftest.in" >"conftest.tmp"
3683 mv "conftest.tmp" "conftest.in"
3684 cp "conftest.in" "conftest.nl"
3685 $as_echo 'EGREP' >> "conftest.nl"
3686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3688 as_fn_arith $ac_count + 1 && ac_count=$as_val
3689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3690 # Best one so far, save it but keep looking for a better one
3691 ac_cv_path_EGREP="$ac_path_EGREP"
3692 ac_path_EGREP_max=$ac_count
3693 fi
3694 # 10*(2^10) chars as input seems more than enough
3695 test $ac_count -gt 10 && break
3696 done
3697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698 esac
3699
3700 $ac_path_EGREP_found && break 3
3701 done
3702 done
3703 done
3704 IFS=$as_save_IFS
3705 if test -z "$ac_cv_path_EGREP"; then
3706 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3707 fi
3708 else
3709 ac_cv_path_EGREP=$EGREP
3710 fi
3711
3712 fi
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3715 $as_echo "$ac_cv_path_EGREP" >&6; }
3716 EGREP="$ac_cv_path_EGREP"
3717
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3720 $as_echo_n "checking for fgrep... " >&6; }
3721 if test "${ac_cv_path_FGREP+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3725 then ac_cv_path_FGREP="$GREP -F"
3726 else
3727 if test -z "$FGREP"; then
3728 ac_path_FGREP_found=false
3729 # Loop through the user's path and test for each of PROGNAME-LIST
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_prog in fgrep; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3738 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3739 # Check for GNU ac_path_FGREP and select it if it is found.
3740 # Check for GNU $ac_path_FGREP
3741 case `"$ac_path_FGREP" --version 2>&1` in
3742 *GNU*)
3743 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3744 *)
3745 ac_count=0
3746 $as_echo_n 0123456789 >"conftest.in"
3747 while :
3748 do
3749 cat "conftest.in" "conftest.in" >"conftest.tmp"
3750 mv "conftest.tmp" "conftest.in"
3751 cp "conftest.in" "conftest.nl"
3752 $as_echo 'FGREP' >> "conftest.nl"
3753 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3755 as_fn_arith $ac_count + 1 && ac_count=$as_val
3756 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3757 # Best one so far, save it but keep looking for a better one
3758 ac_cv_path_FGREP="$ac_path_FGREP"
3759 ac_path_FGREP_max=$ac_count
3760 fi
3761 # 10*(2^10) chars as input seems more than enough
3762 test $ac_count -gt 10 && break
3763 done
3764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3765 esac
3766
3767 $ac_path_FGREP_found && break 3
3768 done
3769 done
3770 done
3771 IFS=$as_save_IFS
3772 if test -z "$ac_cv_path_FGREP"; then
3773 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3774 fi
3775 else
3776 ac_cv_path_FGREP=$FGREP
3777 fi
3778
3779 fi
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3782 $as_echo "$ac_cv_path_FGREP" >&6; }
3783 FGREP="$ac_cv_path_FGREP"
3784
3785
3786 test -z "$GREP" && GREP=grep
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806 # Check whether --with-gnu-ld was given.
3807 if test "${with_gnu_ld+set}" = set; then :
3808 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3809 else
3810 with_gnu_ld=no
3811 fi
3812
3813 ac_prog=ld
3814 if test "$GCC" = yes; then
3815 # Check if gcc -print-prog-name=ld gives a path.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3817 $as_echo_n "checking for ld used by $CC... " >&6; }
3818 case $host in
3819 *-*-mingw*)
3820 # gcc leaves a trailing carriage return which upsets mingw
3821 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3822 *)
3823 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3824 esac
3825 case $ac_prog in
3826 # Accept absolute paths.
3827 [\\/]* | ?:[\\/]*)
3828 re_direlt='/[^/][^/]*/\.\./'
3829 # Canonicalize the pathname of ld
3830 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3831 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3832 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3833 done
3834 test -z "$LD" && LD="$ac_prog"
3835 ;;
3836 "")
3837 # If it fails, then pretend we aren't using GCC.
3838 ac_prog=ld
3839 ;;
3840 *)
3841 # If it is relative, then search for the first ld in PATH.
3842 with_gnu_ld=unknown
3843 ;;
3844 esac
3845 elif test "$with_gnu_ld" = yes; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3847 $as_echo_n "checking for GNU ld... " >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3850 $as_echo_n "checking for non-GNU ld... " >&6; }
3851 fi
3852 if test "${lt_cv_path_LD+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -z "$LD"; then
3856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3857 for ac_dir in $PATH; do
3858 IFS="$lt_save_ifs"
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3861 lt_cv_path_LD="$ac_dir/$ac_prog"
3862 # Check to see if the program is GNU ld. I'd rather use --version,
3863 # but apparently some variants of GNU ld only accept -v.
3864 # Break only if it was the GNU/non-GNU ld that we prefer.
3865 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3866 *GNU* | *'with BFD'*)
3867 test "$with_gnu_ld" != no && break
3868 ;;
3869 *)
3870 test "$with_gnu_ld" != yes && break
3871 ;;
3872 esac
3873 fi
3874 done
3875 IFS="$lt_save_ifs"
3876 else
3877 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3878 fi
3879 fi
3880
3881 LD="$lt_cv_path_LD"
3882 if test -n "$LD"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3884 $as_echo "$LD" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3892 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3896 case `$LD -v 2>&1 </dev/null` in
3897 *GNU* | *'with BFD'*)
3898 lt_cv_prog_gnu_ld=yes
3899 ;;
3900 *)
3901 lt_cv_prog_gnu_ld=no
3902 ;;
3903 esac
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3906 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3907 with_gnu_ld=$lt_cv_prog_gnu_ld
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3918 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3919 if test "${lt_cv_path_NM+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$NM"; then
3923 # Let the user override the test.
3924 lt_cv_path_NM="$NM"
3925 else
3926 lt_nm_to_check="${ac_tool_prefix}nm"
3927 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3928 lt_nm_to_check="$lt_nm_to_check nm"
3929 fi
3930 for lt_tmp_nm in $lt_nm_to_check; do
3931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3932 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3933 IFS="$lt_save_ifs"
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm="$ac_dir/$lt_tmp_nm"
3936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3942 */dev/null* | *'Invalid file or object type'*)
3943 lt_cv_path_NM="$tmp_nm -B"
3944 break
3945 ;;
3946 *)
3947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3948 */dev/null*)
3949 lt_cv_path_NM="$tmp_nm -p"
3950 break
3951 ;;
3952 *)
3953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954 continue # so that we can try to find one that supports BSD flags
3955 ;;
3956 esac
3957 ;;
3958 esac
3959 fi
3960 done
3961 IFS="$lt_save_ifs"
3962 done
3963 : ${lt_cv_path_NM=no}
3964 fi
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3967 $as_echo "$lt_cv_path_NM" >&6; }
3968 if test "$lt_cv_path_NM" != "no"; then
3969 NM="$lt_cv_path_NM"
3970 else
3971 # Didn't find any BSD compatible name lister, look for dumpbin.
3972 if test -n "$ac_tool_prefix"; then
3973 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3974 do
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$DUMPBIN"; then
3983 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 DUMPBIN=$ac_cv_prog_DUMPBIN
4003 if test -n "$DUMPBIN"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4005 $as_echo "$DUMPBIN" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012 test -n "$DUMPBIN" && break
4013 done
4014 fi
4015 if test -z "$DUMPBIN"; then
4016 ac_ct_DUMPBIN=$DUMPBIN
4017 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4018 do
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -n "$ac_ct_DUMPBIN"; then
4027 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4047 if test -n "$ac_ct_DUMPBIN"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4049 $as_echo "$ac_ct_DUMPBIN" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056 test -n "$ac_ct_DUMPBIN" && break
4057 done
4058
4059 if test "x$ac_ct_DUMPBIN" = x; then
4060 DUMPBIN=":"
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 DUMPBIN=$ac_ct_DUMPBIN
4069 fi
4070 fi
4071
4072
4073 if test "$DUMPBIN" != ":"; then
4074 NM="$DUMPBIN"
4075 fi
4076 fi
4077 test -z "$NM" && NM=nm
4078
4079
4080
4081
4082
4083
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4086 if test "${lt_cv_nm_interface+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 lt_cv_nm_interface="BSD nm"
4090 echo "int some_variable = 0;" > conftest.$ac_ext
4091 (eval echo "\"\$as_me:4091: $ac_compile\"" >&5)
4092 (eval "$ac_compile" 2>conftest.err)
4093 cat conftest.err >&5
4094 (eval echo "\"\$as_me:4094: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4095 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4096 cat conftest.err >&5
4097 (eval echo "\"\$as_me:4097: output\"" >&5)
4098 cat conftest.out >&5
4099 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4100 lt_cv_nm_interface="MS dumpbin"
4101 fi
4102 rm -f conftest*
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4105 $as_echo "$lt_cv_nm_interface" >&6; }
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4108 $as_echo_n "checking whether ln -s works... " >&6; }
4109 LN_S=$as_ln_s
4110 if test "$LN_S" = "ln -s"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4115 $as_echo "no, using $LN_S" >&6; }
4116 fi
4117
4118 # find the maximum length of command line arguments
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4121 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 i=0
4125 teststring="ABCD"
4126
4127 case $build_os in
4128 msdosdjgpp*)
4129 # On DJGPP, this test can blow up pretty badly due to problems in libc
4130 # (any single argument exceeding 2000 bytes causes a buffer overrun
4131 # during glob expansion). Even if it were fixed, the result of this
4132 # check would be larger than it should be.
4133 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4134 ;;
4135
4136 gnu*)
4137 # Under GNU Hurd, this test is not required because there is
4138 # no limit to the length of command line arguments.
4139 # Libtool will interpret -1 as no limit whatsoever
4140 lt_cv_sys_max_cmd_len=-1;
4141 ;;
4142
4143 cygwin* | mingw* | cegcc*)
4144 # On Win9x/ME, this test blows up -- it succeeds, but takes
4145 # about 5 minutes as the teststring grows exponentially.
4146 # Worse, since 9x/ME are not pre-emptively multitasking,
4147 # you end up with a "frozen" computer, even though with patience
4148 # the test eventually succeeds (with a max line length of 256k).
4149 # Instead, let's just punt: use the minimum linelength reported by
4150 # all of the supported platforms: 8192 (on NT/2K/XP).
4151 lt_cv_sys_max_cmd_len=8192;
4152 ;;
4153
4154 amigaos*)
4155 # On AmigaOS with pdksh, this test takes hours, literally.
4156 # So we just punt and use a minimum line length of 8192.
4157 lt_cv_sys_max_cmd_len=8192;
4158 ;;
4159
4160 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4161 # This has been around since 386BSD, at least. Likely further.
4162 if test -x /sbin/sysctl; then
4163 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4164 elif test -x /usr/sbin/sysctl; then
4165 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4166 else
4167 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4168 fi
4169 # And add a safety zone
4170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4172 ;;
4173
4174 interix*)
4175 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4176 lt_cv_sys_max_cmd_len=196608
4177 ;;
4178
4179 osf*)
4180 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4181 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4182 # nice to cause kernel panics so lets avoid the loop below.
4183 # First set a reasonable default.
4184 lt_cv_sys_max_cmd_len=16384
4185 #
4186 if test -x /sbin/sysconfig; then
4187 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4188 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4189 esac
4190 fi
4191 ;;
4192 sco3.2v5*)
4193 lt_cv_sys_max_cmd_len=102400
4194 ;;
4195 sysv5* | sco5v6* | sysv4.2uw2*)
4196 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4197 if test -n "$kargmax"; then
4198 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4199 else
4200 lt_cv_sys_max_cmd_len=32768
4201 fi
4202 ;;
4203 *)
4204 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4205 if test -n "$lt_cv_sys_max_cmd_len"; then
4206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4208 else
4209 # Make teststring a little bigger before we do anything with it.
4210 # a 1K string should be a reasonable start.
4211 for i in 1 2 3 4 5 6 7 8 ; do
4212 teststring=$teststring$teststring
4213 done
4214 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4215 # If test is not a shell built-in, we'll probably end up computing a
4216 # maximum length that is only half of the actual maximum length, but
4217 # we can't tell.
4218 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4219 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4220 test $i != 17 # 1/2 MB should be enough
4221 do
4222 i=`expr $i + 1`
4223 teststring=$teststring$teststring
4224 done
4225 # Only check the string length outside the loop.
4226 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4227 teststring=
4228 # Add a significant safety factor because C++ compilers can tack on
4229 # massive amounts of additional arguments before passing them to the
4230 # linker. It appears as though 1/2 is a usable value.
4231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4232 fi
4233 ;;
4234 esac
4235
4236 fi
4237
4238 if test -n $lt_cv_sys_max_cmd_len ; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4240 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4243 $as_echo "none" >&6; }
4244 fi
4245 max_cmd_len=$lt_cv_sys_max_cmd_len
4246
4247
4248
4249
4250
4251
4252 : ${CP="cp -f"}
4253 : ${MV="mv -f"}
4254 : ${RM="rm -f"}
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4257 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4258 # Try some XSI features
4259 xsi_shell=no
4260 ( _lt_dummy="a/b/c"
4261 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4262 = c,a/b,, \
4263 && eval 'test $(( 1 + 1 )) -eq 2 \
4264 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4265 && xsi_shell=yes
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4267 $as_echo "$xsi_shell" >&6; }
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4271 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4272 lt_shell_append=no
4273 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4274 >/dev/null 2>&1 \
4275 && lt_shell_append=yes
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4277 $as_echo "$lt_shell_append" >&6; }
4278
4279
4280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4281 lt_unset=unset
4282 else
4283 lt_unset=false
4284 fi
4285
4286
4287
4288
4289
4290 # test EBCDIC or ASCII
4291 case `echo X|tr X '\101'` in
4292 A) # ASCII based system
4293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4294 lt_SP2NL='tr \040 \012'
4295 lt_NL2SP='tr \015\012 \040\040'
4296 ;;
4297 *) # EBCDIC based system
4298 lt_SP2NL='tr \100 \n'
4299 lt_NL2SP='tr \r\n \100\100'
4300 ;;
4301 esac
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4312 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4313 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 lt_cv_ld_reload_flag='-r'
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4319 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4320 reload_flag=$lt_cv_ld_reload_flag
4321 case $reload_flag in
4322 "" | " "*) ;;
4323 *) reload_flag=" $reload_flag" ;;
4324 esac
4325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4326 case $host_os in
4327 darwin*)
4328 if test "$GCC" = yes; then
4329 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4330 else
4331 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4332 fi
4333 ;;
4334 esac
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$OBJDUMP"; then
4353 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 OBJDUMP=$ac_cv_prog_OBJDUMP
4373 if test -n "$OBJDUMP"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4375 $as_echo "$OBJDUMP" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382 fi
4383 if test -z "$ac_cv_prog_OBJDUMP"; then
4384 ac_ct_OBJDUMP=$OBJDUMP
4385 # Extract the first word of "objdump", so it can be a program name with args.
4386 set dummy objdump; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$ac_ct_OBJDUMP"; then
4393 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4413 if test -n "$ac_ct_OBJDUMP"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4415 $as_echo "$ac_ct_OBJDUMP" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421 if test "x$ac_ct_OBJDUMP" = x; then
4422 OBJDUMP="false"
4423 else
4424 case $cross_compiling:$ac_tool_warned in
4425 yes:)
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428 ac_tool_warned=yes ;;
4429 esac
4430 OBJDUMP=$ac_ct_OBJDUMP
4431 fi
4432 else
4433 OBJDUMP="$ac_cv_prog_OBJDUMP"
4434 fi
4435
4436 test -z "$OBJDUMP" && OBJDUMP=objdump
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4447 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4448 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 lt_cv_file_magic_cmd='$MAGIC_CMD'
4452 lt_cv_file_magic_test_file=
4453 lt_cv_deplibs_check_method='unknown'
4454 # Need to set the preceding variable on all platforms that support
4455 # interlibrary dependencies.
4456 # 'none' -- dependencies not supported.
4457 # `unknown' -- same as none, but documents that we really don't know.
4458 # 'pass_all' -- all dependencies passed with no checks.
4459 # 'test_compile' -- check by making test program.
4460 # 'file_magic [[regex]]' -- check by looking for files in library path
4461 # which responds to the $file_magic_cmd with a given extended regex.
4462 # If you have `file' or equivalent on your system and you're not sure
4463 # whether `pass_all' will *always* work, you probably want this one.
4464
4465 case $host_os in
4466 aix[4-9]*)
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469
4470 beos*)
4471 lt_cv_deplibs_check_method=pass_all
4472 ;;
4473
4474 bsdi[45]*)
4475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4476 lt_cv_file_magic_cmd='/usr/bin/file -L'
4477 lt_cv_file_magic_test_file=/shlib/libc.so
4478 ;;
4479
4480 cygwin*)
4481 # func_win32_libid is a shell function defined in ltmain.sh
4482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4483 lt_cv_file_magic_cmd='func_win32_libid'
4484 ;;
4485
4486 mingw* | pw32*)
4487 # Base MSYS/MinGW do not provide the 'file' command needed by
4488 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4489 # unless we find 'file', for example because we are cross-compiling.
4490 if ( file / ) >/dev/null 2>&1; then
4491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4492 lt_cv_file_magic_cmd='func_win32_libid'
4493 else
4494 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4495 lt_cv_file_magic_cmd='$OBJDUMP -f'
4496 fi
4497 ;;
4498
4499 cegcc)
4500 # use the weaker test based on 'objdump'. See mingw*.
4501 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4502 lt_cv_file_magic_cmd='$OBJDUMP -f'
4503 ;;
4504
4505 darwin* | rhapsody*)
4506 lt_cv_deplibs_check_method=pass_all
4507 ;;
4508
4509 freebsd* | dragonfly*)
4510 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4511 case $host_cpu in
4512 i*86 )
4513 # Not sure whether the presence of OpenBSD here was a mistake.
4514 # Let's accept both of them until this is cleared up.
4515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4516 lt_cv_file_magic_cmd=/usr/bin/file
4517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4518 ;;
4519 esac
4520 else
4521 lt_cv_deplibs_check_method=pass_all
4522 fi
4523 ;;
4524
4525 gnu*)
4526 lt_cv_deplibs_check_method=pass_all
4527 ;;
4528
4529 hpux10.20* | hpux11*)
4530 lt_cv_file_magic_cmd=/usr/bin/file
4531 case $host_cpu in
4532 ia64*)
4533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4534 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4535 ;;
4536 hppa*64*)
4537 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]'
4538 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4539 ;;
4540 *)
4541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4542 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4543 ;;
4544 esac
4545 ;;
4546
4547 interix[3-9]*)
4548 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4550 ;;
4551
4552 irix5* | irix6* | nonstopux*)
4553 case $LD in
4554 *-32|*"-32 ") libmagic=32-bit;;
4555 *-n32|*"-n32 ") libmagic=N32;;
4556 *-64|*"-64 ") libmagic=64-bit;;
4557 *) libmagic=never-match;;
4558 esac
4559 lt_cv_deplibs_check_method=pass_all
4560 ;;
4561
4562 # This must be Linux ELF.
4563 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4564 lt_cv_deplibs_check_method=pass_all
4565 ;;
4566
4567 netbsd* | netbsdelf*-gnu)
4568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4570 else
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4572 fi
4573 ;;
4574
4575 newos6*)
4576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4577 lt_cv_file_magic_cmd=/usr/bin/file
4578 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4579 ;;
4580
4581 *nto* | *qnx*)
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584
4585 openbsd*)
4586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4588 else
4589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4590 fi
4591 ;;
4592
4593 osf3* | osf4* | osf5*)
4594 lt_cv_deplibs_check_method=pass_all
4595 ;;
4596
4597 rdos*)
4598 lt_cv_deplibs_check_method=pass_all
4599 ;;
4600
4601 solaris*)
4602 lt_cv_deplibs_check_method=pass_all
4603 ;;
4604
4605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4606 lt_cv_deplibs_check_method=pass_all
4607 ;;
4608
4609 sysv4 | sysv4.3*)
4610 case $host_vendor in
4611 motorola)
4612 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]'
4613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4614 ;;
4615 ncr)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618 sequent)
4619 lt_cv_file_magic_cmd='/bin/file'
4620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4621 ;;
4622 sni)
4623 lt_cv_file_magic_cmd='/bin/file'
4624 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4625 lt_cv_file_magic_test_file=/lib/libc.so
4626 ;;
4627 siemens)
4628 lt_cv_deplibs_check_method=pass_all
4629 ;;
4630 pc)
4631 lt_cv_deplibs_check_method=pass_all
4632 ;;
4633 esac
4634 ;;
4635
4636 tpf*)
4637 lt_cv_deplibs_check_method=pass_all
4638 ;;
4639 esac
4640
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4643 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4644 file_magic_cmd=$lt_cv_file_magic_cmd
4645 deplibs_check_method=$lt_cv_deplibs_check_method
4646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}ar; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_AR+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$AR"; then
4668 ac_cv_prog_AR="$AR" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_AR="${ac_tool_prefix}ar"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 AR=$ac_cv_prog_AR
4688 if test -n "$AR"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4690 $as_echo "$AR" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 fi
4698 if test -z "$ac_cv_prog_AR"; then
4699 ac_ct_AR=$AR
4700 # Extract the first word of "ar", so it can be a program name with args.
4701 set dummy ar; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_AR"; then
4708 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_AR="ar"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4728 if test -n "$ac_ct_AR"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4730 $as_echo "$ac_ct_AR" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736 if test "x$ac_ct_AR" = x; then
4737 AR="false"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 AR=$ac_ct_AR
4746 fi
4747 else
4748 AR="$ac_cv_prog_AR"
4749 fi
4750
4751 test -z "$AR" && AR=ar
4752 test -z "$AR_FLAGS" && AR_FLAGS=cru
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4766 set dummy ${ac_tool_prefix}strip; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_STRIP+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$STRIP"; then
4773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 STRIP=$ac_cv_prog_STRIP
4793 if test -n "$STRIP"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4795 $as_echo "$STRIP" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800
4801
4802 fi
4803 if test -z "$ac_cv_prog_STRIP"; then
4804 ac_ct_STRIP=$STRIP
4805 # Extract the first word of "strip", so it can be a program name with args.
4806 set dummy strip; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$ac_ct_STRIP"; then
4813 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_ac_ct_STRIP="strip"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826 done
4827 done
4828 IFS=$as_save_IFS
4829
4830 fi
4831 fi
4832 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4833 if test -n "$ac_ct_STRIP"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4835 $as_echo "$ac_ct_STRIP" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840
4841 if test "x$ac_ct_STRIP" = x; then
4842 STRIP=":"
4843 else
4844 case $cross_compiling:$ac_tool_warned in
4845 yes:)
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4848 ac_tool_warned=yes ;;
4849 esac
4850 STRIP=$ac_ct_STRIP
4851 fi
4852 else
4853 STRIP="$ac_cv_prog_STRIP"
4854 fi
4855
4856 test -z "$STRIP" && STRIP=:
4857
4858
4859
4860
4861
4862
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 RANLIB=$ac_cv_prog_RANLIB
4892 if test -n "$RANLIB"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4894 $as_echo "$RANLIB" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901 fi
4902 if test -z "$ac_cv_prog_RANLIB"; then
4903 ac_ct_RANLIB=$RANLIB
4904 # Extract the first word of "ranlib", so it can be a program name with args.
4905 set dummy ranlib; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$ac_ct_RANLIB"; then
4912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_ac_ct_RANLIB="ranlib"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4932 if test -n "$ac_ct_RANLIB"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4934 $as_echo "$ac_ct_RANLIB" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940 if test "x$ac_ct_RANLIB" = x; then
4941 RANLIB=":"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944 yes:)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947 ac_tool_warned=yes ;;
4948 esac
4949 RANLIB=$ac_ct_RANLIB
4950 fi
4951 else
4952 RANLIB="$ac_cv_prog_RANLIB"
4953 fi
4954
4955 test -z "$RANLIB" && RANLIB=:
4956
4957
4958
4959
4960
4961
4962 # Determine commands to create old-style static archives.
4963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4964 old_postinstall_cmds='chmod 644 $oldlib'
4965 old_postuninstall_cmds=
4966
4967 if test -n "$RANLIB"; then
4968 case $host_os in
4969 openbsd*)
4970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4971 ;;
4972 *)
4973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4974 ;;
4975 esac
4976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4977 fi
4978
4979
4980
4981
4982
4983
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 # If no C compiler was specified, use CC.
5013 LTCC=${LTCC-"$CC"}
5014
5015 # If no C compiler flags were specified, use CFLAGS.
5016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5017
5018 # Allow CC to be a program name with arguments.
5019 compiler=$CC
5020
5021
5022 # Check for command to grab the raw symbol name followed by C symbol from nm.
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5024 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5025 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028
5029 # These are sane defaults that work on at least a few old systems.
5030 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5031
5032 # Character class describing NM global symbol codes.
5033 symcode='[BCDEGRST]'
5034
5035 # Regexp to match symbols that can be accessed directly from C.
5036 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5037
5038 # Define system-specific variables.
5039 case $host_os in
5040 aix*)
5041 symcode='[BCDT]'
5042 ;;
5043 cygwin* | mingw* | pw32* | cegcc*)
5044 symcode='[ABCDGISTW]'
5045 ;;
5046 hpux*)
5047 if test "$host_cpu" = ia64; then
5048 symcode='[ABCDEGRST]'
5049 fi
5050 ;;
5051 irix* | nonstopux*)
5052 symcode='[BCDEGRST]'
5053 ;;
5054 osf*)
5055 symcode='[BCDEGQRST]'
5056 ;;
5057 solaris*)
5058 symcode='[BDRT]'
5059 ;;
5060 sco3.2v5*)
5061 symcode='[DT]'
5062 ;;
5063 sysv4.2uw2*)
5064 symcode='[DT]'
5065 ;;
5066 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5067 symcode='[ABDT]'
5068 ;;
5069 sysv4)
5070 symcode='[DFNSTU]'
5071 ;;
5072 esac
5073
5074 # If we're using GNU nm, then use its standard symbol codes.
5075 case `$NM -V 2>&1` in
5076 *GNU* | *'with BFD'*)
5077 symcode='[ABCDGIRSTW]' ;;
5078 esac
5079
5080 # Transform an extracted symbol line into a proper C declaration.
5081 # Some systems (esp. on ia64) link data and code symbols differently,
5082 # so use this general approach.
5083 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5084
5085 # Transform an extracted symbol line into symbol name and symbol address
5086 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5087 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'"
5088
5089 # Handle CRLF in mingw tool chain
5090 opt_cr=
5091 case $build_os in
5092 mingw*)
5093 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5094 ;;
5095 esac
5096
5097 # Try without a prefix underscore, then with it.
5098 for ac_symprfx in "" "_"; do
5099
5100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5101 symxfrm="\\1 $ac_symprfx\\2 \\2"
5102
5103 # Write the raw and C identifiers.
5104 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5105 # Fake it for dumpbin and say T for any non-static function
5106 # and D for any global variable.
5107 # Also find C++ and __fastcall symbols from MSVC++,
5108 # which start with @ or ?.
5109 lt_cv_sys_global_symbol_pipe="$AWK '"\
5110 " {last_section=section; section=\$ 3};"\
5111 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5112 " \$ 0!~/External *\|/{next};"\
5113 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5114 " {if(hide[section]) next};"\
5115 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5116 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5117 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5118 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5119 " ' prfx=^$ac_symprfx"
5120 else
5121 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5122 fi
5123
5124 # Check to see that the pipe works correctly.
5125 pipe_works=no
5126
5127 rm -f conftest*
5128 cat > conftest.$ac_ext <<_LT_EOF
5129 #ifdef __cplusplus
5130 extern "C" {
5131 #endif
5132 char nm_test_var;
5133 void nm_test_func(void);
5134 void nm_test_func(void){}
5135 #ifdef __cplusplus
5136 }
5137 #endif
5138 int main(){nm_test_var='a';nm_test_func();return(0);}
5139 _LT_EOF
5140
5141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5142 (eval $ac_compile) 2>&5
5143 ac_status=$?
5144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145 test $ac_status = 0; }; then
5146 # Now try to grab the symbols.
5147 nlist=conftest.nm
5148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5149 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5150 ac_status=$?
5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; } && test -s "$nlist"; then
5153 # Try sorting and uniquifying the output.
5154 if sort "$nlist" | uniq > "$nlist"T; then
5155 mv -f "$nlist"T "$nlist"
5156 else
5157 rm -f "$nlist"T
5158 fi
5159
5160 # Make sure that we snagged all the symbols we need.
5161 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5162 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5163 cat <<_LT_EOF > conftest.$ac_ext
5164 #ifdef __cplusplus
5165 extern "C" {
5166 #endif
5167
5168 _LT_EOF
5169 # Now generate the symbol file.
5170 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5171
5172 cat <<_LT_EOF >> conftest.$ac_ext
5173
5174 /* The mapping between symbol names and symbols. */
5175 const struct {
5176 const char *name;
5177 void *address;
5178 }
5179 lt__PROGRAM__LTX_preloaded_symbols[] =
5180 {
5181 { "@PROGRAM@", (void *) 0 },
5182 _LT_EOF
5183 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5184 cat <<\_LT_EOF >> conftest.$ac_ext
5185 {0, (void *) 0}
5186 };
5187
5188 /* This works around a problem in FreeBSD linker */
5189 #ifdef FREEBSD_WORKAROUND
5190 static const void *lt_preloaded_setup() {
5191 return lt__PROGRAM__LTX_preloaded_symbols;
5192 }
5193 #endif
5194
5195 #ifdef __cplusplus
5196 }
5197 #endif
5198 _LT_EOF
5199 # Now try linking the two files.
5200 mv conftest.$ac_objext conftstm.$ac_objext
5201 lt_save_LIBS="$LIBS"
5202 lt_save_CFLAGS="$CFLAGS"
5203 LIBS="conftstm.$ac_objext"
5204 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5206 (eval $ac_link) 2>&5
5207 ac_status=$?
5208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5209 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5210 pipe_works=yes
5211 fi
5212 LIBS="$lt_save_LIBS"
5213 CFLAGS="$lt_save_CFLAGS"
5214 else
5215 echo "cannot find nm_test_func in $nlist" >&5
5216 fi
5217 else
5218 echo "cannot find nm_test_var in $nlist" >&5
5219 fi
5220 else
5221 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5222 fi
5223 else
5224 echo "$progname: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 fi
5227 rm -rf conftest* conftst*
5228
5229 # Do not use the global_symbol_pipe unless it works.
5230 if test "$pipe_works" = yes; then
5231 break
5232 else
5233 lt_cv_sys_global_symbol_pipe=
5234 fi
5235 done
5236
5237 fi
5238
5239 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5240 lt_cv_sys_global_symbol_to_cdecl=
5241 fi
5242 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5244 $as_echo "failed" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5247 $as_echo "ok" >&6; }
5248 fi
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 # Check whether --enable-libtool-lock was given.
5273 if test "${enable_libtool_lock+set}" = set; then :
5274 enableval=$enable_libtool_lock;
5275 fi
5276
5277 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5278
5279 # Some flags need to be propagated to the compiler or linker for good
5280 # libtool support.
5281 case $host in
5282 ia64-*-hpux*)
5283 # Find out which ABI we are using.
5284 echo 'int i;' > conftest.$ac_ext
5285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289 test $ac_status = 0; }; then
5290 case `/usr/bin/file conftest.$ac_objext` in
5291 *ELF-32*)
5292 HPUX_IA64_MODE="32"
5293 ;;
5294 *ELF-64*)
5295 HPUX_IA64_MODE="64"
5296 ;;
5297 esac
5298 fi
5299 rm -rf conftest*
5300 ;;
5301 *-*-irix6*)
5302 # Find out which ABI we are using.
5303 echo '#line 5303 "configure"' > conftest.$ac_ext
5304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5305 (eval $ac_compile) 2>&5
5306 ac_status=$?
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; }; then
5309 if test "$lt_cv_prog_gnu_ld" = yes; then
5310 case `/usr/bin/file conftest.$ac_objext` in
5311 *32-bit*)
5312 LD="${LD-ld} -melf32bsmip"
5313 ;;
5314 *N32*)
5315 LD="${LD-ld} -melf32bmipn32"
5316 ;;
5317 *64-bit*)
5318 LD="${LD-ld} -melf64bmip"
5319 ;;
5320 esac
5321 else
5322 case `/usr/bin/file conftest.$ac_objext` in
5323 *32-bit*)
5324 LD="${LD-ld} -32"
5325 ;;
5326 *N32*)
5327 LD="${LD-ld} -n32"
5328 ;;
5329 *64-bit*)
5330 LD="${LD-ld} -64"
5331 ;;
5332 esac
5333 fi
5334 fi
5335 rm -rf conftest*
5336 ;;
5337
5338 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5339 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5340 # Find out which ABI we are using.
5341 echo 'int i;' > conftest.$ac_ext
5342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5343 (eval $ac_compile) 2>&5
5344 ac_status=$?
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }; then
5347 case `/usr/bin/file conftest.o` in
5348 *32-bit*)
5349 case $host in
5350 x86_64-*kfreebsd*-gnu)
5351 LD="${LD-ld} -m elf_i386_fbsd"
5352 ;;
5353 x86_64-*linux*)
5354 LD="${LD-ld} -m elf_i386"
5355 ;;
5356 ppc64-*linux*|powerpc64-*linux*)
5357 LD="${LD-ld} -m elf32ppclinux"
5358 ;;
5359 s390x-*linux*)
5360 LD="${LD-ld} -m elf_s390"
5361 ;;
5362 sparc64-*linux*)
5363 LD="${LD-ld} -m elf32_sparc"
5364 ;;
5365 esac
5366 ;;
5367 *64-bit*)
5368 case $host in
5369 x86_64-*kfreebsd*-gnu)
5370 LD="${LD-ld} -m elf_x86_64_fbsd"
5371 ;;
5372 x86_64-*linux*)
5373 LD="${LD-ld} -m elf_x86_64"
5374 ;;
5375 ppc*-*linux*|powerpc*-*linux*)
5376 LD="${LD-ld} -m elf64ppc"
5377 ;;
5378 s390*-*linux*|s390*-*tpf*)
5379 LD="${LD-ld} -m elf64_s390"
5380 ;;
5381 sparc*-*linux*)
5382 LD="${LD-ld} -m elf64_sparc"
5383 ;;
5384 esac
5385 ;;
5386 esac
5387 fi
5388 rm -rf conftest*
5389 ;;
5390
5391 *-*-sco3.2v5*)
5392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5393 SAVE_CFLAGS="$CFLAGS"
5394 CFLAGS="$CFLAGS -belf"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5396 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5397 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408
5409 int
5410 main ()
5411 {
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_link "$LINENO"; then :
5418 lt_cv_cc_needs_belf=yes
5419 else
5420 lt_cv_cc_needs_belf=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext \
5423 conftest$ac_exeext conftest.$ac_ext
5424 ac_ext=c
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5429
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5432 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5435 CFLAGS="$SAVE_CFLAGS"
5436 fi
5437 ;;
5438 sparc*-*solaris*)
5439 # Find out which ABI we are using.
5440 echo 'int i;' > conftest.$ac_ext
5441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5442 (eval $ac_compile) 2>&5
5443 ac_status=$?
5444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445 test $ac_status = 0; }; then
5446 case `/usr/bin/file conftest.o` in
5447 *64-bit*)
5448 case $lt_cv_prog_gnu_ld in
5449 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5450 *)
5451 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5452 LD="${LD-ld} -64"
5453 fi
5454 ;;
5455 esac
5456 ;;
5457 esac
5458 fi
5459 rm -rf conftest*
5460 ;;
5461 esac
5462
5463 need_locks="$enable_libtool_lock"
5464
5465
5466 case $host_os in
5467 rhapsody* | darwin*)
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$DSYMUTIL"; then
5477 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5497 if test -n "$DSYMUTIL"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5499 $as_echo "$DSYMUTIL" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 fi
5507 if test -z "$ac_cv_prog_DSYMUTIL"; then
5508 ac_ct_DSYMUTIL=$DSYMUTIL
5509 # Extract the first word of "dsymutil", so it can be a program name with args.
5510 set dummy dsymutil; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_DSYMUTIL"; then
5517 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5537 if test -n "$ac_ct_DSYMUTIL"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5539 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545 if test "x$ac_ct_DSYMUTIL" = x; then
5546 DSYMUTIL=":"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 DSYMUTIL=$ac_ct_DSYMUTIL
5555 fi
5556 else
5557 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5558 fi
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$NMEDIT"; then
5569 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 NMEDIT=$ac_cv_prog_NMEDIT
5589 if test -n "$NMEDIT"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5591 $as_echo "$NMEDIT" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_NMEDIT"; then
5600 ac_ct_NMEDIT=$NMEDIT
5601 # Extract the first word of "nmedit", so it can be a program name with args.
5602 set dummy nmedit; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_NMEDIT"; then
5609 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5629 if test -n "$ac_ct_NMEDIT"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5631 $as_echo "$ac_ct_NMEDIT" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_NMEDIT" = x; then
5638 NMEDIT=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 NMEDIT=$ac_ct_NMEDIT
5647 fi
5648 else
5649 NMEDIT="$ac_cv_prog_NMEDIT"
5650 fi
5651
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if test "${ac_cv_prog_LIPO+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$LIPO"; then
5661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 LIPO=$ac_cv_prog_LIPO
5681 if test -n "$LIPO"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5683 $as_echo "$LIPO" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689
5690 fi
5691 if test -z "$ac_cv_prog_LIPO"; then
5692 ac_ct_LIPO=$LIPO
5693 # Extract the first word of "lipo", so it can be a program name with args.
5694 set dummy lipo; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$ac_ct_LIPO"; then
5701 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_ac_ct_LIPO="lipo"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5721 if test -n "$ac_ct_LIPO"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5723 $as_echo "$ac_ct_LIPO" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729 if test "x$ac_ct_LIPO" = x; then
5730 LIPO=":"
5731 else
5732 case $cross_compiling:$ac_tool_warned in
5733 yes:)
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 LIPO=$ac_ct_LIPO
5739 fi
5740 else
5741 LIPO="$ac_cv_prog_LIPO"
5742 fi
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}otool; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$OTOOL"; then
5753 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 OTOOL=$ac_cv_prog_OTOOL
5773 if test -n "$OTOOL"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5775 $as_echo "$OTOOL" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_OTOOL"; then
5784 ac_ct_OTOOL=$OTOOL
5785 # Extract the first word of "otool", so it can be a program name with args.
5786 set dummy otool; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$ac_ct_OTOOL"; then
5793 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_OTOOL="otool"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5813 if test -n "$ac_ct_OTOOL"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5815 $as_echo "$ac_ct_OTOOL" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_OTOOL" = x; then
5822 OTOOL=":"
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830 OTOOL=$ac_ct_OTOOL
5831 fi
5832 else
5833 OTOOL="$ac_cv_prog_OTOOL"
5834 fi
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$OTOOL64"; then
5845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 OTOOL64=$ac_cv_prog_OTOOL64
5865 if test -n "$OTOOL64"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5867 $as_echo "$OTOOL64" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_OTOOL64"; then
5876 ac_ct_OTOOL64=$OTOOL64
5877 # Extract the first word of "otool64", so it can be a program name with args.
5878 set dummy otool64; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_OTOOL64"; then
5885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_OTOOL64="otool64"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5905 if test -n "$ac_ct_OTOOL64"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5907 $as_echo "$ac_ct_OTOOL64" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_OTOOL64" = x; then
5914 OTOOL64=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 OTOOL64=$ac_ct_OTOOL64
5923 fi
5924 else
5925 OTOOL64="$ac_cv_prog_OTOOL64"
5926 fi
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5955 $as_echo_n "checking for -single_module linker flag... " >&6; }
5956 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 lt_cv_apple_cc_single_mod=no
5960 if test -z "${LT_MULTI_MODULE}"; then
5961 # By default we will add the -single_module flag. You can override
5962 # by either setting the environment variable LT_MULTI_MODULE
5963 # non-empty at configure time, or by adding -multi_module to the
5964 # link flags.
5965 rm -rf libconftest.dylib*
5966 echo "int foo(void){return 1;}" > conftest.c
5967 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5968 -dynamiclib -Wl,-single_module conftest.c" >&5
5969 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5970 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5971 _lt_result=$?
5972 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5973 lt_cv_apple_cc_single_mod=yes
5974 else
5975 cat conftest.err >&5
5976 fi
5977 rm -rf libconftest.dylib*
5978 rm -f conftest.*
5979 fi
5980 fi
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5982 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5985 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 lt_cv_ld_exported_symbols_list=no
5989 save_LDFLAGS=$LDFLAGS
5990 echo "_main" > conftest.sym
5991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994
5995 int
5996 main ()
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_link "$LINENO"; then :
6004 lt_cv_ld_exported_symbols_list=yes
6005 else
6006 lt_cv_ld_exported_symbols_list=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010 LDFLAGS="$save_LDFLAGS"
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6014 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6015 case $host_os in
6016 rhapsody* | darwin1.[012])
6017 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6018 darwin1.*)
6019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6020 darwin*) # darwin 5.x on
6021 # if running on 10.5 or later, the deployment target defaults
6022 # to the OS version, if on x86, and 10.4, the deployment
6023 # target defaults to 10.4. Don't you love it?
6024 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6025 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6026 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6027 10.[012]*)
6028 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6029 10.*)
6030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6031 esac
6032 ;;
6033 esac
6034 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6035 _lt_dar_single_mod='$single_module'
6036 fi
6037 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6038 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6039 else
6040 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6041 fi
6042 if test "$DSYMUTIL" != ":"; then
6043 _lt_dsymutil='~$DSYMUTIL $lib || :'
6044 else
6045 _lt_dsymutil=
6046 fi
6047 ;;
6048 esac
6049
6050 ac_ext=c
6051 ac_cpp='$CPP $CPPFLAGS'
6052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6057 # On Suns, sometimes $CPP names a directory.
6058 if test -n "$CPP" && test -d "$CPP"; then
6059 CPP=
6060 fi
6061 if test -z "$CPP"; then
6062 if test "${ac_cv_prog_CPP+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 # Double quotes because CPP needs to be expanded
6066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6067 do
6068 ac_preproc_ok=false
6069 for ac_c_preproc_warn_flag in '' yes
6070 do
6071 # Use a header file that comes with gcc, so configuring glibc
6072 # with a fresh cross-compiler works.
6073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6074 # <limits.h> exists even on freestanding compilers.
6075 # On the NeXT, cc -E runs the code through the compiler's parser,
6076 # not just through cpp. "Syntax error" is here to catch this case.
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #ifdef __STDC__
6080 # include <limits.h>
6081 #else
6082 # include <assert.h>
6083 #endif
6084 Syntax error
6085 _ACEOF
6086 if ac_fn_c_try_cpp "$LINENO"; then :
6087
6088 else
6089 # Broken: fails on valid input.
6090 continue
6091 fi
6092 rm -f conftest.err conftest.$ac_ext
6093
6094 # OK, works on sane cases. Now check whether nonexistent headers
6095 # can be detected and how.
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <ac_nonexistent.h>
6099 _ACEOF
6100 if ac_fn_c_try_cpp "$LINENO"; then :
6101 # Broken: success on invalid input.
6102 continue
6103 else
6104 # Passes both tests.
6105 ac_preproc_ok=:
6106 break
6107 fi
6108 rm -f conftest.err conftest.$ac_ext
6109
6110 done
6111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6112 rm -f conftest.err conftest.$ac_ext
6113 if $ac_preproc_ok; then :
6114 break
6115 fi
6116
6117 done
6118 ac_cv_prog_CPP=$CPP
6119
6120 fi
6121 CPP=$ac_cv_prog_CPP
6122 else
6123 ac_cv_prog_CPP=$CPP
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6126 $as_echo "$CPP" >&6; }
6127 ac_preproc_ok=false
6128 for ac_c_preproc_warn_flag in '' yes
6129 do
6130 # Use a header file that comes with gcc, so configuring glibc
6131 # with a fresh cross-compiler works.
6132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133 # <limits.h> exists even on freestanding compilers.
6134 # On the NeXT, cc -E runs the code through the compiler's parser,
6135 # not just through cpp. "Syntax error" is here to catch this case.
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #ifdef __STDC__
6139 # include <limits.h>
6140 #else
6141 # include <assert.h>
6142 #endif
6143 Syntax error
6144 _ACEOF
6145 if ac_fn_c_try_cpp "$LINENO"; then :
6146
6147 else
6148 # Broken: fails on valid input.
6149 continue
6150 fi
6151 rm -f conftest.err conftest.$ac_ext
6152
6153 # OK, works on sane cases. Now check whether nonexistent headers
6154 # can be detected and how.
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <ac_nonexistent.h>
6158 _ACEOF
6159 if ac_fn_c_try_cpp "$LINENO"; then :
6160 # Broken: success on invalid input.
6161 continue
6162 else
6163 # Passes both tests.
6164 ac_preproc_ok=:
6165 break
6166 fi
6167 rm -f conftest.err conftest.$ac_ext
6168
6169 done
6170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6171 rm -f conftest.err conftest.$ac_ext
6172 if $ac_preproc_ok; then :
6173
6174 else
6175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6177 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6178 See \`config.log' for more details." "$LINENO" 5; }
6179 fi
6180
6181 ac_ext=c
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6189 $as_echo_n "checking for ANSI C header files... " >&6; }
6190 if test "${ac_cv_header_stdc+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <stdlib.h>
6196 #include <stdarg.h>
6197 #include <string.h>
6198 #include <float.h>
6199
6200 int
6201 main ()
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 ac_cv_header_stdc=yes
6210 else
6211 ac_cv_header_stdc=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214
6215 if test $ac_cv_header_stdc = yes; then
6216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <string.h>
6220
6221 _ACEOF
6222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223 $EGREP "memchr" >/dev/null 2>&1; then :
6224
6225 else
6226 ac_cv_header_stdc=no
6227 fi
6228 rm -f conftest*
6229
6230 fi
6231
6232 if test $ac_cv_header_stdc = yes; then
6233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <stdlib.h>
6237
6238 _ACEOF
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "free" >/dev/null 2>&1; then :
6241
6242 else
6243 ac_cv_header_stdc=no
6244 fi
6245 rm -f conftest*
6246
6247 fi
6248
6249 if test $ac_cv_header_stdc = yes; then
6250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6251 if test "$cross_compiling" = yes; then :
6252 :
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <ctype.h>
6257 #include <stdlib.h>
6258 #if ((' ' & 0x0FF) == 0x020)
6259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6261 #else
6262 # define ISLOWER(c) \
6263 (('a' <= (c) && (c) <= 'i') \
6264 || ('j' <= (c) && (c) <= 'r') \
6265 || ('s' <= (c) && (c) <= 'z'))
6266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6267 #endif
6268
6269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6270 int
6271 main ()
6272 {
6273 int i;
6274 for (i = 0; i < 256; i++)
6275 if (XOR (islower (i), ISLOWER (i))
6276 || toupper (i) != TOUPPER (i))
6277 return 2;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_run "$LINENO"; then :
6282
6283 else
6284 ac_cv_header_stdc=no
6285 fi
6286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6287 conftest.$ac_objext conftest.beam conftest.$ac_ext
6288 fi
6289
6290 fi
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6293 $as_echo "$ac_cv_header_stdc" >&6; }
6294 if test $ac_cv_header_stdc = yes; then
6295
6296 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6297
6298 fi
6299
6300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6302 inttypes.h stdint.h unistd.h
6303 do :
6304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6306 "
6307 eval as_val=\$$as_ac_Header
6308 if test "x$as_val" = x""yes; then :
6309 cat >>confdefs.h <<_ACEOF
6310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6311 _ACEOF
6312
6313 fi
6314
6315 done
6316
6317
6318 for ac_header in dlfcn.h
6319 do :
6320 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6321 "
6322 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6323 cat >>confdefs.h <<_ACEOF
6324 #define HAVE_DLFCN_H 1
6325 _ACEOF
6326
6327 fi
6328
6329 done
6330
6331
6332
6333 # Set options
6334 # Check whether --enable-static was given.
6335 if test "${enable_static+set}" = set; then :
6336 enableval=$enable_static; p=${PACKAGE-default}
6337 case $enableval in
6338 yes) enable_static=yes ;;
6339 no) enable_static=no ;;
6340 *)
6341 enable_static=no
6342 # Look at the argument we got. We use all the common list separators.
6343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6344 for pkg in $enableval; do
6345 IFS="$lt_save_ifs"
6346 if test "X$pkg" = "X$p"; then
6347 enable_static=yes
6348 fi
6349 done
6350 IFS="$lt_save_ifs"
6351 ;;
6352 esac
6353 else
6354 enable_static=no
6355 fi
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 enable_dlopen=no
6367
6368
6369 enable_win32_dll=no
6370
6371
6372 # Check whether --enable-shared was given.
6373 if test "${enable_shared+set}" = set; then :
6374 enableval=$enable_shared; p=${PACKAGE-default}
6375 case $enableval in
6376 yes) enable_shared=yes ;;
6377 no) enable_shared=no ;;
6378 *)
6379 enable_shared=no
6380 # Look at the argument we got. We use all the common list separators.
6381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6382 for pkg in $enableval; do
6383 IFS="$lt_save_ifs"
6384 if test "X$pkg" = "X$p"; then
6385 enable_shared=yes
6386 fi
6387 done
6388 IFS="$lt_save_ifs"
6389 ;;
6390 esac
6391 else
6392 enable_shared=yes
6393 fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405 # Check whether --with-pic was given.
6406 if test "${with_pic+set}" = set; then :
6407 withval=$with_pic; pic_mode="$withval"
6408 else
6409 pic_mode=default
6410 fi
6411
6412
6413 test -z "$pic_mode" && pic_mode=default
6414
6415
6416
6417
6418
6419
6420
6421 # Check whether --enable-fast-install was given.
6422 if test "${enable_fast_install+set}" = set; then :
6423 enableval=$enable_fast_install; p=${PACKAGE-default}
6424 case $enableval in
6425 yes) enable_fast_install=yes ;;
6426 no) enable_fast_install=no ;;
6427 *)
6428 enable_fast_install=no
6429 # Look at the argument we got. We use all the common list separators.
6430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6431 for pkg in $enableval; do
6432 IFS="$lt_save_ifs"
6433 if test "X$pkg" = "X$p"; then
6434 enable_fast_install=yes
6435 fi
6436 done
6437 IFS="$lt_save_ifs"
6438 ;;
6439 esac
6440 else
6441 enable_fast_install=yes
6442 fi
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 # This can be used to rebuild libtool when needed
6455 LIBTOOL_DEPS="$ltmain"
6456
6457 # Always use our own libtool.
6458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484 test -z "$LN_S" && LN_S="ln -s"
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 if test -n "${ZSH_VERSION+set}" ; then
6500 setopt NO_GLOB_SUBST
6501 fi
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6504 $as_echo_n "checking for objdir... " >&6; }
6505 if test "${lt_cv_objdir+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 rm -f .libs 2>/dev/null
6509 mkdir .libs 2>/dev/null
6510 if test -d .libs; then
6511 lt_cv_objdir=.libs
6512 else
6513 # MS-DOS does not allow filenames that begin with a dot.
6514 lt_cv_objdir=_libs
6515 fi
6516 rmdir .libs 2>/dev/null
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6519 $as_echo "$lt_cv_objdir" >&6; }
6520 objdir=$lt_cv_objdir
6521
6522
6523
6524
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define LT_OBJDIR "$lt_cv_objdir/"
6528 _ACEOF
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 case $host_os in
6547 aix3*)
6548 # AIX sometimes has problems with the GCC collect2 program. For some
6549 # reason, if we set the COLLECT_NAMES environment variable, the problems
6550 # vanish in a puff of smoke.
6551 if test "X${COLLECT_NAMES+set}" != Xset; then
6552 COLLECT_NAMES=
6553 export COLLECT_NAMES
6554 fi
6555 ;;
6556 esac
6557
6558 # Sed substitution that helps us do robust quoting. It backslashifies
6559 # metacharacters that are still active within double-quoted strings.
6560 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6561
6562 # Same as above, but do not quote variable references.
6563 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6564
6565 # Sed substitution to delay expansion of an escaped shell variable in a
6566 # double_quote_subst'ed string.
6567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6568
6569 # Sed substitution to delay expansion of an escaped single quote.
6570 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6571
6572 # Sed substitution to avoid accidental globbing in evaled expressions
6573 no_glob_subst='s/\*/\\\*/g'
6574
6575 # Global variables:
6576 ofile=libtool
6577 can_build_shared=yes
6578
6579 # All known linkers require a `.a' archive for static linking (except MSVC,
6580 # which needs '.lib').
6581 libext=a
6582
6583 with_gnu_ld="$lt_cv_prog_gnu_ld"
6584
6585 old_CC="$CC"
6586 old_CFLAGS="$CFLAGS"
6587
6588 # Set sane defaults for various variables
6589 test -z "$CC" && CC=cc
6590 test -z "$LTCC" && LTCC=$CC
6591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6592 test -z "$LD" && LD=ld
6593 test -z "$ac_objext" && ac_objext=o
6594
6595 for cc_temp in $compiler""; do
6596 case $cc_temp in
6597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6599 \-*) ;;
6600 *) break;;
6601 esac
6602 done
6603 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6604
6605
6606 # Only perform the check for file, if the check method requires it
6607 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6608 case $deplibs_check_method in
6609 file_magic*)
6610 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6612 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 case $MAGIC_CMD in
6617 [\\/*] | ?:[\\/]*)
6618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6619 ;;
6620 *)
6621 lt_save_MAGIC_CMD="$MAGIC_CMD"
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6624 for ac_dir in $ac_dummy; do
6625 IFS="$lt_save_ifs"
6626 test -z "$ac_dir" && ac_dir=.
6627 if test -f $ac_dir/${ac_tool_prefix}file; then
6628 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6629 if test -n "$file_magic_test_file"; then
6630 case $deplibs_check_method in
6631 "file_magic "*)
6632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6635 $EGREP "$file_magic_regex" > /dev/null; then
6636 :
6637 else
6638 cat <<_LT_EOF 1>&2
6639
6640 *** Warning: the command libtool uses to detect shared libraries,
6641 *** $file_magic_cmd, produces output that libtool cannot recognize.
6642 *** The result is that libtool may fail to recognize shared libraries
6643 *** as such. This will affect the creation of libtool libraries that
6644 *** depend on shared libraries, but programs linked with such libtool
6645 *** libraries will work regardless of this problem. Nevertheless, you
6646 *** may want to report the problem to your system manager and/or to
6647 *** bug-libtool@gnu.org
6648
6649 _LT_EOF
6650 fi ;;
6651 esac
6652 fi
6653 break
6654 fi
6655 done
6656 IFS="$lt_save_ifs"
6657 MAGIC_CMD="$lt_save_MAGIC_CMD"
6658 ;;
6659 esac
6660 fi
6661
6662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6663 if test -n "$MAGIC_CMD"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6665 $as_echo "$MAGIC_CMD" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671
6672
6673
6674
6675 if test -z "$lt_cv_path_MAGIC_CMD"; then
6676 if test -n "$ac_tool_prefix"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6678 $as_echo_n "checking for file... " >&6; }
6679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 case $MAGIC_CMD in
6683 [\\/*] | ?:[\\/]*)
6684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6685 ;;
6686 *)
6687 lt_save_MAGIC_CMD="$MAGIC_CMD"
6688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6690 for ac_dir in $ac_dummy; do
6691 IFS="$lt_save_ifs"
6692 test -z "$ac_dir" && ac_dir=.
6693 if test -f $ac_dir/file; then
6694 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6695 if test -n "$file_magic_test_file"; then
6696 case $deplibs_check_method in
6697 "file_magic "*)
6698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6701 $EGREP "$file_magic_regex" > /dev/null; then
6702 :
6703 else
6704 cat <<_LT_EOF 1>&2
6705
6706 *** Warning: the command libtool uses to detect shared libraries,
6707 *** $file_magic_cmd, produces output that libtool cannot recognize.
6708 *** The result is that libtool may fail to recognize shared libraries
6709 *** as such. This will affect the creation of libtool libraries that
6710 *** depend on shared libraries, but programs linked with such libtool
6711 *** libraries will work regardless of this problem. Nevertheless, you
6712 *** may want to report the problem to your system manager and/or to
6713 *** bug-libtool@gnu.org
6714
6715 _LT_EOF
6716 fi ;;
6717 esac
6718 fi
6719 break
6720 fi
6721 done
6722 IFS="$lt_save_ifs"
6723 MAGIC_CMD="$lt_save_MAGIC_CMD"
6724 ;;
6725 esac
6726 fi
6727
6728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6729 if test -n "$MAGIC_CMD"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6731 $as_echo "$MAGIC_CMD" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737
6738 else
6739 MAGIC_CMD=:
6740 fi
6741 fi
6742
6743 fi
6744 ;;
6745 esac
6746
6747 # Use C for the default configuration in the libtool script
6748
6749 lt_save_CC="$CC"
6750 ac_ext=c
6751 ac_cpp='$CPP $CPPFLAGS'
6752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755
6756
6757 # Source file extension for C test sources.
6758 ac_ext=c
6759
6760 # Object file extension for compiled C test sources.
6761 objext=o
6762 objext=$objext
6763
6764 # Code to be used in simple compile tests
6765 lt_simple_compile_test_code="int some_variable = 0;"
6766
6767 # Code to be used in simple link tests
6768 lt_simple_link_test_code='int main(){return(0);}'
6769
6770
6771
6772
6773
6774
6775
6776 # If no C compiler was specified, use CC.
6777 LTCC=${LTCC-"$CC"}
6778
6779 # If no C compiler flags were specified, use CFLAGS.
6780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6781
6782 # Allow CC to be a program name with arguments.
6783 compiler=$CC
6784
6785 # Save the default compiler, since it gets overwritten when the other
6786 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6787 compiler_DEFAULT=$CC
6788
6789 # save warnings/boilerplate of simple test code
6790 ac_outfile=conftest.$ac_objext
6791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793 _lt_compiler_boilerplate=`cat conftest.err`
6794 $RM conftest*
6795
6796 ac_outfile=conftest.$ac_objext
6797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799 _lt_linker_boilerplate=`cat conftest.err`
6800 $RM -r conftest*
6801
6802
6803 if test -n "$compiler"; then
6804
6805 lt_prog_compiler_no_builtin_flag=
6806
6807 if test "$GCC" = yes; then
6808 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6811 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6812 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 lt_cv_prog_compiler_rtti_exceptions=no
6816 ac_outfile=conftest.$ac_objext
6817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6818 lt_compiler_flag="-fno-rtti -fno-exceptions"
6819 # Insert the option either (1) after the last *FLAGS variable, or
6820 # (2) before a word containing "conftest.", or (3) at the end.
6821 # Note that $ac_compile itself does not contain backslashes and begins
6822 # with a dollar sign (not a hyphen), so the echo should work correctly.
6823 # The option is referenced via a variable to avoid confusing sed.
6824 lt_compile=`echo "$ac_compile" | $SED \
6825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6827 -e 's:$: $lt_compiler_flag:'`
6828 (eval echo "\"\$as_me:6828: $lt_compile\"" >&5)
6829 (eval "$lt_compile" 2>conftest.err)
6830 ac_status=$?
6831 cat conftest.err >&5
6832 echo "$as_me:6832: \$? = $ac_status" >&5
6833 if (exit $ac_status) && test -s "$ac_outfile"; then
6834 # The compiler can only warn and ignore the option if not recognized
6835 # So say no if there are warnings other than the usual output.
6836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6839 lt_cv_prog_compiler_rtti_exceptions=yes
6840 fi
6841 fi
6842 $RM conftest*
6843
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6846 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6847
6848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6850 else
6851 :
6852 fi
6853
6854 fi
6855
6856
6857
6858
6859
6860
6861 lt_prog_compiler_wl=
6862 lt_prog_compiler_pic=
6863 lt_prog_compiler_static=
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6866 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6867
6868 if test "$GCC" = yes; then
6869 lt_prog_compiler_wl='-Wl,'
6870 lt_prog_compiler_static='-static'
6871
6872 case $host_os in
6873 aix*)
6874 # All AIX code is PIC.
6875 if test "$host_cpu" = ia64; then
6876 # AIX 5 now supports IA64 processor
6877 lt_prog_compiler_static='-Bstatic'
6878 fi
6879 ;;
6880
6881 amigaos*)
6882 case $host_cpu in
6883 powerpc)
6884 # see comment about AmigaOS4 .so support
6885 lt_prog_compiler_pic='-fPIC'
6886 ;;
6887 m68k)
6888 # FIXME: we need at least 68020 code to build shared libraries, but
6889 # adding the `-m68020' flag to GCC prevents building anything better,
6890 # like `-m68040'.
6891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6892 ;;
6893 esac
6894 ;;
6895
6896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6897 # PIC is the default for these OSes.
6898 ;;
6899
6900 mingw* | cygwin* | pw32* | os2* | cegcc*)
6901 # This hack is so that the source file can tell whether it is being
6902 # built for inclusion in a dll (and should export symbols for example).
6903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6904 # (--disable-auto-import) libraries
6905 lt_prog_compiler_pic='-DDLL_EXPORT'
6906 ;;
6907
6908 darwin* | rhapsody*)
6909 # PIC is the default on this platform
6910 # Common symbols not allowed in MH_DYLIB files
6911 lt_prog_compiler_pic='-fno-common'
6912 ;;
6913
6914 hpux*)
6915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6917 # sets the default TLS model and affects inlining.
6918 case $host_cpu in
6919 hppa*64*)
6920 # +Z the default
6921 ;;
6922 *)
6923 lt_prog_compiler_pic='-fPIC'
6924 ;;
6925 esac
6926 ;;
6927
6928 interix[3-9]*)
6929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6930 # Instead, we relocate shared libraries at runtime.
6931 ;;
6932
6933 msdosdjgpp*)
6934 # Just because we use GCC doesn't mean we suddenly get shared libraries
6935 # on systems that don't support them.
6936 lt_prog_compiler_can_build_shared=no
6937 enable_shared=no
6938 ;;
6939
6940 *nto* | *qnx*)
6941 # QNX uses GNU C++, but need to define -shared option too, otherwise
6942 # it will coredump.
6943 lt_prog_compiler_pic='-fPIC -shared'
6944 ;;
6945
6946 sysv4*MP*)
6947 if test -d /usr/nec; then
6948 lt_prog_compiler_pic=-Kconform_pic
6949 fi
6950 ;;
6951
6952 *)
6953 lt_prog_compiler_pic='-fPIC'
6954 ;;
6955 esac
6956 else
6957 # PORTME Check for flag to pass linker flags through the system compiler.
6958 case $host_os in
6959 aix*)
6960 lt_prog_compiler_wl='-Wl,'
6961 if test "$host_cpu" = ia64; then
6962 # AIX 5 now supports IA64 processor
6963 lt_prog_compiler_static='-Bstatic'
6964 else
6965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6966 fi
6967 ;;
6968
6969 mingw* | cygwin* | pw32* | os2* | cegcc*)
6970 # This hack is so that the source file can tell whether it is being
6971 # built for inclusion in a dll (and should export symbols for example).
6972 lt_prog_compiler_pic='-DDLL_EXPORT'
6973 ;;
6974
6975 hpux9* | hpux10* | hpux11*)
6976 lt_prog_compiler_wl='-Wl,'
6977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6978 # not for PA HP-UX.
6979 case $host_cpu in
6980 hppa*64*|ia64*)
6981 # +Z the default
6982 ;;
6983 *)
6984 lt_prog_compiler_pic='+Z'
6985 ;;
6986 esac
6987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6988 lt_prog_compiler_static='${wl}-a ${wl}archive'
6989 ;;
6990
6991 irix5* | irix6* | nonstopux*)
6992 lt_prog_compiler_wl='-Wl,'
6993 # PIC (with -KPIC) is the default.
6994 lt_prog_compiler_static='-non_shared'
6995 ;;
6996
6997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6998 case $cc_basename in
6999 # old Intel for x86_64 which still supported -KPIC.
7000 ecc*)
7001 lt_prog_compiler_wl='-Wl,'
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-static'
7004 ;;
7005 # icc used to be incompatible with GCC.
7006 # ICC 10 doesn't accept -KPIC any more.
7007 icc* | ifort*)
7008 lt_prog_compiler_wl='-Wl,'
7009 lt_prog_compiler_pic='-fPIC'
7010 lt_prog_compiler_static='-static'
7011 ;;
7012 # Lahey Fortran 8.1.
7013 lf95*)
7014 lt_prog_compiler_wl='-Wl,'
7015 lt_prog_compiler_pic='--shared'
7016 lt_prog_compiler_static='--static'
7017 ;;
7018 pgcc* | pgf77* | pgf90* | pgf95*)
7019 # Portland Group compilers (*not* the Pentium gcc compiler,
7020 # which looks to be a dead project)
7021 lt_prog_compiler_wl='-Wl,'
7022 lt_prog_compiler_pic='-fpic'
7023 lt_prog_compiler_static='-Bstatic'
7024 ;;
7025 ccc*)
7026 lt_prog_compiler_wl='-Wl,'
7027 # All Alpha code is PIC.
7028 lt_prog_compiler_static='-non_shared'
7029 ;;
7030 xl*)
7031 # IBM XL C 8.0/Fortran 10.1 on PPC
7032 lt_prog_compiler_wl='-Wl,'
7033 lt_prog_compiler_pic='-qpic'
7034 lt_prog_compiler_static='-qstaticlink'
7035 ;;
7036 *)
7037 case `$CC -V 2>&1 | sed 5q` in
7038 *Sun\ C*)
7039 # Sun C 5.9
7040 lt_prog_compiler_pic='-KPIC'
7041 lt_prog_compiler_static='-Bstatic'
7042 lt_prog_compiler_wl='-Wl,'
7043 ;;
7044 *Sun\ F*)
7045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7046 lt_prog_compiler_pic='-KPIC'
7047 lt_prog_compiler_static='-Bstatic'
7048 lt_prog_compiler_wl=''
7049 ;;
7050 esac
7051 ;;
7052 esac
7053 ;;
7054
7055 newsos6)
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7058 ;;
7059
7060 *nto* | *qnx*)
7061 # QNX uses GNU C++, but need to define -shared option too, otherwise
7062 # it will coredump.
7063 lt_prog_compiler_pic='-fPIC -shared'
7064 ;;
7065
7066 osf3* | osf4* | osf5*)
7067 lt_prog_compiler_wl='-Wl,'
7068 # All OSF/1 code is PIC.
7069 lt_prog_compiler_static='-non_shared'
7070 ;;
7071
7072 rdos*)
7073 lt_prog_compiler_static='-non_shared'
7074 ;;
7075
7076 solaris*)
7077 lt_prog_compiler_pic='-KPIC'
7078 lt_prog_compiler_static='-Bstatic'
7079 case $cc_basename in
7080 f77* | f90* | f95*)
7081 lt_prog_compiler_wl='-Qoption ld ';;
7082 *)
7083 lt_prog_compiler_wl='-Wl,';;
7084 esac
7085 ;;
7086
7087 sunos4*)
7088 lt_prog_compiler_wl='-Qoption ld '
7089 lt_prog_compiler_pic='-PIC'
7090 lt_prog_compiler_static='-Bstatic'
7091 ;;
7092
7093 sysv4 | sysv4.2uw2* | sysv4.3*)
7094 lt_prog_compiler_wl='-Wl,'
7095 lt_prog_compiler_pic='-KPIC'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 sysv4*MP*)
7100 if test -d /usr/nec ;then
7101 lt_prog_compiler_pic='-Kconform_pic'
7102 lt_prog_compiler_static='-Bstatic'
7103 fi
7104 ;;
7105
7106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7107 lt_prog_compiler_wl='-Wl,'
7108 lt_prog_compiler_pic='-KPIC'
7109 lt_prog_compiler_static='-Bstatic'
7110 ;;
7111
7112 unicos*)
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_can_build_shared=no
7115 ;;
7116
7117 uts4*)
7118 lt_prog_compiler_pic='-pic'
7119 lt_prog_compiler_static='-Bstatic'
7120 ;;
7121
7122 *)
7123 lt_prog_compiler_can_build_shared=no
7124 ;;
7125 esac
7126 fi
7127
7128 case $host_os in
7129 # For platforms which do not support PIC, -DPIC is meaningless:
7130 *djgpp*)
7131 lt_prog_compiler_pic=
7132 ;;
7133 *)
7134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7135 ;;
7136 esac
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7138 $as_echo "$lt_prog_compiler_pic" >&6; }
7139
7140
7141
7142
7143
7144
7145 #
7146 # Check to make sure the PIC flag actually works.
7147 #
7148 if test -n "$lt_prog_compiler_pic"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7150 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7151 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 lt_cv_prog_compiler_pic_works=no
7155 ac_outfile=conftest.$ac_objext
7156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7158 # Insert the option either (1) after the last *FLAGS variable, or
7159 # (2) before a word containing "conftest.", or (3) at the end.
7160 # Note that $ac_compile itself does not contain backslashes and begins
7161 # with a dollar sign (not a hyphen), so the echo should work correctly.
7162 # The option is referenced via a variable to avoid confusing sed.
7163 lt_compile=`echo "$ac_compile" | $SED \
7164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7166 -e 's:$: $lt_compiler_flag:'`
7167 (eval echo "\"\$as_me:7167: $lt_compile\"" >&5)
7168 (eval "$lt_compile" 2>conftest.err)
7169 ac_status=$?
7170 cat conftest.err >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 if (exit $ac_status) && test -s "$ac_outfile"; then
7173 # The compiler can only warn and ignore the option if not recognized
7174 # So say no if there are warnings other than the usual output.
7175 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7178 lt_cv_prog_compiler_pic_works=yes
7179 fi
7180 fi
7181 $RM conftest*
7182
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7185 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7186
7187 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7188 case $lt_prog_compiler_pic in
7189 "" | " "*) ;;
7190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7191 esac
7192 else
7193 lt_prog_compiler_pic=
7194 lt_prog_compiler_can_build_shared=no
7195 fi
7196
7197 fi
7198
7199
7200
7201
7202
7203
7204 #
7205 # Check to make sure the static flag actually works.
7206 #
7207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7209 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7210 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 lt_cv_prog_compiler_static_works=no
7214 save_LDFLAGS="$LDFLAGS"
7215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7218 # The linker can only warn and ignore the option if not recognized
7219 # So say no if there are warnings
7220 if test -s conftest.err; then
7221 # Append any errors to the config.log.
7222 cat conftest.err 1>&5
7223 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7225 if diff conftest.exp conftest.er2 >/dev/null; then
7226 lt_cv_prog_compiler_static_works=yes
7227 fi
7228 else
7229 lt_cv_prog_compiler_static_works=yes
7230 fi
7231 fi
7232 $RM -r conftest*
7233 LDFLAGS="$save_LDFLAGS"
7234
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7237 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7238
7239 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7240 :
7241 else
7242 lt_prog_compiler_static=
7243 fi
7244
7245
7246
7247
7248
7249
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7253 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 lt_cv_prog_compiler_c_o=no
7257 $RM -r conftest 2>/dev/null
7258 mkdir conftest
7259 cd conftest
7260 mkdir out
7261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7262
7263 lt_compiler_flag="-o out/conftest2.$ac_objext"
7264 # Insert the option either (1) after the last *FLAGS variable, or
7265 # (2) before a word containing "conftest.", or (3) at the end.
7266 # Note that $ac_compile itself does not contain backslashes and begins
7267 # with a dollar sign (not a hyphen), so the echo should work correctly.
7268 lt_compile=`echo "$ac_compile" | $SED \
7269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7271 -e 's:$: $lt_compiler_flag:'`
7272 (eval echo "\"\$as_me:7272: $lt_compile\"" >&5)
7273 (eval "$lt_compile" 2>out/conftest.err)
7274 ac_status=$?
7275 cat out/conftest.err >&5
7276 echo "$as_me:7276: \$? = $ac_status" >&5
7277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7278 then
7279 # The compiler can only warn and ignore the option if not recognized
7280 # So say no if there are warnings
7281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7284 lt_cv_prog_compiler_c_o=yes
7285 fi
7286 fi
7287 chmod u+w . 2>&5
7288 $RM conftest*
7289 # SGI C++ compiler will create directory out/ii_files/ for
7290 # template instantiation
7291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7292 $RM out/* && rmdir out
7293 cd ..
7294 $RM -r conftest
7295 $RM conftest*
7296
7297 fi
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7300
7301
7302
7303
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7308 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 lt_cv_prog_compiler_c_o=no
7312 $RM -r conftest 2>/dev/null
7313 mkdir conftest
7314 cd conftest
7315 mkdir out
7316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7317
7318 lt_compiler_flag="-o out/conftest2.$ac_objext"
7319 # Insert the option either (1) after the last *FLAGS variable, or
7320 # (2) before a word containing "conftest.", or (3) at the end.
7321 # Note that $ac_compile itself does not contain backslashes and begins
7322 # with a dollar sign (not a hyphen), so the echo should work correctly.
7323 lt_compile=`echo "$ac_compile" | $SED \
7324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326 -e 's:$: $lt_compiler_flag:'`
7327 (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
7328 (eval "$lt_compile" 2>out/conftest.err)
7329 ac_status=$?
7330 cat out/conftest.err >&5
7331 echo "$as_me:7331: \$? = $ac_status" >&5
7332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7333 then
7334 # The compiler can only warn and ignore the option if not recognized
7335 # So say no if there are warnings
7336 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7339 lt_cv_prog_compiler_c_o=yes
7340 fi
7341 fi
7342 chmod u+w . 2>&5
7343 $RM conftest*
7344 # SGI C++ compiler will create directory out/ii_files/ for
7345 # template instantiation
7346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7347 $RM out/* && rmdir out
7348 cd ..
7349 $RM -r conftest
7350 $RM conftest*
7351
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7355
7356
7357
7358
7359 hard_links="nottested"
7360 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7361 # do not overwrite the value of need_locks provided by the user
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7363 $as_echo_n "checking if we can lock with hard links... " >&6; }
7364 hard_links=yes
7365 $RM conftest*
7366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7367 touch conftest.a
7368 ln conftest.a conftest.b 2>&5 || hard_links=no
7369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7371 $as_echo "$hard_links" >&6; }
7372 if test "$hard_links" = no; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7374 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7375 need_locks=warn
7376 fi
7377 else
7378 need_locks=no
7379 fi
7380
7381
7382
7383
7384
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7388
7389 runpath_var=
7390 allow_undefined_flag=
7391 always_export_symbols=no
7392 archive_cmds=
7393 archive_expsym_cmds=
7394 compiler_needs_object=no
7395 enable_shared_with_static_runtimes=no
7396 export_dynamic_flag_spec=
7397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7398 hardcode_automatic=no
7399 hardcode_direct=no
7400 hardcode_direct_absolute=no
7401 hardcode_libdir_flag_spec=
7402 hardcode_libdir_flag_spec_ld=
7403 hardcode_libdir_separator=
7404 hardcode_minus_L=no
7405 hardcode_shlibpath_var=unsupported
7406 inherit_rpath=no
7407 link_all_deplibs=unknown
7408 module_cmds=
7409 module_expsym_cmds=
7410 old_archive_from_new_cmds=
7411 old_archive_from_expsyms_cmds=
7412 thread_safe_flag_spec=
7413 whole_archive_flag_spec=
7414 # include_expsyms should be a list of space-separated symbols to be *always*
7415 # included in the symbol list
7416 include_expsyms=
7417 # exclude_expsyms can be an extended regexp of symbols to exclude
7418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7420 # as well as any symbol that contains `d'.
7421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7423 # platforms (ab)use it in PIC code, but their linkers get confused if
7424 # the symbol is explicitly referenced. Since portable code cannot
7425 # rely on this symbol name, it's probably fine to never include it in
7426 # preloaded symbol tables.
7427 # Exclude shared library initialization/finalization symbols.
7428 extract_expsyms_cmds=
7429
7430 case $host_os in
7431 cygwin* | mingw* | pw32* | cegcc*)
7432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7433 # When not using gcc, we currently assume that we are using
7434 # Microsoft Visual C++.
7435 if test "$GCC" != yes; then
7436 with_gnu_ld=no
7437 fi
7438 ;;
7439 interix*)
7440 # we just hope/assume this is gcc and not c89 (= MSVC++)
7441 with_gnu_ld=yes
7442 ;;
7443 openbsd*)
7444 with_gnu_ld=no
7445 ;;
7446 linux* | k*bsd*-gnu)
7447 link_all_deplibs=no
7448 ;;
7449 esac
7450
7451 ld_shlibs=yes
7452 if test "$with_gnu_ld" = yes; then
7453 # If archive_cmds runs LD, not CC, wlarc should be empty
7454 wlarc='${wl}'
7455
7456 # Set some defaults for GNU ld with shared library support. These
7457 # are reset later if shared libraries are not supported. Putting them
7458 # here allows them to be overridden if necessary.
7459 runpath_var=LD_RUN_PATH
7460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461 export_dynamic_flag_spec='${wl}--export-dynamic'
7462 # ancient GNU ld didn't support --whole-archive et. al.
7463 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7464 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7465 else
7466 whole_archive_flag_spec=
7467 fi
7468 supports_anon_versioning=no
7469 case `$LD -v 2>&1` in
7470 *GNU\ gold*) supports_anon_versioning=yes ;;
7471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7474 *\ 2.11.*) ;; # other 2.11 versions
7475 *) supports_anon_versioning=yes ;;
7476 esac
7477
7478 # See if GNU ld supports shared libraries.
7479 case $host_os in
7480 aix[3-9]*)
7481 # On AIX/PPC, the GNU linker is very broken
7482 if test "$host_cpu" != ia64; then
7483 ld_shlibs=no
7484 cat <<_LT_EOF 1>&2
7485
7486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487 *** to be unable to reliably create shared libraries on AIX.
7488 *** Therefore, libtool is disabling shared libraries support. If you
7489 *** really care for shared libraries, you may want to modify your PATH
7490 *** so that a non-GNU linker is found, and then restart.
7491
7492 _LT_EOF
7493 fi
7494 ;;
7495
7496 amigaos*)
7497 case $host_cpu in
7498 powerpc)
7499 # see comment about AmigaOS4 .so support
7500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 archive_expsym_cmds=''
7502 ;;
7503 m68k)
7504 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)'
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_minus_L=yes
7507 ;;
7508 esac
7509 ;;
7510
7511 beos*)
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 allow_undefined_flag=unsupported
7514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7515 # support --undefined. This deserves some investigation. FIXME
7516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 else
7518 ld_shlibs=no
7519 fi
7520 ;;
7521
7522 cygwin* | mingw* | pw32* | cegcc*)
7523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7524 # as there is no search path for DLLs.
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 allow_undefined_flag=unsupported
7527 always_export_symbols=no
7528 enable_shared_with_static_runtimes=yes
7529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7530
7531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7533 # If the export-symbols file already is a .def file (1st line
7534 # is EXPORTS), use it as is; otherwise, prepend...
7535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7536 cp $export_symbols $output_objdir/$soname.def;
7537 else
7538 echo EXPORTS > $output_objdir/$soname.def;
7539 cat $export_symbols >> $output_objdir/$soname.def;
7540 fi~
7541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7542 else
7543 ld_shlibs=no
7544 fi
7545 ;;
7546
7547 interix[3-9]*)
7548 hardcode_direct=no
7549 hardcode_shlibpath_var=no
7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 export_dynamic_flag_spec='${wl}-E'
7552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7553 # Instead, shared libraries are loaded at an image base (0x10000000 by
7554 # default) and relocated if they conflict, which is a slow very memory
7555 # consuming and fragmenting process. To avoid this, we pick a random,
7556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7559 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'
7560 ;;
7561
7562 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7563 tmp_diet=no
7564 if test "$host_os" = linux-dietlibc; then
7565 case $cc_basename in
7566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7567 esac
7568 fi
7569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7570 && test "$tmp_diet" = no
7571 then
7572 tmp_addflag=
7573 tmp_sharedflag='-shared'
7574 case $cc_basename,$host_cpu in
7575 pgcc*) # Portland Group C compiler
7576 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'
7577 tmp_addflag=' $pic_flag'
7578 ;;
7579 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7580 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'
7581 tmp_addflag=' $pic_flag -Mnomain' ;;
7582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7583 tmp_addflag=' -i_dynamic' ;;
7584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7585 tmp_addflag=' -i_dynamic -nofor_main' ;;
7586 ifc* | ifort*) # Intel Fortran compiler
7587 tmp_addflag=' -nofor_main' ;;
7588 lf95*) # Lahey Fortran 8.1
7589 whole_archive_flag_spec=
7590 tmp_sharedflag='--shared' ;;
7591 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7592 tmp_sharedflag='-qmkshrobj'
7593 tmp_addflag= ;;
7594 esac
7595 case `$CC -V 2>&1 | sed 5q` in
7596 *Sun\ C*) # Sun C 5.9
7597 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'
7598 compiler_needs_object=yes
7599 tmp_sharedflag='-G' ;;
7600 *Sun\ F*) # Sun Fortran 8.3
7601 tmp_sharedflag='-G' ;;
7602 esac
7603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7604
7605 if test "x$supports_anon_versioning" = xyes; then
7606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608 echo "local: *; };" >> $output_objdir/$libname.ver~
7609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7610 fi
7611
7612 case $cc_basename in
7613 xlf*)
7614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7616 hardcode_libdir_flag_spec=
7617 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7618 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7619 if test "x$supports_anon_versioning" = xyes; then
7620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7622 echo "local: *; };" >> $output_objdir/$libname.ver~
7623 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7624 fi
7625 ;;
7626 esac
7627 else
7628 ld_shlibs=no
7629 fi
7630 ;;
7631
7632 netbsd* | netbsdelf*-gnu)
7633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7635 wlarc=
7636 else
7637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7639 fi
7640 ;;
7641
7642 solaris*)
7643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7644 ld_shlibs=no
7645 cat <<_LT_EOF 1>&2
7646
7647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7648 *** create shared libraries on Solaris systems. Therefore, libtool
7649 *** is disabling shared libraries support. We urge you to upgrade GNU
7650 *** binutils to release 2.9.1 or newer. Another option is to modify
7651 *** your PATH or compiler configuration so that the native linker is
7652 *** used, and then restart.
7653
7654 _LT_EOF
7655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7658 else
7659 ld_shlibs=no
7660 fi
7661 ;;
7662
7663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7664 case `$LD -v 2>&1` in
7665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7666 ld_shlibs=no
7667 cat <<_LT_EOF 1>&2
7668
7669 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7670 *** reliably create shared libraries on SCO systems. Therefore, libtool
7671 *** is disabling shared libraries support. We urge you to upgrade GNU
7672 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7673 *** your PATH or compiler configuration so that the native linker is
7674 *** used, and then restart.
7675
7676 _LT_EOF
7677 ;;
7678 *)
7679 # For security reasons, it is highly recommended that you always
7680 # use absolute paths for naming shared libraries, and exclude the
7681 # DT_RUNPATH tag from executables and libraries. But doing so
7682 # requires that you compile everything twice, which is a pain.
7683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7687 else
7688 ld_shlibs=no
7689 fi
7690 ;;
7691 esac
7692 ;;
7693
7694 sunos4*)
7695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7696 wlarc=
7697 hardcode_direct=yes
7698 hardcode_shlibpath_var=no
7699 ;;
7700
7701 *)
7702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7705 else
7706 ld_shlibs=no
7707 fi
7708 ;;
7709 esac
7710
7711 if test "$ld_shlibs" = no; then
7712 runpath_var=
7713 hardcode_libdir_flag_spec=
7714 export_dynamic_flag_spec=
7715 whole_archive_flag_spec=
7716 fi
7717 else
7718 # PORTME fill in a description of your system's linker (not GNU ld)
7719 case $host_os in
7720 aix3*)
7721 allow_undefined_flag=unsupported
7722 always_export_symbols=yes
7723 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'
7724 # Note: this linker hardcodes the directories in LIBPATH if there
7725 # are no directories specified by -L.
7726 hardcode_minus_L=yes
7727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7728 # Neither direct hardcoding nor static linking is supported with a
7729 # broken collect2.
7730 hardcode_direct=unsupported
7731 fi
7732 ;;
7733
7734 aix[4-9]*)
7735 if test "$host_cpu" = ia64; then
7736 # On IA64, the linker does run time linking by default, so we don't
7737 # have to do anything special.
7738 aix_use_runtimelinking=no
7739 exp_sym_flag='-Bexport'
7740 no_entry_flag=""
7741 else
7742 # If we're using GNU nm, then we don't want the "-C" option.
7743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7745 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'
7746 else
7747 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'
7748 fi
7749 aix_use_runtimelinking=no
7750
7751 # Test if we are trying to use run time linking or normal
7752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7753 # need to do runtime linking.
7754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7755 for ld_flag in $LDFLAGS; do
7756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7757 aix_use_runtimelinking=yes
7758 break
7759 fi
7760 done
7761 ;;
7762 esac
7763
7764 exp_sym_flag='-bexport'
7765 no_entry_flag='-bnoentry'
7766 fi
7767
7768 # When large executables or shared objects are built, AIX ld can
7769 # have problems creating the table of contents. If linking a library
7770 # or program results in "error TOC overflow" add -mminimal-toc to
7771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7773
7774 archive_cmds=''
7775 hardcode_direct=yes
7776 hardcode_direct_absolute=yes
7777 hardcode_libdir_separator=':'
7778 link_all_deplibs=yes
7779 file_list_spec='${wl}-f,'
7780
7781 if test "$GCC" = yes; then
7782 case $host_os in aix4.[012]|aix4.[012].*)
7783 # We only want to do this on AIX 4.2 and lower, the check
7784 # below for broken collect2 doesn't work under 4.3+
7785 collect2name=`${CC} -print-prog-name=collect2`
7786 if test -f "$collect2name" &&
7787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7788 then
7789 # We have reworked collect2
7790 :
7791 else
7792 # We have old collect2
7793 hardcode_direct=unsupported
7794 # It fails to find uninstalled libraries when the uninstalled
7795 # path is not listed in the libpath. Setting hardcode_minus_L
7796 # to unsupported forces relinking
7797 hardcode_minus_L=yes
7798 hardcode_libdir_flag_spec='-L$libdir'
7799 hardcode_libdir_separator=
7800 fi
7801 ;;
7802 esac
7803 shared_flag='-shared'
7804 if test "$aix_use_runtimelinking" = yes; then
7805 shared_flag="$shared_flag "'${wl}-G'
7806 fi
7807 link_all_deplibs=no
7808 else
7809 # not using gcc
7810 if test "$host_cpu" = ia64; then
7811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7812 # chokes on -Wl,-G. The following line is correct:
7813 shared_flag='-G'
7814 else
7815 if test "$aix_use_runtimelinking" = yes; then
7816 shared_flag='${wl}-G'
7817 else
7818 shared_flag='${wl}-bM:SRE'
7819 fi
7820 fi
7821 fi
7822
7823 export_dynamic_flag_spec='${wl}-bexpall'
7824 # It seems that -bexpall does not export symbols beginning with
7825 # underscore (_), so it is better to generate a list of symbols to export.
7826 always_export_symbols=yes
7827 if test "$aix_use_runtimelinking" = yes; then
7828 # Warning - without using the other runtime loading flags (-brtl),
7829 # -berok will link without error, but may produce a broken library.
7830 allow_undefined_flag='-berok'
7831 # Determine the default libpath from the value encoded in an
7832 # empty executable.
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835
7836 int
7837 main ()
7838 {
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_link "$LINENO"; then :
7845
7846 lt_aix_libpath_sed='
7847 /Import File Strings/,/^$/ {
7848 /^0/ {
7849 s/^0 *\(.*\)$/\1/
7850 p
7851 }
7852 }'
7853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7854 # Check for a 64-bit object if we didn't find anything.
7855 if test -z "$aix_libpath"; then
7856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7857 fi
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7862
7863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7864 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"
7865 else
7866 if test "$host_cpu" = ia64; then
7867 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7868 allow_undefined_flag="-z nodefs"
7869 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"
7870 else
7871 # Determine the default libpath from the value encoded in an
7872 # empty executable.
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875
7876 int
7877 main ()
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885
7886 lt_aix_libpath_sed='
7887 /Import File Strings/,/^$/ {
7888 /^0/ {
7889 s/^0 *\(.*\)$/\1/
7890 p
7891 }
7892 }'
7893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7894 # Check for a 64-bit object if we didn't find anything.
7895 if test -z "$aix_libpath"; then
7896 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7897 fi
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7902
7903 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7904 # Warning - without using the other run time loading flags,
7905 # -berok will link without error, but may produce a broken library.
7906 no_undefined_flag=' ${wl}-bernotok'
7907 allow_undefined_flag=' ${wl}-berok'
7908 # Exported symbols can be pulled into shared objects from archives
7909 whole_archive_flag_spec='$convenience'
7910 archive_cmds_need_lc=yes
7911 # This is similar to how AIX traditionally builds its shared libraries.
7912 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'
7913 fi
7914 fi
7915 ;;
7916
7917 amigaos*)
7918 case $host_cpu in
7919 powerpc)
7920 # see comment about AmigaOS4 .so support
7921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922 archive_expsym_cmds=''
7923 ;;
7924 m68k)
7925 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)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7928 ;;
7929 esac
7930 ;;
7931
7932 bsdi[45]*)
7933 export_dynamic_flag_spec=-rdynamic
7934 ;;
7935
7936 cygwin* | mingw* | pw32* | cegcc*)
7937 # When not using gcc, we currently assume that we are using
7938 # Microsoft Visual C++.
7939 # hardcode_libdir_flag_spec is actually meaningless, as there is
7940 # no search path for DLLs.
7941 hardcode_libdir_flag_spec=' '
7942 allow_undefined_flag=unsupported
7943 # Tell ltmain to make .lib files, not .a files.
7944 libext=lib
7945 # Tell ltmain to make .dll files, not .so files.
7946 shrext_cmds=".dll"
7947 # FIXME: Setting linknames here is a bad hack.
7948 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7949 # The linker will automatically build a .lib file if we build a DLL.
7950 old_archive_from_new_cmds='true'
7951 # FIXME: Should let the user specify the lib program.
7952 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7953 fix_srcfile_path='`cygpath -w "$srcfile"`'
7954 enable_shared_with_static_runtimes=yes
7955 ;;
7956
7957 darwin* | rhapsody*)
7958
7959
7960 archive_cmds_need_lc=no
7961 hardcode_direct=no
7962 hardcode_automatic=yes
7963 hardcode_shlibpath_var=unsupported
7964 whole_archive_flag_spec=''
7965 link_all_deplibs=yes
7966 allow_undefined_flag="$_lt_dar_allow_undefined"
7967 case $cc_basename in
7968 ifort*) _lt_dar_can_shared=yes ;;
7969 *) _lt_dar_can_shared=$GCC ;;
7970 esac
7971 if test "$_lt_dar_can_shared" = "yes"; then
7972 output_verbose_link_cmd=echo
7973 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7974 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7975 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}"
7976 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}"
7977
7978 else
7979 ld_shlibs=no
7980 fi
7981
7982 ;;
7983
7984 dgux*)
7985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7986 hardcode_libdir_flag_spec='-L$libdir'
7987 hardcode_shlibpath_var=no
7988 ;;
7989
7990 freebsd1*)
7991 ld_shlibs=no
7992 ;;
7993
7994 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7995 # support. Future versions do this automatically, but an explicit c++rt0.o
7996 # does not break anything, and helps significantly (at the cost of a little
7997 # extra space).
7998 freebsd2.2*)
7999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8000 hardcode_libdir_flag_spec='-R$libdir'
8001 hardcode_direct=yes
8002 hardcode_shlibpath_var=no
8003 ;;
8004
8005 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8006 freebsd2*)
8007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_direct=yes
8009 hardcode_minus_L=yes
8010 hardcode_shlibpath_var=no
8011 ;;
8012
8013 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8014 freebsd* | dragonfly*)
8015 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8016 hardcode_libdir_flag_spec='-R$libdir'
8017 hardcode_direct=yes
8018 hardcode_shlibpath_var=no
8019 ;;
8020
8021 hpux9*)
8022 if test "$GCC" = yes; then
8023 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'
8024 else
8025 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'
8026 fi
8027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8028 hardcode_libdir_separator=:
8029 hardcode_direct=yes
8030
8031 # hardcode_minus_L: Not really in the search PATH,
8032 # but as the default location of the library.
8033 hardcode_minus_L=yes
8034 export_dynamic_flag_spec='${wl}-E'
8035 ;;
8036
8037 hpux10*)
8038 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8039 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8040 else
8041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8042 fi
8043 if test "$with_gnu_ld" = no; then
8044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8045 hardcode_libdir_flag_spec_ld='+b $libdir'
8046 hardcode_libdir_separator=:
8047 hardcode_direct=yes
8048 hardcode_direct_absolute=yes
8049 export_dynamic_flag_spec='${wl}-E'
8050 # hardcode_minus_L: Not really in the search PATH,
8051 # but as the default location of the library.
8052 hardcode_minus_L=yes
8053 fi
8054 ;;
8055
8056 hpux11*)
8057 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8058 case $host_cpu in
8059 hppa*64*)
8060 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8061 ;;
8062 ia64*)
8063 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8064 ;;
8065 *)
8066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8067 ;;
8068 esac
8069 else
8070 case $host_cpu in
8071 hppa*64*)
8072 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073 ;;
8074 ia64*)
8075 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8076 ;;
8077 *)
8078 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8079 ;;
8080 esac
8081 fi
8082 if test "$with_gnu_ld" = no; then
8083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8084 hardcode_libdir_separator=:
8085
8086 case $host_cpu in
8087 hppa*64*|ia64*)
8088 hardcode_direct=no
8089 hardcode_shlibpath_var=no
8090 ;;
8091 *)
8092 hardcode_direct=yes
8093 hardcode_direct_absolute=yes
8094 export_dynamic_flag_spec='${wl}-E'
8095
8096 # hardcode_minus_L: Not really in the search PATH,
8097 # but as the default location of the library.
8098 hardcode_minus_L=yes
8099 ;;
8100 esac
8101 fi
8102 ;;
8103
8104 irix5* | irix6* | nonstopux*)
8105 if test "$GCC" = yes; then
8106 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'
8107 # Try to use the -exported_symbol ld option, if it does not
8108 # work, assume that -exports_file does not work either and
8109 # implicitly export all symbols.
8110 save_LDFLAGS="$LDFLAGS"
8111 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int foo(void) {}
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 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'
8118
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 LDFLAGS="$save_LDFLAGS"
8123 else
8124 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'
8125 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'
8126 fi
8127 archive_cmds_need_lc='no'
8128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8129 hardcode_libdir_separator=:
8130 inherit_rpath=yes
8131 link_all_deplibs=yes
8132 ;;
8133
8134 netbsd* | netbsdelf*-gnu)
8135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8137 else
8138 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8139 fi
8140 hardcode_libdir_flag_spec='-R$libdir'
8141 hardcode_direct=yes
8142 hardcode_shlibpath_var=no
8143 ;;
8144
8145 newsos6)
8146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_direct=yes
8148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8149 hardcode_libdir_separator=:
8150 hardcode_shlibpath_var=no
8151 ;;
8152
8153 *nto* | *qnx*)
8154 ;;
8155
8156 openbsd*)
8157 if test -f /usr/libexec/ld.so; then
8158 hardcode_direct=yes
8159 hardcode_shlibpath_var=no
8160 hardcode_direct_absolute=yes
8161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8164 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8165 export_dynamic_flag_spec='${wl}-E'
8166 else
8167 case $host_os in
8168 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8170 hardcode_libdir_flag_spec='-R$libdir'
8171 ;;
8172 *)
8173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175 ;;
8176 esac
8177 fi
8178 else
8179 ld_shlibs=no
8180 fi
8181 ;;
8182
8183 os2*)
8184 hardcode_libdir_flag_spec='-L$libdir'
8185 hardcode_minus_L=yes
8186 allow_undefined_flag=unsupported
8187 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'
8188 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8189 ;;
8190
8191 osf3*)
8192 if test "$GCC" = yes; then
8193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8194 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'
8195 else
8196 allow_undefined_flag=' -expect_unresolved \*'
8197 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'
8198 fi
8199 archive_cmds_need_lc='no'
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 hardcode_libdir_separator=:
8202 ;;
8203
8204 osf4* | osf5*) # as osf3* with the addition of -msym flag
8205 if test "$GCC" = yes; then
8206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8207 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'
8208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8209 else
8210 allow_undefined_flag=' -expect_unresolved \*'
8211 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'
8212 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~
8213 $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'
8214
8215 # Both c and cxx compiler support -rpath directly
8216 hardcode_libdir_flag_spec='-rpath $libdir'
8217 fi
8218 archive_cmds_need_lc='no'
8219 hardcode_libdir_separator=:
8220 ;;
8221
8222 solaris*)
8223 no_undefined_flag=' -z defs'
8224 if test "$GCC" = yes; then
8225 wlarc='${wl}'
8226 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8228 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8229 else
8230 case `$CC -V 2>&1` in
8231 *"Compilers 5.0"*)
8232 wlarc=''
8233 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8236 ;;
8237 *)
8238 wlarc='${wl}'
8239 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8241 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8242 ;;
8243 esac
8244 fi
8245 hardcode_libdir_flag_spec='-R$libdir'
8246 hardcode_shlibpath_var=no
8247 case $host_os in
8248 solaris2.[0-5] | solaris2.[0-5].*) ;;
8249 *)
8250 # The compiler driver will combine and reorder linker options,
8251 # but understands `-z linker_flag'. GCC discards it without `$wl',
8252 # but is careful enough not to reorder.
8253 # Supported since Solaris 2.6 (maybe 2.5.1?)
8254 if test "$GCC" = yes; then
8255 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8256 else
8257 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8258 fi
8259 ;;
8260 esac
8261 link_all_deplibs=yes
8262 ;;
8263
8264 sunos4*)
8265 if test "x$host_vendor" = xsequent; then
8266 # Use $CC to link under sequent, because it throws in some extra .o
8267 # files that make .init and .fini sections work.
8268 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8269 else
8270 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8271 fi
8272 hardcode_libdir_flag_spec='-L$libdir'
8273 hardcode_direct=yes
8274 hardcode_minus_L=yes
8275 hardcode_shlibpath_var=no
8276 ;;
8277
8278 sysv4)
8279 case $host_vendor in
8280 sni)
8281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_direct=yes # is this really true???
8283 ;;
8284 siemens)
8285 ## LD is ld it makes a PLAMLIB
8286 ## CC just makes a GrossModule.
8287 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8288 reload_cmds='$CC -r -o $output$reload_objs'
8289 hardcode_direct=no
8290 ;;
8291 motorola)
8292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8294 ;;
8295 esac
8296 runpath_var='LD_RUN_PATH'
8297 hardcode_shlibpath_var=no
8298 ;;
8299
8300 sysv4.3*)
8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_shlibpath_var=no
8303 export_dynamic_flag_spec='-Bexport'
8304 ;;
8305
8306 sysv4*MP*)
8307 if test -d /usr/nec; then
8308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309 hardcode_shlibpath_var=no
8310 runpath_var=LD_RUN_PATH
8311 hardcode_runpath_var=yes
8312 ld_shlibs=yes
8313 fi
8314 ;;
8315
8316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8317 no_undefined_flag='${wl}-z,text'
8318 archive_cmds_need_lc=no
8319 hardcode_shlibpath_var=no
8320 runpath_var='LD_RUN_PATH'
8321
8322 if test "$GCC" = yes; then
8323 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8324 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8325 else
8326 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 fi
8329 ;;
8330
8331 sysv5* | sco3.2v5* | sco5v6*)
8332 # Note: We can NOT use -z defs as we might desire, because we do not
8333 # link with -lc, and that would cause any symbols used from libc to
8334 # always be unresolved, which means just about no library would
8335 # ever link correctly. If we're not using GNU ld we use -z text
8336 # though, which does catch some bad symbols but isn't as heavy-handed
8337 # as -z defs.
8338 no_undefined_flag='${wl}-z,text'
8339 allow_undefined_flag='${wl}-z,nodefs'
8340 archive_cmds_need_lc=no
8341 hardcode_shlibpath_var=no
8342 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8343 hardcode_libdir_separator=':'
8344 link_all_deplibs=yes
8345 export_dynamic_flag_spec='${wl}-Bexport'
8346 runpath_var='LD_RUN_PATH'
8347
8348 if test "$GCC" = yes; then
8349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8351 else
8352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 fi
8355 ;;
8356
8357 uts4*)
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 hardcode_shlibpath_var=no
8361 ;;
8362
8363 *)
8364 ld_shlibs=no
8365 ;;
8366 esac
8367
8368 if test x$host_vendor = xsni; then
8369 case $host in
8370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8371 export_dynamic_flag_spec='${wl}-Blargedynsym'
8372 ;;
8373 esac
8374 fi
8375 fi
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8378 $as_echo "$ld_shlibs" >&6; }
8379 test "$ld_shlibs" = no && can_build_shared=no
8380
8381 with_gnu_ld=$with_gnu_ld
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 #
8398 # Do we need to explicitly link libc?
8399 #
8400 case "x$archive_cmds_need_lc" in
8401 x|xyes)
8402 # Assume -lc should be added
8403 archive_cmds_need_lc=yes
8404
8405 if test "$enable_shared" = yes && test "$GCC" = yes; then
8406 case $archive_cmds in
8407 *'~'*)
8408 # FIXME: we may have to deal with multi-command sequences.
8409 ;;
8410 '$CC '*)
8411 # Test whether the compiler implicitly links with -lc since on some
8412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8413 # to ld, don't add -lc before -lgcc.
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8415 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8416 $RM conftest*
8417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8418
8419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8420 (eval $ac_compile) 2>&5
8421 ac_status=$?
8422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8423 test $ac_status = 0; } 2>conftest.err; then
8424 soname=conftest
8425 lib=conftest
8426 libobjs=conftest.$ac_objext
8427 deplibs=
8428 wl=$lt_prog_compiler_wl
8429 pic_flag=$lt_prog_compiler_pic
8430 compiler_flags=-v
8431 linker_flags=-v
8432 verstring=
8433 output_objdir=.
8434 libname=conftest
8435 lt_save_allow_undefined_flag=$allow_undefined_flag
8436 allow_undefined_flag=
8437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8438 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8439 ac_status=$?
8440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8441 test $ac_status = 0; }
8442 then
8443 archive_cmds_need_lc=no
8444 else
8445 archive_cmds_need_lc=yes
8446 fi
8447 allow_undefined_flag=$lt_save_allow_undefined_flag
8448 else
8449 cat conftest.err 1>&5
8450 fi
8451 $RM conftest*
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8453 $as_echo "$archive_cmds_need_lc" >&6; }
8454 ;;
8455 esac
8456 fi
8457 ;;
8458 esac
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8618
8619 if test "$GCC" = yes; then
8620 case $host_os in
8621 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8622 *) lt_awk_arg="/^libraries:/" ;;
8623 esac
8624 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8625 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8626 # if the path contains ";" then we assume it to be the separator
8627 # otherwise default to the standard path separator (i.e. ":") - it is
8628 # assumed that no part of a normal pathname contains ";" but that should
8629 # okay in the real world where ";" in dirpaths is itself problematic.
8630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8631 else
8632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8633 fi
8634 # Ok, now we have the path, separated by spaces, we can step through it
8635 # and add multilib dir if necessary.
8636 lt_tmp_lt_search_path_spec=
8637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8638 for lt_sys_path in $lt_search_path_spec; do
8639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8641 else
8642 test -d "$lt_sys_path" && \
8643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8644 fi
8645 done
8646 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8647 BEGIN {RS=" "; FS="/|\n";} {
8648 lt_foo="";
8649 lt_count=0;
8650 for (lt_i = NF; lt_i > 0; lt_i--) {
8651 if ($lt_i != "" && $lt_i != ".") {
8652 if ($lt_i == "..") {
8653 lt_count++;
8654 } else {
8655 if (lt_count == 0) {
8656 lt_foo="/" $lt_i lt_foo;
8657 } else {
8658 lt_count--;
8659 }
8660 }
8661 }
8662 }
8663 if (lt_foo != "") { lt_freq[lt_foo]++; }
8664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8665 }'`
8666 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8667 else
8668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8669 fi
8670 library_names_spec=
8671 libname_spec='lib$name'
8672 soname_spec=
8673 shrext_cmds=".so"
8674 postinstall_cmds=
8675 postuninstall_cmds=
8676 finish_cmds=
8677 finish_eval=
8678 shlibpath_var=
8679 shlibpath_overrides_runpath=unknown
8680 version_type=none
8681 dynamic_linker="$host_os ld.so"
8682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8683 need_lib_prefix=unknown
8684 hardcode_into_libs=no
8685
8686 # when you set need_version to no, make sure it does not cause -set_version
8687 # flags to be left without arguments
8688 need_version=unknown
8689
8690 case $host_os in
8691 aix3*)
8692 version_type=linux
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8694 shlibpath_var=LIBPATH
8695
8696 # AIX 3 has no versioning support, so we append a major version to the name.
8697 soname_spec='${libname}${release}${shared_ext}$major'
8698 ;;
8699
8700 aix[4-9]*)
8701 version_type=linux
8702 need_lib_prefix=no
8703 need_version=no
8704 hardcode_into_libs=yes
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 supports IA64
8707 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8708 shlibpath_var=LD_LIBRARY_PATH
8709 else
8710 # With GCC up to 2.95.x, collect2 would create an import file
8711 # for dependence libraries. The import file would start with
8712 # the line `#! .'. This would cause the generated library to
8713 # depend on `.', always an invalid library. This was fixed in
8714 # development snapshots of GCC prior to 3.0.
8715 case $host_os in
8716 aix4 | aix4.[01] | aix4.[01].*)
8717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8718 echo ' yes '
8719 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8720 :
8721 else
8722 can_build_shared=no
8723 fi
8724 ;;
8725 esac
8726 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8727 # soname into executable. Probably we can add versioning support to
8728 # collect2, so additional links can be useful in future.
8729 if test "$aix_use_runtimelinking" = yes; then
8730 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8731 # instead of lib<name>.a to let people know that these are not
8732 # typical AIX shared libraries.
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8734 else
8735 # We preserve .a as extension for shared libraries through AIX4.2
8736 # and later when we are not doing run time linking.
8737 library_names_spec='${libname}${release}.a $libname.a'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 fi
8740 shlibpath_var=LIBPATH
8741 fi
8742 ;;
8743
8744 amigaos*)
8745 case $host_cpu in
8746 powerpc)
8747 # Since July 2007 AmigaOS4 officially supports .so libraries.
8748 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 ;;
8751 m68k)
8752 library_names_spec='$libname.ixlibrary $libname.a'
8753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8754 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'
8755 ;;
8756 esac
8757 ;;
8758
8759 beos*)
8760 library_names_spec='${libname}${shared_ext}'
8761 dynamic_linker="$host_os ld.so"
8762 shlibpath_var=LIBRARY_PATH
8763 ;;
8764
8765 bsdi[45]*)
8766 version_type=linux
8767 need_version=no
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8774 # the default ld.so.conf also contains /usr/contrib/lib and
8775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8776 # libtool to hard-code these into programs
8777 ;;
8778
8779 cygwin* | mingw* | pw32* | cegcc*)
8780 version_type=windows
8781 shrext_cmds=".dll"
8782 need_version=no
8783 need_lib_prefix=no
8784
8785 case $GCC,$host_os in
8786 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8787 library_names_spec='$libname.dll.a'
8788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8789 postinstall_cmds='base_file=`basename \${file}`~
8790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8791 dldir=$destdir/`dirname \$dlpath`~
8792 test -d \$dldir || mkdir -p \$dldir~
8793 $install_prog $dir/$dlname \$dldir/$dlname~
8794 chmod a+x \$dldir/$dlname~
8795 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8796 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8797 fi'
8798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8799 dlpath=$dir/\$dldll~
8800 $RM \$dlpath'
8801 shlibpath_overrides_runpath=yes
8802
8803 case $host_os in
8804 cygwin*)
8805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8808 ;;
8809 mingw* | cegcc*)
8810 # MinGW DLLs use traditional 'lib' prefix
8811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8814 # It is most probably a Windows format PATH printed by
8815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8816 # path with ; separators, and with drive letters. We can handle the
8817 # drive letters (cygwin fileutils understands them), so leave them,
8818 # especially as we might pass files found there to a mingw objdump,
8819 # which wouldn't understand a cygwinified path. Ahh.
8820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8821 else
8822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8823 fi
8824 ;;
8825 pw32*)
8826 # pw32 DLLs use 'pw' prefix rather than 'lib'
8827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8828 ;;
8829 esac
8830 ;;
8831
8832 *)
8833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8834 ;;
8835 esac
8836 dynamic_linker='Win32 ld.exe'
8837 # FIXME: first we should search . and the directory the executable is in
8838 shlibpath_var=PATH
8839 ;;
8840
8841 darwin* | rhapsody*)
8842 dynamic_linker="$host_os dyld"
8843 version_type=darwin
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8847 soname_spec='${libname}${release}${major}$shared_ext'
8848 shlibpath_overrides_runpath=yes
8849 shlibpath_var=DYLD_LIBRARY_PATH
8850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8851
8852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8854 ;;
8855
8856 dgux*)
8857 version_type=linux
8858 need_lib_prefix=no
8859 need_version=no
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 ;;
8864
8865 freebsd1*)
8866 dynamic_linker=no
8867 ;;
8868
8869 freebsd* | dragonfly*)
8870 # DragonFly does not have aout. When/if they implement a new
8871 # versioning mechanism, adjust this.
8872 if test -x /usr/bin/objformat; then
8873 objformat=`/usr/bin/objformat`
8874 else
8875 case $host_os in
8876 freebsd[123]*) objformat=aout ;;
8877 *) objformat=elf ;;
8878 esac
8879 fi
8880 version_type=freebsd-$objformat
8881 case $version_type in
8882 freebsd-elf*)
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8884 need_version=no
8885 need_lib_prefix=no
8886 ;;
8887 freebsd-*)
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8889 need_version=yes
8890 ;;
8891 esac
8892 shlibpath_var=LD_LIBRARY_PATH
8893 case $host_os in
8894 freebsd2*)
8895 shlibpath_overrides_runpath=yes
8896 ;;
8897 freebsd3.[01]* | freebsdelf3.[01]*)
8898 shlibpath_overrides_runpath=yes
8899 hardcode_into_libs=yes
8900 ;;
8901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8903 shlibpath_overrides_runpath=no
8904 hardcode_into_libs=yes
8905 ;;
8906 *) # from 4.6 on, and DragonFly
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8909 ;;
8910 esac
8911 ;;
8912
8913 gnu*)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 hardcode_into_libs=yes
8921 ;;
8922
8923 hpux9* | hpux10* | hpux11*)
8924 # Give a soname corresponding to the major version so that dld.sl refuses to
8925 # link against other versions.
8926 version_type=sunos
8927 need_lib_prefix=no
8928 need_version=no
8929 case $host_cpu in
8930 ia64*)
8931 shrext_cmds='.so'
8932 hardcode_into_libs=yes
8933 dynamic_linker="$host_os dld.so"
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 if test "X$HPUX_IA64_MODE" = X32; then
8939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8940 else
8941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8942 fi
8943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8944 ;;
8945 hppa*64*)
8946 shrext_cmds='.sl'
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8955 ;;
8956 *)
8957 shrext_cmds='.sl'
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=SHLIB_PATH
8960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 ;;
8964 esac
8965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8966 postinstall_cmds='chmod 555 $lib'
8967 ;;
8968
8969 interix[3-9]*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8979 ;;
8980
8981 irix5* | irix6* | nonstopux*)
8982 case $host_os in
8983 nonstopux*) version_type=nonstopux ;;
8984 *)
8985 if test "$lt_cv_prog_gnu_ld" = yes; then
8986 version_type=linux
8987 else
8988 version_type=irix
8989 fi ;;
8990 esac
8991 need_lib_prefix=no
8992 need_version=no
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8995 case $host_os in
8996 irix5* | nonstopux*)
8997 libsuff= shlibsuff=
8998 ;;
8999 *)
9000 case $LD in # libtool.m4 will add one of these switches to LD
9001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9002 libsuff= shlibsuff= libmagic=32-bit;;
9003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9004 libsuff=32 shlibsuff=N32 libmagic=N32;;
9005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9007 *) libsuff= shlibsuff= libmagic=never-match;;
9008 esac
9009 ;;
9010 esac
9011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9012 shlibpath_overrides_runpath=no
9013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9015 hardcode_into_libs=yes
9016 ;;
9017
9018 # No shared lib support for Linux oldld, aout, or coff.
9019 linux*oldld* | linux*aout* | linux*coff*)
9020 dynamic_linker=no
9021 ;;
9022
9023 # This must be Linux ELF.
9024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 # Some binutils ld are patched to set DT_RUNPATH
9034 save_LDFLAGS=$LDFLAGS
9035 save_libdir=$libdir
9036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 int
9042 main ()
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9051 shlibpath_overrides_runpath=yes
9052 fi
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 LDFLAGS=$save_LDFLAGS
9057 libdir=$save_libdir
9058
9059 # This implies no fast_install, which is unacceptable.
9060 # Some rework will be needed to allow for fast_install
9061 # before this can be enabled.
9062 hardcode_into_libs=yes
9063
9064 # Append ld.so.conf contents to the search path
9065 if test -f /etc/ld.so.conf; then
9066 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' ' '`
9067 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9068 fi
9069
9070 # We used to test for /lib/ld.so.1 and disable shared libraries on
9071 # powerpc, because MkLinux only supported shared libraries with the
9072 # GNU dynamic linker. Since this was broken with cross compilers,
9073 # most powerpc-linux boxes support dynamic linking these days and
9074 # people can always --disable-shared, the test was removed, and we
9075 # assume the GNU/Linux dynamic linker is in use.
9076 dynamic_linker='GNU/Linux ld.so'
9077 ;;
9078
9079 netbsdelf*-gnu)
9080 version_type=linux
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=no
9087 hardcode_into_libs=yes
9088 dynamic_linker='NetBSD ld.elf_so'
9089 ;;
9090
9091 netbsd*)
9092 version_type=sunos
9093 need_lib_prefix=no
9094 need_version=no
9095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9098 dynamic_linker='NetBSD (a.out) ld.so'
9099 else
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 dynamic_linker='NetBSD ld.elf_so'
9103 fi
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=yes
9106 hardcode_into_libs=yes
9107 ;;
9108
9109 newsos6)
9110 version_type=linux
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9114 ;;
9115
9116 *nto* | *qnx*)
9117 version_type=qnx
9118 need_lib_prefix=no
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=no
9124 hardcode_into_libs=yes
9125 dynamic_linker='ldqnx.so'
9126 ;;
9127
9128 openbsd*)
9129 version_type=sunos
9130 sys_lib_dlsearch_path_spec="/usr/lib"
9131 need_lib_prefix=no
9132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9133 case $host_os in
9134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9135 *) need_version=no ;;
9136 esac
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9141 case $host_os in
9142 openbsd2.[89] | openbsd2.[89].*)
9143 shlibpath_overrides_runpath=no
9144 ;;
9145 *)
9146 shlibpath_overrides_runpath=yes
9147 ;;
9148 esac
9149 else
9150 shlibpath_overrides_runpath=yes
9151 fi
9152 ;;
9153
9154 os2*)
9155 libname_spec='$name'
9156 shrext_cmds=".dll"
9157 need_lib_prefix=no
9158 library_names_spec='$libname${shared_ext} $libname.a'
9159 dynamic_linker='OS/2 ld.exe'
9160 shlibpath_var=LIBPATH
9161 ;;
9162
9163 osf3* | osf4* | osf5*)
9164 version_type=osf
9165 need_lib_prefix=no
9166 need_version=no
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9172 ;;
9173
9174 rdos*)
9175 dynamic_linker=no
9176 ;;
9177
9178 solaris*)
9179 version_type=linux
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9186 hardcode_into_libs=yes
9187 # ldd complains unless libraries are executable
9188 postinstall_cmds='chmod +x $lib'
9189 ;;
9190
9191 sunos4*)
9192 version_type=sunos
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=yes
9197 if test "$with_gnu_ld" = yes; then
9198 need_lib_prefix=no
9199 fi
9200 need_version=yes
9201 ;;
9202
9203 sysv4 | sysv4.3*)
9204 version_type=linux
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 case $host_vendor in
9209 sni)
9210 shlibpath_overrides_runpath=no
9211 need_lib_prefix=no
9212 runpath_var=LD_RUN_PATH
9213 ;;
9214 siemens)
9215 need_lib_prefix=no
9216 ;;
9217 motorola)
9218 need_lib_prefix=no
9219 need_version=no
9220 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9222 ;;
9223 esac
9224 ;;
9225
9226 sysv4*MP*)
9227 if test -d /usr/nec ;then
9228 version_type=linux
9229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9230 soname_spec='$libname${shared_ext}.$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 fi
9233 ;;
9234
9235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9236 version_type=freebsd-elf
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9243 hardcode_into_libs=yes
9244 if test "$with_gnu_ld" = yes; then
9245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9246 else
9247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9248 case $host_os in
9249 sco3.2v5*)
9250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9251 ;;
9252 esac
9253 fi
9254 sys_lib_dlsearch_path_spec='/usr/lib'
9255 ;;
9256
9257 tpf*)
9258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9259 version_type=linux
9260 need_lib_prefix=no
9261 need_version=no
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9266 ;;
9267
9268 uts4*)
9269 version_type=linux
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 ;;
9274
9275 *)
9276 dynamic_linker=no
9277 ;;
9278 esac
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9280 $as_echo "$dynamic_linker" >&6; }
9281 test "$dynamic_linker" = no && can_build_shared=no
9282
9283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9284 if test "$GCC" = yes; then
9285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9286 fi
9287
9288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9290 fi
9291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9293 fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9382 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9383 hardcode_action=
9384 if test -n "$hardcode_libdir_flag_spec" ||
9385 test -n "$runpath_var" ||
9386 test "X$hardcode_automatic" = "Xyes" ; then
9387
9388 # We can hardcode non-existent directories.
9389 if test "$hardcode_direct" != no &&
9390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9391 # have to relink, otherwise we might link with an installed library
9392 # when we should be linking with a yet-to-be-installed one
9393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9394 test "$hardcode_minus_L" != no; then
9395 # Linking always hardcodes the temporary library directory.
9396 hardcode_action=relink
9397 else
9398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9399 hardcode_action=immediate
9400 fi
9401 else
9402 # We cannot hardcode anything, or else we can only hardcode existing
9403 # directories.
9404 hardcode_action=unsupported
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9407 $as_echo "$hardcode_action" >&6; }
9408
9409 if test "$hardcode_action" = relink ||
9410 test "$inherit_rpath" = yes; then
9411 # Fast installation is not supported
9412 enable_fast_install=no
9413 elif test "$shlibpath_overrides_runpath" = yes ||
9414 test "$enable_shared" = no; then
9415 # Fast installation is not necessary
9416 enable_fast_install=needless
9417 fi
9418
9419
9420
9421
9422
9423
9424 if test "x$enable_dlopen" != xyes; then
9425 enable_dlopen=unknown
9426 enable_dlopen_self=unknown
9427 enable_dlopen_self_static=unknown
9428 else
9429 lt_cv_dlopen=no
9430 lt_cv_dlopen_libs=
9431
9432 case $host_os in
9433 beos*)
9434 lt_cv_dlopen="load_add_on"
9435 lt_cv_dlopen_libs=
9436 lt_cv_dlopen_self=yes
9437 ;;
9438
9439 mingw* | pw32* | cegcc*)
9440 lt_cv_dlopen="LoadLibrary"
9441 lt_cv_dlopen_libs=
9442 ;;
9443
9444 cygwin*)
9445 lt_cv_dlopen="dlopen"
9446 lt_cv_dlopen_libs=
9447 ;;
9448
9449 darwin*)
9450 # if libdl is installed we need to link against it
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_check_lib_save_LIBS=$LIBS
9457 LIBS="-ldl $LIBS"
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char dlopen ();
9468 int
9469 main ()
9470 {
9471 return dlopen ();
9472 ;
9473 return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"; then :
9477 ac_cv_lib_dl_dlopen=yes
9478 else
9479 ac_cv_lib_dl_dlopen=no
9480 fi
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9487 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9489 else
9490
9491 lt_cv_dlopen="dyld"
9492 lt_cv_dlopen_libs=
9493 lt_cv_dlopen_self=yes
9494
9495 fi
9496
9497 ;;
9498
9499 *)
9500 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9501 if test "x$ac_cv_func_shl_load" = x""yes; then :
9502 lt_cv_dlopen="shl_load"
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9505 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9506 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-ldld $LIBS"
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char shl_load ();
9521 int
9522 main ()
9523 {
9524 return shl_load ();
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 ac_cv_lib_dld_shl_load=yes
9531 else
9532 ac_cv_lib_dld_shl_load=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9539 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9540 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9541 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9542 else
9543 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9544 if test "x$ac_cv_func_dlopen" = x""yes; then :
9545 lt_cv_dlopen="dlopen"
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-ldl $LIBS"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char dlopen ();
9564 int
9565 main ()
9566 {
9567 return dlopen ();
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 ac_cv_lib_dl_dlopen=yes
9574 else
9575 ac_cv_lib_dl_dlopen=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9583 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9587 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-lsvld $LIBS"
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597 Use char because int might match the return type of a GCC
9598 builtin and then its argument prototype would still apply. */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char dlopen ();
9603 int
9604 main ()
9605 {
9606 return dlopen ();
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612 ac_cv_lib_svld_dlopen=yes
9613 else
9614 ac_cv_lib_svld_dlopen=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LIBS=$ac_check_lib_save_LIBS
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9621 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9622 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9626 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9627 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 ac_check_lib_save_LIBS=$LIBS
9631 LIBS="-ldld $LIBS"
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634
9635 /* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 char dld_link ();
9642 int
9643 main ()
9644 {
9645 return dld_link ();
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_c_try_link "$LINENO"; then :
9651 ac_cv_lib_dld_dld_link=yes
9652 else
9653 ac_cv_lib_dld_dld_link=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 LIBS=$ac_check_lib_save_LIBS
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9660 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9661 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9662 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9663 fi
9664
9665
9666 fi
9667
9668
9669 fi
9670
9671
9672 fi
9673
9674
9675 fi
9676
9677
9678 fi
9679
9680 ;;
9681 esac
9682
9683 if test "x$lt_cv_dlopen" != xno; then
9684 enable_dlopen=yes
9685 else
9686 enable_dlopen=no
9687 fi
9688
9689 case $lt_cv_dlopen in
9690 dlopen)
9691 save_CPPFLAGS="$CPPFLAGS"
9692 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9693
9694 save_LDFLAGS="$LDFLAGS"
9695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9696
9697 save_LIBS="$LIBS"
9698 LIBS="$lt_cv_dlopen_libs $LIBS"
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9701 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9702 if test "${lt_cv_dlopen_self+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 if test "$cross_compiling" = yes; then :
9706 lt_cv_dlopen_self=cross
9707 else
9708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9709 lt_status=$lt_dlunknown
9710 cat > conftest.$ac_ext <<_LT_EOF
9711 #line 9711 "configure"
9712 #include "confdefs.h"
9713
9714 #if HAVE_DLFCN_H
9715 #include <dlfcn.h>
9716 #endif
9717
9718 #include <stdio.h>
9719
9720 #ifdef RTLD_GLOBAL
9721 # define LT_DLGLOBAL RTLD_GLOBAL
9722 #else
9723 # ifdef DL_GLOBAL
9724 # define LT_DLGLOBAL DL_GLOBAL
9725 # else
9726 # define LT_DLGLOBAL 0
9727 # endif
9728 #endif
9729
9730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9731 find out it does not work in some platform. */
9732 #ifndef LT_DLLAZY_OR_NOW
9733 # ifdef RTLD_LAZY
9734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9735 # else
9736 # ifdef DL_LAZY
9737 # define LT_DLLAZY_OR_NOW DL_LAZY
9738 # else
9739 # ifdef RTLD_NOW
9740 # define LT_DLLAZY_OR_NOW RTLD_NOW
9741 # else
9742 # ifdef DL_NOW
9743 # define LT_DLLAZY_OR_NOW DL_NOW
9744 # else
9745 # define LT_DLLAZY_OR_NOW 0
9746 # endif
9747 # endif
9748 # endif
9749 # endif
9750 #endif
9751
9752 void fnord() { int i=42;}
9753 int main ()
9754 {
9755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9756 int status = $lt_dlunknown;
9757
9758 if (self)
9759 {
9760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9761 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9762 /* dlclose (self); */
9763 }
9764 else
9765 puts (dlerror ());
9766
9767 return status;
9768 }
9769 _LT_EOF
9770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9771 (eval $ac_link) 2>&5
9772 ac_status=$?
9773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9774 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9775 (./conftest; exit; ) >&5 2>/dev/null
9776 lt_status=$?
9777 case x$lt_status in
9778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9780 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9781 esac
9782 else :
9783 # compilation failed
9784 lt_cv_dlopen_self=no
9785 fi
9786 fi
9787 rm -fr conftest*
9788
9789
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9792 $as_echo "$lt_cv_dlopen_self" >&6; }
9793
9794 if test "x$lt_cv_dlopen_self" = xyes; then
9795 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9797 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9798 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test "$cross_compiling" = yes; then :
9802 lt_cv_dlopen_self_static=cross
9803 else
9804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9805 lt_status=$lt_dlunknown
9806 cat > conftest.$ac_ext <<_LT_EOF
9807 #line 9807 "configure"
9808 #include "confdefs.h"
9809
9810 #if HAVE_DLFCN_H
9811 #include <dlfcn.h>
9812 #endif
9813
9814 #include <stdio.h>
9815
9816 #ifdef RTLD_GLOBAL
9817 # define LT_DLGLOBAL RTLD_GLOBAL
9818 #else
9819 # ifdef DL_GLOBAL
9820 # define LT_DLGLOBAL DL_GLOBAL
9821 # else
9822 # define LT_DLGLOBAL 0
9823 # endif
9824 #endif
9825
9826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9827 find out it does not work in some platform. */
9828 #ifndef LT_DLLAZY_OR_NOW
9829 # ifdef RTLD_LAZY
9830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9831 # else
9832 # ifdef DL_LAZY
9833 # define LT_DLLAZY_OR_NOW DL_LAZY
9834 # else
9835 # ifdef RTLD_NOW
9836 # define LT_DLLAZY_OR_NOW RTLD_NOW
9837 # else
9838 # ifdef DL_NOW
9839 # define LT_DLLAZY_OR_NOW DL_NOW
9840 # else
9841 # define LT_DLLAZY_OR_NOW 0
9842 # endif
9843 # endif
9844 # endif
9845 # endif
9846 #endif
9847
9848 void fnord() { int i=42;}
9849 int main ()
9850 {
9851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9852 int status = $lt_dlunknown;
9853
9854 if (self)
9855 {
9856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9858 /* dlclose (self); */
9859 }
9860 else
9861 puts (dlerror ());
9862
9863 return status;
9864 }
9865 _LT_EOF
9866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9867 (eval $ac_link) 2>&5
9868 ac_status=$?
9869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9870 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9871 (./conftest; exit; ) >&5 2>/dev/null
9872 lt_status=$?
9873 case x$lt_status in
9874 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9875 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9876 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9877 esac
9878 else :
9879 # compilation failed
9880 lt_cv_dlopen_self_static=no
9881 fi
9882 fi
9883 rm -fr conftest*
9884
9885
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9888 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9889 fi
9890
9891 CPPFLAGS="$save_CPPFLAGS"
9892 LDFLAGS="$save_LDFLAGS"
9893 LIBS="$save_LIBS"
9894 ;;
9895 esac
9896
9897 case $lt_cv_dlopen_self in
9898 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9899 *) enable_dlopen_self=unknown ;;
9900 esac
9901
9902 case $lt_cv_dlopen_self_static in
9903 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9904 *) enable_dlopen_self_static=unknown ;;
9905 esac
9906 fi
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 striplib=
9925 old_striplib=
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9927 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9928 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9932 $as_echo "yes" >&6; }
9933 else
9934 # FIXME - insert some real tests, host_os isn't really good enough
9935 case $host_os in
9936 darwin*)
9937 if test -n "$STRIP" ; then
9938 striplib="$STRIP -x"
9939 old_striplib="$STRIP -S"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946 ;;
9947 *)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9950 ;;
9951 esac
9952 fi
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965 # Report which library types will actually be built
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9967 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9969 $as_echo "$can_build_shared" >&6; }
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9972 $as_echo_n "checking whether to build shared libraries... " >&6; }
9973 test "$can_build_shared" = "no" && enable_shared=no
9974
9975 # On AIX, shared libraries and static libraries use the same namespace, and
9976 # are all built from PIC.
9977 case $host_os in
9978 aix3*)
9979 test "$enable_shared" = yes && enable_static=no
9980 if test -n "$RANLIB"; then
9981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9982 postinstall_cmds='$RANLIB $lib'
9983 fi
9984 ;;
9985
9986 aix[4-9]*)
9987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9988 test "$enable_shared" = yes && enable_static=no
9989 fi
9990 ;;
9991 esac
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9993 $as_echo "$enable_shared" >&6; }
9994
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9996 $as_echo_n "checking whether to build static libraries... " >&6; }
9997 # Make sure either enable_shared or enable_static is yes.
9998 test "$enable_shared" = yes || enable_static=yes
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10000 $as_echo "$enable_static" >&6; }
10001
10002
10003
10004
10005 fi
10006 ac_ext=c
10007 ac_cpp='$CPP $CPPFLAGS'
10008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10011
10012 CC="$lt_save_CC"
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 ac_config_commands="$ac_config_commands libtool"
10027
10028
10029
10030
10031 # Only expand once:
10032
10033
10034
10035
10036 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10037 if test -n "$ac_tool_prefix"; then
10038 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10039 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $PKG_CONFIG in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10048 ;;
10049 *)
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061 done
10062 done
10063 IFS=$as_save_IFS
10064
10065 ;;
10066 esac
10067 fi
10068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10069 if test -n "$PKG_CONFIG"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10071 $as_echo "$PKG_CONFIG" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076
10077
10078 fi
10079 if test -z "$ac_cv_path_PKG_CONFIG"; then
10080 ac_pt_PKG_CONFIG=$PKG_CONFIG
10081 # Extract the first word of "pkg-config", so it can be a program name with args.
10082 set dummy pkg-config; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 case $ac_pt_PKG_CONFIG in
10089 [\\/]* | ?:[\\/]*)
10090 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10091 ;;
10092 *)
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104 done
10105 done
10106 IFS=$as_save_IFS
10107
10108 ;;
10109 esac
10110 fi
10111 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10112 if test -n "$ac_pt_PKG_CONFIG"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10114 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 fi
10119
10120 if test "x$ac_pt_PKG_CONFIG" = x; then
10121 PKG_CONFIG=""
10122 else
10123 case $cross_compiling:$ac_tool_warned in
10124 yes:)
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127 ac_tool_warned=yes ;;
10128 esac
10129 PKG_CONFIG=$ac_pt_PKG_CONFIG
10130 fi
10131 else
10132 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10133 fi
10134
10135 fi
10136 if test -n "$PKG_CONFIG"; then
10137 _pkg_min_version=0.22
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10139 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10140 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10142 $as_echo "yes" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 PKG_CONFIG=""
10147 fi
10148
10149 fi
10150 ac_ext=cpp
10151 ac_cpp='$CXXCPP $CPPFLAGS'
10152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10155 if test -z "$CXX"; then
10156 if test -n "$CCC"; then
10157 CXX=$CCC
10158 else
10159 if test -n "$ac_tool_prefix"; then
10160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10161 do
10162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if test "${ac_cv_prog_CXX+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 if test -n "$CXX"; then
10170 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10171 else
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10174 do
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10179 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10182 fi
10183 done
10184 done
10185 IFS=$as_save_IFS
10186
10187 fi
10188 fi
10189 CXX=$ac_cv_prog_CXX
10190 if test -n "$CXX"; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10192 $as_echo "$CXX" >&6; }
10193 else
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 $as_echo "no" >&6; }
10196 fi
10197
10198
10199 test -n "$CXX" && break
10200 done
10201 fi
10202 if test -z "$CXX"; then
10203 ac_ct_CXX=$CXX
10204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10205 do
10206 # Extract the first word of "$ac_prog", so it can be a program name with args.
10207 set dummy $ac_prog; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 if test -n "$ac_ct_CXX"; then
10214 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10223 ac_cv_prog_ac_ct_CXX="$ac_prog"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 fi
10232 fi
10233 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10234 if test -n "$ac_ct_CXX"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10236 $as_echo "$ac_ct_CXX" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 fi
10241
10242
10243 test -n "$ac_ct_CXX" && break
10244 done
10245
10246 if test "x$ac_ct_CXX" = x; then
10247 CXX="g++"
10248 else
10249 case $cross_compiling:$ac_tool_warned in
10250 yes:)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10254 esac
10255 CXX=$ac_ct_CXX
10256 fi
10257 fi
10258
10259 fi
10260 fi
10261 # Provide some information about the compiler.
10262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10263 set X $ac_compile
10264 ac_compiler=$2
10265 for ac_option in --version -v -V -qversion; do
10266 { { ac_try="$ac_compiler $ac_option >&5"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10272 $as_echo "$ac_try_echo"; } >&5
10273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10274 ac_status=$?
10275 if test -s conftest.err; then
10276 sed '10a\
10277 ... rest of stderr output deleted ...
10278 10q' conftest.err >conftest.er1
10279 cat conftest.er1 >&5
10280 fi
10281 rm -f conftest.er1 conftest.err
10282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10283 test $ac_status = 0; }
10284 done
10285
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10288 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293
10294 int
10295 main ()
10296 {
10297 #ifndef __GNUC__
10298 choke me
10299 #endif
10300
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 if ac_fn_cxx_try_compile "$LINENO"; then :
10306 ac_compiler_gnu=yes
10307 else
10308 ac_compiler_gnu=no
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10312
10313 fi
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10316 if test $ac_compiler_gnu = yes; then
10317 GXX=yes
10318 else
10319 GXX=
10320 fi
10321 ac_test_CXXFLAGS=${CXXFLAGS+set}
10322 ac_save_CXXFLAGS=$CXXFLAGS
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10325 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10329 ac_cxx_werror_flag=yes
10330 ac_cv_prog_cxx_g=no
10331 CXXFLAGS="-g"
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334
10335 int
10336 main ()
10337 {
10338
10339 ;
10340 return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_cxx_try_compile "$LINENO"; then :
10344 ac_cv_prog_cxx_g=yes
10345 else
10346 CXXFLAGS=""
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349
10350 int
10351 main ()
10352 {
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_cxx_try_compile "$LINENO"; then :
10359
10360 else
10361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10362 CXXFLAGS="-g"
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365
10366 int
10367 main ()
10368 {
10369
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_cxx_try_compile "$LINENO"; then :
10375 ac_cv_prog_cxx_g=yes
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10383 fi
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10386 if test "$ac_test_CXXFLAGS" = set; then
10387 CXXFLAGS=$ac_save_CXXFLAGS
10388 elif test $ac_cv_prog_cxx_g = yes; then
10389 if test "$GXX" = yes; then
10390 CXXFLAGS="-g -O2"
10391 else
10392 CXXFLAGS="-g"
10393 fi
10394 else
10395 if test "$GXX" = yes; then
10396 CXXFLAGS="-O2"
10397 else
10398 CXXFLAGS=
10399 fi
10400 fi
10401 ac_ext=c
10402 ac_cpp='$CPP $CPPFLAGS'
10403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10406
10407
10408 ac_ext=cpp
10409 ac_cpp='$CXXCPP $CPPFLAGS'
10410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10413 if test -z "$CXX"; then
10414 if test -n "$CCC"; then
10415 CXX=$CCC
10416 else
10417 if test -n "$ac_tool_prefix"; then
10418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10419 do
10420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if test "${ac_cv_prog_CXX+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test -n "$CXX"; then
10428 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10432 do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441 done
10442 done
10443 IFS=$as_save_IFS
10444
10445 fi
10446 fi
10447 CXX=$ac_cv_prog_CXX
10448 if test -n "$CXX"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10450 $as_echo "$CXX" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 fi
10455
10456
10457 test -n "$CXX" && break
10458 done
10459 fi
10460 if test -z "$CXX"; then
10461 ac_ct_CXX=$CXX
10462 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10463 do
10464 # Extract the first word of "$ac_prog", so it can be a program name with args.
10465 set dummy $ac_prog; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 if test -n "$ac_ct_CXX"; then
10472 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10473 else
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10476 do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_prog_ac_ct_CXX="$ac_prog"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485 done
10486 done
10487 IFS=$as_save_IFS
10488
10489 fi
10490 fi
10491 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10492 if test -n "$ac_ct_CXX"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10494 $as_echo "$ac_ct_CXX" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499
10500
10501 test -n "$ac_ct_CXX" && break
10502 done
10503
10504 if test "x$ac_ct_CXX" = x; then
10505 CXX="g++"
10506 else
10507 case $cross_compiling:$ac_tool_warned in
10508 yes:)
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10511 ac_tool_warned=yes ;;
10512 esac
10513 CXX=$ac_ct_CXX
10514 fi
10515 fi
10516
10517 fi
10518 fi
10519 # Provide some information about the compiler.
10520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10521 set X $ac_compile
10522 ac_compiler=$2
10523 for ac_option in --version -v -V -qversion; do
10524 { { ac_try="$ac_compiler $ac_option >&5"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528 esac
10529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10530 $as_echo "$ac_try_echo"; } >&5
10531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10532 ac_status=$?
10533 if test -s conftest.err; then
10534 sed '10a\
10535 ... rest of stderr output deleted ...
10536 10q' conftest.err >conftest.er1
10537 cat conftest.er1 >&5
10538 fi
10539 rm -f conftest.er1 conftest.err
10540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541 test $ac_status = 0; }
10542 done
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10545 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10546 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551
10552 int
10553 main ()
10554 {
10555 #ifndef __GNUC__
10556 choke me
10557 #endif
10558
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_cxx_try_compile "$LINENO"; then :
10564 ac_compiler_gnu=yes
10565 else
10566 ac_compiler_gnu=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10570
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10573 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10574 if test $ac_compiler_gnu = yes; then
10575 GXX=yes
10576 else
10577 GXX=
10578 fi
10579 ac_test_CXXFLAGS=${CXXFLAGS+set}
10580 ac_save_CXXFLAGS=$CXXFLAGS
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10582 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10583 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10587 ac_cxx_werror_flag=yes
10588 ac_cv_prog_cxx_g=no
10589 CXXFLAGS="-g"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592
10593 int
10594 main ()
10595 {
10596
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_cxx_try_compile "$LINENO"; then :
10602 ac_cv_prog_cxx_g=yes
10603 else
10604 CXXFLAGS=""
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607
10608 int
10609 main ()
10610 {
10611
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_cxx_try_compile "$LINENO"; then :
10617
10618 else
10619 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10620 CXXFLAGS="-g"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623
10624 int
10625 main ()
10626 {
10627
10628 ;
10629 return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_cxx_try_compile "$LINENO"; then :
10633 ac_cv_prog_cxx_g=yes
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10641 fi
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10643 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10644 if test "$ac_test_CXXFLAGS" = set; then
10645 CXXFLAGS=$ac_save_CXXFLAGS
10646 elif test $ac_cv_prog_cxx_g = yes; then
10647 if test "$GXX" = yes; then
10648 CXXFLAGS="-g -O2"
10649 else
10650 CXXFLAGS="-g"
10651 fi
10652 else
10653 if test "$GXX" = yes; then
10654 CXXFLAGS="-O2"
10655 else
10656 CXXFLAGS=
10657 fi
10658 fi
10659 ac_ext=c
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10664
10665 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10666 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10667 (test "X$CXX" != "Xg++"))) ; then
10668 ac_ext=cpp
10669 ac_cpp='$CXXCPP $CPPFLAGS'
10670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10674 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10675 if test -z "$CXXCPP"; then
10676 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 # Double quotes because CXXCPP needs to be expanded
10680 for CXXCPP in "$CXX -E" "/lib/cpp"
10681 do
10682 ac_preproc_ok=false
10683 for ac_cxx_preproc_warn_flag in '' yes
10684 do
10685 # Use a header file that comes with gcc, so configuring glibc
10686 # with a fresh cross-compiler works.
10687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 # <limits.h> exists even on freestanding compilers.
10689 # On the NeXT, cc -E runs the code through the compiler's parser,
10690 # not just through cpp. "Syntax error" is here to catch this case.
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 #ifdef __STDC__
10694 # include <limits.h>
10695 #else
10696 # include <assert.h>
10697 #endif
10698 Syntax error
10699 _ACEOF
10700 if ac_fn_cxx_try_cpp "$LINENO"; then :
10701
10702 else
10703 # Broken: fails on valid input.
10704 continue
10705 fi
10706 rm -f conftest.err conftest.$ac_ext
10707
10708 # OK, works on sane cases. Now check whether nonexistent headers
10709 # can be detected and how.
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <ac_nonexistent.h>
10713 _ACEOF
10714 if ac_fn_cxx_try_cpp "$LINENO"; then :
10715 # Broken: success on invalid input.
10716 continue
10717 else
10718 # Passes both tests.
10719 ac_preproc_ok=:
10720 break
10721 fi
10722 rm -f conftest.err conftest.$ac_ext
10723
10724 done
10725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10726 rm -f conftest.err conftest.$ac_ext
10727 if $ac_preproc_ok; then :
10728 break
10729 fi
10730
10731 done
10732 ac_cv_prog_CXXCPP=$CXXCPP
10733
10734 fi
10735 CXXCPP=$ac_cv_prog_CXXCPP
10736 else
10737 ac_cv_prog_CXXCPP=$CXXCPP
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10740 $as_echo "$CXXCPP" >&6; }
10741 ac_preproc_ok=false
10742 for ac_cxx_preproc_warn_flag in '' yes
10743 do
10744 # Use a header file that comes with gcc, so configuring glibc
10745 # with a fresh cross-compiler works.
10746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 # <limits.h> exists even on freestanding compilers.
10748 # On the NeXT, cc -E runs the code through the compiler's parser,
10749 # not just through cpp. "Syntax error" is here to catch this case.
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757 Syntax error
10758 _ACEOF
10759 if ac_fn_cxx_try_cpp "$LINENO"; then :
10760
10761 else
10762 # Broken: fails on valid input.
10763 continue
10764 fi
10765 rm -f conftest.err conftest.$ac_ext
10766
10767 # OK, works on sane cases. Now check whether nonexistent headers
10768 # can be detected and how.
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 #include <ac_nonexistent.h>
10772 _ACEOF
10773 if ac_fn_cxx_try_cpp "$LINENO"; then :
10774 # Broken: success on invalid input.
10775 continue
10776 else
10777 # Passes both tests.
10778 ac_preproc_ok=:
10779 break
10780 fi
10781 rm -f conftest.err conftest.$ac_ext
10782
10783 done
10784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10785 rm -f conftest.err conftest.$ac_ext
10786 if $ac_preproc_ok; then :
10787
10788 else
10789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10791 _lt_caught_CXX_error=yes; }
10792 fi
10793
10794 ac_ext=c
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800 else
10801 _lt_caught_CXX_error=yes
10802 fi
10803
10804
10805
10806
10807 ac_ext=cpp
10808 ac_cpp='$CXXCPP $CPPFLAGS'
10809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10812
10813 archive_cmds_need_lc_CXX=no
10814 allow_undefined_flag_CXX=
10815 always_export_symbols_CXX=no
10816 archive_expsym_cmds_CXX=
10817 compiler_needs_object_CXX=no
10818 export_dynamic_flag_spec_CXX=
10819 hardcode_direct_CXX=no
10820 hardcode_direct_absolute_CXX=no
10821 hardcode_libdir_flag_spec_CXX=
10822 hardcode_libdir_flag_spec_ld_CXX=
10823 hardcode_libdir_separator_CXX=
10824 hardcode_minus_L_CXX=no
10825 hardcode_shlibpath_var_CXX=unsupported
10826 hardcode_automatic_CXX=no
10827 inherit_rpath_CXX=no
10828 module_cmds_CXX=
10829 module_expsym_cmds_CXX=
10830 link_all_deplibs_CXX=unknown
10831 old_archive_cmds_CXX=$old_archive_cmds
10832 no_undefined_flag_CXX=
10833 whole_archive_flag_spec_CXX=
10834 enable_shared_with_static_runtimes_CXX=no
10835
10836 # Source file extension for C++ test sources.
10837 ac_ext=cpp
10838
10839 # Object file extension for compiled C++ test sources.
10840 objext=o
10841 objext_CXX=$objext
10842
10843 # No sense in running all these tests if we already determined that
10844 # the CXX compiler isn't working. Some variables (like enable_shared)
10845 # are currently assumed to apply to all compilers on this platform,
10846 # and will be corrupted by setting them based on a non-working compiler.
10847 if test "$_lt_caught_CXX_error" != yes; then
10848 # Code to be used in simple compile tests
10849 lt_simple_compile_test_code="int some_variable = 0;"
10850
10851 # Code to be used in simple link tests
10852 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10853
10854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10855
10856
10857
10858
10859
10860
10861 # If no C compiler was specified, use CC.
10862 LTCC=${LTCC-"$CC"}
10863
10864 # If no C compiler flags were specified, use CFLAGS.
10865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10866
10867 # Allow CC to be a program name with arguments.
10868 compiler=$CC
10869
10870
10871 # save warnings/boilerplate of simple test code
10872 ac_outfile=conftest.$ac_objext
10873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10875 _lt_compiler_boilerplate=`cat conftest.err`
10876 $RM conftest*
10877
10878 ac_outfile=conftest.$ac_objext
10879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10881 _lt_linker_boilerplate=`cat conftest.err`
10882 $RM -r conftest*
10883
10884
10885 # Allow CC to be a program name with arguments.
10886 lt_save_CC=$CC
10887 lt_save_LD=$LD
10888 lt_save_GCC=$GCC
10889 GCC=$GXX
10890 lt_save_with_gnu_ld=$with_gnu_ld
10891 lt_save_path_LD=$lt_cv_path_LD
10892 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10893 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10894 else
10895 $as_unset lt_cv_prog_gnu_ld
10896 fi
10897 if test -n "${lt_cv_path_LDCXX+set}"; then
10898 lt_cv_path_LD=$lt_cv_path_LDCXX
10899 else
10900 $as_unset lt_cv_path_LD
10901 fi
10902 test -z "${LDCXX+set}" || LD=$LDCXX
10903 CC=${CXX-"c++"}
10904 compiler=$CC
10905 compiler_CXX=$CC
10906 for cc_temp in $compiler""; do
10907 case $cc_temp in
10908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10910 \-*) ;;
10911 *) break;;
10912 esac
10913 done
10914 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10915
10916
10917 if test -n "$compiler"; then
10918 # We don't want -fno-exception when compiling C++ code, so set the
10919 # no_builtin_flag separately
10920 if test "$GXX" = yes; then
10921 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10922 else
10923 lt_prog_compiler_no_builtin_flag_CXX=
10924 fi
10925
10926 if test "$GXX" = yes; then
10927 # Set up default GNU C++ configuration
10928
10929
10930
10931 # Check whether --with-gnu-ld was given.
10932 if test "${with_gnu_ld+set}" = set; then :
10933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10934 else
10935 with_gnu_ld=no
10936 fi
10937
10938 ac_prog=ld
10939 if test "$GCC" = yes; then
10940 # Check if gcc -print-prog-name=ld gives a path.
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10942 $as_echo_n "checking for ld used by $CC... " >&6; }
10943 case $host in
10944 *-*-mingw*)
10945 # gcc leaves a trailing carriage return which upsets mingw
10946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10947 *)
10948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10949 esac
10950 case $ac_prog in
10951 # Accept absolute paths.
10952 [\\/]* | ?:[\\/]*)
10953 re_direlt='/[^/][^/]*/\.\./'
10954 # Canonicalize the pathname of ld
10955 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10956 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10957 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10958 done
10959 test -z "$LD" && LD="$ac_prog"
10960 ;;
10961 "")
10962 # If it fails, then pretend we aren't using GCC.
10963 ac_prog=ld
10964 ;;
10965 *)
10966 # If it is relative, then search for the first ld in PATH.
10967 with_gnu_ld=unknown
10968 ;;
10969 esac
10970 elif test "$with_gnu_ld" = yes; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10972 $as_echo_n "checking for GNU ld... " >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10975 $as_echo_n "checking for non-GNU ld... " >&6; }
10976 fi
10977 if test "${lt_cv_path_LD+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 if test -z "$LD"; then
10981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10982 for ac_dir in $PATH; do
10983 IFS="$lt_save_ifs"
10984 test -z "$ac_dir" && ac_dir=.
10985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10986 lt_cv_path_LD="$ac_dir/$ac_prog"
10987 # Check to see if the program is GNU ld. I'd rather use --version,
10988 # but apparently some variants of GNU ld only accept -v.
10989 # Break only if it was the GNU/non-GNU ld that we prefer.
10990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10991 *GNU* | *'with BFD'*)
10992 test "$with_gnu_ld" != no && break
10993 ;;
10994 *)
10995 test "$with_gnu_ld" != yes && break
10996 ;;
10997 esac
10998 fi
10999 done
11000 IFS="$lt_save_ifs"
11001 else
11002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11003 fi
11004 fi
11005
11006 LD="$lt_cv_path_LD"
11007 if test -n "$LD"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11009 $as_echo "$LD" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 fi
11014 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11017 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11021 case `$LD -v 2>&1 </dev/null` in
11022 *GNU* | *'with BFD'*)
11023 lt_cv_prog_gnu_ld=yes
11024 ;;
11025 *)
11026 lt_cv_prog_gnu_ld=no
11027 ;;
11028 esac
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11031 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11032 with_gnu_ld=$lt_cv_prog_gnu_ld
11033
11034
11035
11036
11037
11038
11039
11040 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11041 # archiving commands below assume that GNU ld is being used.
11042 if test "$with_gnu_ld" = yes; then
11043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11044 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'
11045
11046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048
11049 # If archive_cmds runs LD, not CC, wlarc should be empty
11050 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11051 # investigate it a little bit more. (MM)
11052 wlarc='${wl}'
11053
11054 # ancient GNU ld didn't support --whole-archive et. al.
11055 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11056 $GREP 'no-whole-archive' > /dev/null; then
11057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11058 else
11059 whole_archive_flag_spec_CXX=
11060 fi
11061 else
11062 with_gnu_ld=no
11063 wlarc=
11064
11065 # A generic and very simple default shared library creation
11066 # command for GNU C++ for the case where it uses the native
11067 # linker, instead of GNU ld. If possible, this setting should
11068 # overridden to take advantage of the native linker features on
11069 # the platform it is being used on.
11070 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11071 fi
11072
11073 # Commands to make compiler produce verbose output that lists
11074 # what "hidden" libraries, object files and flags are used when
11075 # linking a shared library.
11076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11077
11078 else
11079 GXX=no
11080 with_gnu_ld=no
11081 wlarc=
11082 fi
11083
11084 # PORTME: fill in a description of your system's C++ link characteristics
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11087 ld_shlibs_CXX=yes
11088 case $host_os in
11089 aix3*)
11090 # FIXME: insert proper C++ library support
11091 ld_shlibs_CXX=no
11092 ;;
11093 aix[4-9]*)
11094 if test "$host_cpu" = ia64; then
11095 # On IA64, the linker does run time linking by default, so we don't
11096 # have to do anything special.
11097 aix_use_runtimelinking=no
11098 exp_sym_flag='-Bexport'
11099 no_entry_flag=""
11100 else
11101 aix_use_runtimelinking=no
11102
11103 # Test if we are trying to use run time linking or normal
11104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11105 # need to do runtime linking.
11106 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11107 for ld_flag in $LDFLAGS; do
11108 case $ld_flag in
11109 *-brtl*)
11110 aix_use_runtimelinking=yes
11111 break
11112 ;;
11113 esac
11114 done
11115 ;;
11116 esac
11117
11118 exp_sym_flag='-bexport'
11119 no_entry_flag='-bnoentry'
11120 fi
11121
11122 # When large executables or shared objects are built, AIX ld can
11123 # have problems creating the table of contents. If linking a library
11124 # or program results in "error TOC overflow" add -mminimal-toc to
11125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11127
11128 archive_cmds_CXX=''
11129 hardcode_direct_CXX=yes
11130 hardcode_direct_absolute_CXX=yes
11131 hardcode_libdir_separator_CXX=':'
11132 link_all_deplibs_CXX=yes
11133 file_list_spec_CXX='${wl}-f,'
11134
11135 if test "$GXX" = yes; then
11136 case $host_os in aix4.[012]|aix4.[012].*)
11137 # We only want to do this on AIX 4.2 and lower, the check
11138 # below for broken collect2 doesn't work under 4.3+
11139 collect2name=`${CC} -print-prog-name=collect2`
11140 if test -f "$collect2name" &&
11141 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11142 then
11143 # We have reworked collect2
11144 :
11145 else
11146 # We have old collect2
11147 hardcode_direct_CXX=unsupported
11148 # It fails to find uninstalled libraries when the uninstalled
11149 # path is not listed in the libpath. Setting hardcode_minus_L
11150 # to unsupported forces relinking
11151 hardcode_minus_L_CXX=yes
11152 hardcode_libdir_flag_spec_CXX='-L$libdir'
11153 hardcode_libdir_separator_CXX=
11154 fi
11155 esac
11156 shared_flag='-shared'
11157 if test "$aix_use_runtimelinking" = yes; then
11158 shared_flag="$shared_flag "'${wl}-G'
11159 fi
11160 else
11161 # not using gcc
11162 if test "$host_cpu" = ia64; then
11163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11164 # chokes on -Wl,-G. The following line is correct:
11165 shared_flag='-G'
11166 else
11167 if test "$aix_use_runtimelinking" = yes; then
11168 shared_flag='${wl}-G'
11169 else
11170 shared_flag='${wl}-bM:SRE'
11171 fi
11172 fi
11173 fi
11174
11175 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11176 # It seems that -bexpall does not export symbols beginning with
11177 # underscore (_), so it is better to generate a list of symbols to
11178 # export.
11179 always_export_symbols_CXX=yes
11180 if test "$aix_use_runtimelinking" = yes; then
11181 # Warning - without using the other runtime loading flags (-brtl),
11182 # -berok will link without error, but may produce a broken library.
11183 allow_undefined_flag_CXX='-berok'
11184 # Determine the default libpath from the value encoded in an empty
11185 # executable.
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 int
11190 main ()
11191 {
11192
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_cxx_try_link "$LINENO"; then :
11198
11199 lt_aix_libpath_sed='
11200 /Import File Strings/,/^$/ {
11201 /^0/ {
11202 s/^0 *\(.*\)$/\1/
11203 p
11204 }
11205 }'
11206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11207 # Check for a 64-bit object if we didn't find anything.
11208 if test -z "$aix_libpath"; then
11209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11210 fi
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11215
11216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11217
11218 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"
11219 else
11220 if test "$host_cpu" = ia64; then
11221 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11222 allow_undefined_flag_CXX="-z nodefs"
11223 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"
11224 else
11225 # Determine the default libpath from the value encoded in an
11226 # empty executable.
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229
11230 int
11231 main ()
11232 {
11233
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_cxx_try_link "$LINENO"; then :
11239
11240 lt_aix_libpath_sed='
11241 /Import File Strings/,/^$/ {
11242 /^0/ {
11243 s/^0 *\(.*\)$/\1/
11244 p
11245 }
11246 }'
11247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11248 # Check for a 64-bit object if we didn't find anything.
11249 if test -z "$aix_libpath"; then
11250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11251 fi
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11256
11257 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11258 # Warning - without using the other run time loading flags,
11259 # -berok will link without error, but may produce a broken library.
11260 no_undefined_flag_CXX=' ${wl}-bernotok'
11261 allow_undefined_flag_CXX=' ${wl}-berok'
11262 # Exported symbols can be pulled into shared objects from archives
11263 whole_archive_flag_spec_CXX='$convenience'
11264 archive_cmds_need_lc_CXX=yes
11265 # This is similar to how AIX traditionally builds its shared
11266 # libraries.
11267 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'
11268 fi
11269 fi
11270 ;;
11271
11272 beos*)
11273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11274 allow_undefined_flag_CXX=unsupported
11275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11276 # support --undefined. This deserves some investigation. FIXME
11277 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11278 else
11279 ld_shlibs_CXX=no
11280 fi
11281 ;;
11282
11283 chorus*)
11284 case $cc_basename in
11285 *)
11286 # FIXME: insert proper C++ library support
11287 ld_shlibs_CXX=no
11288 ;;
11289 esac
11290 ;;
11291
11292 cygwin* | mingw* | pw32* | cegcc*)
11293 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11294 # as there is no search path for DLLs.
11295 hardcode_libdir_flag_spec_CXX='-L$libdir'
11296 allow_undefined_flag_CXX=unsupported
11297 always_export_symbols_CXX=no
11298 enable_shared_with_static_runtimes_CXX=yes
11299
11300 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11301 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'
11302 # If the export-symbols file already is a .def file (1st line
11303 # is EXPORTS), use it as is; otherwise, prepend...
11304 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11305 cp $export_symbols $output_objdir/$soname.def;
11306 else
11307 echo EXPORTS > $output_objdir/$soname.def;
11308 cat $export_symbols >> $output_objdir/$soname.def;
11309 fi~
11310 $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'
11311 else
11312 ld_shlibs_CXX=no
11313 fi
11314 ;;
11315 darwin* | rhapsody*)
11316
11317
11318 archive_cmds_need_lc_CXX=no
11319 hardcode_direct_CXX=no
11320 hardcode_automatic_CXX=yes
11321 hardcode_shlibpath_var_CXX=unsupported
11322 whole_archive_flag_spec_CXX=''
11323 link_all_deplibs_CXX=yes
11324 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11325 case $cc_basename in
11326 ifort*) _lt_dar_can_shared=yes ;;
11327 *) _lt_dar_can_shared=$GCC ;;
11328 esac
11329 if test "$_lt_dar_can_shared" = "yes"; then
11330 output_verbose_link_cmd=echo
11331 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}"
11332 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11333 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}"
11334 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}"
11335 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11336 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}"
11337 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}"
11338 fi
11339
11340 else
11341 ld_shlibs_CXX=no
11342 fi
11343
11344 ;;
11345
11346 dgux*)
11347 case $cc_basename in
11348 ec++*)
11349 # FIXME: insert proper C++ library support
11350 ld_shlibs_CXX=no
11351 ;;
11352 ghcx*)
11353 # Green Hills C++ Compiler
11354 # FIXME: insert proper C++ library support
11355 ld_shlibs_CXX=no
11356 ;;
11357 *)
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11360 ;;
11361 esac
11362 ;;
11363
11364 freebsd[12]*)
11365 # C++ shared libraries reported to be fairly broken before
11366 # switch to ELF
11367 ld_shlibs_CXX=no
11368 ;;
11369
11370 freebsd-elf*)
11371 archive_cmds_need_lc_CXX=no
11372 ;;
11373
11374 freebsd* | dragonfly*)
11375 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11376 # conventions
11377 ld_shlibs_CXX=yes
11378 ;;
11379
11380 gnu*)
11381 ;;
11382
11383 hpux9*)
11384 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11385 hardcode_libdir_separator_CXX=:
11386 export_dynamic_flag_spec_CXX='${wl}-E'
11387 hardcode_direct_CXX=yes
11388 hardcode_minus_L_CXX=yes # Not in the search PATH,
11389 # but as the default
11390 # location of the library.
11391
11392 case $cc_basename in
11393 CC*)
11394 # FIXME: insert proper C++ library support
11395 ld_shlibs_CXX=no
11396 ;;
11397 aCC*)
11398 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'
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11402 #
11403 # There doesn't appear to be a way to prevent this compiler from
11404 # explicitly linking system object files so we need to strip them
11405 # from the output so that they don't get included in the library
11406 # dependencies.
11407 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'
11408 ;;
11409 *)
11410 if test "$GXX" = yes; then
11411 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'
11412 else
11413 # FIXME: insert proper C++ library support
11414 ld_shlibs_CXX=no
11415 fi
11416 ;;
11417 esac
11418 ;;
11419
11420 hpux10*|hpux11*)
11421 if test $with_gnu_ld = no; then
11422 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11423 hardcode_libdir_separator_CXX=:
11424
11425 case $host_cpu in
11426 hppa*64*|ia64*)
11427 ;;
11428 *)
11429 export_dynamic_flag_spec_CXX='${wl}-E'
11430 ;;
11431 esac
11432 fi
11433 case $host_cpu in
11434 hppa*64*|ia64*)
11435 hardcode_direct_CXX=no
11436 hardcode_shlibpath_var_CXX=no
11437 ;;
11438 *)
11439 hardcode_direct_CXX=yes
11440 hardcode_direct_absolute_CXX=yes
11441 hardcode_minus_L_CXX=yes # Not in the search PATH,
11442 # but as the default
11443 # location of the library.
11444 ;;
11445 esac
11446
11447 case $cc_basename in
11448 CC*)
11449 # FIXME: insert proper C++ library support
11450 ld_shlibs_CXX=no
11451 ;;
11452 aCC*)
11453 case $host_cpu in
11454 hppa*64*)
11455 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11456 ;;
11457 ia64*)
11458 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11459 ;;
11460 *)
11461 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11462 ;;
11463 esac
11464 # Commands to make compiler produce verbose output that lists
11465 # what "hidden" libraries, object files and flags are used when
11466 # linking a shared library.
11467 #
11468 # There doesn't appear to be a way to prevent this compiler from
11469 # explicitly linking system object files so we need to strip them
11470 # from the output so that they don't get included in the library
11471 # dependencies.
11472 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'
11473 ;;
11474 *)
11475 if test "$GXX" = yes; then
11476 if test $with_gnu_ld = no; then
11477 case $host_cpu in
11478 hppa*64*)
11479 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480 ;;
11481 ia64*)
11482 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11483 ;;
11484 *)
11485 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'
11486 ;;
11487 esac
11488 fi
11489 else
11490 # FIXME: insert proper C++ library support
11491 ld_shlibs_CXX=no
11492 fi
11493 ;;
11494 esac
11495 ;;
11496
11497 interix[3-9]*)
11498 hardcode_direct_CXX=no
11499 hardcode_shlibpath_var_CXX=no
11500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11501 export_dynamic_flag_spec_CXX='${wl}-E'
11502 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11503 # Instead, shared libraries are loaded at an image base (0x10000000 by
11504 # default) and relocated if they conflict, which is a slow very memory
11505 # consuming and fragmenting process. To avoid this, we pick a random,
11506 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11507 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11508 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'
11509 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'
11510 ;;
11511 irix5* | irix6*)
11512 case $cc_basename in
11513 CC*)
11514 # SGI C++
11515 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'
11516
11517 # Archives containing C++ object files must be created using
11518 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11519 # necessary to make sure instantiated templates are included
11520 # in the archive.
11521 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11522 ;;
11523 *)
11524 if test "$GXX" = yes; then
11525 if test "$with_gnu_ld" = no; then
11526 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'
11527 else
11528 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'
11529 fi
11530 fi
11531 link_all_deplibs_CXX=yes
11532 ;;
11533 esac
11534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11535 hardcode_libdir_separator_CXX=:
11536 inherit_rpath_CXX=yes
11537 ;;
11538
11539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11540 case $cc_basename in
11541 KCC*)
11542 # Kuck and Associates, Inc. (KAI) C++ Compiler
11543
11544 # KCC will only create a shared library if the output file
11545 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11546 # to its proper name (with version) after linking.
11547 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'
11548 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'
11549 # Commands to make compiler produce verbose output that lists
11550 # what "hidden" libraries, object files and flags are used when
11551 # linking a shared library.
11552 #
11553 # There doesn't appear to be a way to prevent this compiler from
11554 # explicitly linking system object files so we need to strip them
11555 # from the output so that they don't get included in the library
11556 # dependencies.
11557 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'
11558
11559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11561
11562 # Archives containing C++ object files must be created using
11563 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11564 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11565 ;;
11566 icpc* | ecpc* )
11567 # Intel C++
11568 with_gnu_ld=yes
11569 # version 8.0 and above of icpc choke on multiply defined symbols
11570 # if we add $predep_objects and $postdep_objects, however 7.1 and
11571 # earlier do not add the objects themselves.
11572 case `$CC -V 2>&1` in
11573 *"Version 7."*)
11574 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575 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'
11576 ;;
11577 *) # Version 8.0 or newer
11578 tmp_idyn=
11579 case $host_cpu in
11580 ia64*) tmp_idyn=' -i_dynamic';;
11581 esac
11582 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583 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'
11584 ;;
11585 esac
11586 archive_cmds_need_lc_CXX=no
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11589 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11590 ;;
11591 pgCC* | pgcpp*)
11592 # Portland Group C++ compiler
11593 case `$CC -V` in
11594 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11595 prelink_cmds_CXX='tpldir=Template.dir~
11596 rm -rf $tpldir~
11597 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11598 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11599 old_archive_cmds_CXX='tpldir=Template.dir~
11600 rm -rf $tpldir~
11601 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11602 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11603 $RANLIB $oldlib'
11604 archive_cmds_CXX='tpldir=Template.dir~
11605 rm -rf $tpldir~
11606 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11607 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11608 archive_expsym_cmds_CXX='tpldir=Template.dir~
11609 rm -rf $tpldir~
11610 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11611 $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'
11612 ;;
11613 *) # Version 6 will use weak symbols
11614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11615 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'
11616 ;;
11617 esac
11618
11619 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11621 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'
11622 ;;
11623 cxx*)
11624 # Compaq C++
11625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11626 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'
11627
11628 runpath_var=LD_RUN_PATH
11629 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11630 hardcode_libdir_separator_CXX=:
11631
11632 # Commands to make compiler produce verbose output that lists
11633 # what "hidden" libraries, object files and flags are used when
11634 # linking a shared library.
11635 #
11636 # There doesn't appear to be a way to prevent this compiler from
11637 # explicitly linking system object files so we need to strip them
11638 # from the output so that they don't get included in the library
11639 # dependencies.
11640 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'
11641 ;;
11642 xl*)
11643 # IBM XL 8.0 on PPC, with GNU ld
11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11646 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11647 if test "x$supports_anon_versioning" = xyes; then
11648 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11650 echo "local: *; };" >> $output_objdir/$libname.ver~
11651 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11652 fi
11653 ;;
11654 *)
11655 case `$CC -V 2>&1 | sed 5q` in
11656 *Sun\ C*)
11657 # Sun C++ 5.9
11658 no_undefined_flag_CXX=' -zdefs'
11659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11660 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'
11661 hardcode_libdir_flag_spec_CXX='-R$libdir'
11662 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'
11663 compiler_needs_object_CXX=yes
11664
11665 # Not sure whether something based on
11666 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11667 # would be better.
11668 output_verbose_link_cmd='echo'
11669
11670 # Archives containing C++ object files must be created using
11671 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11672 # necessary to make sure instantiated templates are included
11673 # in the archive.
11674 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11675 ;;
11676 esac
11677 ;;
11678 esac
11679 ;;
11680
11681 lynxos*)
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11684 ;;
11685
11686 m88k*)
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 ;;
11690
11691 mvs*)
11692 case $cc_basename in
11693 cxx*)
11694 # FIXME: insert proper C++ library support
11695 ld_shlibs_CXX=no
11696 ;;
11697 *)
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11700 ;;
11701 esac
11702 ;;
11703
11704 netbsd*)
11705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11706 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11707 wlarc=
11708 hardcode_libdir_flag_spec_CXX='-R$libdir'
11709 hardcode_direct_CXX=yes
11710 hardcode_shlibpath_var_CXX=no
11711 fi
11712 # Workaround some broken pre-1.5 toolchains
11713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11714 ;;
11715
11716 *nto* | *qnx*)
11717 ld_shlibs_CXX=yes
11718 ;;
11719
11720 openbsd2*)
11721 # C++ shared libraries are fairly broken
11722 ld_shlibs_CXX=no
11723 ;;
11724
11725 openbsd*)
11726 if test -f /usr/libexec/ld.so; then
11727 hardcode_direct_CXX=yes
11728 hardcode_shlibpath_var_CXX=no
11729 hardcode_direct_absolute_CXX=yes
11730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11733 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11734 export_dynamic_flag_spec_CXX='${wl}-E'
11735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11736 fi
11737 output_verbose_link_cmd=echo
11738 else
11739 ld_shlibs_CXX=no
11740 fi
11741 ;;
11742
11743 osf3* | osf4* | osf5*)
11744 case $cc_basename in
11745 KCC*)
11746 # Kuck and Associates, Inc. (KAI) C++ Compiler
11747
11748 # KCC will only create a shared library if the output file
11749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11750 # to its proper name (with version) after linking.
11751 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'
11752
11753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11754 hardcode_libdir_separator_CXX=:
11755
11756 # Archives containing C++ object files must be created using
11757 # the KAI C++ compiler.
11758 case $host in
11759 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11760 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11761 esac
11762 ;;
11763 RCC*)
11764 # Rational C++ 2.4.1
11765 # FIXME: insert proper C++ library support
11766 ld_shlibs_CXX=no
11767 ;;
11768 cxx*)
11769 case $host in
11770 osf3*)
11771 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11772 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'
11773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774 ;;
11775 *)
11776 allow_undefined_flag_CXX=' -expect_unresolved \*'
11777 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'
11778 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11779 echo "-hidden">> $lib.exp~
11780 $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~
11781 $RM $lib.exp'
11782 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11783 ;;
11784 esac
11785
11786 hardcode_libdir_separator_CXX=:
11787
11788 # Commands to make compiler produce verbose output that lists
11789 # what "hidden" libraries, object files and flags are used when
11790 # linking a shared library.
11791 #
11792 # There doesn't appear to be a way to prevent this compiler from
11793 # explicitly linking system object files so we need to strip them
11794 # from the output so that they don't get included in the library
11795 # dependencies.
11796 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'
11797 ;;
11798 *)
11799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11801 case $host in
11802 osf3*)
11803 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'
11804 ;;
11805 *)
11806 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'
11807 ;;
11808 esac
11809
11810 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11811 hardcode_libdir_separator_CXX=:
11812
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11817
11818 else
11819 # FIXME: insert proper C++ library support
11820 ld_shlibs_CXX=no
11821 fi
11822 ;;
11823 esac
11824 ;;
11825
11826 psos*)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11829 ;;
11830
11831 sunos4*)
11832 case $cc_basename in
11833 CC*)
11834 # Sun C++ 4.x
11835 # FIXME: insert proper C++ library support
11836 ld_shlibs_CXX=no
11837 ;;
11838 lcc*)
11839 # Lucid
11840 # FIXME: insert proper C++ library support
11841 ld_shlibs_CXX=no
11842 ;;
11843 *)
11844 # FIXME: insert proper C++ library support
11845 ld_shlibs_CXX=no
11846 ;;
11847 esac
11848 ;;
11849
11850 solaris*)
11851 case $cc_basename in
11852 CC*)
11853 # Sun C++ 4.2, 5.x and Centerline C++
11854 archive_cmds_need_lc_CXX=yes
11855 no_undefined_flag_CXX=' -zdefs'
11856 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11858 $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'
11859
11860 hardcode_libdir_flag_spec_CXX='-R$libdir'
11861 hardcode_shlibpath_var_CXX=no
11862 case $host_os in
11863 solaris2.[0-5] | solaris2.[0-5].*) ;;
11864 *)
11865 # The compiler driver will combine and reorder linker options,
11866 # but understands `-z linker_flag'.
11867 # Supported since Solaris 2.6 (maybe 2.5.1?)
11868 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11869 ;;
11870 esac
11871 link_all_deplibs_CXX=yes
11872
11873 output_verbose_link_cmd='echo'
11874
11875 # Archives containing C++ object files must be created using
11876 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11877 # necessary to make sure instantiated templates are included
11878 # in the archive.
11879 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11880 ;;
11881 gcx*)
11882 # Green Hills C++ Compiler
11883 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11884
11885 # The C++ compiler must be used to create the archive.
11886 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11887 ;;
11888 *)
11889 # GNU C++ compiler with Solaris linker
11890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11891 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11892 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11893 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11894 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11895 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11896
11897 # Commands to make compiler produce verbose output that lists
11898 # what "hidden" libraries, object files and flags are used when
11899 # linking a shared library.
11900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11901 else
11902 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11903 # platform.
11904 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11905 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11906 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11907
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11911 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11912 fi
11913
11914 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11915 case $host_os in
11916 solaris2.[0-5] | solaris2.[0-5].*) ;;
11917 *)
11918 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11919 ;;
11920 esac
11921 fi
11922 ;;
11923 esac
11924 ;;
11925
11926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11927 no_undefined_flag_CXX='${wl}-z,text'
11928 archive_cmds_need_lc_CXX=no
11929 hardcode_shlibpath_var_CXX=no
11930 runpath_var='LD_RUN_PATH'
11931
11932 case $cc_basename in
11933 CC*)
11934 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 ;;
11937 *)
11938 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 ;;
11941 esac
11942 ;;
11943
11944 sysv5* | sco3.2v5* | sco5v6*)
11945 # Note: We can NOT use -z defs as we might desire, because we do not
11946 # link with -lc, and that would cause any symbols used from libc to
11947 # always be unresolved, which means just about no library would
11948 # ever link correctly. If we're not using GNU ld we use -z text
11949 # though, which does catch some bad symbols but isn't as heavy-handed
11950 # as -z defs.
11951 no_undefined_flag_CXX='${wl}-z,text'
11952 allow_undefined_flag_CXX='${wl}-z,nodefs'
11953 archive_cmds_need_lc_CXX=no
11954 hardcode_shlibpath_var_CXX=no
11955 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11956 hardcode_libdir_separator_CXX=':'
11957 link_all_deplibs_CXX=yes
11958 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11959 runpath_var='LD_RUN_PATH'
11960
11961 case $cc_basename in
11962 CC*)
11963 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 ;;
11966 *)
11967 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 ;;
11970 esac
11971 ;;
11972
11973 tandem*)
11974 case $cc_basename in
11975 NCC*)
11976 # NonStop-UX NCC 3.20
11977 # FIXME: insert proper C++ library support
11978 ld_shlibs_CXX=no
11979 ;;
11980 *)
11981 # FIXME: insert proper C++ library support
11982 ld_shlibs_CXX=no
11983 ;;
11984 esac
11985 ;;
11986
11987 vxworks*)
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
11990 ;;
11991
11992 *)
11993 # FIXME: insert proper C++ library support
11994 ld_shlibs_CXX=no
11995 ;;
11996 esac
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11999 $as_echo "$ld_shlibs_CXX" >&6; }
12000 test "$ld_shlibs_CXX" = no && can_build_shared=no
12001
12002 GCC_CXX="$GXX"
12003 LD_CXX="$LD"
12004
12005 ## CAVEAT EMPTOR:
12006 ## There is no encapsulation within the following macros, do not change
12007 ## the running order or otherwise move them around unless you know exactly
12008 ## what you are doing...
12009 # Dependencies to place before and after the object being linked:
12010 predep_objects_CXX=
12011 postdep_objects_CXX=
12012 predeps_CXX=
12013 postdeps_CXX=
12014 compiler_lib_search_path_CXX=
12015
12016 cat > conftest.$ac_ext <<_LT_EOF
12017 class Foo
12018 {
12019 public:
12020 Foo (void) { a = 0; }
12021 private:
12022 int a;
12023 };
12024 _LT_EOF
12025
12026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12027 (eval $ac_compile) 2>&5
12028 ac_status=$?
12029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030 test $ac_status = 0; }; then
12031 # Parse the compiler output and extract the necessary
12032 # objects, libraries and library flags.
12033
12034 # Sentinel used to keep track of whether or not we are before
12035 # the conftest object file.
12036 pre_test_object_deps_done=no
12037
12038 for p in `eval "$output_verbose_link_cmd"`; do
12039 case $p in
12040
12041 -L* | -R* | -l*)
12042 # Some compilers place space between "-{L,R}" and the path.
12043 # Remove the space.
12044 if test $p = "-L" ||
12045 test $p = "-R"; then
12046 prev=$p
12047 continue
12048 else
12049 prev=
12050 fi
12051
12052 if test "$pre_test_object_deps_done" = no; then
12053 case $p in
12054 -L* | -R*)
12055 # Internal compiler library paths should come after those
12056 # provided the user. The postdeps already come after the
12057 # user supplied libs so there is no need to process them.
12058 if test -z "$compiler_lib_search_path_CXX"; then
12059 compiler_lib_search_path_CXX="${prev}${p}"
12060 else
12061 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12062 fi
12063 ;;
12064 # The "-l" case would never come before the object being
12065 # linked, so don't bother handling this case.
12066 esac
12067 else
12068 if test -z "$postdeps_CXX"; then
12069 postdeps_CXX="${prev}${p}"
12070 else
12071 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12072 fi
12073 fi
12074 ;;
12075
12076 *.$objext)
12077 # This assumes that the test object file only shows up
12078 # once in the compiler output.
12079 if test "$p" = "conftest.$objext"; then
12080 pre_test_object_deps_done=yes
12081 continue
12082 fi
12083
12084 if test "$pre_test_object_deps_done" = no; then
12085 if test -z "$predep_objects_CXX"; then
12086 predep_objects_CXX="$p"
12087 else
12088 predep_objects_CXX="$predep_objects_CXX $p"
12089 fi
12090 else
12091 if test -z "$postdep_objects_CXX"; then
12092 postdep_objects_CXX="$p"
12093 else
12094 postdep_objects_CXX="$postdep_objects_CXX $p"
12095 fi
12096 fi
12097 ;;
12098
12099 *) ;; # Ignore the rest.
12100
12101 esac
12102 done
12103
12104 # Clean up.
12105 rm -f a.out a.exe
12106 else
12107 echo "libtool.m4: error: problem compiling CXX test program"
12108 fi
12109
12110 $RM -f confest.$objext
12111
12112 # PORTME: override above test on systems where it is broken
12113 case $host_os in
12114 interix[3-9]*)
12115 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12116 # hack all around it, let's just trust "g++" to DTRT.
12117 predep_objects_CXX=
12118 postdep_objects_CXX=
12119 postdeps_CXX=
12120 ;;
12121
12122 linux*)
12123 case `$CC -V 2>&1 | sed 5q` in
12124 *Sun\ C*)
12125 # Sun C++ 5.9
12126
12127 # The more standards-conforming stlport4 library is
12128 # incompatible with the Cstd library. Avoid specifying
12129 # it if it's in CXXFLAGS. Ignore libCrun as
12130 # -library=stlport4 depends on it.
12131 case " $CXX $CXXFLAGS " in
12132 *" -library=stlport4 "*)
12133 solaris_use_stlport4=yes
12134 ;;
12135 esac
12136
12137 if test "$solaris_use_stlport4" != yes; then
12138 postdeps_CXX='-library=Cstd -library=Crun'
12139 fi
12140 ;;
12141 esac
12142 ;;
12143
12144 solaris*)
12145 case $cc_basename in
12146 CC*)
12147 # The more standards-conforming stlport4 library is
12148 # incompatible with the Cstd library. Avoid specifying
12149 # it if it's in CXXFLAGS. Ignore libCrun as
12150 # -library=stlport4 depends on it.
12151 case " $CXX $CXXFLAGS " in
12152 *" -library=stlport4 "*)
12153 solaris_use_stlport4=yes
12154 ;;
12155 esac
12156
12157 # Adding this requires a known-good setup of shared libraries for
12158 # Sun compiler versions before 5.6, else PIC objects from an old
12159 # archive will be linked into the output, leading to subtle bugs.
12160 if test "$solaris_use_stlport4" != yes; then
12161 postdeps_CXX='-library=Cstd -library=Crun'
12162 fi
12163 ;;
12164 esac
12165 ;;
12166 esac
12167
12168
12169 case " $postdeps_CXX " in
12170 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12171 esac
12172 compiler_lib_search_dirs_CXX=
12173 if test -n "${compiler_lib_search_path_CXX}"; then
12174 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12175 fi
12176
12177
12178
12179
12180
12181
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 lt_prog_compiler_wl_CXX=
12208 lt_prog_compiler_pic_CXX=
12209 lt_prog_compiler_static_CXX=
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12212 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12213
12214 # C++ specific cases for pic, static, wl, etc.
12215 if test "$GXX" = yes; then
12216 lt_prog_compiler_wl_CXX='-Wl,'
12217 lt_prog_compiler_static_CXX='-static'
12218
12219 case $host_os in
12220 aix*)
12221 # All AIX code is PIC.
12222 if test "$host_cpu" = ia64; then
12223 # AIX 5 now supports IA64 processor
12224 lt_prog_compiler_static_CXX='-Bstatic'
12225 fi
12226 ;;
12227
12228 amigaos*)
12229 case $host_cpu in
12230 powerpc)
12231 # see comment about AmigaOS4 .so support
12232 lt_prog_compiler_pic_CXX='-fPIC'
12233 ;;
12234 m68k)
12235 # FIXME: we need at least 68020 code to build shared libraries, but
12236 # adding the `-m68020' flag to GCC prevents building anything better,
12237 # like `-m68040'.
12238 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12239 ;;
12240 esac
12241 ;;
12242
12243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12244 # PIC is the default for these OSes.
12245 ;;
12246 mingw* | cygwin* | os2* | pw32* | cegcc*)
12247 # This hack is so that the source file can tell whether it is being
12248 # built for inclusion in a dll (and should export symbols for example).
12249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12250 # (--disable-auto-import) libraries
12251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12252 ;;
12253 darwin* | rhapsody*)
12254 # PIC is the default on this platform
12255 # Common symbols not allowed in MH_DYLIB files
12256 lt_prog_compiler_pic_CXX='-fno-common'
12257 ;;
12258 *djgpp*)
12259 # DJGPP does not support shared libraries at all
12260 lt_prog_compiler_pic_CXX=
12261 ;;
12262 interix[3-9]*)
12263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12264 # Instead, we relocate shared libraries at runtime.
12265 ;;
12266 sysv4*MP*)
12267 if test -d /usr/nec; then
12268 lt_prog_compiler_pic_CXX=-Kconform_pic
12269 fi
12270 ;;
12271 hpux*)
12272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12274 # sets the default TLS model and affects inlining.
12275 case $host_cpu in
12276 hppa*64*)
12277 ;;
12278 *)
12279 lt_prog_compiler_pic_CXX='-fPIC'
12280 ;;
12281 esac
12282 ;;
12283 *qnx* | *nto*)
12284 # QNX uses GNU C++, but need to define -shared option too, otherwise
12285 # it will coredump.
12286 lt_prog_compiler_pic_CXX='-fPIC -shared'
12287 ;;
12288 *)
12289 lt_prog_compiler_pic_CXX='-fPIC'
12290 ;;
12291 esac
12292 else
12293 case $host_os in
12294 aix[4-9]*)
12295 # All AIX code is PIC.
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 now supports IA64 processor
12298 lt_prog_compiler_static_CXX='-Bstatic'
12299 else
12300 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12301 fi
12302 ;;
12303 chorus*)
12304 case $cc_basename in
12305 cxch68*)
12306 # Green Hills C++ Compiler
12307 # _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"
12308 ;;
12309 esac
12310 ;;
12311 dgux*)
12312 case $cc_basename in
12313 ec++*)
12314 lt_prog_compiler_pic_CXX='-KPIC'
12315 ;;
12316 ghcx*)
12317 # Green Hills C++ Compiler
12318 lt_prog_compiler_pic_CXX='-pic'
12319 ;;
12320 *)
12321 ;;
12322 esac
12323 ;;
12324 freebsd* | dragonfly*)
12325 # FreeBSD uses GNU C++
12326 ;;
12327 hpux9* | hpux10* | hpux11*)
12328 case $cc_basename in
12329 CC*)
12330 lt_prog_compiler_wl_CXX='-Wl,'
12331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12332 if test "$host_cpu" != ia64; then
12333 lt_prog_compiler_pic_CXX='+Z'
12334 fi
12335 ;;
12336 aCC*)
12337 lt_prog_compiler_wl_CXX='-Wl,'
12338 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12339 case $host_cpu in
12340 hppa*64*|ia64*)
12341 # +Z the default
12342 ;;
12343 *)
12344 lt_prog_compiler_pic_CXX='+Z'
12345 ;;
12346 esac
12347 ;;
12348 *)
12349 ;;
12350 esac
12351 ;;
12352 interix*)
12353 # This is c89, which is MS Visual C++ (no shared libs)
12354 # Anyone wants to do a port?
12355 ;;
12356 irix5* | irix6* | nonstopux*)
12357 case $cc_basename in
12358 CC*)
12359 lt_prog_compiler_wl_CXX='-Wl,'
12360 lt_prog_compiler_static_CXX='-non_shared'
12361 # CC pic flag -KPIC is the default.
12362 ;;
12363 *)
12364 ;;
12365 esac
12366 ;;
12367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12368 case $cc_basename in
12369 KCC*)
12370 # KAI C++ Compiler
12371 lt_prog_compiler_wl_CXX='--backend -Wl,'
12372 lt_prog_compiler_pic_CXX='-fPIC'
12373 ;;
12374 ecpc* )
12375 # old Intel C++ for x86_64 which still supported -KPIC.
12376 lt_prog_compiler_wl_CXX='-Wl,'
12377 lt_prog_compiler_pic_CXX='-KPIC'
12378 lt_prog_compiler_static_CXX='-static'
12379 ;;
12380 icpc* )
12381 # Intel C++, used to be incompatible with GCC.
12382 # ICC 10 doesn't accept -KPIC any more.
12383 lt_prog_compiler_wl_CXX='-Wl,'
12384 lt_prog_compiler_pic_CXX='-fPIC'
12385 lt_prog_compiler_static_CXX='-static'
12386 ;;
12387 pgCC* | pgcpp*)
12388 # Portland Group C++ compiler
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 lt_prog_compiler_pic_CXX='-fpic'
12391 lt_prog_compiler_static_CXX='-Bstatic'
12392 ;;
12393 cxx*)
12394 # Compaq C++
12395 # Make sure the PIC flag is empty. It appears that all Alpha
12396 # Linux and Compaq Tru64 Unix objects are PIC.
12397 lt_prog_compiler_pic_CXX=
12398 lt_prog_compiler_static_CXX='-non_shared'
12399 ;;
12400 xlc* | xlC*)
12401 # IBM XL 8.0 on PPC
12402 lt_prog_compiler_wl_CXX='-Wl,'
12403 lt_prog_compiler_pic_CXX='-qpic'
12404 lt_prog_compiler_static_CXX='-qstaticlink'
12405 ;;
12406 *)
12407 case `$CC -V 2>&1 | sed 5q` in
12408 *Sun\ C*)
12409 # Sun C++ 5.9
12410 lt_prog_compiler_pic_CXX='-KPIC'
12411 lt_prog_compiler_static_CXX='-Bstatic'
12412 lt_prog_compiler_wl_CXX='-Qoption ld '
12413 ;;
12414 esac
12415 ;;
12416 esac
12417 ;;
12418 lynxos*)
12419 ;;
12420 m88k*)
12421 ;;
12422 mvs*)
12423 case $cc_basename in
12424 cxx*)
12425 lt_prog_compiler_pic_CXX='-W c,exportall'
12426 ;;
12427 *)
12428 ;;
12429 esac
12430 ;;
12431 netbsd* | netbsdelf*-gnu)
12432 ;;
12433 *qnx* | *nto*)
12434 # QNX uses GNU C++, but need to define -shared option too, otherwise
12435 # it will coredump.
12436 lt_prog_compiler_pic_CXX='-fPIC -shared'
12437 ;;
12438 osf3* | osf4* | osf5*)
12439 case $cc_basename in
12440 KCC*)
12441 lt_prog_compiler_wl_CXX='--backend -Wl,'
12442 ;;
12443 RCC*)
12444 # Rational C++ 2.4.1
12445 lt_prog_compiler_pic_CXX='-pic'
12446 ;;
12447 cxx*)
12448 # Digital/Compaq C++
12449 lt_prog_compiler_wl_CXX='-Wl,'
12450 # Make sure the PIC flag is empty. It appears that all Alpha
12451 # Linux and Compaq Tru64 Unix objects are PIC.
12452 lt_prog_compiler_pic_CXX=
12453 lt_prog_compiler_static_CXX='-non_shared'
12454 ;;
12455 *)
12456 ;;
12457 esac
12458 ;;
12459 psos*)
12460 ;;
12461 solaris*)
12462 case $cc_basename in
12463 CC*)
12464 # Sun C++ 4.2, 5.x and Centerline C++
12465 lt_prog_compiler_pic_CXX='-KPIC'
12466 lt_prog_compiler_static_CXX='-Bstatic'
12467 lt_prog_compiler_wl_CXX='-Qoption ld '
12468 ;;
12469 gcx*)
12470 # Green Hills C++ Compiler
12471 lt_prog_compiler_pic_CXX='-PIC'
12472 ;;
12473 *)
12474 ;;
12475 esac
12476 ;;
12477 sunos4*)
12478 case $cc_basename in
12479 CC*)
12480 # Sun C++ 4.x
12481 lt_prog_compiler_pic_CXX='-pic'
12482 lt_prog_compiler_static_CXX='-Bstatic'
12483 ;;
12484 lcc*)
12485 # Lucid
12486 lt_prog_compiler_pic_CXX='-pic'
12487 ;;
12488 *)
12489 ;;
12490 esac
12491 ;;
12492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12493 case $cc_basename in
12494 CC*)
12495 lt_prog_compiler_wl_CXX='-Wl,'
12496 lt_prog_compiler_pic_CXX='-KPIC'
12497 lt_prog_compiler_static_CXX='-Bstatic'
12498 ;;
12499 esac
12500 ;;
12501 tandem*)
12502 case $cc_basename in
12503 NCC*)
12504 # NonStop-UX NCC 3.20
12505 lt_prog_compiler_pic_CXX='-KPIC'
12506 ;;
12507 *)
12508 ;;
12509 esac
12510 ;;
12511 vxworks*)
12512 ;;
12513 *)
12514 lt_prog_compiler_can_build_shared_CXX=no
12515 ;;
12516 esac
12517 fi
12518
12519 case $host_os in
12520 # For platforms which do not support PIC, -DPIC is meaningless:
12521 *djgpp*)
12522 lt_prog_compiler_pic_CXX=
12523 ;;
12524 *)
12525 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12526 ;;
12527 esac
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12529 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12530
12531
12532
12533 #
12534 # Check to make sure the PIC flag actually works.
12535 #
12536 if test -n "$lt_prog_compiler_pic_CXX"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12539 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 lt_cv_prog_compiler_pic_works_CXX=no
12543 ac_outfile=conftest.$ac_objext
12544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12545 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12546 # Insert the option either (1) after the last *FLAGS variable, or
12547 # (2) before a word containing "conftest.", or (3) at the end.
12548 # Note that $ac_compile itself does not contain backslashes and begins
12549 # with a dollar sign (not a hyphen), so the echo should work correctly.
12550 # The option is referenced via a variable to avoid confusing sed.
12551 lt_compile=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
12555 (eval echo "\"\$as_me:12555: $lt_compile\"" >&5)
12556 (eval "$lt_compile" 2>conftest.err)
12557 ac_status=$?
12558 cat conftest.err >&5
12559 echo "$as_me:12559: \$? = $ac_status" >&5
12560 if (exit $ac_status) && test -s "$ac_outfile"; then
12561 # The compiler can only warn and ignore the option if not recognized
12562 # So say no if there are warnings other than the usual output.
12563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12566 lt_cv_prog_compiler_pic_works_CXX=yes
12567 fi
12568 fi
12569 $RM conftest*
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12573 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12574
12575 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12576 case $lt_prog_compiler_pic_CXX in
12577 "" | " "*) ;;
12578 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12579 esac
12580 else
12581 lt_prog_compiler_pic_CXX=
12582 lt_prog_compiler_can_build_shared_CXX=no
12583 fi
12584
12585 fi
12586
12587
12588
12589 #
12590 # Check to make sure the static flag actually works.
12591 #
12592 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12594 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12595 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 lt_cv_prog_compiler_static_works_CXX=no
12599 save_LDFLAGS="$LDFLAGS"
12600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12603 # The linker can only warn and ignore the option if not recognized
12604 # So say no if there are warnings
12605 if test -s conftest.err; then
12606 # Append any errors to the config.log.
12607 cat conftest.err 1>&5
12608 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610 if diff conftest.exp conftest.er2 >/dev/null; then
12611 lt_cv_prog_compiler_static_works_CXX=yes
12612 fi
12613 else
12614 lt_cv_prog_compiler_static_works_CXX=yes
12615 fi
12616 fi
12617 $RM -r conftest*
12618 LDFLAGS="$save_LDFLAGS"
12619
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12622 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12623
12624 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12625 :
12626 else
12627 lt_prog_compiler_static_CXX=
12628 fi
12629
12630
12631
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12635 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 lt_cv_prog_compiler_c_o_CXX=no
12639 $RM -r conftest 2>/dev/null
12640 mkdir conftest
12641 cd conftest
12642 mkdir out
12643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12644
12645 lt_compiler_flag="-o out/conftest2.$ac_objext"
12646 # Insert the option either (1) after the last *FLAGS variable, or
12647 # (2) before a word containing "conftest.", or (3) at the end.
12648 # Note that $ac_compile itself does not contain backslashes and begins
12649 # with a dollar sign (not a hyphen), so the echo should work correctly.
12650 lt_compile=`echo "$ac_compile" | $SED \
12651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12653 -e 's:$: $lt_compiler_flag:'`
12654 (eval echo "\"\$as_me:12654: $lt_compile\"" >&5)
12655 (eval "$lt_compile" 2>out/conftest.err)
12656 ac_status=$?
12657 cat out/conftest.err >&5
12658 echo "$as_me:12658: \$? = $ac_status" >&5
12659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12660 then
12661 # The compiler can only warn and ignore the option if not recognized
12662 # So say no if there are warnings
12663 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12666 lt_cv_prog_compiler_c_o_CXX=yes
12667 fi
12668 fi
12669 chmod u+w . 2>&5
12670 $RM conftest*
12671 # SGI C++ compiler will create directory out/ii_files/ for
12672 # template instantiation
12673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12674 $RM out/* && rmdir out
12675 cd ..
12676 $RM -r conftest
12677 $RM conftest*
12678
12679 fi
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12682
12683
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12687 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 lt_cv_prog_compiler_c_o_CXX=no
12691 $RM -r conftest 2>/dev/null
12692 mkdir conftest
12693 cd conftest
12694 mkdir out
12695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12696
12697 lt_compiler_flag="-o out/conftest2.$ac_objext"
12698 # Insert the option either (1) after the last *FLAGS variable, or
12699 # (2) before a word containing "conftest.", or (3) at the end.
12700 # Note that $ac_compile itself does not contain backslashes and begins
12701 # with a dollar sign (not a hyphen), so the echo should work correctly.
12702 lt_compile=`echo "$ac_compile" | $SED \
12703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12705 -e 's:$: $lt_compiler_flag:'`
12706 (eval echo "\"\$as_me:12706: $lt_compile\"" >&5)
12707 (eval "$lt_compile" 2>out/conftest.err)
12708 ac_status=$?
12709 cat out/conftest.err >&5
12710 echo "$as_me:12710: \$? = $ac_status" >&5
12711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12712 then
12713 # The compiler can only warn and ignore the option if not recognized
12714 # So say no if there are warnings
12715 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12718 lt_cv_prog_compiler_c_o_CXX=yes
12719 fi
12720 fi
12721 chmod u+w . 2>&5
12722 $RM conftest*
12723 # SGI C++ compiler will create directory out/ii_files/ for
12724 # template instantiation
12725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12726 $RM out/* && rmdir out
12727 cd ..
12728 $RM -r conftest
12729 $RM conftest*
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12733 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12734
12735
12736
12737
12738 hard_links="nottested"
12739 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12740 # do not overwrite the value of need_locks provided by the user
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12742 $as_echo_n "checking if we can lock with hard links... " >&6; }
12743 hard_links=yes
12744 $RM conftest*
12745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12746 touch conftest.a
12747 ln conftest.a conftest.b 2>&5 || hard_links=no
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12750 $as_echo "$hard_links" >&6; }
12751 if test "$hard_links" = no; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12754 need_locks=warn
12755 fi
12756 else
12757 need_locks=no
12758 fi
12759
12760
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12763 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12764
12765 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12766 case $host_os in
12767 aix[4-9]*)
12768 # If we're using GNU nm, then we don't want the "-C" option.
12769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12771 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'
12772 else
12773 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'
12774 fi
12775 ;;
12776 pw32*)
12777 export_symbols_cmds_CXX="$ltdll_cmds"
12778 ;;
12779 cygwin* | mingw* | cegcc*)
12780 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'
12781 ;;
12782 linux* | k*bsd*-gnu)
12783 link_all_deplibs_CXX=no
12784 ;;
12785 *)
12786 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12787 ;;
12788 esac
12789 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12792 $as_echo "$ld_shlibs_CXX" >&6; }
12793 test "$ld_shlibs_CXX" = no && can_build_shared=no
12794
12795 with_gnu_ld_CXX=$with_gnu_ld
12796
12797
12798
12799
12800
12801
12802 #
12803 # Do we need to explicitly link libc?
12804 #
12805 case "x$archive_cmds_need_lc_CXX" in
12806 x|xyes)
12807 # Assume -lc should be added
12808 archive_cmds_need_lc_CXX=yes
12809
12810 if test "$enable_shared" = yes && test "$GCC" = yes; then
12811 case $archive_cmds_CXX in
12812 *'~'*)
12813 # FIXME: we may have to deal with multi-command sequences.
12814 ;;
12815 '$CC '*)
12816 # Test whether the compiler implicitly links with -lc since on some
12817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12818 # to ld, don't add -lc before -lgcc.
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12820 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12821 $RM conftest*
12822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12823
12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825 (eval $ac_compile) 2>&5
12826 ac_status=$?
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; } 2>conftest.err; then
12829 soname=conftest
12830 lib=conftest
12831 libobjs=conftest.$ac_objext
12832 deplibs=
12833 wl=$lt_prog_compiler_wl_CXX
12834 pic_flag=$lt_prog_compiler_pic_CXX
12835 compiler_flags=-v
12836 linker_flags=-v
12837 verstring=
12838 output_objdir=.
12839 libname=conftest
12840 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12841 allow_undefined_flag_CXX=
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12843 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12844 ac_status=$?
12845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; }
12847 then
12848 archive_cmds_need_lc_CXX=no
12849 else
12850 archive_cmds_need_lc_CXX=yes
12851 fi
12852 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12853 else
12854 cat conftest.err 1>&5
12855 fi
12856 $RM conftest*
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12858 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12859 ;;
12860 esac
12861 fi
12862 ;;
12863 esac
12864
12865
12866
12867
12868
12869
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12930
12931 library_names_spec=
12932 libname_spec='lib$name'
12933 soname_spec=
12934 shrext_cmds=".so"
12935 postinstall_cmds=
12936 postuninstall_cmds=
12937 finish_cmds=
12938 finish_eval=
12939 shlibpath_var=
12940 shlibpath_overrides_runpath=unknown
12941 version_type=none
12942 dynamic_linker="$host_os ld.so"
12943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12944 need_lib_prefix=unknown
12945 hardcode_into_libs=no
12946
12947 # when you set need_version to no, make sure it does not cause -set_version
12948 # flags to be left without arguments
12949 need_version=unknown
12950
12951 case $host_os in
12952 aix3*)
12953 version_type=linux
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12955 shlibpath_var=LIBPATH
12956
12957 # AIX 3 has no versioning support, so we append a major version to the name.
12958 soname_spec='${libname}${release}${shared_ext}$major'
12959 ;;
12960
12961 aix[4-9]*)
12962 version_type=linux
12963 need_lib_prefix=no
12964 need_version=no
12965 hardcode_into_libs=yes
12966 if test "$host_cpu" = ia64; then
12967 # AIX 5 supports IA64
12968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12969 shlibpath_var=LD_LIBRARY_PATH
12970 else
12971 # With GCC up to 2.95.x, collect2 would create an import file
12972 # for dependence libraries. The import file would start with
12973 # the line `#! .'. This would cause the generated library to
12974 # depend on `.', always an invalid library. This was fixed in
12975 # development snapshots of GCC prior to 3.0.
12976 case $host_os in
12977 aix4 | aix4.[01] | aix4.[01].*)
12978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12979 echo ' yes '
12980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12981 :
12982 else
12983 can_build_shared=no
12984 fi
12985 ;;
12986 esac
12987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12988 # soname into executable. Probably we can add versioning support to
12989 # collect2, so additional links can be useful in future.
12990 if test "$aix_use_runtimelinking" = yes; then
12991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12992 # instead of lib<name>.a to let people know that these are not
12993 # typical AIX shared libraries.
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 else
12996 # We preserve .a as extension for shared libraries through AIX4.2
12997 # and later when we are not doing run time linking.
12998 library_names_spec='${libname}${release}.a $libname.a'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 fi
13001 shlibpath_var=LIBPATH
13002 fi
13003 ;;
13004
13005 amigaos*)
13006 case $host_cpu in
13007 powerpc)
13008 # Since July 2007 AmigaOS4 officially supports .so libraries.
13009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 ;;
13012 m68k)
13013 library_names_spec='$libname.ixlibrary $libname.a'
13014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13015 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'
13016 ;;
13017 esac
13018 ;;
13019
13020 beos*)
13021 library_names_spec='${libname}${shared_ext}'
13022 dynamic_linker="$host_os ld.so"
13023 shlibpath_var=LIBRARY_PATH
13024 ;;
13025
13026 bsdi[45]*)
13027 version_type=linux
13028 need_version=no
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13035 # the default ld.so.conf also contains /usr/contrib/lib and
13036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13037 # libtool to hard-code these into programs
13038 ;;
13039
13040 cygwin* | mingw* | pw32* | cegcc*)
13041 version_type=windows
13042 shrext_cmds=".dll"
13043 need_version=no
13044 need_lib_prefix=no
13045
13046 case $GCC,$host_os in
13047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13048 library_names_spec='$libname.dll.a'
13049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13050 postinstall_cmds='base_file=`basename \${file}`~
13051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13052 dldir=$destdir/`dirname \$dlpath`~
13053 test -d \$dldir || mkdir -p \$dldir~
13054 $install_prog $dir/$dlname \$dldir/$dlname~
13055 chmod a+x \$dldir/$dlname~
13056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13058 fi'
13059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13060 dlpath=$dir/\$dldll~
13061 $RM \$dlpath'
13062 shlibpath_overrides_runpath=yes
13063
13064 case $host_os in
13065 cygwin*)
13066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13068 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13069 ;;
13070 mingw* | cegcc*)
13071 # MinGW DLLs use traditional 'lib' prefix
13072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13073 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13075 # It is most probably a Windows format PATH printed by
13076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13077 # path with ; separators, and with drive letters. We can handle the
13078 # drive letters (cygwin fileutils understands them), so leave them,
13079 # especially as we might pass files found there to a mingw objdump,
13080 # which wouldn't understand a cygwinified path. Ahh.
13081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13082 else
13083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13084 fi
13085 ;;
13086 pw32*)
13087 # pw32 DLLs use 'pw' prefix rather than 'lib'
13088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089 ;;
13090 esac
13091 ;;
13092
13093 *)
13094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13095 ;;
13096 esac
13097 dynamic_linker='Win32 ld.exe'
13098 # FIXME: first we should search . and the directory the executable is in
13099 shlibpath_var=PATH
13100 ;;
13101
13102 darwin* | rhapsody*)
13103 dynamic_linker="$host_os dyld"
13104 version_type=darwin
13105 need_lib_prefix=no
13106 need_version=no
13107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13108 soname_spec='${libname}${release}${major}$shared_ext'
13109 shlibpath_overrides_runpath=yes
13110 shlibpath_var=DYLD_LIBRARY_PATH
13111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13112
13113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13114 ;;
13115
13116 dgux*)
13117 version_type=linux
13118 need_lib_prefix=no
13119 need_version=no
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 ;;
13124
13125 freebsd1*)
13126 dynamic_linker=no
13127 ;;
13128
13129 freebsd* | dragonfly*)
13130 # DragonFly does not have aout. When/if they implement a new
13131 # versioning mechanism, adjust this.
13132 if test -x /usr/bin/objformat; then
13133 objformat=`/usr/bin/objformat`
13134 else
13135 case $host_os in
13136 freebsd[123]*) objformat=aout ;;
13137 *) objformat=elf ;;
13138 esac
13139 fi
13140 version_type=freebsd-$objformat
13141 case $version_type in
13142 freebsd-elf*)
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13144 need_version=no
13145 need_lib_prefix=no
13146 ;;
13147 freebsd-*)
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13149 need_version=yes
13150 ;;
13151 esac
13152 shlibpath_var=LD_LIBRARY_PATH
13153 case $host_os in
13154 freebsd2*)
13155 shlibpath_overrides_runpath=yes
13156 ;;
13157 freebsd3.[01]* | freebsdelf3.[01]*)
13158 shlibpath_overrides_runpath=yes
13159 hardcode_into_libs=yes
13160 ;;
13161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13163 shlibpath_overrides_runpath=no
13164 hardcode_into_libs=yes
13165 ;;
13166 *) # from 4.6 on, and DragonFly
13167 shlibpath_overrides_runpath=yes
13168 hardcode_into_libs=yes
13169 ;;
13170 esac
13171 ;;
13172
13173 gnu*)
13174 version_type=linux
13175 need_lib_prefix=no
13176 need_version=no
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 shlibpath_var=LD_LIBRARY_PATH
13180 hardcode_into_libs=yes
13181 ;;
13182
13183 hpux9* | hpux10* | hpux11*)
13184 # Give a soname corresponding to the major version so that dld.sl refuses to
13185 # link against other versions.
13186 version_type=sunos
13187 need_lib_prefix=no
13188 need_version=no
13189 case $host_cpu in
13190 ia64*)
13191 shrext_cmds='.so'
13192 hardcode_into_libs=yes
13193 dynamic_linker="$host_os dld.so"
13194 shlibpath_var=LD_LIBRARY_PATH
13195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 if test "X$HPUX_IA64_MODE" = X32; then
13199 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13200 else
13201 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13202 fi
13203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13204 ;;
13205 hppa*64*)
13206 shrext_cmds='.sl'
13207 hardcode_into_libs=yes
13208 dynamic_linker="$host_os dld.sl"
13209 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13215 ;;
13216 *)
13217 shrext_cmds='.sl'
13218 dynamic_linker="$host_os dld.sl"
13219 shlibpath_var=SHLIB_PATH
13220 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 ;;
13224 esac
13225 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13226 postinstall_cmds='chmod 555 $lib'
13227 ;;
13228
13229 interix[3-9]*)
13230 version_type=linux
13231 need_lib_prefix=no
13232 need_version=no
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13236 shlibpath_var=LD_LIBRARY_PATH
13237 shlibpath_overrides_runpath=no
13238 hardcode_into_libs=yes
13239 ;;
13240
13241 irix5* | irix6* | nonstopux*)
13242 case $host_os in
13243 nonstopux*) version_type=nonstopux ;;
13244 *)
13245 if test "$lt_cv_prog_gnu_ld" = yes; then
13246 version_type=linux
13247 else
13248 version_type=irix
13249 fi ;;
13250 esac
13251 need_lib_prefix=no
13252 need_version=no
13253 soname_spec='${libname}${release}${shared_ext}$major'
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13255 case $host_os in
13256 irix5* | nonstopux*)
13257 libsuff= shlibsuff=
13258 ;;
13259 *)
13260 case $LD in # libtool.m4 will add one of these switches to LD
13261 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13262 libsuff= shlibsuff= libmagic=32-bit;;
13263 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13264 libsuff=32 shlibsuff=N32 libmagic=N32;;
13265 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13266 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13267 *) libsuff= shlibsuff= libmagic=never-match;;
13268 esac
13269 ;;
13270 esac
13271 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13272 shlibpath_overrides_runpath=no
13273 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13274 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13275 hardcode_into_libs=yes
13276 ;;
13277
13278 # No shared lib support for Linux oldld, aout, or coff.
13279 linux*oldld* | linux*aout* | linux*coff*)
13280 dynamic_linker=no
13281 ;;
13282
13283 # This must be Linux ELF.
13284 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13285 version_type=linux
13286 need_lib_prefix=no
13287 need_version=no
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13289 soname_spec='${libname}${release}${shared_ext}$major'
13290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 # Some binutils ld are patched to set DT_RUNPATH
13294 save_LDFLAGS=$LDFLAGS
13295 save_libdir=$libdir
13296 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13297 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 int
13302 main ()
13303 {
13304
13305 ;
13306 return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_cxx_try_link "$LINENO"; then :
13310 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13311 shlibpath_overrides_runpath=yes
13312 fi
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 LDFLAGS=$save_LDFLAGS
13317 libdir=$save_libdir
13318
13319 # This implies no fast_install, which is unacceptable.
13320 # Some rework will be needed to allow for fast_install
13321 # before this can be enabled.
13322 hardcode_into_libs=yes
13323
13324 # Append ld.so.conf contents to the search path
13325 if test -f /etc/ld.so.conf; then
13326 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' ' '`
13327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13328 fi
13329
13330 # We used to test for /lib/ld.so.1 and disable shared libraries on
13331 # powerpc, because MkLinux only supported shared libraries with the
13332 # GNU dynamic linker. Since this was broken with cross compilers,
13333 # most powerpc-linux boxes support dynamic linking these days and
13334 # people can always --disable-shared, the test was removed, and we
13335 # assume the GNU/Linux dynamic linker is in use.
13336 dynamic_linker='GNU/Linux ld.so'
13337 ;;
13338
13339 netbsdelf*-gnu)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=no
13347 hardcode_into_libs=yes
13348 dynamic_linker='NetBSD ld.elf_so'
13349 ;;
13350
13351 netbsd*)
13352 version_type=sunos
13353 need_lib_prefix=no
13354 need_version=no
13355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358 dynamic_linker='NetBSD (a.out) ld.so'
13359 else
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 dynamic_linker='NetBSD ld.elf_so'
13363 fi
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13366 hardcode_into_libs=yes
13367 ;;
13368
13369 newsos6)
13370 version_type=linux
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13374 ;;
13375
13376 *nto* | *qnx*)
13377 version_type=qnx
13378 need_lib_prefix=no
13379 need_version=no
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=no
13384 hardcode_into_libs=yes
13385 dynamic_linker='ldqnx.so'
13386 ;;
13387
13388 openbsd*)
13389 version_type=sunos
13390 sys_lib_dlsearch_path_spec="/usr/lib"
13391 need_lib_prefix=no
13392 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13393 case $host_os in
13394 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13395 *) need_version=no ;;
13396 esac
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13401 case $host_os in
13402 openbsd2.[89] | openbsd2.[89].*)
13403 shlibpath_overrides_runpath=no
13404 ;;
13405 *)
13406 shlibpath_overrides_runpath=yes
13407 ;;
13408 esac
13409 else
13410 shlibpath_overrides_runpath=yes
13411 fi
13412 ;;
13413
13414 os2*)
13415 libname_spec='$name'
13416 shrext_cmds=".dll"
13417 need_lib_prefix=no
13418 library_names_spec='$libname${shared_ext} $libname.a'
13419 dynamic_linker='OS/2 ld.exe'
13420 shlibpath_var=LIBPATH
13421 ;;
13422
13423 osf3* | osf4* | osf5*)
13424 version_type=osf
13425 need_lib_prefix=no
13426 need_version=no
13427 soname_spec='${libname}${release}${shared_ext}$major'
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13431 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13432 ;;
13433
13434 rdos*)
13435 dynamic_linker=no
13436 ;;
13437
13438 solaris*)
13439 version_type=linux
13440 need_lib_prefix=no
13441 need_version=no
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 shlibpath_overrides_runpath=yes
13446 hardcode_into_libs=yes
13447 # ldd complains unless libraries are executable
13448 postinstall_cmds='chmod +x $lib'
13449 ;;
13450
13451 sunos4*)
13452 version_type=sunos
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 if test "$with_gnu_ld" = yes; then
13458 need_lib_prefix=no
13459 fi
13460 need_version=yes
13461 ;;
13462
13463 sysv4 | sysv4.3*)
13464 version_type=linux
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 case $host_vendor in
13469 sni)
13470 shlibpath_overrides_runpath=no
13471 need_lib_prefix=no
13472 runpath_var=LD_RUN_PATH
13473 ;;
13474 siemens)
13475 need_lib_prefix=no
13476 ;;
13477 motorola)
13478 need_lib_prefix=no
13479 need_version=no
13480 shlibpath_overrides_runpath=no
13481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13482 ;;
13483 esac
13484 ;;
13485
13486 sysv4*MP*)
13487 if test -d /usr/nec ;then
13488 version_type=linux
13489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13490 soname_spec='$libname${shared_ext}.$major'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 fi
13493 ;;
13494
13495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13496 version_type=freebsd-elf
13497 need_lib_prefix=no
13498 need_version=no
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=yes
13503 hardcode_into_libs=yes
13504 if test "$with_gnu_ld" = yes; then
13505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13506 else
13507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13508 case $host_os in
13509 sco3.2v5*)
13510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13511 ;;
13512 esac
13513 fi
13514 sys_lib_dlsearch_path_spec='/usr/lib'
13515 ;;
13516
13517 tpf*)
13518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13519 version_type=linux
13520 need_lib_prefix=no
13521 need_version=no
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=no
13525 hardcode_into_libs=yes
13526 ;;
13527
13528 uts4*)
13529 version_type=linux
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531 soname_spec='${libname}${release}${shared_ext}$major'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 ;;
13534
13535 *)
13536 dynamic_linker=no
13537 ;;
13538 esac
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13540 $as_echo "$dynamic_linker" >&6; }
13541 test "$dynamic_linker" = no && can_build_shared=no
13542
13543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13544 if test "$GCC" = yes; then
13545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13546 fi
13547
13548 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13549 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13550 fi
13551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13552 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13553 fi
13554
13555
13556
13557
13558
13559
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13591 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13592 hardcode_action_CXX=
13593 if test -n "$hardcode_libdir_flag_spec_CXX" ||
13594 test -n "$runpath_var_CXX" ||
13595 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13596
13597 # We can hardcode non-existent directories.
13598 if test "$hardcode_direct_CXX" != no &&
13599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13600 # have to relink, otherwise we might link with an installed library
13601 # when we should be linking with a yet-to-be-installed one
13602 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13603 test "$hardcode_minus_L_CXX" != no; then
13604 # Linking always hardcodes the temporary library directory.
13605 hardcode_action_CXX=relink
13606 else
13607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13608 hardcode_action_CXX=immediate
13609 fi
13610 else
13611 # We cannot hardcode anything, or else we can only hardcode existing
13612 # directories.
13613 hardcode_action_CXX=unsupported
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13616 $as_echo "$hardcode_action_CXX" >&6; }
13617
13618 if test "$hardcode_action_CXX" = relink ||
13619 test "$inherit_rpath_CXX" = yes; then
13620 # Fast installation is not supported
13621 enable_fast_install=no
13622 elif test "$shlibpath_overrides_runpath" = yes ||
13623 test "$enable_shared" = no; then
13624 # Fast installation is not necessary
13625 enable_fast_install=needless
13626 fi
13627
13628
13629
13630
13631
13632
13633
13634 fi # test -n "$compiler"
13635
13636 CC=$lt_save_CC
13637 LDCXX=$LD
13638 LD=$lt_save_LD
13639 GCC=$lt_save_GCC
13640 with_gnu_ld=$lt_save_with_gnu_ld
13641 lt_cv_path_LDCXX=$lt_cv_path_LD
13642 lt_cv_path_LD=$lt_save_path_LD
13643 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13644 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13645 fi # test "$_lt_caught_CXX_error" != yes
13646
13647 ac_ext=c
13648 ac_cpp='$CPP $CPPFLAGS'
13649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13652
13653
13654 ac_ext=cpp
13655 ac_cpp='$CXXCPP $CPPFLAGS'
13656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13659
13660 for ac_prog in 'bison -y' byacc
13661 do
13662 # Extract the first word of "$ac_prog", so it can be a program name with args.
13663 set dummy $ac_prog; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if test "${ac_cv_prog_YACC+set}" = set; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 if test -n "$YACC"; then
13670 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13671 else
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13674 do
13675 IFS=$as_save_IFS
13676 test -z "$as_dir" && as_dir=.
13677 for ac_exec_ext in '' $ac_executable_extensions; do
13678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13679 ac_cv_prog_YACC="$ac_prog"
13680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681 break 2
13682 fi
13683 done
13684 done
13685 IFS=$as_save_IFS
13686
13687 fi
13688 fi
13689 YACC=$ac_cv_prog_YACC
13690 if test -n "$YACC"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13692 $as_echo "$YACC" >&6; }
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 fi
13697
13698
13699 test -n "$YACC" && break
13700 done
13701 test -n "$YACC" || YACC="yacc"
13702
13703
13704
13705
13706
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13708 $as_echo_n "checking if bison is the parser generator... " >&6; }
13709 if test "${ax_cv_prog_bison+set}" = set; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712
13713 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
13714
13715 ax_cv_prog_bison=yes
13716
13717 else
13718
13719 ax_cv_prog_bison=no
13720
13721 fi
13722
13723 fi
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13725 $as_echo "$ax_cv_prog_bison" >&6; }
13726 if test "$ax_cv_prog_bison" = yes; then :
13727
13728 :
13729
13730 BISON=`echo $YACC | $SED -e 's/ -y//'`
13731 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
13732
13733
13734 else
13735
13736 :
13737 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
13738
13739 fi
13740
13741 for ac_prog in gawk mawk nawk awk
13742 do
13743 # Extract the first word of "$ac_prog", so it can be a program name with args.
13744 set dummy $ac_prog; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if test "${ac_cv_prog_AWK+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$AWK"; then
13751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13755 do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_AWK="$ac_prog"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764 done
13765 done
13766 IFS=$as_save_IFS
13767
13768 fi
13769 fi
13770 AWK=$ac_cv_prog_AWK
13771 if test -n "$AWK"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13773 $as_echo "$AWK" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13777 fi
13778
13779
13780 test -n "$AWK" && break
13781 done
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
13784 $as_echo_n "checking if bison is >= 2.4... " >&6; }
13785 as_arg_v1=$BISON_VERSION
13786 as_arg_v2=2.4
13787 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13788 case $? in #(
13789 1) :
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
13794 ;; #(
13795 0) :
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797 $as_echo "yes" >&6; } ;; #(
13798 2) :
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; } ;; #(
13801 *) :
13802 ;;
13803 esac
13804
13805 # expand $ac_aux_dir to an absolute path
13806 am_aux_dir=`cd $ac_aux_dir && pwd`
13807
13808 if test x"${MISSING+set}" != xset; then
13809 case $am_aux_dir in
13810 *\ * | *\ *)
13811 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13812 *)
13813 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13814 esac
13815 fi
13816 # Use eval to expand $SHELL
13817 if eval "$MISSING --run true"; then
13818 am_missing_run="$MISSING --run "
13819 else
13820 am_missing_run=
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13822 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13823 fi
13824
13825 for ac_prog in flex lex
13826 do
13827 # Extract the first word of "$ac_prog", so it can be a program name with args.
13828 set dummy $ac_prog; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if test "${ac_cv_prog_LEX+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 if test -n "$LEX"; then
13835 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13836 else
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13844 ac_cv_prog_LEX="$ac_prog"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi
13853 fi
13854 LEX=$ac_cv_prog_LEX
13855 if test -n "$LEX"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13857 $as_echo "$LEX" >&6; }
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13861 fi
13862
13863
13864 test -n "$LEX" && break
13865 done
13866 test -n "$LEX" || LEX=":"
13867
13868 if test "x$LEX" != "x:"; then
13869 cat >conftest.l <<_ACEOF
13870 %%
13871 a { ECHO; }
13872 b { REJECT; }
13873 c { yymore (); }
13874 d { yyless (1); }
13875 e { yyless (input () != 0); }
13876 f { unput (yytext[0]); }
13877 . { BEGIN INITIAL; }
13878 %%
13879 #ifdef YYTEXT_POINTER
13880 extern char *yytext;
13881 #endif
13882 int
13883 main (void)
13884 {
13885 return ! yylex () + ! yywrap ();
13886 }
13887 _ACEOF
13888 { { ac_try="$LEX conftest.l"
13889 case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892 esac
13893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13894 $as_echo "$ac_try_echo"; } >&5
13895 (eval "$LEX conftest.l") 2>&5
13896 ac_status=$?
13897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898 test $ac_status = 0; }
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13900 $as_echo_n "checking lex output file root... " >&6; }
13901 if test "${ac_cv_prog_lex_root+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904
13905 if test -f lex.yy.c; then
13906 ac_cv_prog_lex_root=lex.yy
13907 elif test -f lexyy.c; then
13908 ac_cv_prog_lex_root=lexyy
13909 else
13910 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13911 fi
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13914 $as_echo "$ac_cv_prog_lex_root" >&6; }
13915 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13916
13917 if test -z "${LEXLIB+set}"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13919 $as_echo_n "checking lex library... " >&6; }
13920 if test "${ac_cv_lib_lex+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923
13924 ac_save_LIBS=$LIBS
13925 ac_cv_lib_lex='none needed'
13926 for ac_lib in '' -lfl -ll; do
13927 LIBS="$ac_lib $ac_save_LIBS"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 `cat $LEX_OUTPUT_ROOT.c`
13931 _ACEOF
13932 if ac_fn_cxx_try_link "$LINENO"; then :
13933 ac_cv_lib_lex=$ac_lib
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 test "$ac_cv_lib_lex" != 'none needed' && break
13938 done
13939 LIBS=$ac_save_LIBS
13940
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13943 $as_echo "$ac_cv_lib_lex" >&6; }
13944 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13945 fi
13946
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13949 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13950 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 # POSIX says lex can declare yytext either as a pointer or an array; the
13954 # default is implementation-dependent. Figure out which it is, since
13955 # not all implementations provide the %pointer and %array declarations.
13956 ac_cv_prog_lex_yytext_pointer=no
13957 ac_save_LIBS=$LIBS
13958 LIBS="$LEXLIB $ac_save_LIBS"
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 #define YYTEXT_POINTER 1
13962 `cat $LEX_OUTPUT_ROOT.c`
13963 _ACEOF
13964 if ac_fn_cxx_try_link "$LINENO"; then :
13965 ac_cv_prog_lex_yytext_pointer=yes
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_save_LIBS
13970
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13973 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13974 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13975
13976 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13977
13978 fi
13979 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13980
13981 fi
13982 if test "$LEX" = :; then
13983 LEX=${am_missing_run}flex
13984 fi
13985
13986
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
13990 $as_echo_n "checking if flex is the lexer generator... " >&6; }
13991 if test "${ax_cv_prog_flex+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994
13995 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
13996
13997 ax_cv_prog_flex=yes
13998
13999 else
14000
14001 ax_cv_prog_flex=no
14002
14003 fi
14004
14005 fi
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
14007 $as_echo "$ax_cv_prog_flex" >&6; }
14008 if test "$ax_cv_prog_flex" = yes; then :
14009
14010 :
14011
14012 FLEX=$LEX
14013 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14014
14015
14016 else
14017
14018 :
14019 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14020
14021 fi
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
14024 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
14025 as_arg_v1=$FLEX_VERSION
14026 as_arg_v2=2.5.33
14027 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14028 case $? in #(
14029 1) :
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14034 ;; #(
14035 0) :
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; } ;; #(
14038 2) :
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14040 $as_echo "yes" >&6; } ;; #(
14041 *) :
14042 ;;
14043 esac
14044
14045 for ac_prog in bash
14046 do
14047 # Extract the first word of "$ac_prog", so it can be a program name with args.
14048 set dummy $ac_prog; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if test "${ac_cv_prog__BASH+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 if test -n "$_BASH"; then
14055 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14056 else
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14059 do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog__BASH="$ac_prog"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14067 fi
14068 done
14069 done
14070 IFS=$as_save_IFS
14071
14072 fi
14073 fi
14074 _BASH=$ac_cv_prog__BASH
14075 if test -n "$_BASH"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14077 $as_echo "$_BASH" >&6; }
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14081 fi
14082
14083
14084 test -n "$_BASH" && break
14085 done
14086
14087 for ac_prog in gperf
14088 do
14089 # Extract the first word of "$ac_prog", so it can be a program name with args.
14090 set dummy $ac_prog; ac_word=$2
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14092 $as_echo_n "checking for $ac_word... " >&6; }
14093 if test "${ac_cv_prog_GPERF+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 if test -n "$GPERF"; then
14097 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14098 else
14099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14101 do
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14106 ac_cv_prog_GPERF="$ac_prog"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14109 fi
14110 done
14111 done
14112 IFS=$as_save_IFS
14113
14114 fi
14115 fi
14116 GPERF=$ac_cv_prog_GPERF
14117 if test -n "$GPERF"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14119 $as_echo "$GPERF" >&6; }
14120 else
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122 $as_echo "no" >&6; }
14123 fi
14124
14125
14126 test -n "$GPERF" && break
14127 done
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14130 $as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14131 GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14132 as_arg_v1=$GPERF_VERSION
14133 as_arg_v2=3.0.3
14134 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14135 case $? in #(
14136 1) :
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14140 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14141 ;; #(
14142 0) :
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14144 $as_echo "yes" >&6; } ;; #(
14145 2) :
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14147 $as_echo "yes" >&6; } ;; #(
14148 *) :
14149 ;;
14150 esac
14151 for ac_prog in time
14152 do
14153 # Extract the first word of "$ac_prog", so it can be a program name with args.
14154 set dummy $ac_prog; ac_word=$2
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_prog_TIME+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 if test -n "$TIME"; then
14161 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166 IFS=$as_save_IFS
14167 test -z "$as_dir" && as_dir=.
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14170 ac_cv_prog_TIME="$ac_prog"
14171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14172 break 2
14173 fi
14174 done
14175 done
14176 IFS=$as_save_IFS
14177
14178 fi
14179 fi
14180 TIME=$ac_cv_prog_TIME
14181 if test -n "$TIME"; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14183 $as_echo "$TIME" >&6; }
14184 else
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187 fi
14188
14189
14190 test -n "$TIME" && break
14191 done
14192
14193
14194 apr_found="no"
14195
14196 if test "$target_os" = "os2-emx"; then
14197 # Scripts don't pass test -x on OS/2
14198 TEST_X="test -f"
14199 else
14200 TEST_X="test -x"
14201 fi
14202
14203 acceptable_majors="1"
14204
14205 apr_temp_acceptable_apr_config=""
14206 for apr_temp_major in $acceptable_majors
14207 do
14208 case $apr_temp_major in
14209 0)
14210 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14211 ;;
14212 *)
14213 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14214 ;;
14215 esac
14216 done
14217
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14219 $as_echo_n "checking for APR... " >&6; }
14220
14221 # Check whether --with-apr was given.
14222 if test "${with_apr+set}" = set; then :
14223 withval=$with_apr;
14224 if test "$withval" = "no" || test "$withval" = "yes"; then
14225 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14226 fi
14227
14228 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14229 do
14230 for lookdir in "$withval/bin" "$withval"
14231 do
14232 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14233 apr_config="$lookdir/$apr_temp_apr_config_file"
14234
14235 apr_found="yes"
14236 break 2
14237 fi
14238 done
14239 done
14240
14241 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14242 apr_config="$withval"
14243 apr_found="yes"
14244 fi
14245
14246 if test "$apr_found" != "yes"; then
14247 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
14248 fi
14249
14250 else
14251
14252 if test -n "1" && test "1" = "1"; then
14253 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14254 do
14255 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14256 apr_config="$apr_temp_apr_config_file"
14257
14258 apr_found="yes"
14259 break
14260 else
14261 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14262 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14263 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14264
14265 apr_found="yes"
14266 break 2
14267 fi
14268 done
14269 fi
14270 done
14271 fi
14272 if test "$apr_found" = "no" && test -d ""; then
14273 apr_temp_abs_srcdir="`cd && pwd`"
14274 apr_found="reconfig"
14275 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14276 case $apr_bundled_major in
14277 "")
14278 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14279 ;;
14280 0)
14281 apr_temp_apr_config_file="apr-config"
14282 ;;
14283 *)
14284 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14285 ;;
14286 esac
14287 if test -n ""; then
14288 apr_config="/$apr_temp_apr_config_file"
14289 else
14290 apr_config="/$apr_temp_apr_config_file"
14291 fi
14292 fi
14293
14294 fi
14295
14296
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14298 $as_echo "$apr_found" >&6; }
14299
14300 case $apr_found in #(
14301 yes) :
14302
14303
14304 for element in `$apr_config --includes`; do
14305 haveit=
14306 for x in $CPPFLAGS; do
14307
14308 acl_save_prefix="$prefix"
14309 prefix="$acl_final_prefix"
14310 acl_save_exec_prefix="$exec_prefix"
14311 exec_prefix="$acl_final_exec_prefix"
14312 eval x=\"$x\"
14313 exec_prefix="$acl_save_exec_prefix"
14314 prefix="$acl_save_prefix"
14315
14316 if test "X$x" = "X$element"; then
14317 haveit=yes
14318 break
14319 fi
14320 done
14321 if test -z "$haveit"; then
14322 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14323 fi
14324 done
14325
14326 LTLIBAPR=`$apr_config --link-libtool`
14327
14328 ;; #(
14329 *) :
14330 as_fn_error "You need apr" "$LINENO" 5 ;;
14331 esac
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14335 $as_echo_n "checking for a readline compatible library... " >&6; }
14336 if test "${vl_cv_lib_readline+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339
14340 ORIG_LIBS="$LIBS"
14341 for readline_lib in readline edit editline; do
14342 for termcap_lib in "" termcap curses ncurses; do
14343 if test -z "$termcap_lib"; then
14344 TRY_LIB="-l$readline_lib"
14345 else
14346 TRY_LIB="-l$readline_lib -l$termcap_lib"
14347 fi
14348 LIBS="$ORIG_LIBS $TRY_LIB"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char readline ();
14359 int
14360 main ()
14361 {
14362 return readline ();
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_cxx_try_link "$LINENO"; then :
14368 vl_cv_lib_readline="$TRY_LIB"
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 if test -n "$vl_cv_lib_readline"; then
14373 break
14374 fi
14375 done
14376 if test -n "$vl_cv_lib_readline"; then
14377 break
14378 fi
14379 done
14380 if test -z "$vl_cv_lib_readline"; then
14381 vl_cv_lib_readline="no"
14382 LIBS="$ORIG_LIBS"
14383 fi
14384
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14387 $as_echo "$vl_cv_lib_readline" >&6; }
14388
14389 if test "$vl_cv_lib_readline" != "no"; then
14390
14391 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14392
14393 for ac_header in readline.h readline/readline.h
14394 do :
14395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14396 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14397 eval as_val=\$$as_ac_Header
14398 if test "x$as_val" = x""yes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404
14405 done
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14408 $as_echo_n "checking whether readline supports history... " >&6; }
14409 if test "${vl_cv_lib_readline_history+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412
14413 vl_cv_lib_readline_history="no"
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14420 #ifdef __cplusplus
14421 extern "C"
14422 #endif
14423 char add_history ();
14424 int
14425 main ()
14426 {
14427 return add_history ();
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_cxx_try_link "$LINENO"; then :
14433 vl_cv_lib_readline_history="yes"
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437
14438 fi
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14440 $as_echo "$vl_cv_lib_readline_history" >&6; }
14441 if test "$vl_cv_lib_readline_history" = "yes"; then
14442
14443 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14444
14445 for ac_header in history.h readline/history.h
14446 do :
14447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14448 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14449 eval as_val=\$$as_ac_Header
14450 if test "x$as_val" = x""yes; then :
14451 cat >>confdefs.h <<_ACEOF
14452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14453 _ACEOF
14454
14455 fi
14456
14457 done
14458
14459 fi
14460 fi
14461
14462 # Find a good install program. We prefer a C program (faster),
14463 # so one script is as good as another. But avoid the broken or
14464 # incompatible versions:
14465 # SysV /etc/install, /usr/sbin/install
14466 # SunOS /usr/etc/install
14467 # IRIX /sbin/install
14468 # AIX /bin/install
14469 # AmigaOS /C/install, which installs bootblocks on floppy discs
14470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14473 # OS/2's system install, which has a completely different semantic
14474 # ./install, which can be erroneously created by make from ./install.sh.
14475 # Reject install programs that cannot install multiple files.
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14477 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14478 if test -z "$INSTALL"; then
14479 if test "${ac_cv_path_install+set}" = set; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14484 do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 # Account for people who put trailing slashes in PATH elements.
14488 case $as_dir/ in #((
14489 ./ | .// | /[cC]/* | \
14490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14491 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14492 /usr/ucb/* ) ;;
14493 *)
14494 # OSF1 and SCO ODT 3.0 have their own names for install.
14495 # Don't use installbsd from OSF since it installs stuff as root
14496 # by default.
14497 for ac_prog in ginstall scoinst install; do
14498 for ac_exec_ext in '' $ac_executable_extensions; do
14499 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14500 if test $ac_prog = install &&
14501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14502 # AIX install. It has an incompatible calling convention.
14503 :
14504 elif test $ac_prog = install &&
14505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14506 # program-specific install script used by HP pwplus--don't use.
14507 :
14508 else
14509 rm -rf conftest.one conftest.two conftest.dir
14510 echo one > conftest.one
14511 echo two > conftest.two
14512 mkdir conftest.dir
14513 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14514 test -s conftest.one && test -s conftest.two &&
14515 test -s conftest.dir/conftest.one &&
14516 test -s conftest.dir/conftest.two
14517 then
14518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14519 break 3
14520 fi
14521 fi
14522 fi
14523 done
14524 done
14525 ;;
14526 esac
14527
14528 done
14529 IFS=$as_save_IFS
14530
14531 rm -rf conftest.one conftest.two conftest.dir
14532
14533 fi
14534 if test "${ac_cv_path_install+set}" = set; then
14535 INSTALL=$ac_cv_path_install
14536 else
14537 # As a last resort, use the slow shell script. Don't cache a
14538 # value for INSTALL within a source directory, because that will
14539 # break other packages using the cache if that directory is
14540 # removed, or if the value is a relative name.
14541 INSTALL=$ac_install_sh
14542 fi
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14545 $as_echo "$INSTALL" >&6; }
14546
14547 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14548 # It thinks the first close brace ends the variable substitution.
14549 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14550
14551 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14552
14553 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14554
14555
14556 if test "X$prefix" = "XNONE"; then
14557 acl_final_prefix="$ac_default_prefix"
14558 else
14559 acl_final_prefix="$prefix"
14560 fi
14561 if test "X$exec_prefix" = "XNONE"; then
14562 acl_final_exec_prefix='${prefix}'
14563 else
14564 acl_final_exec_prefix="$exec_prefix"
14565 fi
14566 acl_save_prefix="$prefix"
14567 prefix="$acl_final_prefix"
14568 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14569 prefix="$acl_save_prefix"
14570
14571
14572 # Check whether --with-gnu-ld was given.
14573 if test "${with_gnu_ld+set}" = set; then :
14574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14575 else
14576 with_gnu_ld=no
14577 fi
14578
14579 # Prepare PATH_SEPARATOR.
14580 # The user is always right.
14581 if test "${PATH_SEPARATOR+set}" != set; then
14582 echo "#! /bin/sh" >conf$$.sh
14583 echo "exit 0" >>conf$$.sh
14584 chmod +x conf$$.sh
14585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14586 PATH_SEPARATOR=';'
14587 else
14588 PATH_SEPARATOR=:
14589 fi
14590 rm -f conf$$.sh
14591 fi
14592 ac_prog=ld
14593 if test "$GCC" = yes; then
14594 # Check if gcc -print-prog-name=ld gives a path.
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14596 $as_echo_n "checking for ld used by GCC... " >&6; }
14597 case $host in
14598 *-*-mingw*)
14599 # gcc leaves a trailing carriage return which upsets mingw
14600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14601 *)
14602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14603 esac
14604 case $ac_prog in
14605 # Accept absolute paths.
14606 [\\/]* | [A-Za-z]:[\\/]*)
14607 re_direlt='/[^/][^/]*/\.\./'
14608 # Canonicalize the path of ld
14609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14612 done
14613 test -z "$LD" && LD="$ac_prog"
14614 ;;
14615 "")
14616 # If it fails, then pretend we aren't using GCC.
14617 ac_prog=ld
14618 ;;
14619 *)
14620 # If it is relative, then search for the first ld in PATH.
14621 with_gnu_ld=unknown
14622 ;;
14623 esac
14624 elif test "$with_gnu_ld" = yes; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14626 $as_echo_n "checking for GNU ld... " >&6; }
14627 else
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14629 $as_echo_n "checking for non-GNU ld... " >&6; }
14630 fi
14631 if test "${acl_cv_path_LD+set}" = set; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 if test -z "$LD"; then
14635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14636 for ac_dir in $PATH; do
14637 test -z "$ac_dir" && ac_dir=.
14638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14639 acl_cv_path_LD="$ac_dir/$ac_prog"
14640 # Check to see if the program is GNU ld. I'd rather use --version,
14641 # but apparently some GNU ld's only accept -v.
14642 # Break only if it was the GNU/non-GNU ld that we prefer.
14643 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14644 *GNU* | *'with BFD'*)
14645 test "$with_gnu_ld" != no && break ;;
14646 *)
14647 test "$with_gnu_ld" != yes && break ;;
14648 esac
14649 fi
14650 done
14651 IFS="$ac_save_ifs"
14652 else
14653 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14654 fi
14655 fi
14656
14657 LD="$acl_cv_path_LD"
14658 if test -n "$LD"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14660 $as_echo "$LD" >&6; }
14661 else
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14664 fi
14665 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14668 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14672 case `$LD -v 2>&1 </dev/null` in
14673 *GNU* | *'with BFD'*)
14674 acl_cv_prog_gnu_ld=yes ;;
14675 *)
14676 acl_cv_prog_gnu_ld=no ;;
14677 esac
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14680 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14681 with_gnu_ld=$acl_cv_prog_gnu_ld
14682
14683
14684
14685
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14687 $as_echo_n "checking for shared library run path origin... " >&6; }
14688 if test "${acl_cv_rpath+set}" = set; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691
14692 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14693 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14694 . ./conftest.sh
14695 rm -f ./conftest.sh
14696 acl_cv_rpath=done
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14700 $as_echo "$acl_cv_rpath" >&6; }
14701 wl="$acl_cv_wl"
14702 acl_libext="$acl_cv_libext"
14703 acl_shlibext="$acl_cv_shlibext"
14704 acl_libname_spec="$acl_cv_libname_spec"
14705 acl_library_names_spec="$acl_cv_library_names_spec"
14706 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14707 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14708 acl_hardcode_direct="$acl_cv_hardcode_direct"
14709 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14710 # Check whether --enable-rpath was given.
14711 if test "${enable_rpath+set}" = set; then :
14712 enableval=$enable_rpath; :
14713 else
14714 enable_rpath=yes
14715 fi
14716
14717
14718
14719 acl_libdirstem=lib
14720 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14721 if test -n "$searchpath"; then
14722 acl_save_IFS="${IFS= }"; IFS=":"
14723 for searchdir in $searchpath; do
14724 if test -d "$searchdir"; then
14725 case "$searchdir" in
14726 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14727 *) searchdir=`cd "$searchdir" && pwd`
14728 case "$searchdir" in
14729 */lib64 ) acl_libdirstem=lib64 ;;
14730 esac ;;
14731 esac
14732 fi
14733 done
14734 IFS="$acl_save_IFS"
14735 fi
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 use_additional=yes
14746
14747 acl_save_prefix="$prefix"
14748 prefix="$acl_final_prefix"
14749 acl_save_exec_prefix="$exec_prefix"
14750 exec_prefix="$acl_final_exec_prefix"
14751
14752 eval additional_includedir=\"$includedir\"
14753 eval additional_libdir=\"$libdir\"
14754
14755 exec_prefix="$acl_save_exec_prefix"
14756 prefix="$acl_save_prefix"
14757
14758
14759 # Check whether --with-libiconv-prefix was given.
14760 if test "${with_libiconv_prefix+set}" = set; then :
14761 withval=$with_libiconv_prefix;
14762 if test "X$withval" = "Xno"; then
14763 use_additional=no
14764 else
14765 if test "X$withval" = "X"; then
14766
14767 acl_save_prefix="$prefix"
14768 prefix="$acl_final_prefix"
14769 acl_save_exec_prefix="$exec_prefix"
14770 exec_prefix="$acl_final_exec_prefix"
14771
14772 eval additional_includedir=\"$includedir\"
14773 eval additional_libdir=\"$libdir\"
14774
14775 exec_prefix="$acl_save_exec_prefix"
14776 prefix="$acl_save_prefix"
14777
14778 else
14779 additional_includedir="$withval/include"
14780 additional_libdir="$withval/$acl_libdirstem"
14781 fi
14782 fi
14783
14784 fi
14785
14786 LIBICONV=
14787 LTLIBICONV=
14788 INCICONV=
14789 LIBICONV_PREFIX=
14790 rpathdirs=
14791 ltrpathdirs=
14792 names_already_handled=
14793 names_next_round='iconv '
14794 while test -n "$names_next_round"; do
14795 names_this_round="$names_next_round"
14796 names_next_round=
14797 for name in $names_this_round; do
14798 already_handled=
14799 for n in $names_already_handled; do
14800 if test "$n" = "$name"; then
14801 already_handled=yes
14802 break
14803 fi
14804 done
14805 if test -z "$already_handled"; then
14806 names_already_handled="$names_already_handled $name"
14807 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14808 eval value=\"\$HAVE_LIB$uppername\"
14809 if test -n "$value"; then
14810 if test "$value" = yes; then
14811 eval value=\"\$LIB$uppername\"
14812 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14813 eval value=\"\$LTLIB$uppername\"
14814 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14815 else
14816 :
14817 fi
14818 else
14819 found_dir=
14820 found_la=
14821 found_so=
14822 found_a=
14823 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14824 if test -n "$acl_shlibext"; then
14825 shrext=".$acl_shlibext" # typically: shrext=.so
14826 else
14827 shrext=
14828 fi
14829 if test $use_additional = yes; then
14830 dir="$additional_libdir"
14831 if test -n "$acl_shlibext"; then
14832 if test -f "$dir/$libname$shrext"; then
14833 found_dir="$dir"
14834 found_so="$dir/$libname$shrext"
14835 else
14836 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14837 ver=`(cd "$dir" && \
14838 for f in "$libname$shrext".*; do echo "$f"; done \
14839 | sed -e "s,^$libname$shrext\\\\.,," \
14840 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14841 | sed 1q ) 2>/dev/null`
14842 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14843 found_dir="$dir"
14844 found_so="$dir/$libname$shrext.$ver"
14845 fi
14846 else
14847 eval library_names=\"$acl_library_names_spec\"
14848 for f in $library_names; do
14849 if test -f "$dir/$f"; then
14850 found_dir="$dir"
14851 found_so="$dir/$f"
14852 break
14853 fi
14854 done
14855 fi
14856 fi
14857 fi
14858 if test "X$found_dir" = "X"; then
14859 if test -f "$dir/$libname.$acl_libext"; then
14860 found_dir="$dir"
14861 found_a="$dir/$libname.$acl_libext"
14862 fi
14863 fi
14864 if test "X$found_dir" != "X"; then
14865 if test -f "$dir/$libname.la"; then
14866 found_la="$dir/$libname.la"
14867 fi
14868 fi
14869 fi
14870 if test "X$found_dir" = "X"; then
14871 for x in $LDFLAGS $LTLIBICONV; do
14872
14873 acl_save_prefix="$prefix"
14874 prefix="$acl_final_prefix"
14875 acl_save_exec_prefix="$exec_prefix"
14876 exec_prefix="$acl_final_exec_prefix"
14877 eval x=\"$x\"
14878 exec_prefix="$acl_save_exec_prefix"
14879 prefix="$acl_save_prefix"
14880
14881 case "$x" in
14882 -L*)
14883 dir=`echo "X$x" | sed -e 's/^X-L//'`
14884 if test -n "$acl_shlibext"; then
14885 if test -f "$dir/$libname$shrext"; then
14886 found_dir="$dir"
14887 found_so="$dir/$libname$shrext"
14888 else
14889 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14890 ver=`(cd "$dir" && \
14891 for f in "$libname$shrext".*; do echo "$f"; done \
14892 | sed -e "s,^$libname$shrext\\\\.,," \
14893 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14894 | sed 1q ) 2>/dev/null`
14895 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14896 found_dir="$dir"
14897 found_so="$dir/$libname$shrext.$ver"
14898 fi
14899 else
14900 eval library_names=\"$acl_library_names_spec\"
14901 for f in $library_names; do
14902 if test -f "$dir/$f"; then
14903 found_dir="$dir"
14904 found_so="$dir/$f"
14905 break
14906 fi
14907 done
14908 fi
14909 fi
14910 fi
14911 if test "X$found_dir" = "X"; then
14912 if test -f "$dir/$libname.$acl_libext"; then
14913 found_dir="$dir"
14914 found_a="$dir/$libname.$acl_libext"
14915 fi
14916 fi
14917 if test "X$found_dir" != "X"; then
14918 if test -f "$dir/$libname.la"; then
14919 found_la="$dir/$libname.la"
14920 fi
14921 fi
14922 ;;
14923 esac
14924 if test "X$found_dir" != "X"; then
14925 break
14926 fi
14927 done
14928 fi
14929 if test "X$found_dir" != "X"; then
14930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14931 if test "X$found_so" != "X"; then
14932 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14934 else
14935 haveit=
14936 for x in $ltrpathdirs; do
14937 if test "X$x" = "X$found_dir"; then
14938 haveit=yes
14939 break
14940 fi
14941 done
14942 if test -z "$haveit"; then
14943 ltrpathdirs="$ltrpathdirs $found_dir"
14944 fi
14945 if test "$acl_hardcode_direct" = yes; then
14946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14947 else
14948 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14950 haveit=
14951 for x in $rpathdirs; do
14952 if test "X$x" = "X$found_dir"; then
14953 haveit=yes
14954 break
14955 fi
14956 done
14957 if test -z "$haveit"; then
14958 rpathdirs="$rpathdirs $found_dir"
14959 fi
14960 else
14961 haveit=
14962 for x in $LDFLAGS $LIBICONV; do
14963
14964 acl_save_prefix="$prefix"
14965 prefix="$acl_final_prefix"
14966 acl_save_exec_prefix="$exec_prefix"
14967 exec_prefix="$acl_final_exec_prefix"
14968 eval x=\"$x\"
14969 exec_prefix="$acl_save_exec_prefix"
14970 prefix="$acl_save_prefix"
14971
14972 if test "X$x" = "X-L$found_dir"; then
14973 haveit=yes
14974 break
14975 fi
14976 done
14977 if test -z "$haveit"; then
14978 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14979 fi
14980 if test "$acl_hardcode_minus_L" != no; then
14981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14982 else
14983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14984 fi
14985 fi
14986 fi
14987 fi
14988 else
14989 if test "X$found_a" != "X"; then
14990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14991 else
14992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14993 fi
14994 fi
14995 additional_includedir=
14996 case "$found_dir" in
14997 */$acl_libdirstem | */$acl_libdirstem/)
14998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14999 LIBICONV_PREFIX="$basedir"
15000 additional_includedir="$basedir/include"
15001 ;;
15002 esac
15003 if test "X$additional_includedir" != "X"; then
15004 if test "X$additional_includedir" != "X/usr/include"; then
15005 haveit=
15006 if test "X$additional_includedir" = "X/usr/local/include"; then
15007 if test -n "$GCC"; then
15008 case $host_os in
15009 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15010 esac
15011 fi
15012 fi
15013 if test -z "$haveit"; then
15014 for x in $CPPFLAGS $INCICONV; do
15015
15016 acl_save_prefix="$prefix"
15017 prefix="$acl_final_prefix"
15018 acl_save_exec_prefix="$exec_prefix"
15019 exec_prefix="$acl_final_exec_prefix"
15020 eval x=\"$x\"
15021 exec_prefix="$acl_save_exec_prefix"
15022 prefix="$acl_save_prefix"
15023
15024 if test "X$x" = "X-I$additional_includedir"; then
15025 haveit=yes
15026 break
15027 fi
15028 done
15029 if test -z "$haveit"; then
15030 if test -d "$additional_includedir"; then
15031 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15032 fi
15033 fi
15034 fi
15035 fi
15036 fi
15037 if test -n "$found_la"; then
15038 save_libdir="$libdir"
15039 case "$found_la" in
15040 */* | *\\*) . "$found_la" ;;
15041 *) . "./$found_la" ;;
15042 esac
15043 libdir="$save_libdir"
15044 for dep in $dependency_libs; do
15045 case "$dep" in
15046 -L*)
15047 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15048 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15049 haveit=
15050 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15051 if test -n "$GCC"; then
15052 case $host_os in
15053 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15054 esac
15055 fi
15056 fi
15057 if test -z "$haveit"; then
15058 haveit=
15059 for x in $LDFLAGS $LIBICONV; do
15060
15061 acl_save_prefix="$prefix"
15062 prefix="$acl_final_prefix"
15063 acl_save_exec_prefix="$exec_prefix"
15064 exec_prefix="$acl_final_exec_prefix"
15065 eval x=\"$x\"
15066 exec_prefix="$acl_save_exec_prefix"
15067 prefix="$acl_save_prefix"
15068
15069 if test "X$x" = "X-L$additional_libdir"; then
15070 haveit=yes
15071 break
15072 fi
15073 done
15074 if test -z "$haveit"; then
15075 if test -d "$additional_libdir"; then
15076 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15077 fi
15078 fi
15079 haveit=
15080 for x in $LDFLAGS $LTLIBICONV; do
15081
15082 acl_save_prefix="$prefix"
15083 prefix="$acl_final_prefix"
15084 acl_save_exec_prefix="$exec_prefix"
15085 exec_prefix="$acl_final_exec_prefix"
15086 eval x=\"$x\"
15087 exec_prefix="$acl_save_exec_prefix"
15088 prefix="$acl_save_prefix"
15089
15090 if test "X$x" = "X-L$additional_libdir"; then
15091 haveit=yes
15092 break
15093 fi
15094 done
15095 if test -z "$haveit"; then
15096 if test -d "$additional_libdir"; then
15097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15098 fi
15099 fi
15100 fi
15101 fi
15102 ;;
15103 -R*)
15104 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15105 if test "$enable_rpath" != no; then
15106 haveit=
15107 for x in $rpathdirs; do
15108 if test "X$x" = "X$dir"; then
15109 haveit=yes
15110 break
15111 fi
15112 done
15113 if test -z "$haveit"; then
15114 rpathdirs="$rpathdirs $dir"
15115 fi
15116 haveit=
15117 for x in $ltrpathdirs; do
15118 if test "X$x" = "X$dir"; then
15119 haveit=yes
15120 break
15121 fi
15122 done
15123 if test -z "$haveit"; then
15124 ltrpathdirs="$ltrpathdirs $dir"
15125 fi
15126 fi
15127 ;;
15128 -l*)
15129 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15130 ;;
15131 *.la)
15132 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15133 ;;
15134 *)
15135 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15137 ;;
15138 esac
15139 done
15140 fi
15141 else
15142 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15144 fi
15145 fi
15146 fi
15147 done
15148 done
15149 if test "X$rpathdirs" != "X"; then
15150 if test -n "$acl_hardcode_libdir_separator"; then
15151 alldirs=
15152 for found_dir in $rpathdirs; do
15153 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15154 done
15155 acl_save_libdir="$libdir"
15156 libdir="$alldirs"
15157 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15158 libdir="$acl_save_libdir"
15159 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15160 else
15161 for found_dir in $rpathdirs; do
15162 acl_save_libdir="$libdir"
15163 libdir="$found_dir"
15164 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15165 libdir="$acl_save_libdir"
15166 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15167 done
15168 fi
15169 fi
15170 if test "X$ltrpathdirs" != "X"; then
15171 for found_dir in $ltrpathdirs; do
15172 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15173 done
15174 fi
15175
15176
15177
15178
15179
15180
15181
15182 am_save_CPPFLAGS="$CPPFLAGS"
15183
15184 for element in $INCICONV; do
15185 haveit=
15186 for x in $CPPFLAGS; do
15187
15188 acl_save_prefix="$prefix"
15189 prefix="$acl_final_prefix"
15190 acl_save_exec_prefix="$exec_prefix"
15191 exec_prefix="$acl_final_exec_prefix"
15192 eval x=\"$x\"
15193 exec_prefix="$acl_save_exec_prefix"
15194 prefix="$acl_save_prefix"
15195
15196 if test "X$x" = "X$element"; then
15197 haveit=yes
15198 break
15199 fi
15200 done
15201 if test -z "$haveit"; then
15202 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15203 fi
15204 done
15205
15206
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15208 $as_echo_n "checking for iconv... " >&6; }
15209 if test "${am_cv_func_iconv+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212
15213 am_cv_func_iconv="no, consider installing GNU libiconv"
15214 am_cv_lib_iconv=no
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #include <stdlib.h>
15218 #include <iconv.h>
15219 int
15220 main ()
15221 {
15222 iconv_t cd = iconv_open("","");
15223 iconv(cd,NULL,NULL,NULL,NULL);
15224 iconv_close(cd);
15225 ;
15226 return 0;
15227 }
15228 _ACEOF
15229 if ac_fn_cxx_try_link "$LINENO"; then :
15230 am_cv_func_iconv=yes
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 if test "$am_cv_func_iconv" != yes; then
15235 am_save_LIBS="$LIBS"
15236 LIBS="$LIBS $LIBICONV"
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <stdlib.h>
15240 #include <iconv.h>
15241 int
15242 main ()
15243 {
15244 iconv_t cd = iconv_open("","");
15245 iconv(cd,NULL,NULL,NULL,NULL);
15246 iconv_close(cd);
15247 ;
15248 return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_cxx_try_link "$LINENO"; then :
15252 am_cv_lib_iconv=yes
15253 am_cv_func_iconv=yes
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LIBS="$am_save_LIBS"
15258 fi
15259
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15262 $as_echo "$am_cv_func_iconv" >&6; }
15263 if test "$am_cv_func_iconv" = yes; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15265 $as_echo_n "checking for working iconv... " >&6; }
15266 if test "${am_cv_func_iconv_works+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269
15270 am_save_LIBS="$LIBS"
15271 if test $am_cv_lib_iconv = yes; then
15272 LIBS="$LIBS $LIBICONV"
15273 fi
15274 if test "$cross_compiling" = yes; then :
15275 case "$host_os" in
15276 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15277 *) am_cv_func_iconv_works="guessing yes" ;;
15278 esac
15279 else
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282
15283 #include <iconv.h>
15284 #include <string.h>
15285 int main ()
15286 {
15287 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15288 returns. */
15289 {
15290 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15291 if (cd_utf8_to_88591 != (iconv_t)(-1))
15292 {
15293 static const char input[] = "\342\202\254"; /* EURO SIGN */
15294 char buf[10];
15295 const char *inptr = input;
15296 size_t inbytesleft = strlen (input);
15297 char *outptr = buf;
15298 size_t outbytesleft = sizeof (buf);
15299 size_t res = iconv (cd_utf8_to_88591,
15300 (char **) &inptr, &inbytesleft,
15301 &outptr, &outbytesleft);
15302 if (res == 0)
15303 return 1;
15304 }
15305 }
15306 #if 0 /* This bug could be worked around by the caller. */
15307 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15308 {
15309 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15310 if (cd_88591_to_utf8 != (iconv_t)(-1))
15311 {
15312 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15313 char buf[50];
15314 const char *inptr = input;
15315 size_t inbytesleft = strlen (input);
15316 char *outptr = buf;
15317 size_t outbytesleft = sizeof (buf);
15318 size_t res = iconv (cd_88591_to_utf8,
15319 (char **) &inptr, &inbytesleft,
15320 &outptr, &outbytesleft);
15321 if ((int)res > 0)
15322 return 1;
15323 }
15324 }
15325 #endif
15326 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15327 provided. */
15328 if (/* Try standardized names. */
15329 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15330 /* Try IRIX, OSF/1 names. */
15331 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15332 /* Try AIX names. */
15333 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15334 /* Try HP-UX names. */
15335 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15336 return 1;
15337 return 0;
15338 }
15339 _ACEOF
15340 if ac_fn_cxx_try_run "$LINENO"; then :
15341 am_cv_func_iconv_works=yes
15342 else
15343 am_cv_func_iconv_works=no
15344 fi
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15346 conftest.$ac_objext conftest.beam conftest.$ac_ext
15347 fi
15348
15349 LIBS="$am_save_LIBS"
15350
15351 fi
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15353 $as_echo "$am_cv_func_iconv_works" >&6; }
15354 case "$am_cv_func_iconv_works" in
15355 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15356 *) am_func_iconv=yes ;;
15357 esac
15358 else
15359 am_func_iconv=no am_cv_lib_iconv=no
15360 fi
15361 if test "$am_func_iconv" = yes; then
15362
15363 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15364
15365 fi
15366 if test "$am_cv_lib_iconv" = yes; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15368 $as_echo_n "checking how to link with libiconv... " >&6; }
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15370 $as_echo "$LIBICONV" >&6; }
15371 else
15372 CPPFLAGS="$am_save_CPPFLAGS"
15373 LIBICONV=
15374 LTLIBICONV=
15375 fi
15376
15377
15378
15379 if test "$am_cv_func_iconv" = yes; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15381 $as_echo_n "checking for iconv declaration... " >&6; }
15382 if test "${am_cv_proto_iconv+set}" = set; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388
15389 #include <stdlib.h>
15390 #include <iconv.h>
15391 extern
15392 #ifdef __cplusplus
15393 "C"
15394 #endif
15395 #if defined(__STDC__) || defined(__cplusplus)
15396 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15397 #else
15398 size_t iconv();
15399 #endif
15400
15401 int
15402 main ()
15403 {
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_cxx_try_compile "$LINENO"; then :
15410 am_cv_proto_iconv_arg1=""
15411 else
15412 am_cv_proto_iconv_arg1="const"
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 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);"
15416 fi
15417
15418 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15420 }$am_cv_proto_iconv" >&5
15421 $as_echo "${ac_t:-
15422 }$am_cv_proto_iconv" >&6; }
15423
15424 cat >>confdefs.h <<_ACEOF
15425 #define ICONV_CONST $am_cv_proto_iconv_arg1
15426 _ACEOF
15427
15428 fi
15429
15430 case $am_cv_func_iconv in #(
15431 yes) :
15432 ;; #(
15433 *) :
15434 as_fn_error "You need iconv" "$LINENO" 5 ;;
15435 esac
15436
15437 pkg_failed=no
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15439 $as_echo_n "checking for WEBKIT... " >&6; }
15440
15441 if test -n "$PKG_CONFIG"; then
15442 if test -n "$WEBKIT_CFLAGS"; then
15443 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15444 else
15445 if test -n "$PKG_CONFIG" && \
15446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15447 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15448 ac_status=$?
15449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450 test $ac_status = 0; }; then
15451 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15452 else
15453 pkg_failed=yes
15454 fi
15455 fi
15456 else
15457 pkg_failed=untried
15458 fi
15459 if test -n "$PKG_CONFIG"; then
15460 if test -n "$WEBKIT_LIBS"; then
15461 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15462 else
15463 if test -n "$PKG_CONFIG" && \
15464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15465 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15466 ac_status=$?
15467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15468 test $ac_status = 0; }; then
15469 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15470 else
15471 pkg_failed=yes
15472 fi
15473 fi
15474 else
15475 pkg_failed=untried
15476 fi
15477
15478
15479
15480 if test $pkg_failed = yes; then
15481
15482 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15483 _pkg_short_errors_supported=yes
15484 else
15485 _pkg_short_errors_supported=no
15486 fi
15487 if test $_pkg_short_errors_supported = yes; then
15488 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15489 else
15490 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15491 fi
15492 # Put the nasty error message in config.log where it belongs
15493 echo "$WEBKIT_PKG_ERRORS" >&5
15494
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15496 $as_echo "no" >&6; }
15497
15498
15499 pkg_failed=no
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15501 $as_echo_n "checking for WEBKIT... " >&6; }
15502
15503 if test -n "$PKG_CONFIG"; then
15504 if test -n "$WEBKIT_CFLAGS"; then
15505 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15506 else
15507 if test -n "$PKG_CONFIG" && \
15508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15509 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15510 ac_status=$?
15511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15512 test $ac_status = 0; }; then
15513 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15514 else
15515 pkg_failed=yes
15516 fi
15517 fi
15518 else
15519 pkg_failed=untried
15520 fi
15521 if test -n "$PKG_CONFIG"; then
15522 if test -n "$WEBKIT_LIBS"; then
15523 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15524 else
15525 if test -n "$PKG_CONFIG" && \
15526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15527 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15528 ac_status=$?
15529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15530 test $ac_status = 0; }; then
15531 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15532 else
15533 pkg_failed=yes
15534 fi
15535 fi
15536 else
15537 pkg_failed=untried
15538 fi
15539
15540
15541
15542 if test $pkg_failed = yes; then
15543
15544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15545 _pkg_short_errors_supported=yes
15546 else
15547 _pkg_short_errors_supported=no
15548 fi
15549 if test $_pkg_short_errors_supported = yes; then
15550 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15551 else
15552 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15553 fi
15554 # Put the nasty error message in config.log where it belongs
15555 echo "$WEBKIT_PKG_ERRORS" >&5
15556
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15558 $as_echo "no" >&6; }
15559 WEBKIT=no
15560 elif test $pkg_failed = untried; then
15561 WEBKIT=no
15562 else
15563 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15564 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566 $as_echo "yes" >&6; }
15567
15568 WEBKIT=yes
15569
15570 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15571 haveit=
15572 for x in $CXXFLAGS; do
15573
15574 acl_save_prefix="$prefix"
15575 prefix="$acl_final_prefix"
15576 acl_save_exec_prefix="$exec_prefix"
15577 exec_prefix="$acl_final_exec_prefix"
15578 eval x=\"$x\"
15579 exec_prefix="$acl_save_exec_prefix"
15580 prefix="$acl_save_prefix"
15581
15582 if test "X$x" = "X$element"; then
15583 haveit=yes
15584 break
15585 fi
15586 done
15587 if test -z "$haveit"; then
15588 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15589 fi
15590 done
15591
15592
15593 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15594 haveit=
15595 for x in $LIBS; do
15596
15597 acl_save_prefix="$prefix"
15598 prefix="$acl_final_prefix"
15599 acl_save_exec_prefix="$exec_prefix"
15600 exec_prefix="$acl_final_exec_prefix"
15601 eval x=\"$x\"
15602 exec_prefix="$acl_save_exec_prefix"
15603 prefix="$acl_save_prefix"
15604
15605 if test "X$x" = "X$element"; then
15606 haveit=yes
15607 break
15608 fi
15609 done
15610 if test -z "$haveit"; then
15611 LIBS="${LIBS}${LIBS:+ }$element"
15612 fi
15613 done
15614
15615
15616 fi
15617
15618 elif test $pkg_failed = untried; then
15619
15620
15621 pkg_failed=no
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15623 $as_echo_n "checking for WEBKIT... " >&6; }
15624
15625 if test -n "$PKG_CONFIG"; then
15626 if test -n "$WEBKIT_CFLAGS"; then
15627 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15628 else
15629 if test -n "$PKG_CONFIG" && \
15630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15631 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15632 ac_status=$?
15633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15634 test $ac_status = 0; }; then
15635 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15636 else
15637 pkg_failed=yes
15638 fi
15639 fi
15640 else
15641 pkg_failed=untried
15642 fi
15643 if test -n "$PKG_CONFIG"; then
15644 if test -n "$WEBKIT_LIBS"; then
15645 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15646 else
15647 if test -n "$PKG_CONFIG" && \
15648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15649 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15650 ac_status=$?
15651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652 test $ac_status = 0; }; then
15653 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15654 else
15655 pkg_failed=yes
15656 fi
15657 fi
15658 else
15659 pkg_failed=untried
15660 fi
15661
15662
15663
15664 if test $pkg_failed = yes; then
15665
15666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15667 _pkg_short_errors_supported=yes
15668 else
15669 _pkg_short_errors_supported=no
15670 fi
15671 if test $_pkg_short_errors_supported = yes; then
15672 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15673 else
15674 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15675 fi
15676 # Put the nasty error message in config.log where it belongs
15677 echo "$WEBKIT_PKG_ERRORS" >&5
15678
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15681 WEBKIT=no
15682 elif test $pkg_failed = untried; then
15683 WEBKIT=no
15684 else
15685 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15686 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688 $as_echo "yes" >&6; }
15689
15690 WEBKIT=yes
15691
15692 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15693 haveit=
15694 for x in $CXXFLAGS; do
15695
15696 acl_save_prefix="$prefix"
15697 prefix="$acl_final_prefix"
15698 acl_save_exec_prefix="$exec_prefix"
15699 exec_prefix="$acl_final_exec_prefix"
15700 eval x=\"$x\"
15701 exec_prefix="$acl_save_exec_prefix"
15702 prefix="$acl_save_prefix"
15703
15704 if test "X$x" = "X$element"; then
15705 haveit=yes
15706 break
15707 fi
15708 done
15709 if test -z "$haveit"; then
15710 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15711 fi
15712 done
15713
15714
15715 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15716 haveit=
15717 for x in $LIBS; do
15718
15719 acl_save_prefix="$prefix"
15720 prefix="$acl_final_prefix"
15721 acl_save_exec_prefix="$exec_prefix"
15722 exec_prefix="$acl_final_exec_prefix"
15723 eval x=\"$x\"
15724 exec_prefix="$acl_save_exec_prefix"
15725 prefix="$acl_save_prefix"
15726
15727 if test "X$x" = "X$element"; then
15728 haveit=yes
15729 break
15730 fi
15731 done
15732 if test -z "$haveit"; then
15733 LIBS="${LIBS}${LIBS:+ }$element"
15734 fi
15735 done
15736
15737
15738 fi
15739
15740 else
15741 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15742 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15744 $as_echo "yes" >&6; }
15745
15746 WEBKIT=yes
15747
15748 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15749 haveit=
15750 for x in $CXXFLAGS; do
15751
15752 acl_save_prefix="$prefix"
15753 prefix="$acl_final_prefix"
15754 acl_save_exec_prefix="$exec_prefix"
15755 exec_prefix="$acl_final_exec_prefix"
15756 eval x=\"$x\"
15757 exec_prefix="$acl_save_exec_prefix"
15758 prefix="$acl_save_prefix"
15759
15760 if test "X$x" = "X$element"; then
15761 haveit=yes
15762 break
15763 fi
15764 done
15765 if test -z "$haveit"; then
15766 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15767 fi
15768 done
15769
15770
15771 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15772 haveit=
15773 for x in $LIBS; do
15774
15775 acl_save_prefix="$prefix"
15776 prefix="$acl_final_prefix"
15777 acl_save_exec_prefix="$exec_prefix"
15778 exec_prefix="$acl_final_exec_prefix"
15779 eval x=\"$x\"
15780 exec_prefix="$acl_save_exec_prefix"
15781 prefix="$acl_save_prefix"
15782
15783 if test "X$x" = "X$element"; then
15784 haveit=yes
15785 break
15786 fi
15787 done
15788 if test -z "$haveit"; then
15789 LIBS="${LIBS}${LIBS:+ }$element"
15790 fi
15791 done
15792
15793
15794 fi
15795 case $WEBKIT in #(
15796 yes) :
15797
15798 CY_EXECUTE=1
15799
15800
15801 pkg_failed=no
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
15803 $as_echo_n "checking for LIBFFI... " >&6; }
15804
15805 if test -n "$PKG_CONFIG"; then
15806 if test -n "$LIBFFI_CFLAGS"; then
15807 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15808 else
15809 if test -n "$PKG_CONFIG" && \
15810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15811 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15812 ac_status=$?
15813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814 test $ac_status = 0; }; then
15815 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15816 else
15817 pkg_failed=yes
15818 fi
15819 fi
15820 else
15821 pkg_failed=untried
15822 fi
15823 if test -n "$PKG_CONFIG"; then
15824 if test -n "$LIBFFI_LIBS"; then
15825 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15826 else
15827 if test -n "$PKG_CONFIG" && \
15828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15829 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15830 ac_status=$?
15831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832 test $ac_status = 0; }; then
15833 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15834 else
15835 pkg_failed=yes
15836 fi
15837 fi
15838 else
15839 pkg_failed=untried
15840 fi
15841
15842
15843
15844 if test $pkg_failed = yes; then
15845
15846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15847 _pkg_short_errors_supported=yes
15848 else
15849 _pkg_short_errors_supported=no
15850 fi
15851 if test $_pkg_short_errors_supported = yes; then
15852 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
15853 else
15854 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
15855 fi
15856 # Put the nasty error message in config.log where it belongs
15857 echo "$LIBFFI_PKG_ERRORS" >&5
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15861
15862 for ac_header in ffi.h ffi/ffi.h
15863 do :
15864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15865 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15866 eval as_val=\$$as_ac_Header
15867 if test "x$as_val" = x""yes; then :
15868 cat >>confdefs.h <<_ACEOF
15869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 _ACEOF
15871 break
15872 fi
15873
15874 done
15875
15876 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15877
15878 as_fn_error "You need libffi" "$LINENO" 5
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15882 $as_echo_n "checking for library containing ffi_call... " >&6; }
15883 if test "${ac_cv_search_ffi_call+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 ac_func_search_save_LIBS=$LIBS
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889
15890 /* Override any GCC internal prototype to avoid an error.
15891 Use char because int might match the return type of a GCC
15892 builtin and then its argument prototype would still apply. */
15893 #ifdef __cplusplus
15894 extern "C"
15895 #endif
15896 char ffi_call ();
15897 int
15898 main ()
15899 {
15900 return ffi_call ();
15901 ;
15902 return 0;
15903 }
15904 _ACEOF
15905 for ac_lib in '' ffi; do
15906 if test -z "$ac_lib"; then
15907 ac_res="none required"
15908 else
15909 ac_res=-l$ac_lib
15910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15911 fi
15912 if ac_fn_cxx_try_link "$LINENO"; then :
15913 ac_cv_search_ffi_call=$ac_res
15914 fi
15915 rm -f core conftest.err conftest.$ac_objext \
15916 conftest$ac_exeext
15917 if test "${ac_cv_search_ffi_call+set}" = set; then :
15918 break
15919 fi
15920 done
15921 if test "${ac_cv_search_ffi_call+set}" = set; then :
15922
15923 else
15924 ac_cv_search_ffi_call=no
15925 fi
15926 rm conftest.$ac_ext
15927 LIBS=$ac_func_search_save_LIBS
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15930 $as_echo "$ac_cv_search_ffi_call" >&6; }
15931 ac_res=$ac_cv_search_ffi_call
15932 if test "$ac_res" != no; then :
15933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15934
15935 fi
15936
15937 case $ac_cv_search_ffi_call in #(
15938 no) :
15939
15940 as_fn_error "You need libffi" "$LINENO" 5
15941 ;; #(
15942 *) :
15943 ;;
15944 esac
15945
15946 elif test $pkg_failed = untried; then
15947
15948 for ac_header in ffi.h ffi/ffi.h
15949 do :
15950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15951 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15952 eval as_val=\$$as_ac_Header
15953 if test "x$as_val" = x""yes; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15956 _ACEOF
15957 break
15958 fi
15959
15960 done
15961
15962 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15963
15964 as_fn_error "You need libffi" "$LINENO" 5
15965
15966 fi
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15968 $as_echo_n "checking for library containing ffi_call... " >&6; }
15969 if test "${ac_cv_search_ffi_call+set}" = set; then :
15970 $as_echo_n "(cached) " >&6
15971 else
15972 ac_func_search_save_LIBS=$LIBS
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char ffi_call ();
15983 int
15984 main ()
15985 {
15986 return ffi_call ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 for ac_lib in '' ffi; do
15992 if test -z "$ac_lib"; then
15993 ac_res="none required"
15994 else
15995 ac_res=-l$ac_lib
15996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15997 fi
15998 if ac_fn_cxx_try_link "$LINENO"; then :
15999 ac_cv_search_ffi_call=$ac_res
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext
16003 if test "${ac_cv_search_ffi_call+set}" = set; then :
16004 break
16005 fi
16006 done
16007 if test "${ac_cv_search_ffi_call+set}" = set; then :
16008
16009 else
16010 ac_cv_search_ffi_call=no
16011 fi
16012 rm conftest.$ac_ext
16013 LIBS=$ac_func_search_save_LIBS
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16016 $as_echo "$ac_cv_search_ffi_call" >&6; }
16017 ac_res=$ac_cv_search_ffi_call
16018 if test "$ac_res" != no; then :
16019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16020
16021 fi
16022
16023 case $ac_cv_search_ffi_call in #(
16024 no) :
16025
16026 as_fn_error "You need libffi" "$LINENO" 5
16027 ;; #(
16028 *) :
16029 ;;
16030 esac
16031
16032 else
16033 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16034 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037
16038
16039 for element in `$PKG_CONFIG --cflags libffi`; do
16040 haveit=
16041 for x in $CXXFLAGS; do
16042
16043 acl_save_prefix="$prefix"
16044 prefix="$acl_final_prefix"
16045 acl_save_exec_prefix="$exec_prefix"
16046 exec_prefix="$acl_final_exec_prefix"
16047 eval x=\"$x\"
16048 exec_prefix="$acl_save_exec_prefix"
16049 prefix="$acl_save_prefix"
16050
16051 if test "X$x" = "X$element"; then
16052 haveit=yes
16053 break
16054 fi
16055 done
16056 if test -z "$haveit"; then
16057 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16058 fi
16059 done
16060
16061
16062 for element in `$PKG_CONFIG --libs libffi`; do
16063 haveit=
16064 for x in $LIBS; do
16065
16066 acl_save_prefix="$prefix"
16067 prefix="$acl_final_prefix"
16068 acl_save_exec_prefix="$exec_prefix"
16069 exec_prefix="$acl_final_exec_prefix"
16070 eval x=\"$x\"
16071 exec_prefix="$acl_save_exec_prefix"
16072 prefix="$acl_save_prefix"
16073
16074 if test "X$x" = "X$element"; then
16075 haveit=yes
16076 break
16077 fi
16078 done
16079 if test -z "$haveit"; then
16080 LIBS="${LIBS}${LIBS:+ }$element"
16081 fi
16082 done
16083
16084
16085 fi
16086 ;; #(
16087 *) :
16088
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
16090 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
16091 ;;
16092 esac
16093 ac_ext=mm
16094 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16095 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16096 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16097 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16098 if test -n "$ac_tool_prefix"; then
16099 for ac_prog in g++ objc++ objcxx c++ CXX
16100 do
16101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 if test -n "$OBJCXX"; then
16109 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
16110 else
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16113 do
16114 IFS=$as_save_IFS
16115 test -z "$as_dir" && as_dir=.
16116 for ac_exec_ext in '' $ac_executable_extensions; do
16117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16118 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
16119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16120 break 2
16121 fi
16122 done
16123 done
16124 IFS=$as_save_IFS
16125
16126 fi
16127 fi
16128 OBJCXX=$ac_cv_prog_OBJCXX
16129 if test -n "$OBJCXX"; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
16131 $as_echo "$OBJCXX" >&6; }
16132 else
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16134 $as_echo "no" >&6; }
16135 fi
16136
16137
16138 test -n "$OBJCXX" && break
16139 done
16140 fi
16141 if test -z "$OBJCXX"; then
16142 ac_ct_OBJCXX=$OBJCXX
16143 for ac_prog in g++ objc++ objcxx c++ CXX
16144 do
16145 # Extract the first word of "$ac_prog", so it can be a program name with args.
16146 set dummy $ac_prog; ac_word=$2
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16148 $as_echo_n "checking for $ac_word... " >&6; }
16149 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 if test -n "$ac_ct_OBJCXX"; then
16153 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
16154 else
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 for as_dir in $PATH
16157 do
16158 IFS=$as_save_IFS
16159 test -z "$as_dir" && as_dir=.
16160 for ac_exec_ext in '' $ac_executable_extensions; do
16161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16162 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
16163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16164 break 2
16165 fi
16166 done
16167 done
16168 IFS=$as_save_IFS
16169
16170 fi
16171 fi
16172 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
16173 if test -n "$ac_ct_OBJCXX"; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
16175 $as_echo "$ac_ct_OBJCXX" >&6; }
16176 else
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179 fi
16180
16181
16182 test -n "$ac_ct_OBJCXX" && break
16183 done
16184
16185 if test "x$ac_ct_OBJCXX" = x; then
16186 OBJCXX="g++"
16187 else
16188 case $cross_compiling:$ac_tool_warned in
16189 yes:)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16192 ac_tool_warned=yes ;;
16193 esac
16194 OBJCXX=$ac_ct_OBJCXX
16195 fi
16196 fi
16197
16198 # Provide some information about the compiler.
16199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
16200 set X $ac_compile
16201 ac_compiler=$2
16202 for ac_option in --version -v -V -qversion; do
16203 { { ac_try="$ac_compiler $ac_option >&5"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207 esac
16208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16209 $as_echo "$ac_try_echo"; } >&5
16210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16211 ac_status=$?
16212 if test -s conftest.err; then
16213 sed '10a\
16214 ... rest of stderr output deleted ...
16215 10q' conftest.err >conftest.er1
16216 cat conftest.er1 >&5
16217 fi
16218 rm -f conftest.er1 conftest.err
16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 test $ac_status = 0; }
16221 done
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
16224 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
16225 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230
16231 int
16232 main ()
16233 {
16234 #ifndef __GNUC__
16235 choke me
16236 #endif
16237
16238 ;
16239 return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_objcxx_try_compile "$LINENO"; then :
16243 ac_compiler_gnu=yes
16244 else
16245 ac_compiler_gnu=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16249
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16252 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16253 if test $ac_compiler_gnu = yes; then
16254 GOBJCXX=yes
16255 else
16256 GOBJCXX=
16257 fi
16258 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16259 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16261 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16262 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16266 ac_objcxx_werror_flag=yes
16267 ac_cv_prog_objcxx_g=no
16268 OBJCXXFLAGS="-g"
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271
16272 int
16273 main ()
16274 {
16275
16276 ;
16277 return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_objcxx_try_compile "$LINENO"; then :
16281 ac_cv_prog_objcxx_g=yes
16282 else
16283 OBJCXXFLAGS=""
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286
16287 int
16288 main ()
16289 {
16290
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_objcxx_try_compile "$LINENO"; then :
16296
16297 else
16298 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16299 OBJCXXFLAGS="-g"
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302
16303 int
16304 main ()
16305 {
16306
16307 ;
16308 return 0;
16309 }
16310 _ACEOF
16311 if ac_fn_objcxx_try_compile "$LINENO"; then :
16312 ac_cv_prog_objcxx_g=yes
16313 fi
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16322 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
16323 if test "$ac_test_OBJCXXFLAGS" = set; then
16324 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16325 elif test $ac_cv_prog_objcxx_g = yes; then
16326 if test "$GOBJCXX" = yes; then
16327 OBJCXXFLAGS="-g -O2"
16328 else
16329 OBJCXXFLAGS="-g"
16330 fi
16331 else
16332 if test "$GOBJCXX" = yes; then
16333 OBJCXXFLAGS="-O2"
16334 else
16335 OBJCXXFLAGS=
16336 fi
16337 fi
16338 ac_ext=cpp
16339 ac_cpp='$CXXCPP $CPPFLAGS'
16340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16343
16344 ac_ext=mm
16345 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16346 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
16351 $as_echo_n "checking if we really have Objective C++... " >&6; }
16352
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16355
16356 // This space intentionally left blank
16357
16358 _ACEOF
16359 if ac_fn_objcxx_try_compile "$LINENO"; then :
16360
16361 CY_OBJECTIVEC=1
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16363 $as_echo "yes" >&6; }
16364
16365 else
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367 $as_echo "no" >&6; }
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 ac_ext=cpp
16371 ac_cpp='$CXXCPP $CPPFLAGS'
16372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16375
16376 if test "x$CY_OBJECTIVEC" = x1; then :
16377
16378 # TODO: Darwin
16379 for ac_prog in gnustep-config
16380 do
16381 # Extract the first word of "$ac_prog", so it can be a program name with args.
16382 set dummy $ac_prog; ac_word=$2
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16384 $as_echo_n "checking for $ac_word... " >&6; }
16385 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 if test -n "$GNUSTEP_CONFIG"; then
16389 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
16390 else
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16393 do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16398 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16400 break 2
16401 fi
16402 done
16403 done
16404 IFS=$as_save_IFS
16405
16406 fi
16407 fi
16408 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
16409 if test -n "$GNUSTEP_CONFIG"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
16411 $as_echo "$GNUSTEP_CONFIG" >&6; }
16412 else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16415 fi
16416
16417
16418 test -n "$GNUSTEP_CONFIG" && break
16419 done
16420
16421 if test "x$GNUSTEP_CONFIG" != x; then :
16422
16423
16424
16425 for element in `$GNUSTEP_CONFIG --objc-flags`; do
16426 haveit=
16427 for x in $OBJCXXFLAGS; do
16428
16429 acl_save_prefix="$prefix"
16430 prefix="$acl_final_prefix"
16431 acl_save_exec_prefix="$exec_prefix"
16432 exec_prefix="$acl_final_exec_prefix"
16433 eval x=\"$x\"
16434 exec_prefix="$acl_save_exec_prefix"
16435 prefix="$acl_save_prefix"
16436
16437 if test "X$x" = "X$element"; then
16438 haveit=yes
16439 break
16440 fi
16441 done
16442 if test -z "$haveit"; then
16443 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16444 fi
16445 done
16446
16447
16448 for element in `$GNUSTEP_CONFIG --base-libs`; do
16449 haveit=
16450 for x in $LIBS; do
16451
16452 acl_save_prefix="$prefix"
16453 prefix="$acl_final_prefix"
16454 acl_save_exec_prefix="$exec_prefix"
16455 exec_prefix="$acl_final_exec_prefix"
16456 eval x=\"$x\"
16457 exec_prefix="$acl_save_exec_prefix"
16458 prefix="$acl_save_prefix"
16459
16460 if test "X$x" = "X$element"; then
16461 haveit=yes
16462 break
16463 fi
16464 done
16465 if test -z "$haveit"; then
16466 LIBS="${LIBS}${LIBS:+ }$element"
16467 fi
16468 done
16469
16470
16471 fi
16472
16473 fi
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16475 $as_echo_n "checking for GNU make... " >&6; }
16476 if test "${_cv_gnu_make_command+set}" = set; then :
16477 $as_echo_n "(cached) " >&6
16478 else
16479 _cv_gnu_make_command='' ;
16480 for a in "$MAKE" make gmake gnumake ; do
16481 if test -z "$a" ; then continue ; fi ;
16482 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
16483 _cv_gnu_make_command=$a ;
16484 break;
16485 fi
16486 done ;
16487
16488 fi
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
16490 $as_echo "$_cv_gnu_make_command" >&6; } ;
16491 if test "x$_cv_gnu_make_command" != "x" ; then
16492 ifGNUmake='' ;
16493 else
16494 ifGNUmake='#' ;
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16496 $as_echo "\"Not found\"" >&6; };
16497 fi
16498
16499
16500 if test "x$_cv_gnu_make_command" = x; then :
16501 as_fn_error "You need GNU make" "$LINENO" 5
16502 fi
16503 ac_config_files="$ac_config_files GNUmakefile"
16504
16505 cat >confcache <<\_ACEOF
16506 # This file is a shell script that caches the results of configure
16507 # tests run on this system so they can be shared between configure
16508 # scripts and configure runs, see configure's option --config-cache.
16509 # It is not useful on other systems. If it contains results you don't
16510 # want to keep, you may remove or edit it.
16511 #
16512 # config.status only pays attention to the cache file if you give it
16513 # the --recheck option to rerun configure.
16514 #
16515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16517 # following values.
16518
16519 _ACEOF
16520
16521 # The following way of writing the cache mishandles newlines in values,
16522 # but we know of no workaround that is simple, portable, and efficient.
16523 # So, we kill variables containing newlines.
16524 # Ultrix sh set writes to stderr and can't be redirected directly,
16525 # and sets the high bit in the cache file unless we assign to the vars.
16526 (
16527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16528 eval ac_val=\$$ac_var
16529 case $ac_val in #(
16530 *${as_nl}*)
16531 case $ac_var in #(
16532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16534 esac
16535 case $ac_var in #(
16536 _ | IFS | as_nl) ;; #(
16537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16538 *) { eval $ac_var=; unset $ac_var;} ;;
16539 esac ;;
16540 esac
16541 done
16542
16543 (set) 2>&1 |
16544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16545 *${as_nl}ac_space=\ *)
16546 # `set' does not quote correctly, so add quotes: double-quote
16547 # substitution turns \\\\ into \\, and sed turns \\ into \.
16548 sed -n \
16549 "s/'/'\\\\''/g;
16550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16551 ;; #(
16552 *)
16553 # `set' quotes correctly as required by POSIX, so do not add quotes.
16554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16555 ;;
16556 esac |
16557 sort
16558 ) |
16559 sed '
16560 /^ac_cv_env_/b end
16561 t clear
16562 :clear
16563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16564 t end
16565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16566 :end' >>confcache
16567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16568 if test -w "$cache_file"; then
16569 test "x$cache_file" != "x/dev/null" &&
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16571 $as_echo "$as_me: updating cache $cache_file" >&6;}
16572 cat confcache >$cache_file
16573 else
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16576 fi
16577 fi
16578 rm -f confcache
16579
16580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16581 # Let make expand exec_prefix.
16582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16583
16584 # Transform confdefs.h into DEFS.
16585 # Protect against shell expansion while executing Makefile rules.
16586 # Protect against Makefile macro expansion.
16587 #
16588 # If the first sed substitution is executed (which looks for macros that
16589 # take arguments), then branch to the quote section. Otherwise,
16590 # look for a macro that doesn't take arguments.
16591 ac_script='
16592 :mline
16593 /\\$/{
16594 N
16595 s,\\\n,,
16596 b mline
16597 }
16598 t clear
16599 :clear
16600 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16601 t quote
16602 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16603 t quote
16604 b any
16605 :quote
16606 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16607 s/\[/\\&/g
16608 s/\]/\\&/g
16609 s/\$/$$/g
16610 H
16611 :any
16612 ${
16613 g
16614 s/^\n//
16615 s/\n/ /g
16616 p
16617 }
16618 '
16619 DEFS=`sed -n "$ac_script" confdefs.h`
16620
16621
16622 ac_libobjs=
16623 ac_ltlibobjs=
16624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16625 # 1. Remove the extension, and $U if already installed.
16626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16629 # will be set to the directory where LIBOBJS objects are built.
16630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16632 done
16633 LIBOBJS=$ac_libobjs
16634
16635 LTLIBOBJS=$ac_ltlibobjs
16636
16637
16638
16639 : ${CONFIG_STATUS=./config.status}
16640 ac_write_fail=0
16641 ac_clean_files_save=$ac_clean_files
16642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16644 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16645 as_write_fail=0
16646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16647 #! $SHELL
16648 # Generated by $as_me.
16649 # Run this file to recreate the current configuration.
16650 # Compiler output produced by configure, useful for debugging
16651 # configure, is in config.log if it exists.
16652
16653 debug=false
16654 ac_cs_recheck=false
16655 ac_cs_silent=false
16656
16657 SHELL=\${CONFIG_SHELL-$SHELL}
16658 export SHELL
16659 _ASEOF
16660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16661 ## -------------------- ##
16662 ## M4sh Initialization. ##
16663 ## -------------------- ##
16664
16665 # Be more Bourne compatible
16666 DUALCASE=1; export DUALCASE # for MKS sh
16667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16668 emulate sh
16669 NULLCMD=:
16670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16671 # is contrary to our usage. Disable this feature.
16672 alias -g '${1+"$@"}'='"$@"'
16673 setopt NO_GLOB_SUBST
16674 else
16675 case `(set -o) 2>/dev/null` in #(
16676 *posix*) :
16677 set -o posix ;; #(
16678 *) :
16679 ;;
16680 esac
16681 fi
16682
16683
16684 as_nl='
16685 '
16686 export as_nl
16687 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16688 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16691 # Prefer a ksh shell builtin over an external printf program on Solaris,
16692 # but without wasting forks for bash or zsh.
16693 if test -z "$BASH_VERSION$ZSH_VERSION" \
16694 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16695 as_echo='print -r --'
16696 as_echo_n='print -rn --'
16697 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16698 as_echo='printf %s\n'
16699 as_echo_n='printf %s'
16700 else
16701 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16702 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16703 as_echo_n='/usr/ucb/echo -n'
16704 else
16705 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16706 as_echo_n_body='eval
16707 arg=$1;
16708 case $arg in #(
16709 *"$as_nl"*)
16710 expr "X$arg" : "X\\(.*\\)$as_nl";
16711 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16712 esac;
16713 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16714 '
16715 export as_echo_n_body
16716 as_echo_n='sh -c $as_echo_n_body as_echo'
16717 fi
16718 export as_echo_body
16719 as_echo='sh -c $as_echo_body as_echo'
16720 fi
16721
16722 # The user is always right.
16723 if test "${PATH_SEPARATOR+set}" != set; then
16724 PATH_SEPARATOR=:
16725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16727 PATH_SEPARATOR=';'
16728 }
16729 fi
16730
16731
16732 # IFS
16733 # We need space, tab and new line, in precisely that order. Quoting is
16734 # there to prevent editors from complaining about space-tab.
16735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16736 # splitting by setting IFS to empty value.)
16737 IFS=" "" $as_nl"
16738
16739 # Find who we are. Look in the path if we contain no directory separator.
16740 case $0 in #((
16741 *[\\/]* ) as_myself=$0 ;;
16742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16744 do
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16748 done
16749 IFS=$as_save_IFS
16750
16751 ;;
16752 esac
16753 # We did not find ourselves, most probably we were run as `sh COMMAND'
16754 # in which case we are not to be found in the path.
16755 if test "x$as_myself" = x; then
16756 as_myself=$0
16757 fi
16758 if test ! -f "$as_myself"; then
16759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16760 exit 1
16761 fi
16762
16763 # Unset variables that we do not need and which cause bugs (e.g. in
16764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16765 # suppresses any "Segmentation fault" message there. '((' could
16766 # trigger a bug in pdksh 5.2.14.
16767 for as_var in BASH_ENV ENV MAIL MAILPATH
16768 do eval test x\${$as_var+set} = xset \
16769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16770 done
16771 PS1='$ '
16772 PS2='> '
16773 PS4='+ '
16774
16775 # NLS nuisances.
16776 LC_ALL=C
16777 export LC_ALL
16778 LANGUAGE=C
16779 export LANGUAGE
16780
16781 # CDPATH.
16782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16783
16784
16785 # as_fn_error ERROR [LINENO LOG_FD]
16786 # ---------------------------------
16787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16789 # script with status $?, using 1 if that was 0.
16790 as_fn_error ()
16791 {
16792 as_status=$?; test $as_status -eq 0 && as_status=1
16793 if test "$3"; then
16794 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16796 fi
16797 $as_echo "$as_me: error: $1" >&2
16798 as_fn_exit $as_status
16799 } # as_fn_error
16800
16801
16802 # as_fn_set_status STATUS
16803 # -----------------------
16804 # Set $? to STATUS, without forking.
16805 as_fn_set_status ()
16806 {
16807 return $1
16808 } # as_fn_set_status
16809
16810 # as_fn_exit STATUS
16811 # -----------------
16812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16813 as_fn_exit ()
16814 {
16815 set +e
16816 as_fn_set_status $1
16817 exit $1
16818 } # as_fn_exit
16819
16820 # as_fn_unset VAR
16821 # ---------------
16822 # Portably unset VAR.
16823 as_fn_unset ()
16824 {
16825 { eval $1=; unset $1;}
16826 }
16827 as_unset=as_fn_unset
16828 # as_fn_append VAR VALUE
16829 # ----------------------
16830 # Append the text in VALUE to the end of the definition contained in VAR. Take
16831 # advantage of any shell optimizations that allow amortized linear growth over
16832 # repeated appends, instead of the typical quadratic growth present in naive
16833 # implementations.
16834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16835 eval 'as_fn_append ()
16836 {
16837 eval $1+=\$2
16838 }'
16839 else
16840 as_fn_append ()
16841 {
16842 eval $1=\$$1\$2
16843 }
16844 fi # as_fn_append
16845
16846 # as_fn_arith ARG...
16847 # ------------------
16848 # Perform arithmetic evaluation on the ARGs, and store the result in the
16849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16850 # must be portable across $(()) and expr.
16851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16852 eval 'as_fn_arith ()
16853 {
16854 as_val=$(( $* ))
16855 }'
16856 else
16857 as_fn_arith ()
16858 {
16859 as_val=`expr "$@" || test $? -eq 1`
16860 }
16861 fi # as_fn_arith
16862
16863
16864 if expr a : '\(a\)' >/dev/null 2>&1 &&
16865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16866 as_expr=expr
16867 else
16868 as_expr=false
16869 fi
16870
16871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16872 as_basename=basename
16873 else
16874 as_basename=false
16875 fi
16876
16877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16878 as_dirname=dirname
16879 else
16880 as_dirname=false
16881 fi
16882
16883 as_me=`$as_basename -- "$0" ||
16884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16885 X"$0" : 'X\(//\)$' \| \
16886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16887 $as_echo X/"$0" |
16888 sed '/^.*\/\([^/][^/]*\)\/*$/{
16889 s//\1/
16890 q
16891 }
16892 /^X\/\(\/\/\)$/{
16893 s//\1/
16894 q
16895 }
16896 /^X\/\(\/\).*/{
16897 s//\1/
16898 q
16899 }
16900 s/.*/./; q'`
16901
16902 # Avoid depending upon Character Ranges.
16903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16906 as_cr_digits='0123456789'
16907 as_cr_alnum=$as_cr_Letters$as_cr_digits
16908
16909 ECHO_C= ECHO_N= ECHO_T=
16910 case `echo -n x` in #(((((
16911 -n*)
16912 case `echo 'xy\c'` in
16913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16914 xy) ECHO_C='\c';;
16915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16916 ECHO_T=' ';;
16917 esac;;
16918 *)
16919 ECHO_N='-n';;
16920 esac
16921
16922 rm -f conf$$ conf$$.exe conf$$.file
16923 if test -d conf$$.dir; then
16924 rm -f conf$$.dir/conf$$.file
16925 else
16926 rm -f conf$$.dir
16927 mkdir conf$$.dir 2>/dev/null
16928 fi
16929 if (echo >conf$$.file) 2>/dev/null; then
16930 if ln -s conf$$.file conf$$ 2>/dev/null; then
16931 as_ln_s='ln -s'
16932 # ... but there are two gotchas:
16933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16935 # In both cases, we have to default to `cp -p'.
16936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16937 as_ln_s='cp -p'
16938 elif ln conf$$.file conf$$ 2>/dev/null; then
16939 as_ln_s=ln
16940 else
16941 as_ln_s='cp -p'
16942 fi
16943 else
16944 as_ln_s='cp -p'
16945 fi
16946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16947 rmdir conf$$.dir 2>/dev/null
16948
16949
16950 # as_fn_mkdir_p
16951 # -------------
16952 # Create "$as_dir" as a directory, including parents if necessary.
16953 as_fn_mkdir_p ()
16954 {
16955
16956 case $as_dir in #(
16957 -*) as_dir=./$as_dir;;
16958 esac
16959 test -d "$as_dir" || eval $as_mkdir_p || {
16960 as_dirs=
16961 while :; do
16962 case $as_dir in #(
16963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16964 *) as_qdir=$as_dir;;
16965 esac
16966 as_dirs="'$as_qdir' $as_dirs"
16967 as_dir=`$as_dirname -- "$as_dir" ||
16968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$as_dir" : 'X\(//\)[^/]' \| \
16970 X"$as_dir" : 'X\(//\)$' \| \
16971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16972 $as_echo X"$as_dir" |
16973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16974 s//\1/
16975 q
16976 }
16977 /^X\(\/\/\)[^/].*/{
16978 s//\1/
16979 q
16980 }
16981 /^X\(\/\/\)$/{
16982 s//\1/
16983 q
16984 }
16985 /^X\(\/\).*/{
16986 s//\1/
16987 q
16988 }
16989 s/.*/./; q'`
16990 test -d "$as_dir" && break
16991 done
16992 test -z "$as_dirs" || eval "mkdir $as_dirs"
16993 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16994
16995
16996 } # as_fn_mkdir_p
16997 if mkdir -p . 2>/dev/null; then
16998 as_mkdir_p='mkdir -p "$as_dir"'
16999 else
17000 test -d ./-p && rmdir ./-p
17001 as_mkdir_p=false
17002 fi
17003
17004 if test -x / >/dev/null 2>&1; then
17005 as_test_x='test -x'
17006 else
17007 if ls -dL / >/dev/null 2>&1; then
17008 as_ls_L_option=L
17009 else
17010 as_ls_L_option=
17011 fi
17012 as_test_x='
17013 eval sh -c '\''
17014 if test -d "$1"; then
17015 test -d "$1/.";
17016 else
17017 case $1 in #(
17018 -*)set "./$1";;
17019 esac;
17020 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17021 ???[sx]*):;;*)false;;esac;fi
17022 '\'' sh
17023 '
17024 fi
17025 as_executable_p=$as_test_x
17026
17027 # Sed expression to map a string onto a valid CPP name.
17028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17029
17030 # Sed expression to map a string onto a valid variable name.
17031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17032
17033
17034 exec 6>&1
17035 ## ----------------------------------- ##
17036 ## Main body of $CONFIG_STATUS script. ##
17037 ## ----------------------------------- ##
17038 _ASEOF
17039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17040
17041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042 # Save the log message, to keep $0 and so on meaningful, and to
17043 # report actual input values of CONFIG_FILES etc. instead of their
17044 # values after options handling.
17045 ac_log="
17046 This file was extended by Cycript $as_me 0.9, which was
17047 generated by GNU Autoconf 2.65. Invocation command line was
17048
17049 CONFIG_FILES = $CONFIG_FILES
17050 CONFIG_HEADERS = $CONFIG_HEADERS
17051 CONFIG_LINKS = $CONFIG_LINKS
17052 CONFIG_COMMANDS = $CONFIG_COMMANDS
17053 $ $0 $@
17054
17055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17056 "
17057
17058 _ACEOF
17059
17060 case $ac_config_files in *"
17061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17062 esac
17063
17064
17065
17066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17067 # Files that config.status was made for.
17068 config_files="$ac_config_files"
17069 config_commands="$ac_config_commands"
17070
17071 _ACEOF
17072
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 ac_cs_usage="\
17075 \`$as_me' instantiates files and other configuration actions
17076 from templates according to the current configuration. Unless the files
17077 and actions are specified as TAGs, all are instantiated by default.
17078
17079 Usage: $0 [OPTION]... [TAG]...
17080
17081 -h, --help print this help, then exit
17082 -V, --version print version number and configuration settings, then exit
17083 --config print configuration, then exit
17084 -q, --quiet, --silent
17085 do not print progress messages
17086 -d, --debug don't remove temporary files
17087 --recheck update $as_me by reconfiguring in the same conditions
17088 --file=FILE[:TEMPLATE]
17089 instantiate the configuration file FILE
17090
17091 Configuration files:
17092 $config_files
17093
17094 Configuration commands:
17095 $config_commands
17096
17097 Report bugs to <saurik@saurik.com>.
17098 Cycript home page: <http://www.cycript.org/>."
17099
17100 _ACEOF
17101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17102 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17103 ac_cs_version="\\
17104 Cycript config.status 0.9
17105 configured by $0, generated by GNU Autoconf 2.65,
17106 with options \\"\$ac_cs_config\\"
17107
17108 Copyright (C) 2009 Free Software Foundation, Inc.
17109 This config.status script is free software; the Free Software Foundation
17110 gives unlimited permission to copy, distribute and modify it."
17111
17112 ac_pwd='$ac_pwd'
17113 srcdir='$srcdir'
17114 INSTALL='$INSTALL'
17115 AWK='$AWK'
17116 test -n "\$AWK" || AWK=awk
17117 _ACEOF
17118
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 # The default lists apply if the user does not specify any file.
17121 ac_need_defaults=:
17122 while test $# != 0
17123 do
17124 case $1 in
17125 --*=*)
17126 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17127 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17128 ac_shift=:
17129 ;;
17130 *)
17131 ac_option=$1
17132 ac_optarg=$2
17133 ac_shift=shift
17134 ;;
17135 esac
17136
17137 case $ac_option in
17138 # Handling of the options.
17139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17140 ac_cs_recheck=: ;;
17141 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17142 $as_echo "$ac_cs_version"; exit ;;
17143 --config | --confi | --conf | --con | --co | --c )
17144 $as_echo "$ac_cs_config"; exit ;;
17145 --debug | --debu | --deb | --de | --d | -d )
17146 debug=: ;;
17147 --file | --fil | --fi | --f )
17148 $ac_shift
17149 case $ac_optarg in
17150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17151 esac
17152 as_fn_append CONFIG_FILES " '$ac_optarg'"
17153 ac_need_defaults=false;;
17154 --he | --h | --help | --hel | -h )
17155 $as_echo "$ac_cs_usage"; exit ;;
17156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17158 ac_cs_silent=: ;;
17159
17160 # This is an error.
17161 -*) as_fn_error "unrecognized option: \`$1'
17162 Try \`$0 --help' for more information." ;;
17163
17164 *) as_fn_append ac_config_targets " $1"
17165 ac_need_defaults=false ;;
17166
17167 esac
17168 shift
17169 done
17170
17171 ac_configure_extra_args=
17172
17173 if $ac_cs_silent; then
17174 exec 6>/dev/null
17175 ac_configure_extra_args="$ac_configure_extra_args --silent"
17176 fi
17177
17178 _ACEOF
17179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17180 if \$ac_cs_recheck; then
17181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17182 shift
17183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17184 CONFIG_SHELL='$SHELL'
17185 export CONFIG_SHELL
17186 exec "\$@"
17187 fi
17188
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191 exec 5>>config.log
17192 {
17193 echo
17194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17195 ## Running $as_me. ##
17196 _ASBOX
17197 $as_echo "$ac_log"
17198 } >&5
17199
17200 _ACEOF
17201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202 #
17203 # INIT-COMMANDS
17204 #
17205
17206
17207 # The HP-UX ksh and POSIX shell print the target directory to stdout
17208 # if CDPATH is set.
17209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17210
17211 sed_quote_subst='$sed_quote_subst'
17212 double_quote_subst='$double_quote_subst'
17213 delay_variable_subst='$delay_variable_subst'
17214 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17215 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17216 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17217 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17218 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17219 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17220 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17221 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17222 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17223 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17224 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17225 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17226 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17227 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17228 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17229 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17230 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17231 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17232 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17233 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17234 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17235 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17236 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17237 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17238 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17239 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17240 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17241 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17242 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17243 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17244 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17245 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17246 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17247 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17248 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17249 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17250 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17251 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17252 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17253 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17254 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17255 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17256 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17258 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"`'
17259 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"`'
17260 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17261 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17262 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17263 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17264 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17265 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17266 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17267 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17268 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17269 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17270 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17271 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17272 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17273 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17274 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17275 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17276 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17277 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17278 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17279 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17280 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17281 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17282 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17283 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17284 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17285 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17286 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17287 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17288 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17289 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17290 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17291 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17292 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17293 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17294 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17295 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17296 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17297 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17298 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17299 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17300 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17301 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17302 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17303 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17304 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17305 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17306 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17307 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17308 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17309 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17310 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17311 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17312 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17313 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17314 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17315 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17316 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17317 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17318 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17319 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17320 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17321 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17322 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17323 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17324 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17325 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17326 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17327 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17328 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17329 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17330 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17331 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17332 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17333 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17334 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17335 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17336 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17337 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17338 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17339 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17340 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17341 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17358 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17359 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17360 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17361 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17362 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17363 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17364 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17365 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17366 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17367 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17368 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17369 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17370 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17371 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17372 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17373 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17374 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17375 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17376 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17377 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17378 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17379 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17380 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17381 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17382 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17383 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17384 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17385
17386 LTCC='$LTCC'
17387 LTCFLAGS='$LTCFLAGS'
17388 compiler='$compiler_DEFAULT'
17389
17390 # Quote evaled strings.
17391 for var in SED \
17392 GREP \
17393 EGREP \
17394 FGREP \
17395 LD \
17396 NM \
17397 LN_S \
17398 lt_SP2NL \
17399 lt_NL2SP \
17400 reload_flag \
17401 OBJDUMP \
17402 deplibs_check_method \
17403 file_magic_cmd \
17404 AR \
17405 AR_FLAGS \
17406 STRIP \
17407 RANLIB \
17408 CC \
17409 CFLAGS \
17410 compiler \
17411 lt_cv_sys_global_symbol_pipe \
17412 lt_cv_sys_global_symbol_to_cdecl \
17413 lt_cv_sys_global_symbol_to_c_name_address \
17414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17415 SHELL \
17416 ECHO \
17417 lt_prog_compiler_no_builtin_flag \
17418 lt_prog_compiler_wl \
17419 lt_prog_compiler_pic \
17420 lt_prog_compiler_static \
17421 lt_cv_prog_compiler_c_o \
17422 need_locks \
17423 DSYMUTIL \
17424 NMEDIT \
17425 LIPO \
17426 OTOOL \
17427 OTOOL64 \
17428 shrext_cmds \
17429 export_dynamic_flag_spec \
17430 whole_archive_flag_spec \
17431 compiler_needs_object \
17432 with_gnu_ld \
17433 allow_undefined_flag \
17434 no_undefined_flag \
17435 hardcode_libdir_flag_spec \
17436 hardcode_libdir_flag_spec_ld \
17437 hardcode_libdir_separator \
17438 fix_srcfile_path \
17439 exclude_expsyms \
17440 include_expsyms \
17441 file_list_spec \
17442 variables_saved_for_relink \
17443 libname_spec \
17444 library_names_spec \
17445 soname_spec \
17446 finish_eval \
17447 old_striplib \
17448 striplib \
17449 compiler_lib_search_dirs \
17450 predep_objects \
17451 postdep_objects \
17452 predeps \
17453 postdeps \
17454 compiler_lib_search_path \
17455 LD_CXX \
17456 compiler_CXX \
17457 lt_prog_compiler_no_builtin_flag_CXX \
17458 lt_prog_compiler_wl_CXX \
17459 lt_prog_compiler_pic_CXX \
17460 lt_prog_compiler_static_CXX \
17461 lt_cv_prog_compiler_c_o_CXX \
17462 export_dynamic_flag_spec_CXX \
17463 whole_archive_flag_spec_CXX \
17464 compiler_needs_object_CXX \
17465 with_gnu_ld_CXX \
17466 allow_undefined_flag_CXX \
17467 no_undefined_flag_CXX \
17468 hardcode_libdir_flag_spec_CXX \
17469 hardcode_libdir_flag_spec_ld_CXX \
17470 hardcode_libdir_separator_CXX \
17471 fix_srcfile_path_CXX \
17472 exclude_expsyms_CXX \
17473 include_expsyms_CXX \
17474 file_list_spec_CXX \
17475 compiler_lib_search_dirs_CXX \
17476 predep_objects_CXX \
17477 postdep_objects_CXX \
17478 predeps_CXX \
17479 postdeps_CXX \
17480 compiler_lib_search_path_CXX; do
17481 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17482 *[\\\\\\\`\\"\\\$]*)
17483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17484 ;;
17485 *)
17486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17487 ;;
17488 esac
17489 done
17490
17491 # Double-quote double-evaled strings.
17492 for var in reload_cmds \
17493 old_postinstall_cmds \
17494 old_postuninstall_cmds \
17495 old_archive_cmds \
17496 extract_expsyms_cmds \
17497 old_archive_from_new_cmds \
17498 old_archive_from_expsyms_cmds \
17499 archive_cmds \
17500 archive_expsym_cmds \
17501 module_cmds \
17502 module_expsym_cmds \
17503 export_symbols_cmds \
17504 prelink_cmds \
17505 postinstall_cmds \
17506 postuninstall_cmds \
17507 finish_cmds \
17508 sys_lib_search_path_spec \
17509 sys_lib_dlsearch_path_spec \
17510 old_archive_cmds_CXX \
17511 old_archive_from_new_cmds_CXX \
17512 old_archive_from_expsyms_cmds_CXX \
17513 archive_cmds_CXX \
17514 archive_expsym_cmds_CXX \
17515 module_cmds_CXX \
17516 module_expsym_cmds_CXX \
17517 export_symbols_cmds_CXX \
17518 prelink_cmds_CXX; do
17519 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17520 *[\\\\\\\`\\"\\\$]*)
17521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17522 ;;
17523 *)
17524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17525 ;;
17526 esac
17527 done
17528
17529 # Fix-up fallback echo if it was mangled by the above quoting rules.
17530 case \$lt_ECHO in
17531 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17532 ;;
17533 esac
17534
17535 ac_aux_dir='$ac_aux_dir'
17536 xsi_shell='$xsi_shell'
17537 lt_shell_append='$lt_shell_append'
17538
17539 # See if we are running on zsh, and set the options which allow our
17540 # commands through without removal of \ escapes INIT.
17541 if test -n "\${ZSH_VERSION+set}" ; then
17542 setopt NO_GLOB_SUBST
17543 fi
17544
17545
17546 PACKAGE='$PACKAGE'
17547 VERSION='$VERSION'
17548 TIMESTAMP='$TIMESTAMP'
17549 RM='$RM'
17550 ofile='$ofile'
17551
17552
17553
17554
17555
17556
17557 _ACEOF
17558
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17560
17561 # Handling of arguments.
17562 for ac_config_target in $ac_config_targets
17563 do
17564 case $ac_config_target in
17565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17566 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17567
17568 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17569 esac
17570 done
17571
17572
17573 # If the user did not use the arguments to specify the items to instantiate,
17574 # then the envvar interface is used. Set only those that are not.
17575 # We use the long form for the default assignment because of an extremely
17576 # bizarre bug on SunOS 4.1.3.
17577 if $ac_need_defaults; then
17578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17580 fi
17581
17582 # Have a temporary directory for convenience. Make it in the build tree
17583 # simply because there is no reason against having it here, and in addition,
17584 # creating and moving files from /tmp can sometimes cause problems.
17585 # Hook for its removal unless debugging.
17586 # Note that there is a small window in which the directory will not be cleaned:
17587 # after its creation but before its name has been assigned to `$tmp'.
17588 $debug ||
17589 {
17590 tmp=
17591 trap 'exit_status=$?
17592 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17593 ' 0
17594 trap 'as_fn_exit 1' 1 2 13 15
17595 }
17596 # Create a (secure) tmp directory for tmp files.
17597
17598 {
17599 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17600 test -n "$tmp" && test -d "$tmp"
17601 } ||
17602 {
17603 tmp=./conf$$-$RANDOM
17604 (umask 077 && mkdir "$tmp")
17605 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17606
17607 # Set up the scripts for CONFIG_FILES section.
17608 # No need to generate them if there are no CONFIG_FILES.
17609 # This happens for instance with `./config.status config.h'.
17610 if test -n "$CONFIG_FILES"; then
17611
17612
17613 ac_cr=`echo X | tr X '\015'`
17614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17615 # But we know of no other shell where ac_cr would be empty at this
17616 # point, so we can use a bashism as a fallback.
17617 if test "x$ac_cr" = x; then
17618 eval ac_cr=\$\'\\r\'
17619 fi
17620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17622 ac_cs_awk_cr='\r'
17623 else
17624 ac_cs_awk_cr=$ac_cr
17625 fi
17626
17627 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17628 _ACEOF
17629
17630
17631 {
17632 echo "cat >conf$$subs.awk <<_ACEOF" &&
17633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17634 echo "_ACEOF"
17635 } >conf$$subs.sh ||
17636 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17638 ac_delim='%!_!# '
17639 for ac_last_try in false false false false false :; do
17640 . ./conf$$subs.sh ||
17641 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17642
17643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17644 if test $ac_delim_n = $ac_delim_num; then
17645 break
17646 elif $ac_last_try; then
17647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17648 else
17649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17650 fi
17651 done
17652 rm -f conf$$subs.sh
17653
17654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17655 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17656 _ACEOF
17657 sed -n '
17658 h
17659 s/^/S["/; s/!.*/"]=/
17660 p
17661 g
17662 s/^[^!]*!//
17663 :repl
17664 t repl
17665 s/'"$ac_delim"'$//
17666 t delim
17667 :nl
17668 h
17669 s/\(.\{148\}\)..*/\1/
17670 t more1
17671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17672 p
17673 n
17674 b repl
17675 :more1
17676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17677 p
17678 g
17679 s/.\{148\}//
17680 t nl
17681 :delim
17682 h
17683 s/\(.\{148\}\)..*/\1/
17684 t more2
17685 s/["\\]/\\&/g; s/^/"/; s/$/"/
17686 p
17687 b
17688 :more2
17689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17690 p
17691 g
17692 s/.\{148\}//
17693 t delim
17694 ' <conf$$subs.awk | sed '
17695 /^[^""]/{
17696 N
17697 s/\n//
17698 }
17699 ' >>$CONFIG_STATUS || ac_write_fail=1
17700 rm -f conf$$subs.awk
17701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17702 _ACAWK
17703 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17704 for (key in S) S_is_set[key] = 1
17705 FS = "\a"
17706
17707 }
17708 {
17709 line = $ 0
17710 nfields = split(line, field, "@")
17711 substed = 0
17712 len = length(field[1])
17713 for (i = 2; i < nfields; i++) {
17714 key = field[i]
17715 keylen = length(key)
17716 if (S_is_set[key]) {
17717 value = S[key]
17718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17719 len += length(value) + length(field[++i])
17720 substed = 1
17721 } else
17722 len += 1 + keylen
17723 }
17724
17725 print line
17726 }
17727
17728 _ACAWK
17729 _ACEOF
17730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17733 else
17734 cat
17735 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17736 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17737 _ACEOF
17738
17739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17741 # trailing colons and then remove the whole line if VPATH becomes empty
17742 # (actually we leave an empty line to preserve line numbers).
17743 if test "x$srcdir" = x.; then
17744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17745 s/:*\$(srcdir):*/:/
17746 s/:*\${srcdir}:*/:/
17747 s/:*@srcdir@:*/:/
17748 s/^\([^=]*=[ ]*\):*/\1/
17749 s/:*$//
17750 s/^[^=]*=[ ]*$//
17751 }'
17752 fi
17753
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755 fi # test -n "$CONFIG_FILES"
17756
17757
17758 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17759 shift
17760 for ac_tag
17761 do
17762 case $ac_tag in
17763 :[FHLC]) ac_mode=$ac_tag; continue;;
17764 esac
17765 case $ac_mode$ac_tag in
17766 :[FHL]*:*);;
17767 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17768 :[FH]-) ac_tag=-:-;;
17769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17770 esac
17771 ac_save_IFS=$IFS
17772 IFS=:
17773 set x $ac_tag
17774 IFS=$ac_save_IFS
17775 shift
17776 ac_file=$1
17777 shift
17778
17779 case $ac_mode in
17780 :L) ac_source=$1;;
17781 :[FH])
17782 ac_file_inputs=
17783 for ac_f
17784 do
17785 case $ac_f in
17786 -) ac_f="$tmp/stdin";;
17787 *) # Look for the file first in the build tree, then in the source tree
17788 # (if the path is not absolute). The absolute path cannot be DOS-style,
17789 # because $ac_f cannot contain `:'.
17790 test -f "$ac_f" ||
17791 case $ac_f in
17792 [\\/$]*) false;;
17793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17794 esac ||
17795 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17796 esac
17797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17798 as_fn_append ac_file_inputs " '$ac_f'"
17799 done
17800
17801 # Let's still pretend it is `configure' which instantiates (i.e., don't
17802 # use $as_me), people would be surprised to read:
17803 # /* config.h. Generated by config.status. */
17804 configure_input='Generated from '`
17805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17806 `' by configure.'
17807 if test x"$ac_file" != x-; then
17808 configure_input="$ac_file. $configure_input"
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17810 $as_echo "$as_me: creating $ac_file" >&6;}
17811 fi
17812 # Neutralize special characters interpreted by sed in replacement strings.
17813 case $configure_input in #(
17814 *\&* | *\|* | *\\* )
17815 ac_sed_conf_input=`$as_echo "$configure_input" |
17816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17817 *) ac_sed_conf_input=$configure_input;;
17818 esac
17819
17820 case $ac_tag in
17821 *:-:* | *:-) cat >"$tmp/stdin" \
17822 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17823 esac
17824 ;;
17825 esac
17826
17827 ac_dir=`$as_dirname -- "$ac_file" ||
17828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17829 X"$ac_file" : 'X\(//\)[^/]' \| \
17830 X"$ac_file" : 'X\(//\)$' \| \
17831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17832 $as_echo X"$ac_file" |
17833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17834 s//\1/
17835 q
17836 }
17837 /^X\(\/\/\)[^/].*/{
17838 s//\1/
17839 q
17840 }
17841 /^X\(\/\/\)$/{
17842 s//\1/
17843 q
17844 }
17845 /^X\(\/\).*/{
17846 s//\1/
17847 q
17848 }
17849 s/.*/./; q'`
17850 as_dir="$ac_dir"; as_fn_mkdir_p
17851 ac_builddir=.
17852
17853 case "$ac_dir" in
17854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17855 *)
17856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17857 # A ".." for each directory in $ac_dir_suffix.
17858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17859 case $ac_top_builddir_sub in
17860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17862 esac ;;
17863 esac
17864 ac_abs_top_builddir=$ac_pwd
17865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17866 # for backward compatibility:
17867 ac_top_builddir=$ac_top_build_prefix
17868
17869 case $srcdir in
17870 .) # We are building in place.
17871 ac_srcdir=.
17872 ac_top_srcdir=$ac_top_builddir_sub
17873 ac_abs_top_srcdir=$ac_pwd ;;
17874 [\\/]* | ?:[\\/]* ) # Absolute name.
17875 ac_srcdir=$srcdir$ac_dir_suffix;
17876 ac_top_srcdir=$srcdir
17877 ac_abs_top_srcdir=$srcdir ;;
17878 *) # Relative name.
17879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17880 ac_top_srcdir=$ac_top_build_prefix$srcdir
17881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17882 esac
17883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17884
17885
17886 case $ac_mode in
17887 :F)
17888 #
17889 # CONFIG_FILE
17890 #
17891
17892 case $INSTALL in
17893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17895 esac
17896 _ACEOF
17897
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17899 # If the template does not know about datarootdir, expand it.
17900 # FIXME: This hack should be removed a few years after 2.60.
17901 ac_datarootdir_hack=; ac_datarootdir_seen=
17902 ac_sed_dataroot='
17903 /datarootdir/ {
17904 p
17905 q
17906 }
17907 /@datadir@/p
17908 /@docdir@/p
17909 /@infodir@/p
17910 /@localedir@/p
17911 /@mandir@/p'
17912 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17913 *datarootdir*) ac_datarootdir_seen=yes;;
17914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17916 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17917 _ACEOF
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919 ac_datarootdir_hack='
17920 s&@datadir@&$datadir&g
17921 s&@docdir@&$docdir&g
17922 s&@infodir@&$infodir&g
17923 s&@localedir@&$localedir&g
17924 s&@mandir@&$mandir&g
17925 s&\\\${datarootdir}&$datarootdir&g' ;;
17926 esac
17927 _ACEOF
17928
17929 # Neutralize VPATH when `$srcdir' = `.'.
17930 # Shell code in configure.ac might set extrasub.
17931 # FIXME: do we really want to maintain this feature?
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933 ac_sed_extra="$ac_vpsub
17934 $extrasub
17935 _ACEOF
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17937 :t
17938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17939 s|@configure_input@|$ac_sed_conf_input|;t t
17940 s&@top_builddir@&$ac_top_builddir_sub&;t t
17941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17942 s&@srcdir@&$ac_srcdir&;t t
17943 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17944 s&@top_srcdir@&$ac_top_srcdir&;t t
17945 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17946 s&@builddir@&$ac_builddir&;t t
17947 s&@abs_builddir@&$ac_abs_builddir&;t t
17948 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17949 s&@INSTALL@&$ac_INSTALL&;t t
17950 $ac_datarootdir_hack
17951 "
17952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17953 || as_fn_error "could not create $ac_file" "$LINENO" 5
17954
17955 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17956 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17957 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17959 which seems to be undefined. Please make sure it is defined." >&5
17960 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17961 which seems to be undefined. Please make sure it is defined." >&2;}
17962
17963 rm -f "$tmp/stdin"
17964 case $ac_file in
17965 -) cat "$tmp/out" && rm -f "$tmp/out";;
17966 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17967 esac \
17968 || as_fn_error "could not create $ac_file" "$LINENO" 5
17969 ;;
17970
17971
17972 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17973 $as_echo "$as_me: executing $ac_file commands" >&6;}
17974 ;;
17975 esac
17976
17977
17978 case $ac_file$ac_mode in
17979 "libtool":C)
17980
17981 # See if we are running on zsh, and set the options which allow our
17982 # commands through without removal of \ escapes.
17983 if test -n "${ZSH_VERSION+set}" ; then
17984 setopt NO_GLOB_SUBST
17985 fi
17986
17987 cfgfile="${ofile}T"
17988 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17989 $RM "$cfgfile"
17990
17991 cat <<_LT_EOF >> "$cfgfile"
17992 #! $SHELL
17993
17994 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17995 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17998 #
17999 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18000 # 2006, 2007, 2008 Free Software Foundation, Inc.
18001 # Written by Gordon Matzigkeit, 1996
18002 #
18003 # This file is part of GNU Libtool.
18004 #
18005 # GNU Libtool is free software; you can redistribute it and/or
18006 # modify it under the terms of the GNU General Public License as
18007 # published by the Free Software Foundation; either version 2 of
18008 # the License, or (at your option) any later version.
18009 #
18010 # As a special exception to the GNU General Public License,
18011 # if you distribute this file as part of a program or library that
18012 # is built using GNU Libtool, you may include this file under the
18013 # same distribution terms that you use for the rest of that program.
18014 #
18015 # GNU Libtool is distributed in the hope that it will be useful,
18016 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18017 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18018 # GNU General Public License for more details.
18019 #
18020 # You should have received a copy of the GNU General Public License
18021 # along with GNU Libtool; see the file COPYING. If not, a copy
18022 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18023 # obtained by writing to the Free Software Foundation, Inc.,
18024 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18025
18026
18027 # The names of the tagged configurations supported by this script.
18028 available_tags="CXX "
18029
18030 # ### BEGIN LIBTOOL CONFIG
18031
18032 # Which release of libtool.m4 was used?
18033 macro_version=$macro_version
18034 macro_revision=$macro_revision
18035
18036 # Whether or not to build static libraries.
18037 build_old_libs=$enable_static
18038
18039 # Whether or not to build shared libraries.
18040 build_libtool_libs=$enable_shared
18041
18042 # What type of objects to build.
18043 pic_mode=$pic_mode
18044
18045 # Whether or not to optimize for fast installation.
18046 fast_install=$enable_fast_install
18047
18048 # The host system.
18049 host_alias=$host_alias
18050 host=$host
18051 host_os=$host_os
18052
18053 # The build system.
18054 build_alias=$build_alias
18055 build=$build
18056 build_os=$build_os
18057
18058 # A sed program that does not truncate output.
18059 SED=$lt_SED
18060
18061 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18062 Xsed="\$SED -e 1s/^X//"
18063
18064 # A grep program that handles long lines.
18065 GREP=$lt_GREP
18066
18067 # An ERE matcher.
18068 EGREP=$lt_EGREP
18069
18070 # A literal string matcher.
18071 FGREP=$lt_FGREP
18072
18073 # A BSD- or MS-compatible name lister.
18074 NM=$lt_NM
18075
18076 # Whether we need soft or hard links.
18077 LN_S=$lt_LN_S
18078
18079 # What is the maximum length of a command?
18080 max_cmd_len=$max_cmd_len
18081
18082 # Object file suffix (normally "o").
18083 objext=$ac_objext
18084
18085 # Executable file suffix (normally "").
18086 exeext=$exeext
18087
18088 # whether the shell understands "unset".
18089 lt_unset=$lt_unset
18090
18091 # turn spaces into newlines.
18092 SP2NL=$lt_lt_SP2NL
18093
18094 # turn newlines into spaces.
18095 NL2SP=$lt_lt_NL2SP
18096
18097 # How to create reloadable object files.
18098 reload_flag=$lt_reload_flag
18099 reload_cmds=$lt_reload_cmds
18100
18101 # An object symbol dumper.
18102 OBJDUMP=$lt_OBJDUMP
18103
18104 # Method to check whether dependent libraries are shared objects.
18105 deplibs_check_method=$lt_deplibs_check_method
18106
18107 # Command to use when deplibs_check_method == "file_magic".
18108 file_magic_cmd=$lt_file_magic_cmd
18109
18110 # The archiver.
18111 AR=$lt_AR
18112 AR_FLAGS=$lt_AR_FLAGS
18113
18114 # A symbol stripping program.
18115 STRIP=$lt_STRIP
18116
18117 # Commands used to install an old-style archive.
18118 RANLIB=$lt_RANLIB
18119 old_postinstall_cmds=$lt_old_postinstall_cmds
18120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18121
18122 # A C compiler.
18123 LTCC=$lt_CC
18124
18125 # LTCC compiler flags.
18126 LTCFLAGS=$lt_CFLAGS
18127
18128 # Take the output of nm and produce a listing of raw symbols and C names.
18129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18130
18131 # Transform the output of nm in a proper C declaration.
18132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18133
18134 # Transform the output of nm in a C name address pair.
18135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18136
18137 # Transform the output of nm in a C name address pair when lib prefix is needed.
18138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18139
18140 # The name of the directory that contains temporary libtool files.
18141 objdir=$objdir
18142
18143 # Shell to use when invoking shell scripts.
18144 SHELL=$lt_SHELL
18145
18146 # An echo program that does not interpret backslashes.
18147 ECHO=$lt_ECHO
18148
18149 # Used to examine libraries when file_magic_cmd begins with "file".
18150 MAGIC_CMD=$MAGIC_CMD
18151
18152 # Must we lock files when doing compilation?
18153 need_locks=$lt_need_locks
18154
18155 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18156 DSYMUTIL=$lt_DSYMUTIL
18157
18158 # Tool to change global to local symbols on Mac OS X.
18159 NMEDIT=$lt_NMEDIT
18160
18161 # Tool to manipulate fat objects and archives on Mac OS X.
18162 LIPO=$lt_LIPO
18163
18164 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18165 OTOOL=$lt_OTOOL
18166
18167 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18168 OTOOL64=$lt_OTOOL64
18169
18170 # Old archive suffix (normally "a").
18171 libext=$libext
18172
18173 # Shared library suffix (normally ".so").
18174 shrext_cmds=$lt_shrext_cmds
18175
18176 # The commands to extract the exported symbol list from a shared archive.
18177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18178
18179 # Variables whose values should be saved in libtool wrapper scripts and
18180 # restored at link time.
18181 variables_saved_for_relink=$lt_variables_saved_for_relink
18182
18183 # Do we need the "lib" prefix for modules?
18184 need_lib_prefix=$need_lib_prefix
18185
18186 # Do we need a version for libraries?
18187 need_version=$need_version
18188
18189 # Library versioning type.
18190 version_type=$version_type
18191
18192 # Shared library runtime path variable.
18193 runpath_var=$runpath_var
18194
18195 # Shared library path variable.
18196 shlibpath_var=$shlibpath_var
18197
18198 # Is shlibpath searched before the hard-coded library search path?
18199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18200
18201 # Format of library name prefix.
18202 libname_spec=$lt_libname_spec
18203
18204 # List of archive names. First name is the real one, the rest are links.
18205 # The last name is the one that the linker finds with -lNAME
18206 library_names_spec=$lt_library_names_spec
18207
18208 # The coded name of the library, if different from the real name.
18209 soname_spec=$lt_soname_spec
18210
18211 # Command to use after installation of a shared archive.
18212 postinstall_cmds=$lt_postinstall_cmds
18213
18214 # Command to use after uninstallation of a shared archive.
18215 postuninstall_cmds=$lt_postuninstall_cmds
18216
18217 # Commands used to finish a libtool library installation in a directory.
18218 finish_cmds=$lt_finish_cmds
18219
18220 # As "finish_cmds", except a single script fragment to be evaled but
18221 # not shown.
18222 finish_eval=$lt_finish_eval
18223
18224 # Whether we should hardcode library paths into libraries.
18225 hardcode_into_libs=$hardcode_into_libs
18226
18227 # Compile-time system search path for libraries.
18228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18229
18230 # Run-time system search path for libraries.
18231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18232
18233 # Whether dlopen is supported.
18234 dlopen_support=$enable_dlopen
18235
18236 # Whether dlopen of programs is supported.
18237 dlopen_self=$enable_dlopen_self
18238
18239 # Whether dlopen of statically linked programs is supported.
18240 dlopen_self_static=$enable_dlopen_self_static
18241
18242 # Commands to strip libraries.
18243 old_striplib=$lt_old_striplib
18244 striplib=$lt_striplib
18245
18246
18247 # The linker used to build libraries.
18248 LD=$lt_LD
18249
18250 # Commands used to build an old-style archive.
18251 old_archive_cmds=$lt_old_archive_cmds
18252
18253 # A language specific compiler.
18254 CC=$lt_compiler
18255
18256 # Is the compiler the GNU compiler?
18257 with_gcc=$GCC
18258
18259 # Compiler flag to turn off builtin functions.
18260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18261
18262 # How to pass a linker flag through the compiler.
18263 wl=$lt_lt_prog_compiler_wl
18264
18265 # Additional compiler flags for building library objects.
18266 pic_flag=$lt_lt_prog_compiler_pic
18267
18268 # Compiler flag to prevent dynamic linking.
18269 link_static_flag=$lt_lt_prog_compiler_static
18270
18271 # Does compiler simultaneously support -c and -o options?
18272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18273
18274 # Whether or not to add -lc for building shared libraries.
18275 build_libtool_need_lc=$archive_cmds_need_lc
18276
18277 # Whether or not to disallow shared libs when runtime libs are static.
18278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18279
18280 # Compiler flag to allow reflexive dlopens.
18281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18282
18283 # Compiler flag to generate shared objects directly from archives.
18284 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18285
18286 # Whether the compiler copes with passing no objects directly.
18287 compiler_needs_object=$lt_compiler_needs_object
18288
18289 # Create an old-style archive from a shared archive.
18290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18291
18292 # Create a temporary old-style archive to link instead of a shared archive.
18293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18294
18295 # Commands used to build a shared archive.
18296 archive_cmds=$lt_archive_cmds
18297 archive_expsym_cmds=$lt_archive_expsym_cmds
18298
18299 # Commands used to build a loadable module if different from building
18300 # a shared archive.
18301 module_cmds=$lt_module_cmds
18302 module_expsym_cmds=$lt_module_expsym_cmds
18303
18304 # Whether we are building with GNU ld or not.
18305 with_gnu_ld=$lt_with_gnu_ld
18306
18307 # Flag that allows shared libraries with undefined symbols to be built.
18308 allow_undefined_flag=$lt_allow_undefined_flag
18309
18310 # Flag that enforces no undefined symbols.
18311 no_undefined_flag=$lt_no_undefined_flag
18312
18313 # Flag to hardcode \$libdir into a binary during linking.
18314 # This must work even if \$libdir does not exist
18315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18316
18317 # If ld is used when linking, flag to hardcode \$libdir into a binary
18318 # during linking. This must work even if \$libdir does not exist.
18319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18320
18321 # Whether we need a single "-rpath" flag with a separated argument.
18322 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18323
18324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18325 # DIR into the resulting binary.
18326 hardcode_direct=$hardcode_direct
18327
18328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18329 # DIR into the resulting binary and the resulting library dependency is
18330 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18331 # library is relocated.
18332 hardcode_direct_absolute=$hardcode_direct_absolute
18333
18334 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18335 # into the resulting binary.
18336 hardcode_minus_L=$hardcode_minus_L
18337
18338 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18339 # into the resulting binary.
18340 hardcode_shlibpath_var=$hardcode_shlibpath_var
18341
18342 # Set to "yes" if building a shared library automatically hardcodes DIR
18343 # into the library and all subsequent libraries and executables linked
18344 # against it.
18345 hardcode_automatic=$hardcode_automatic
18346
18347 # Set to yes if linker adds runtime paths of dependent libraries
18348 # to runtime path list.
18349 inherit_rpath=$inherit_rpath
18350
18351 # Whether libtool must link a program against all its dependency libraries.
18352 link_all_deplibs=$link_all_deplibs
18353
18354 # Fix the shell variable \$srcfile for the compiler.
18355 fix_srcfile_path=$lt_fix_srcfile_path
18356
18357 # Set to "yes" if exported symbols are required.
18358 always_export_symbols=$always_export_symbols
18359
18360 # The commands to list exported symbols.
18361 export_symbols_cmds=$lt_export_symbols_cmds
18362
18363 # Symbols that should not be listed in the preloaded symbols.
18364 exclude_expsyms=$lt_exclude_expsyms
18365
18366 # Symbols that must always be exported.
18367 include_expsyms=$lt_include_expsyms
18368
18369 # Commands necessary for linking programs (against libraries) with templates.
18370 prelink_cmds=$lt_prelink_cmds
18371
18372 # Specify filename containing input files.
18373 file_list_spec=$lt_file_list_spec
18374
18375 # How to hardcode a shared library path into an executable.
18376 hardcode_action=$hardcode_action
18377
18378 # The directories searched by this compiler when creating a shared library.
18379 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18380
18381 # Dependencies to place before and after the objects being linked to
18382 # create a shared library.
18383 predep_objects=$lt_predep_objects
18384 postdep_objects=$lt_postdep_objects
18385 predeps=$lt_predeps
18386 postdeps=$lt_postdeps
18387
18388 # The library search path used internally by the compiler when linking
18389 # a shared library.
18390 compiler_lib_search_path=$lt_compiler_lib_search_path
18391
18392 # ### END LIBTOOL CONFIG
18393
18394 _LT_EOF
18395
18396 case $host_os in
18397 aix3*)
18398 cat <<\_LT_EOF >> "$cfgfile"
18399 # AIX sometimes has problems with the GCC collect2 program. For some
18400 # reason, if we set the COLLECT_NAMES environment variable, the problems
18401 # vanish in a puff of smoke.
18402 if test "X${COLLECT_NAMES+set}" != Xset; then
18403 COLLECT_NAMES=
18404 export COLLECT_NAMES
18405 fi
18406 _LT_EOF
18407 ;;
18408 esac
18409
18410
18411 ltmain="$ac_aux_dir/ltmain.sh"
18412
18413
18414 # We use sed instead of cat because bash on DJGPP gets confused if
18415 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18416 # text mode, it properly converts lines to CR/LF. This bash problem
18417 # is reportedly fixed, but why not run on old versions too?
18418 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18419 || (rm -f "$cfgfile"; exit 1)
18420
18421 case $xsi_shell in
18422 yes)
18423 cat << \_LT_EOF >> "$cfgfile"
18424
18425 # func_dirname file append nondir_replacement
18426 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18427 # otherwise set result to NONDIR_REPLACEMENT.
18428 func_dirname ()
18429 {
18430 case ${1} in
18431 */*) func_dirname_result="${1%/*}${2}" ;;
18432 * ) func_dirname_result="${3}" ;;
18433 esac
18434 }
18435
18436 # func_basename file
18437 func_basename ()
18438 {
18439 func_basename_result="${1##*/}"
18440 }
18441
18442 # func_dirname_and_basename file append nondir_replacement
18443 # perform func_basename and func_dirname in a single function
18444 # call:
18445 # dirname: Compute the dirname of FILE. If nonempty,
18446 # add APPEND to the result, otherwise set result
18447 # to NONDIR_REPLACEMENT.
18448 # value returned in "$func_dirname_result"
18449 # basename: Compute filename of FILE.
18450 # value retuned in "$func_basename_result"
18451 # Implementation must be kept synchronized with func_dirname
18452 # and func_basename. For efficiency, we do not delegate to
18453 # those functions but instead duplicate the functionality here.
18454 func_dirname_and_basename ()
18455 {
18456 case ${1} in
18457 */*) func_dirname_result="${1%/*}${2}" ;;
18458 * ) func_dirname_result="${3}" ;;
18459 esac
18460 func_basename_result="${1##*/}"
18461 }
18462
18463 # func_stripname prefix suffix name
18464 # strip PREFIX and SUFFIX off of NAME.
18465 # PREFIX and SUFFIX must not contain globbing or regex special
18466 # characters, hashes, percent signs, but SUFFIX may contain a leading
18467 # dot (in which case that matches only a dot).
18468 func_stripname ()
18469 {
18470 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18471 # positional parameters, so assign one to ordinary parameter first.
18472 func_stripname_result=${3}
18473 func_stripname_result=${func_stripname_result#"${1}"}
18474 func_stripname_result=${func_stripname_result%"${2}"}
18475 }
18476
18477 # func_opt_split
18478 func_opt_split ()
18479 {
18480 func_opt_split_opt=${1%%=*}
18481 func_opt_split_arg=${1#*=}
18482 }
18483
18484 # func_lo2o object
18485 func_lo2o ()
18486 {
18487 case ${1} in
18488 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18489 *) func_lo2o_result=${1} ;;
18490 esac
18491 }
18492
18493 # func_xform libobj-or-source
18494 func_xform ()
18495 {
18496 func_xform_result=${1%.*}.lo
18497 }
18498
18499 # func_arith arithmetic-term...
18500 func_arith ()
18501 {
18502 func_arith_result=$(( $* ))
18503 }
18504
18505 # func_len string
18506 # STRING may not start with a hyphen.
18507 func_len ()
18508 {
18509 func_len_result=${#1}
18510 }
18511
18512 _LT_EOF
18513 ;;
18514 *) # Bourne compatible functions.
18515 cat << \_LT_EOF >> "$cfgfile"
18516
18517 # func_dirname file append nondir_replacement
18518 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18519 # otherwise set result to NONDIR_REPLACEMENT.
18520 func_dirname ()
18521 {
18522 # Extract subdirectory from the argument.
18523 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18524 if test "X$func_dirname_result" = "X${1}"; then
18525 func_dirname_result="${3}"
18526 else
18527 func_dirname_result="$func_dirname_result${2}"
18528 fi
18529 }
18530
18531 # func_basename file
18532 func_basename ()
18533 {
18534 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18535 }
18536
18537
18538 # func_stripname prefix suffix name
18539 # strip PREFIX and SUFFIX off of NAME.
18540 # PREFIX and SUFFIX must not contain globbing or regex special
18541 # characters, hashes, percent signs, but SUFFIX may contain a leading
18542 # dot (in which case that matches only a dot).
18543 # func_strip_suffix prefix name
18544 func_stripname ()
18545 {
18546 case ${2} in
18547 .*) func_stripname_result=`$ECHO "X${3}" \
18548 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18549 *) func_stripname_result=`$ECHO "X${3}" \
18550 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18551 esac
18552 }
18553
18554 # sed scripts:
18555 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18556 my_sed_long_arg='1s/^-[^=]*=//'
18557
18558 # func_opt_split
18559 func_opt_split ()
18560 {
18561 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18562 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18563 }
18564
18565 # func_lo2o object
18566 func_lo2o ()
18567 {
18568 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18569 }
18570
18571 # func_xform libobj-or-source
18572 func_xform ()
18573 {
18574 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18575 }
18576
18577 # func_arith arithmetic-term...
18578 func_arith ()
18579 {
18580 func_arith_result=`expr "$@"`
18581 }
18582
18583 # func_len string
18584 # STRING may not start with a hyphen.
18585 func_len ()
18586 {
18587 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18588 }
18589
18590 _LT_EOF
18591 esac
18592
18593 case $lt_shell_append in
18594 yes)
18595 cat << \_LT_EOF >> "$cfgfile"
18596
18597 # func_append var value
18598 # Append VALUE to the end of shell variable VAR.
18599 func_append ()
18600 {
18601 eval "$1+=\$2"
18602 }
18603 _LT_EOF
18604 ;;
18605 *)
18606 cat << \_LT_EOF >> "$cfgfile"
18607
18608 # func_append var value
18609 # Append VALUE to the end of shell variable VAR.
18610 func_append ()
18611 {
18612 eval "$1=\$$1\$2"
18613 }
18614
18615 _LT_EOF
18616 ;;
18617 esac
18618
18619
18620 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18621 || (rm -f "$cfgfile"; exit 1)
18622
18623 mv -f "$cfgfile" "$ofile" ||
18624 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18625 chmod +x "$ofile"
18626
18627
18628 cat <<_LT_EOF >> "$ofile"
18629
18630 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18631
18632 # The linker used to build libraries.
18633 LD=$lt_LD_CXX
18634
18635 # Commands used to build an old-style archive.
18636 old_archive_cmds=$lt_old_archive_cmds_CXX
18637
18638 # A language specific compiler.
18639 CC=$lt_compiler_CXX
18640
18641 # Is the compiler the GNU compiler?
18642 with_gcc=$GCC_CXX
18643
18644 # Compiler flag to turn off builtin functions.
18645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18646
18647 # How to pass a linker flag through the compiler.
18648 wl=$lt_lt_prog_compiler_wl_CXX
18649
18650 # Additional compiler flags for building library objects.
18651 pic_flag=$lt_lt_prog_compiler_pic_CXX
18652
18653 # Compiler flag to prevent dynamic linking.
18654 link_static_flag=$lt_lt_prog_compiler_static_CXX
18655
18656 # Does compiler simultaneously support -c and -o options?
18657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18658
18659 # Whether or not to add -lc for building shared libraries.
18660 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18661
18662 # Whether or not to disallow shared libs when runtime libs are static.
18663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18664
18665 # Compiler flag to allow reflexive dlopens.
18666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18667
18668 # Compiler flag to generate shared objects directly from archives.
18669 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18670
18671 # Whether the compiler copes with passing no objects directly.
18672 compiler_needs_object=$lt_compiler_needs_object_CXX
18673
18674 # Create an old-style archive from a shared archive.
18675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18676
18677 # Create a temporary old-style archive to link instead of a shared archive.
18678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18679
18680 # Commands used to build a shared archive.
18681 archive_cmds=$lt_archive_cmds_CXX
18682 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18683
18684 # Commands used to build a loadable module if different from building
18685 # a shared archive.
18686 module_cmds=$lt_module_cmds_CXX
18687 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18688
18689 # Whether we are building with GNU ld or not.
18690 with_gnu_ld=$lt_with_gnu_ld_CXX
18691
18692 # Flag that allows shared libraries with undefined symbols to be built.
18693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18694
18695 # Flag that enforces no undefined symbols.
18696 no_undefined_flag=$lt_no_undefined_flag_CXX
18697
18698 # Flag to hardcode \$libdir into a binary during linking.
18699 # This must work even if \$libdir does not exist
18700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18701
18702 # If ld is used when linking, flag to hardcode \$libdir into a binary
18703 # during linking. This must work even if \$libdir does not exist.
18704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18705
18706 # Whether we need a single "-rpath" flag with a separated argument.
18707 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18708
18709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18710 # DIR into the resulting binary.
18711 hardcode_direct=$hardcode_direct_CXX
18712
18713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18714 # DIR into the resulting binary and the resulting library dependency is
18715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18716 # library is relocated.
18717 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18718
18719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18720 # into the resulting binary.
18721 hardcode_minus_L=$hardcode_minus_L_CXX
18722
18723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18724 # into the resulting binary.
18725 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18726
18727 # Set to "yes" if building a shared library automatically hardcodes DIR
18728 # into the library and all subsequent libraries and executables linked
18729 # against it.
18730 hardcode_automatic=$hardcode_automatic_CXX
18731
18732 # Set to yes if linker adds runtime paths of dependent libraries
18733 # to runtime path list.
18734 inherit_rpath=$inherit_rpath_CXX
18735
18736 # Whether libtool must link a program against all its dependency libraries.
18737 link_all_deplibs=$link_all_deplibs_CXX
18738
18739 # Fix the shell variable \$srcfile for the compiler.
18740 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18741
18742 # Set to "yes" if exported symbols are required.
18743 always_export_symbols=$always_export_symbols_CXX
18744
18745 # The commands to list exported symbols.
18746 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18747
18748 # Symbols that should not be listed in the preloaded symbols.
18749 exclude_expsyms=$lt_exclude_expsyms_CXX
18750
18751 # Symbols that must always be exported.
18752 include_expsyms=$lt_include_expsyms_CXX
18753
18754 # Commands necessary for linking programs (against libraries) with templates.
18755 prelink_cmds=$lt_prelink_cmds_CXX
18756
18757 # Specify filename containing input files.
18758 file_list_spec=$lt_file_list_spec_CXX
18759
18760 # How to hardcode a shared library path into an executable.
18761 hardcode_action=$hardcode_action_CXX
18762
18763 # The directories searched by this compiler when creating a shared library.
18764 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18765
18766 # Dependencies to place before and after the objects being linked to
18767 # create a shared library.
18768 predep_objects=$lt_predep_objects_CXX
18769 postdep_objects=$lt_postdep_objects_CXX
18770 predeps=$lt_predeps_CXX
18771 postdeps=$lt_postdeps_CXX
18772
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18776
18777 # ### END LIBTOOL TAG CONFIG: CXX
18778 _LT_EOF
18779
18780 ;;
18781
18782 esac
18783 done # for ac_tag
18784
18785
18786 as_fn_exit 0
18787 _ACEOF
18788 ac_clean_files=$ac_clean_files_save
18789
18790 test $ac_write_fail = 0 ||
18791 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18792
18793
18794 # configure is writing to config.log, and then calls config.status.
18795 # config.status does its own redirection, appending to config.log.
18796 # Unfortunately, on DOS this fails, as config.log is still kept open
18797 # by configure, so config.status won't be able to write to it; its
18798 # output is simply discarded. So we exec the FD to /dev/null,
18799 # effectively closing config.log, so it can be properly (re)opened and
18800 # appended to by config.status. When coming back to configure, we
18801 # need to make the FD available again.
18802 if test "$no_create" != yes; then
18803 ac_cs_success=:
18804 ac_config_status_args=
18805 test "$silent" = yes &&
18806 ac_config_status_args="$ac_config_status_args --quiet"
18807 exec 5>/dev/null
18808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18809 exec 5>>config.log
18810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18811 # would make configure fail if this is the last instruction.
18812 $ac_cs_success || as_fn_exit $?
18813 fi
18814 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18816 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18817 fi
18818