]> git.saurik.com Git - cycript.git/blob - configure
Added a weird nil-specific toString() check.
[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 ac_ct_OBJCXX
809 OBJCXXFLAGS
810 OBJCXX
811 ifGNUmake
812 LIBFFI_LIBS
813 LIBFFI_CFLAGS
814 CY_EXECUTE
815 WEBKIT_LIBS
816 WEBKIT_CFLAGS
817 LTLIBICONV
818 LIBICONV
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 CXXCPP
823 ac_ct_CXX
824 CXXFLAGS
825 CXX
826 LTLIBAPR
827 TIME
828 GPERF
829 _BASH
830 FLEX
831 LEXLIB
832 LEX_OUTPUT_ROOT
833 LEX
834 BISON
835 AWK
836 YFLAGS
837 YACC
838 PKG_CONFIG
839 CPP
840 OTOOL64
841 OTOOL
842 LIPO
843 NMEDIT
844 DSYMUTIL
845 lt_ECHO
846 RANLIB
847 STRIP
848 AR
849 OBJDUMP
850 LN_S
851 NM
852 ac_ct_DUMPBIN
853 DUMPBIN
854 LD
855 FGREP
856 EGREP
857 GREP
858 SED
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 host_os
867 host_vendor
868 host_cpu
869 host
870 build_os
871 build_vendor
872 build_cpu
873 build
874 LIBTOOL
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 enable_static
917 enable_shared
918 with_pic
919 enable_fast_install
920 with_gnu_ld
921 enable_libtool_lock
922 with_apr
923 enable_rpath
924 with_libiconv_prefix
925 '
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CPP
935 PKG_CONFIG
936 YACC
937 YFLAGS
938 CXX
939 CXXFLAGS
940 CCC
941 CXXCPP
942 WEBKIT_CFLAGS
943 WEBKIT_LIBS
944 LIBFFI_CFLAGS
945 LIBFFI_LIBS
946 OBJCXX
947 OBJCXXFLAGS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1007 fi
1008
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
1013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
1019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1024
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1039
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1044
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1077
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1102
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1106
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1113
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1118
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1124
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1131
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1136
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1141
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1148
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1153
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1160
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1165
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1169
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1173
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1177
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1186
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1191
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1198
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1205
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1222
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1227
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1232
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1297
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1331
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1345
1346 *)
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 ;;
1353
1354 esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1375 do
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1405 cross_compiling=yes
1406 fi
1407 fi
1408
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412 test "$silent" = yes && exec 6>/dev/null
1413
1414
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\).*/{
1446 s//\1/
1447 q
1448 }
1449 s/.*/./; q'`
1450 srcdir=$ac_confdir
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 srcdir=..
1453 fi
1454 else
1455 ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 srcdir=.
1468 fi
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1481
1482 #
1483 # Report the --help message.
1484 #
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1488 cat <<_ACEOF
1489 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1490
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1495
1496 Defaults for the options are specified in brackets.
1497
1498 Configuration:
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 [PREFIX]
1514
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1519
1520 For better control, use the options below.
1521
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1542 _ACEOF
1543
1544 cat <<\_ACEOF
1545
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of Cycript 0.9:";;
1555 esac
1556 cat <<\_ACEOF
1557
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-static[=PKGS] build static libraries [default=no]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation [default=yes]
1566 --disable-libtool-lock avoid locking (might break parallel builds)
1567 --disable-rpath do not hardcode runtime library paths
1568
1569 Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-pic try to use only PIC/non-PIC objects [default=use
1573 both]
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-apr=PATH prefix for installed APR or the full path to
1576 apr-config
1577 --with-gnu-ld assume the C compiler uses GNU ld default=no
1578 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1579 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1580
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CPP C preprocessor
1590 PKG_CONFIG path to pkg-config utility
1591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
1596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
1598 CXXCPP C++ preprocessor
1599 WEBKIT_CFLAGS
1600 C compiler flags for WEBKIT, overriding pkg-config
1601 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1602 LIBFFI_CFLAGS
1603 C compiler flags for LIBFFI, overriding pkg-config
1604 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1605 OBJCXX Objective C++ compiler command
1606 OBJCXXFLAGS Objective C++ compiler flags
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 Report bugs to <saurik@saurik.com>.
1612 Cycript home page: <http://www.cycript.org/>.
1613 _ACEOF
1614 ac_status=$?
1615 fi
1616
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1624
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *)
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1640
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1665 else
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1669 done
1670 fi
1671
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674 cat <<\_ACEOF
1675 Cycript configure 0.9
1676 generated by GNU Autoconf 2.65
1677
1678 Copyright (C) 2009 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681 _ACEOF
1682 exit
1683 fi
1684
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1688
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_compile
1726
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_link ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 $as_test_x conftest$ac_exeext
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762 fi
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_link
1772
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_header_compile
1803
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } >/dev/null && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_cpp
1840
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1845 ac_fn_c_try_run ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=$ac_status
1876 fi
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_run
1882
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898 #define $2 innocuous_$2
1899
1900 /* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char $2 (); below.
1902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903 <limits.h> exists even on freestanding compilers. */
1904
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1910
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main ()
1929 {
1930 return $2 ();
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext \
1941 conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953 # the include files in INCLUDES and setting the cache variable VAR
1954 # accordingly.
1955 ac_fn_c_check_header_mongrel ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 else
1968 # Is the header compilable?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970 $as_echo_n "checking $2 usability... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $4
1974 #include <$2>
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_header_compiler=yes
1978 else
1979 ac_header_compiler=no
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983 $as_echo "$ac_header_compiler" >&6; }
1984
1985 # Is the header present?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987 $as_echo_n "checking $2 presence... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_cpp "$LINENO"; then :
1993 ac_header_preproc=yes
1994 else
1995 ac_header_preproc=no
1996 fi
1997 rm -f conftest.err conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999 $as_echo "$ac_header_preproc" >&6; }
2000
2001 # So? What about this header?
2002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2003 yes:no: )
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ;;
2009 no:yes:* )
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2013 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2017 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 ( cat <<\_ASBOX
2021 ## -------------------------------- ##
2022 ## Report this to saurik@saurik.com ##
2023 ## -------------------------------- ##
2024 _ASBOX
2025 ) | sed "s/^/$as_me: WARNING: /" >&2
2026 ;;
2027 esac
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2032 else
2033 eval "$3=\$ac_header_compiler"
2034 fi
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 fi
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
2041 } # ac_fn_c_check_header_mongrel
2042
2043 # ac_fn_cxx_try_compile LINENO
2044 # ----------------------------
2045 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_cxx_try_compile ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_cxx_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075 fi
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 as_fn_set_status $ac_retval
2078
2079 } # ac_fn_cxx_try_compile
2080
2081 # ac_fn_cxx_try_cpp LINENO
2082 # ------------------------
2083 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2084 ac_fn_cxx_try_cpp ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if { { ac_try="$ac_cpp conftest.$ac_ext"
2088 case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2095 ac_status=$?
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2100 fi
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } >/dev/null && {
2103 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2104 test ! -s conftest.err
2105 }; then :
2106 ac_retval=0
2107 else
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1
2112 fi
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 as_fn_set_status $ac_retval
2115
2116 } # ac_fn_cxx_try_cpp
2117
2118 # ac_fn_cxx_try_link LINENO
2119 # -------------------------
2120 # Try to link conftest.$ac_ext, and return whether this succeeded.
2121 ac_fn_cxx_try_link ()
2122 {
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 rm -f conftest.$ac_objext conftest$ac_exeext
2125 if { { ac_try="$ac_link"
2126 case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_link") 2>conftest.err
2133 ac_status=$?
2134 if test -s conftest.err; then
2135 grep -v '^ *+' conftest.err >conftest.er1
2136 cat conftest.er1 >&5
2137 mv -f conftest.er1 conftest.err
2138 fi
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; } && {
2141 test -z "$ac_cxx_werror_flag" ||
2142 test ! -s conftest.err
2143 } && test -s conftest$ac_exeext && {
2144 test "$cross_compiling" = yes ||
2145 $as_test_x conftest$ac_exeext
2146 }; then :
2147 ac_retval=0
2148 else
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153 fi
2154 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2155 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2156 # interfere with the next link command; also delete a directory that is
2157 # left behind by Apple's compiler. We do this before executing the actions.
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 as_fn_set_status $ac_retval
2161
2162 } # ac_fn_cxx_try_link
2163
2164 # ac_fn_objcxx_try_compile LINENO
2165 # -------------------------------
2166 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2167 ac_fn_objcxx_try_compile ()
2168 {
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 rm -f conftest.$ac_objext
2171 if { { ac_try="$ac_compile"
2172 case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_compile") 2>conftest.err
2179 ac_status=$?
2180 if test -s conftest.err; then
2181 grep -v '^ *+' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 mv -f conftest.er1 conftest.err
2184 fi
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && {
2187 test -z "$ac_objcxx_werror_flag" ||
2188 test ! -s conftest.err
2189 } && test -s conftest.$ac_objext; then :
2190 ac_retval=0
2191 else
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_retval=1
2196 fi
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 as_fn_set_status $ac_retval
2199
2200 } # ac_fn_objcxx_try_compile
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by Cycript $as_me 0.9, which was
2206 generated by GNU Autoconf 2.65. Invocation command line was
2207
2208 $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2226
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2243 done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269 for ac_arg
2270 do
2271 case $ac_arg in
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2275 continue ;;
2276 *\'*)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 esac
2279 case $ac_pass in
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281 2)
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2285 else
2286 case $ac_arg in
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293 esac
2294 ;;
2295 -* ) ac_must_keep_next=true ;;
2296 esac
2297 fi
2298 as_fn_append ac_configure_args " '$ac_arg'"
2299 ;;
2300 esac
2301 done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2313 {
2314 echo
2315
2316 cat <<\_ASBOX
2317 ## ---------------- ##
2318 ## Cache variables. ##
2319 ## ---------------- ##
2320 _ASBOX
2321 echo
2322 # The following way of writing the cache mishandles newlines in values,
2323 (
2324 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in #(
2327 *${as_nl}*)
2328 case $ac_var in #(
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 esac
2332 case $ac_var in #(
2333 _ | IFS | as_nl) ;; #(
2334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335 *) { eval $ac_var=; unset $ac_var;} ;;
2336 esac ;;
2337 esac
2338 done
2339 (set) 2>&1 |
2340 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341 *${as_nl}ac_space=\ *)
2342 sed -n \
2343 "s/'\''/'\''\\\\'\'''\''/g;
2344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 ;; #(
2346 *)
2347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348 ;;
2349 esac |
2350 sort
2351 )
2352 echo
2353
2354 cat <<\_ASBOX
2355 ## ----------------- ##
2356 ## Output variables. ##
2357 ## ----------------- ##
2358 _ASBOX
2359 echo
2360 for ac_var in $ac_subst_vars
2361 do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 esac
2366 $as_echo "$ac_var='\''$ac_val'\''"
2367 done | sort
2368 echo
2369
2370 if test -n "$ac_subst_files"; then
2371 cat <<\_ASBOX
2372 ## ------------------- ##
2373 ## File substitutions. ##
2374 ## ------------------- ##
2375 _ASBOX
2376 echo
2377 for ac_var in $ac_subst_files
2378 do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 esac
2383 $as_echo "$ac_var='\''$ac_val'\''"
2384 done | sort
2385 echo
2386 fi
2387
2388 if test -s confdefs.h; then
2389 cat <<\_ASBOX
2390 ## ----------- ##
2391 ## confdefs.h. ##
2392 ## ----------- ##
2393 _ASBOX
2394 echo
2395 cat confdefs.h
2396 echo
2397 fi
2398 test "$ac_signal" != 0 &&
2399 $as_echo "$as_me: caught signal $ac_signal"
2400 $as_echo "$as_me: exit $exit_status"
2401 } >&5
2402 rm -f core *.core core.conftest.* &&
2403 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2404 exit $exit_status
2405 ' 0
2406 for ac_signal in 1 2 13 15; do
2407 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2408 done
2409 ac_signal=0
2410
2411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2412 rm -f -r conftest* confdefs.h
2413
2414 $as_echo "/* confdefs.h */" > confdefs.h
2415
2416 # Predefined preprocessor variables.
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_NAME "$PACKAGE_NAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_STRING "$PACKAGE_STRING"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_URL "$PACKAGE_URL"
2440 _ACEOF
2441
2442
2443 # Let the site file select an alternate cache file if it wants to.
2444 # Prefer an explicitly selected file to automatically selected ones.
2445 ac_site_file1=NONE
2446 ac_site_file2=NONE
2447 if test -n "$CONFIG_SITE"; then
2448 ac_site_file1=$CONFIG_SITE
2449 elif test "x$prefix" != xNONE; then
2450 ac_site_file1=$prefix/share/config.site
2451 ac_site_file2=$prefix/etc/config.site
2452 else
2453 ac_site_file1=$ac_default_prefix/share/config.site
2454 ac_site_file2=$ac_default_prefix/etc/config.site
2455 fi
2456 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 do
2458 test "x$ac_site_file" = xNONE && continue
2459 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462 sed 's/^/| /' "$ac_site_file" >&5
2463 . "$ac_site_file"
2464 fi
2465 done
2466
2467 if test -r "$cache_file"; then
2468 # Some versions of bash will fail to source /dev/null (special files
2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 case $cache_file in
2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2475 *) . "./$cache_file";;
2476 esac
2477 fi
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 >$cache_file
2482 fi
2483
2484 # Check that the precious variables saved in the cache have kept the same
2485 # value.
2486 ac_cache_corrupted=false
2487 for ac_var in $ac_precious_vars; do
2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2489 eval ac_new_set=\$ac_env_${ac_var}_set
2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2491 eval ac_new_val=\$ac_env_${ac_var}_value
2492 case $ac_old_set,$ac_new_set in
2493 set,)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,set)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,);;
2502 *)
2503 if test "x$ac_old_val" != "x$ac_new_val"; then
2504 # differences in whitespace do not lead to failure.
2505 ac_old_val_w=`echo x $ac_old_val`
2506 ac_new_val_w=`echo x $ac_new_val`
2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2510 ac_cache_corrupted=:
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2514 eval $ac_var=\$ac_old_val
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2520 fi;;
2521 esac
2522 # Pass precious variables to config.status.
2523 if test "$ac_new_set" = set; then
2524 case $ac_new_val in
2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 *) ac_arg=$ac_var=$ac_new_val ;;
2527 esac
2528 case " $ac_configure_args " in
2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 esac
2532 fi
2533 done
2534 if $ac_cache_corrupted; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2539 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 fi
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552
2553 ac_aux_dir=
2554 for ac_dir in . "$srcdir"/.; do
2555 for ac_t in install-sh install.sh shtool; do
2556 if test -f "$ac_dir/$ac_t"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/$ac_t -c"
2559 break 2
2560 fi
2561 done
2562 done
2563 if test -z "$ac_aux_dir"; then
2564 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2565 fi
2566
2567 # These three variables are undocumented and unsupported,
2568 # and are intended to be withdrawn in a future Autoconf release.
2569 # They can cause serious problems if a builder's source tree is in a directory
2570 # whose full name contains unusual characters.
2571 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2572 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2573 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2574
2575
2576 case `pwd` in
2577 *\ * | *\ *)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2580 esac
2581
2582
2583
2584 macro_version='2.2.6b'
2585 macro_revision='1.3017'
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599 ltmain="$ac_aux_dir/ltmain.sh"
2600
2601 # Make sure we can run config.sub.
2602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2603 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2606 $as_echo_n "checking build system type... " >&6; }
2607 if test "${ac_cv_build+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 ac_build_alias=$build_alias
2611 test "x$ac_build_alias" = x &&
2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2613 test "x$ac_build_alias" = x &&
2614 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2615 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2616 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2617
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2620 $as_echo "$ac_cv_build" >&6; }
2621 case $ac_cv_build in
2622 *-*-*) ;;
2623 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2624 esac
2625 build=$ac_cv_build
2626 ac_save_IFS=$IFS; IFS='-'
2627 set x $ac_cv_build
2628 shift
2629 build_cpu=$1
2630 build_vendor=$2
2631 shift; shift
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2634 build_os=$*
2635 IFS=$ac_save_IFS
2636 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2637
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2640 $as_echo_n "checking host system type... " >&6; }
2641 if test "${ac_cv_host+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test "x$host_alias" = x; then
2645 ac_cv_host=$ac_cv_build
2646 else
2647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2649 fi
2650
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2653 $as_echo "$ac_cv_host" >&6; }
2654 case $ac_cv_host in
2655 *-*-*) ;;
2656 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2657 esac
2658 host=$ac_cv_host
2659 ac_save_IFS=$IFS; IFS='-'
2660 set x $ac_cv_host
2661 shift
2662 host_cpu=$1
2663 host_vendor=$2
2664 shift; shift
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2667 host_os=$*
2668 IFS=$ac_save_IFS
2669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2670
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708 $as_echo "$CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715 fi
2716 if test -z "$ac_cv_prog_CC"; then
2717 ac_ct_CC=$CC
2718 # Extract the first word of "gcc", so it can be a program name with args.
2719 set dummy gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_CC="gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2748 $as_echo "$ac_ct_CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754 if test "x$ac_ct_CC" = x; then
2755 CC=""
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2762 esac
2763 CC=$ac_ct_CC
2764 fi
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 fi
2810 if test -z "$CC"; then
2811 # Extract the first word of "cc", so it can be a program name with args.
2812 set dummy cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_CC+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 ac_prog_rejected=no
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2830 ac_prog_rejected=yes
2831 continue
2832 fi
2833 ac_cv_prog_CC="cc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 if test $ac_prog_rejected = yes; then
2842 # We found a bogon in the path, so make sure we never use it.
2843 set dummy $ac_cv_prog_CC
2844 shift
2845 if test $# != 0; then
2846 # We chose a different compiler from the bogus one.
2847 # However, it has the same basename, so the bogon will be chosen
2848 # first if we set CC to just the basename; use the full file name.
2849 shift
2850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2851 fi
2852 fi
2853 fi
2854 fi
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$CC"; then
2867 if test -n "$ac_tool_prefix"; then
2868 for ac_prog in cl.exe
2869 do
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 test -n "$CC" && break
2908 done
2909 fi
2910 if test -z "$CC"; then
2911 ac_ct_CC=$CC
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $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_ac_ct_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$ac_ct_CC"; then
2922 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_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 "$ac_ct_CC" && break
2952 done
2953
2954 if test "x$ac_ct_CC" = x; then
2955 CC=""
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CC=$ac_ct_CC
2964 fi
2965 fi
2966
2967 fi
2968
2969
2970 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error "no acceptable C compiler found in \$PATH
2973 See \`config.log' for more details." "$LINENO" 5; }
2974
2975 # Provide some information about the compiler.
2976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2977 set X $ac_compile
2978 ac_compiler=$2
2979 for ac_option in --version -v -V -qversion; do
2980 { { ac_try="$ac_compiler $ac_option >&5"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2988 ac_status=$?
2989 if test -s conftest.err; then
2990 sed '10a\
2991 ... rest of stderr output deleted ...
2992 10q' conftest.err >conftest.er1
2993 cat conftest.er1 >&5
2994 fi
2995 rm -f conftest.er1 conftest.err
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }
2998 done
2999
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002
3003 int
3004 main ()
3005 {
3006
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 ac_clean_files_save=$ac_clean_files
3012 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3013 # Try to create an executable without -o first, disregard a.out.
3014 # It will help us diagnose broken compilers, and finding out an intuition
3015 # of exeext.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3017 $as_echo_n "checking whether the C compiler works... " >&6; }
3018 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3019
3020 # The possible output files:
3021 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3022
3023 ac_rmfiles=
3024 for ac_file in $ac_files
3025 do
3026 case $ac_file in
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3029 esac
3030 done
3031 rm -f $ac_rmfiles
3032
3033 if { { ac_try="$ac_link_default"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_link_default") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }; then :
3044 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3045 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3046 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3047 # so that the user can short-circuit this test for compilers unknown to
3048 # Autoconf.
3049 for ac_file in $ac_files ''
3050 do
3051 test -f "$ac_file" || continue
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3054 ;;
3055 [ab].out )
3056 # We found the default executable, but exeext='' is most
3057 # certainly right.
3058 break;;
3059 *.* )
3060 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3061 then :; else
3062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 fi
3064 # We set ac_cv_exeext here because the later test for it is not
3065 # safe: cross compilers may not add the suffix if given an `-o'
3066 # argument, so we may need to know it at that point already.
3067 # Even if this section looks crufty: it has the advantage of
3068 # actually working.
3069 break;;
3070 * )
3071 break;;
3072 esac
3073 done
3074 test "$ac_cv_exeext" = no && ac_cv_exeext=
3075
3076 else
3077 ac_file=''
3078 fi
3079 if test -z "$ac_file"; then :
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 { as_fn_set_status 77
3088 as_fn_error "C compiler cannot create executables
3089 See \`config.log' for more details." "$LINENO" 5; }; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092 $as_echo "yes" >&6; }
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3095 $as_echo_n "checking for C compiler default output file name... " >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3097 $as_echo "$ac_file" >&6; }
3098 ac_exeext=$ac_cv_exeext
3099
3100 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3101 ac_clean_files=$ac_clean_files_save
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3103 $as_echo_n "checking for suffix of executables... " >&6; }
3104 if { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3117 # work properly (i.e., refer to `conftest.exe'), while it won't with
3118 # `rm'.
3119 for ac_file in conftest.exe conftest conftest.*; do
3120 test -f "$ac_file" || continue
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 break;;
3125 * ) break;;
3126 esac
3127 done
3128 else
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_error "cannot compute suffix of executables: cannot compile and link
3132 See \`config.log' for more details." "$LINENO" 5; }
3133 fi
3134 rm -f conftest conftest$ac_cv_exeext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3136 $as_echo "$ac_cv_exeext" >&6; }
3137
3138 rm -f conftest.$ac_ext
3139 EXEEXT=$ac_cv_exeext
3140 ac_exeext=$EXEEXT
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143 #include <stdio.h>
3144 int
3145 main ()
3146 {
3147 FILE *f = fopen ("conftest.out", "w");
3148 return ferror (f) || fclose (f) != 0;
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files="$ac_clean_files conftest.out"
3155 # Check that the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3158 $as_echo_n "checking whether we are cross compiling... " >&6; }
3159 if test "$cross_compiling" != yes; then
3160 { { ac_try="$ac_link"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_link") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3171 if { ac_try='./conftest$ac_cv_exeext'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3192 fi
3193 fi
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3196 $as_echo "$cross_compiling" >&6; }
3197
3198 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3201 $as_echo_n "checking for suffix of object files... " >&6; }
3202 if test "${ac_cv_objext+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.o conftest.obj
3217 if { { ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compile") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 for ac_file in conftest.o conftest.obj conftest.*; do
3229 test -f "$ac_file" || continue;
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233 break;;
3234 esac
3235 done
3236 else
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error "cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." "$LINENO" 5; }
3244 fi
3245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3248 $as_echo "$ac_cv_objext" >&6; }
3249 OBJEXT=$ac_cv_objext
3250 ac_objext=$OBJEXT
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3252 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3253 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262 #ifndef __GNUC__
3263 choke me
3264 #endif
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_compiler_gnu=yes
3272 else
3273 ac_compiler_gnu=no
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3280 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3281 if test $ac_compiler_gnu = yes; then
3282 GCC=yes
3283 else
3284 GCC=
3285 fi
3286 ac_test_CFLAGS=${CFLAGS+set}
3287 ac_save_CFLAGS=$CFLAGS
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3289 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3290 if test "${ac_cv_prog_cc_g+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 ac_save_c_werror_flag=$ac_c_werror_flag
3294 ac_c_werror_flag=yes
3295 ac_cv_prog_cc_g=no
3296 CFLAGS="-g"
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299
3300 int
3301 main ()
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_g=yes
3310 else
3311 CFLAGS=""
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314
3315 int
3316 main ()
3317 {
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324
3325 else
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3327 CFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_prog_cc_g=yes
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 ac_cv_prog_cc_c89=no
3372 ac_save_CC=$CC
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383 char **p;
3384 int i;
3385 {
3386 return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390 char *s;
3391 va_list v;
3392 va_start (v,p);
3393 s = g (p, va_arg (v,int));
3394 va_end (v);
3395 return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429 CC="$ac_save_CC $ac_arg"
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_cv_prog_cc_c89=$ac_arg
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext
3434 test "x$ac_cv_prog_cc_c89" != "xno" && break
3435 done
3436 rm -f conftest.$ac_ext
3437 CC=$ac_save_CC
3438
3439 fi
3440 # AC_CACHE_VAL
3441 case "x$ac_cv_prog_cc_c89" in
3442 x)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444 $as_echo "none needed" >&6; } ;;
3445 xno)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447 $as_echo "unsupported" >&6; } ;;
3448 *)
3449 CC="$CC $ac_cv_prog_cc_c89"
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452 esac
3453 if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3465 if test "${ac_cv_path_SED+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3469 for ac_i in 1 2 3 4 5 6 7; do
3470 ac_script="$ac_script$as_nl$ac_script"
3471 done
3472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3473 { ac_script=; unset ac_script;}
3474 if test -z "$SED"; then
3475 ac_path_SED_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in sed gsed; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3486 # Check for GNU ac_path_SED and select it if it is found.
3487 # Check for GNU $ac_path_SED
3488 case `"$ac_path_SED" --version 2>&1` in
3489 *GNU*)
3490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3491 *)
3492 ac_count=0
3493 $as_echo_n 0123456789 >"conftest.in"
3494 while :
3495 do
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 $as_echo '' >> "conftest.nl"
3500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 as_fn_arith $ac_count + 1 && ac_count=$as_val
3503 if test $ac_count -gt ${ac_path_SED_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_SED="$ac_path_SED"
3506 ac_path_SED_max=$ac_count
3507 fi
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3510 done
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514 $ac_path_SED_found && break 3
3515 done
3516 done
3517 done
3518 IFS=$as_save_IFS
3519 if test -z "$ac_cv_path_SED"; then
3520 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3521 fi
3522 else
3523 ac_cv_path_SED=$SED
3524 fi
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3528 $as_echo "$ac_cv_path_SED" >&6; }
3529 SED="$ac_cv_path_SED"
3530 rm -f conftest.sed
3531
3532 test -z "$SED" && SED=sed
3533 Xsed="$SED -e 1s/^X//"
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3546 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3547 if test "${ac_cv_path_GREP+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -z "$GREP"; then
3551 ac_path_GREP_found=false
3552 # Loop through the user's path and test for each of PROGNAME-LIST
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_prog in grep ggrep; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3561 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3562 # Check for GNU ac_path_GREP and select it if it is found.
3563 # Check for GNU $ac_path_GREP
3564 case `"$ac_path_GREP" --version 2>&1` in
3565 *GNU*)
3566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3567 *)
3568 ac_count=0
3569 $as_echo_n 0123456789 >"conftest.in"
3570 while :
3571 do
3572 cat "conftest.in" "conftest.in" >"conftest.tmp"
3573 mv "conftest.tmp" "conftest.in"
3574 cp "conftest.in" "conftest.nl"
3575 $as_echo 'GREP' >> "conftest.nl"
3576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3578 as_fn_arith $ac_count + 1 && ac_count=$as_val
3579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3580 # Best one so far, save it but keep looking for a better one
3581 ac_cv_path_GREP="$ac_path_GREP"
3582 ac_path_GREP_max=$ac_count
3583 fi
3584 # 10*(2^10) chars as input seems more than enough
3585 test $ac_count -gt 10 && break
3586 done
3587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3588 esac
3589
3590 $ac_path_GREP_found && break 3
3591 done
3592 done
3593 done
3594 IFS=$as_save_IFS
3595 if test -z "$ac_cv_path_GREP"; then
3596 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3597 fi
3598 else
3599 ac_cv_path_GREP=$GREP
3600 fi
3601
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3604 $as_echo "$ac_cv_path_GREP" >&6; }
3605 GREP="$ac_cv_path_GREP"
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3609 $as_echo_n "checking for egrep... " >&6; }
3610 if test "${ac_cv_path_EGREP+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3614 then ac_cv_path_EGREP="$GREP -E"
3615 else
3616 if test -z "$EGREP"; then
3617 ac_path_EGREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_prog in egrep; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3628 # Check for GNU ac_path_EGREP and select it if it is found.
3629 # Check for GNU $ac_path_EGREP
3630 case `"$ac_path_EGREP" --version 2>&1` in
3631 *GNU*)
3632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3633 *)
3634 ac_count=0
3635 $as_echo_n 0123456789 >"conftest.in"
3636 while :
3637 do
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 $as_echo 'EGREP' >> "conftest.nl"
3642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644 as_fn_arith $ac_count + 1 && ac_count=$as_val
3645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_EGREP="$ac_path_EGREP"
3648 ac_path_EGREP_max=$ac_count
3649 fi
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3652 done
3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 esac
3655
3656 $ac_path_EGREP_found && break 3
3657 done
3658 done
3659 done
3660 IFS=$as_save_IFS
3661 if test -z "$ac_cv_path_EGREP"; then
3662 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 fi
3664 else
3665 ac_cv_path_EGREP=$EGREP
3666 fi
3667
3668 fi
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3671 $as_echo "$ac_cv_path_EGREP" >&6; }
3672 EGREP="$ac_cv_path_EGREP"
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3676 $as_echo_n "checking for fgrep... " >&6; }
3677 if test "${ac_cv_path_FGREP+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3681 then ac_cv_path_FGREP="$GREP -F"
3682 else
3683 if test -z "$FGREP"; then
3684 ac_path_FGREP_found=false
3685 # Loop through the user's path and test for each of PROGNAME-LIST
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in fgrep; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3694 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3695 # Check for GNU ac_path_FGREP and select it if it is found.
3696 # Check for GNU $ac_path_FGREP
3697 case `"$ac_path_FGREP" --version 2>&1` in
3698 *GNU*)
3699 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3700 *)
3701 ac_count=0
3702 $as_echo_n 0123456789 >"conftest.in"
3703 while :
3704 do
3705 cat "conftest.in" "conftest.in" >"conftest.tmp"
3706 mv "conftest.tmp" "conftest.in"
3707 cp "conftest.in" "conftest.nl"
3708 $as_echo 'FGREP' >> "conftest.nl"
3709 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3711 as_fn_arith $ac_count + 1 && ac_count=$as_val
3712 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3713 # Best one so far, save it but keep looking for a better one
3714 ac_cv_path_FGREP="$ac_path_FGREP"
3715 ac_path_FGREP_max=$ac_count
3716 fi
3717 # 10*(2^10) chars as input seems more than enough
3718 test $ac_count -gt 10 && break
3719 done
3720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 esac
3722
3723 $ac_path_FGREP_found && break 3
3724 done
3725 done
3726 done
3727 IFS=$as_save_IFS
3728 if test -z "$ac_cv_path_FGREP"; then
3729 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3730 fi
3731 else
3732 ac_cv_path_FGREP=$FGREP
3733 fi
3734
3735 fi
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3738 $as_echo "$ac_cv_path_FGREP" >&6; }
3739 FGREP="$ac_cv_path_FGREP"
3740
3741
3742 test -z "$GREP" && GREP=grep
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762 # Check whether --with-gnu-ld was given.
3763 if test "${with_gnu_ld+set}" = set; then :
3764 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3765 else
3766 with_gnu_ld=no
3767 fi
3768
3769 ac_prog=ld
3770 if test "$GCC" = yes; then
3771 # Check if gcc -print-prog-name=ld gives a path.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3773 $as_echo_n "checking for ld used by $CC... " >&6; }
3774 case $host in
3775 *-*-mingw*)
3776 # gcc leaves a trailing carriage return which upsets mingw
3777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3778 *)
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3780 esac
3781 case $ac_prog in
3782 # Accept absolute paths.
3783 [\\/]* | ?:[\\/]*)
3784 re_direlt='/[^/][^/]*/\.\./'
3785 # Canonicalize the pathname of ld
3786 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3787 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3788 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3789 done
3790 test -z "$LD" && LD="$ac_prog"
3791 ;;
3792 "")
3793 # If it fails, then pretend we aren't using GCC.
3794 ac_prog=ld
3795 ;;
3796 *)
3797 # If it is relative, then search for the first ld in PATH.
3798 with_gnu_ld=unknown
3799 ;;
3800 esac
3801 elif test "$with_gnu_ld" = yes; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3803 $as_echo_n "checking for GNU ld... " >&6; }
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3806 $as_echo_n "checking for non-GNU ld... " >&6; }
3807 fi
3808 if test "${lt_cv_path_LD+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 if test -z "$LD"; then
3812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3813 for ac_dir in $PATH; do
3814 IFS="$lt_save_ifs"
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3817 lt_cv_path_LD="$ac_dir/$ac_prog"
3818 # Check to see if the program is GNU ld. I'd rather use --version,
3819 # but apparently some variants of GNU ld only accept -v.
3820 # Break only if it was the GNU/non-GNU ld that we prefer.
3821 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3822 *GNU* | *'with BFD'*)
3823 test "$with_gnu_ld" != no && break
3824 ;;
3825 *)
3826 test "$with_gnu_ld" != yes && break
3827 ;;
3828 esac
3829 fi
3830 done
3831 IFS="$lt_save_ifs"
3832 else
3833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3834 fi
3835 fi
3836
3837 LD="$lt_cv_path_LD"
3838 if test -n "$LD"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3840 $as_echo "$LD" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3847 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3852 case `$LD -v 2>&1 </dev/null` in
3853 *GNU* | *'with BFD'*)
3854 lt_cv_prog_gnu_ld=yes
3855 ;;
3856 *)
3857 lt_cv_prog_gnu_ld=no
3858 ;;
3859 esac
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3862 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3863 with_gnu_ld=$lt_cv_prog_gnu_ld
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3874 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3875 if test "${lt_cv_path_NM+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$NM"; then
3879 # Let the user override the test.
3880 lt_cv_path_NM="$NM"
3881 else
3882 lt_nm_to_check="${ac_tool_prefix}nm"
3883 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3884 lt_nm_to_check="$lt_nm_to_check nm"
3885 fi
3886 for lt_tmp_nm in $lt_nm_to_check; do
3887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3888 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3889 IFS="$lt_save_ifs"
3890 test -z "$ac_dir" && ac_dir=.
3891 tmp_nm="$ac_dir/$lt_tmp_nm"
3892 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3893 # Check to see if the nm accepts a BSD-compat flag.
3894 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3895 # nm: unknown option "B" ignored
3896 # Tru64's nm complains that /dev/null is an invalid object file
3897 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3898 */dev/null* | *'Invalid file or object type'*)
3899 lt_cv_path_NM="$tmp_nm -B"
3900 break
3901 ;;
3902 *)
3903 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3904 */dev/null*)
3905 lt_cv_path_NM="$tmp_nm -p"
3906 break
3907 ;;
3908 *)
3909 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3910 continue # so that we can try to find one that supports BSD flags
3911 ;;
3912 esac
3913 ;;
3914 esac
3915 fi
3916 done
3917 IFS="$lt_save_ifs"
3918 done
3919 : ${lt_cv_path_NM=no}
3920 fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3923 $as_echo "$lt_cv_path_NM" >&6; }
3924 if test "$lt_cv_path_NM" != "no"; then
3925 NM="$lt_cv_path_NM"
3926 else
3927 # Didn't find any BSD compatible name lister, look for dumpbin.
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$DUMPBIN"; then
3939 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 DUMPBIN=$ac_cv_prog_DUMPBIN
3959 if test -n "$DUMPBIN"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3961 $as_echo "$DUMPBIN" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968 test -n "$DUMPBIN" && break
3969 done
3970 fi
3971 if test -z "$DUMPBIN"; then
3972 ac_ct_DUMPBIN=$DUMPBIN
3973 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3974 do
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $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_ac_ct_DUMPBIN+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_DUMPBIN"; then
3983 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$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 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4003 if test -n "$ac_ct_DUMPBIN"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4005 $as_echo "$ac_ct_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 "$ac_ct_DUMPBIN" && break
4013 done
4014
4015 if test "x$ac_ct_DUMPBIN" = x; then
4016 DUMPBIN=":"
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024 DUMPBIN=$ac_ct_DUMPBIN
4025 fi
4026 fi
4027
4028
4029 if test "$DUMPBIN" != ":"; then
4030 NM="$DUMPBIN"
4031 fi
4032 fi
4033 test -z "$NM" && NM=nm
4034
4035
4036
4037
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4041 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4042 if test "${lt_cv_nm_interface+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 lt_cv_nm_interface="BSD nm"
4046 echo "int some_variable = 0;" > conftest.$ac_ext
4047 (eval echo "\"\$as_me:4047: $ac_compile\"" >&5)
4048 (eval "$ac_compile" 2>conftest.err)
4049 cat conftest.err >&5
4050 (eval echo "\"\$as_me:4050: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4051 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4052 cat conftest.err >&5
4053 (eval echo "\"\$as_me:4053: output\"" >&5)
4054 cat conftest.out >&5
4055 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4056 lt_cv_nm_interface="MS dumpbin"
4057 fi
4058 rm -f conftest*
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4061 $as_echo "$lt_cv_nm_interface" >&6; }
4062
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4064 $as_echo_n "checking whether ln -s works... " >&6; }
4065 LN_S=$as_ln_s
4066 if test "$LN_S" = "ln -s"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 $as_echo "yes" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4071 $as_echo "no, using $LN_S" >&6; }
4072 fi
4073
4074 # find the maximum length of command line arguments
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4076 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4077 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 i=0
4081 teststring="ABCD"
4082
4083 case $build_os in
4084 msdosdjgpp*)
4085 # On DJGPP, this test can blow up pretty badly due to problems in libc
4086 # (any single argument exceeding 2000 bytes causes a buffer overrun
4087 # during glob expansion). Even if it were fixed, the result of this
4088 # check would be larger than it should be.
4089 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4090 ;;
4091
4092 gnu*)
4093 # Under GNU Hurd, this test is not required because there is
4094 # no limit to the length of command line arguments.
4095 # Libtool will interpret -1 as no limit whatsoever
4096 lt_cv_sys_max_cmd_len=-1;
4097 ;;
4098
4099 cygwin* | mingw* | cegcc*)
4100 # On Win9x/ME, this test blows up -- it succeeds, but takes
4101 # about 5 minutes as the teststring grows exponentially.
4102 # Worse, since 9x/ME are not pre-emptively multitasking,
4103 # you end up with a "frozen" computer, even though with patience
4104 # the test eventually succeeds (with a max line length of 256k).
4105 # Instead, let's just punt: use the minimum linelength reported by
4106 # all of the supported platforms: 8192 (on NT/2K/XP).
4107 lt_cv_sys_max_cmd_len=8192;
4108 ;;
4109
4110 amigaos*)
4111 # On AmigaOS with pdksh, this test takes hours, literally.
4112 # So we just punt and use a minimum line length of 8192.
4113 lt_cv_sys_max_cmd_len=8192;
4114 ;;
4115
4116 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4117 # This has been around since 386BSD, at least. Likely further.
4118 if test -x /sbin/sysctl; then
4119 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4120 elif test -x /usr/sbin/sysctl; then
4121 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4122 else
4123 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4124 fi
4125 # And add a safety zone
4126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4128 ;;
4129
4130 interix*)
4131 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4132 lt_cv_sys_max_cmd_len=196608
4133 ;;
4134
4135 osf*)
4136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4138 # nice to cause kernel panics so lets avoid the loop below.
4139 # First set a reasonable default.
4140 lt_cv_sys_max_cmd_len=16384
4141 #
4142 if test -x /sbin/sysconfig; then
4143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4145 esac
4146 fi
4147 ;;
4148 sco3.2v5*)
4149 lt_cv_sys_max_cmd_len=102400
4150 ;;
4151 sysv5* | sco5v6* | sysv4.2uw2*)
4152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4153 if test -n "$kargmax"; then
4154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4155 else
4156 lt_cv_sys_max_cmd_len=32768
4157 fi
4158 ;;
4159 *)
4160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4161 if test -n "$lt_cv_sys_max_cmd_len"; then
4162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4164 else
4165 # Make teststring a little bigger before we do anything with it.
4166 # a 1K string should be a reasonable start.
4167 for i in 1 2 3 4 5 6 7 8 ; do
4168 teststring=$teststring$teststring
4169 done
4170 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4171 # If test is not a shell built-in, we'll probably end up computing a
4172 # maximum length that is only half of the actual maximum length, but
4173 # we can't tell.
4174 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4175 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4176 test $i != 17 # 1/2 MB should be enough
4177 do
4178 i=`expr $i + 1`
4179 teststring=$teststring$teststring
4180 done
4181 # Only check the string length outside the loop.
4182 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4183 teststring=
4184 # Add a significant safety factor because C++ compilers can tack on
4185 # massive amounts of additional arguments before passing them to the
4186 # linker. It appears as though 1/2 is a usable value.
4187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4188 fi
4189 ;;
4190 esac
4191
4192 fi
4193
4194 if test -n $lt_cv_sys_max_cmd_len ; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4196 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4199 $as_echo "none" >&6; }
4200 fi
4201 max_cmd_len=$lt_cv_sys_max_cmd_len
4202
4203
4204
4205
4206
4207
4208 : ${CP="cp -f"}
4209 : ${MV="mv -f"}
4210 : ${RM="rm -f"}
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4213 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4214 # Try some XSI features
4215 xsi_shell=no
4216 ( _lt_dummy="a/b/c"
4217 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4218 = c,a/b,, \
4219 && eval 'test $(( 1 + 1 )) -eq 2 \
4220 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4221 && xsi_shell=yes
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4223 $as_echo "$xsi_shell" >&6; }
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4227 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4228 lt_shell_append=no
4229 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4230 >/dev/null 2>&1 \
4231 && lt_shell_append=yes
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4233 $as_echo "$lt_shell_append" >&6; }
4234
4235
4236 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4237 lt_unset=unset
4238 else
4239 lt_unset=false
4240 fi
4241
4242
4243
4244
4245
4246 # test EBCDIC or ASCII
4247 case `echo X|tr X '\101'` in
4248 A) # ASCII based system
4249 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4250 lt_SP2NL='tr \040 \012'
4251 lt_NL2SP='tr \015\012 \040\040'
4252 ;;
4253 *) # EBCDIC based system
4254 lt_SP2NL='tr \100 \n'
4255 lt_NL2SP='tr \r\n \100\100'
4256 ;;
4257 esac
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4268 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4269 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 lt_cv_ld_reload_flag='-r'
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4275 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4276 reload_flag=$lt_cv_ld_reload_flag
4277 case $reload_flag in
4278 "" | " "*) ;;
4279 *) reload_flag=" $reload_flag" ;;
4280 esac
4281 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4282 case $host_os in
4283 darwin*)
4284 if test "$GCC" = yes; then
4285 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4286 else
4287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4288 fi
4289 ;;
4290 esac
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4302 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$OBJDUMP"; then
4309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 OBJDUMP=$ac_cv_prog_OBJDUMP
4329 if test -n "$OBJDUMP"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4331 $as_echo "$OBJDUMP" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$ac_cv_prog_OBJDUMP"; then
4340 ac_ct_OBJDUMP=$OBJDUMP
4341 # Extract the first word of "objdump", so it can be a program name with args.
4342 set dummy objdump; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$ac_ct_OBJDUMP"; then
4349 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4369 if test -n "$ac_ct_OBJDUMP"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4371 $as_echo "$ac_ct_OBJDUMP" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377 if test "x$ac_ct_OBJDUMP" = x; then
4378 OBJDUMP="false"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 OBJDUMP=$ac_ct_OBJDUMP
4387 fi
4388 else
4389 OBJDUMP="$ac_cv_prog_OBJDUMP"
4390 fi
4391
4392 test -z "$OBJDUMP" && OBJDUMP=objdump
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4403 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4404 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 lt_cv_file_magic_cmd='$MAGIC_CMD'
4408 lt_cv_file_magic_test_file=
4409 lt_cv_deplibs_check_method='unknown'
4410 # Need to set the preceding variable on all platforms that support
4411 # interlibrary dependencies.
4412 # 'none' -- dependencies not supported.
4413 # `unknown' -- same as none, but documents that we really don't know.
4414 # 'pass_all' -- all dependencies passed with no checks.
4415 # 'test_compile' -- check by making test program.
4416 # 'file_magic [[regex]]' -- check by looking for files in library path
4417 # which responds to the $file_magic_cmd with a given extended regex.
4418 # If you have `file' or equivalent on your system and you're not sure
4419 # whether `pass_all' will *always* work, you probably want this one.
4420
4421 case $host_os in
4422 aix[4-9]*)
4423 lt_cv_deplibs_check_method=pass_all
4424 ;;
4425
4426 beos*)
4427 lt_cv_deplibs_check_method=pass_all
4428 ;;
4429
4430 bsdi[45]*)
4431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4432 lt_cv_file_magic_cmd='/usr/bin/file -L'
4433 lt_cv_file_magic_test_file=/shlib/libc.so
4434 ;;
4435
4436 cygwin*)
4437 # func_win32_libid is a shell function defined in ltmain.sh
4438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4439 lt_cv_file_magic_cmd='func_win32_libid'
4440 ;;
4441
4442 mingw* | pw32*)
4443 # Base MSYS/MinGW do not provide the 'file' command needed by
4444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4445 # unless we find 'file', for example because we are cross-compiling.
4446 if ( file / ) >/dev/null 2>&1; then
4447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4448 lt_cv_file_magic_cmd='func_win32_libid'
4449 else
4450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4451 lt_cv_file_magic_cmd='$OBJDUMP -f'
4452 fi
4453 ;;
4454
4455 cegcc)
4456 # use the weaker test based on 'objdump'. See mingw*.
4457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4458 lt_cv_file_magic_cmd='$OBJDUMP -f'
4459 ;;
4460
4461 darwin* | rhapsody*)
4462 lt_cv_deplibs_check_method=pass_all
4463 ;;
4464
4465 freebsd* | dragonfly*)
4466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4467 case $host_cpu in
4468 i*86 )
4469 # Not sure whether the presence of OpenBSD here was a mistake.
4470 # Let's accept both of them until this is cleared up.
4471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4472 lt_cv_file_magic_cmd=/usr/bin/file
4473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4474 ;;
4475 esac
4476 else
4477 lt_cv_deplibs_check_method=pass_all
4478 fi
4479 ;;
4480
4481 gnu*)
4482 lt_cv_deplibs_check_method=pass_all
4483 ;;
4484
4485 hpux10.20* | hpux11*)
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 case $host_cpu in
4488 ia64*)
4489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4491 ;;
4492 hppa*64*)
4493 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]'
4494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4495 ;;
4496 *)
4497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4499 ;;
4500 esac
4501 ;;
4502
4503 interix[3-9]*)
4504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4506 ;;
4507
4508 irix5* | irix6* | nonstopux*)
4509 case $LD in
4510 *-32|*"-32 ") libmagic=32-bit;;
4511 *-n32|*"-n32 ") libmagic=N32;;
4512 *-64|*"-64 ") libmagic=64-bit;;
4513 *) libmagic=never-match;;
4514 esac
4515 lt_cv_deplibs_check_method=pass_all
4516 ;;
4517
4518 # This must be Linux ELF.
4519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4520 lt_cv_deplibs_check_method=pass_all
4521 ;;
4522
4523 netbsd* | netbsdelf*-gnu)
4524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4526 else
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4528 fi
4529 ;;
4530
4531 newos6*)
4532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4533 lt_cv_file_magic_cmd=/usr/bin/file
4534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4535 ;;
4536
4537 *nto* | *qnx*)
4538 lt_cv_deplibs_check_method=pass_all
4539 ;;
4540
4541 openbsd*)
4542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4544 else
4545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4546 fi
4547 ;;
4548
4549 osf3* | osf4* | osf5*)
4550 lt_cv_deplibs_check_method=pass_all
4551 ;;
4552
4553 rdos*)
4554 lt_cv_deplibs_check_method=pass_all
4555 ;;
4556
4557 solaris*)
4558 lt_cv_deplibs_check_method=pass_all
4559 ;;
4560
4561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4562 lt_cv_deplibs_check_method=pass_all
4563 ;;
4564
4565 sysv4 | sysv4.3*)
4566 case $host_vendor in
4567 motorola)
4568 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]'
4569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4570 ;;
4571 ncr)
4572 lt_cv_deplibs_check_method=pass_all
4573 ;;
4574 sequent)
4575 lt_cv_file_magic_cmd='/bin/file'
4576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4577 ;;
4578 sni)
4579 lt_cv_file_magic_cmd='/bin/file'
4580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4581 lt_cv_file_magic_test_file=/lib/libc.so
4582 ;;
4583 siemens)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586 pc)
4587 lt_cv_deplibs_check_method=pass_all
4588 ;;
4589 esac
4590 ;;
4591
4592 tpf*)
4593 lt_cv_deplibs_check_method=pass_all
4594 ;;
4595 esac
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4600 file_magic_cmd=$lt_cv_file_magic_cmd
4601 deplibs_check_method=$lt_cv_deplibs_check_method
4602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ar; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_AR+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$AR"; then
4624 ac_cv_prog_AR="$AR" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_AR="${ac_tool_prefix}ar"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 AR=$ac_cv_prog_AR
4644 if test -n "$AR"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4646 $as_echo "$AR" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$ac_cv_prog_AR"; then
4655 ac_ct_AR=$AR
4656 # Extract the first word of "ar", so it can be a program name with args.
4657 set dummy ar; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$ac_ct_AR"; then
4664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_AR="ar"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4684 if test -n "$ac_ct_AR"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4686 $as_echo "$ac_ct_AR" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692 if test "x$ac_ct_AR" = x; then
4693 AR="false"
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 AR=$ac_ct_AR
4702 fi
4703 else
4704 AR="$ac_cv_prog_AR"
4705 fi
4706
4707 test -z "$AR" && AR=ar
4708 test -z "$AR_FLAGS" && AR_FLAGS=cru
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}strip; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_STRIP+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$STRIP"; then
4729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 STRIP=$ac_cv_prog_STRIP
4749 if test -n "$STRIP"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4751 $as_echo "$STRIP" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 fi
4759 if test -z "$ac_cv_prog_STRIP"; then
4760 ac_ct_STRIP=$STRIP
4761 # Extract the first word of "strip", so it can be a program name with args.
4762 set dummy strip; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$ac_ct_STRIP"; then
4769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_STRIP="strip"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4789 if test -n "$ac_ct_STRIP"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4791 $as_echo "$ac_ct_STRIP" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797 if test "x$ac_ct_STRIP" = x; then
4798 STRIP=":"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 STRIP=$ac_ct_STRIP
4807 fi
4808 else
4809 STRIP="$ac_cv_prog_STRIP"
4810 fi
4811
4812 test -z "$STRIP" && STRIP=:
4813
4814
4815
4816
4817
4818
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$RANLIB"; then
4828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 RANLIB=$ac_cv_prog_RANLIB
4848 if test -n "$RANLIB"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4850 $as_echo "$RANLIB" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$ac_cv_prog_RANLIB"; then
4859 ac_ct_RANLIB=$RANLIB
4860 # Extract the first word of "ranlib", so it can be a program name with args.
4861 set dummy ranlib; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$ac_ct_RANLIB"; then
4868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_RANLIB="ranlib"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4888 if test -n "$ac_ct_RANLIB"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4890 $as_echo "$ac_ct_RANLIB" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896 if test "x$ac_ct_RANLIB" = x; then
4897 RANLIB=":"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 RANLIB=$ac_ct_RANLIB
4906 fi
4907 else
4908 RANLIB="$ac_cv_prog_RANLIB"
4909 fi
4910
4911 test -z "$RANLIB" && RANLIB=:
4912
4913
4914
4915
4916
4917
4918 # Determine commands to create old-style static archives.
4919 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4920 old_postinstall_cmds='chmod 644 $oldlib'
4921 old_postuninstall_cmds=
4922
4923 if test -n "$RANLIB"; then
4924 case $host_os in
4925 openbsd*)
4926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4927 ;;
4928 *)
4929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4930 ;;
4931 esac
4932 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4933 fi
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 # If no C compiler was specified, use CC.
4969 LTCC=${LTCC-"$CC"}
4970
4971 # If no C compiler flags were specified, use CFLAGS.
4972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4973
4974 # Allow CC to be a program name with arguments.
4975 compiler=$CC
4976
4977
4978 # Check for command to grab the raw symbol name followed by C symbol from nm.
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984
4985 # These are sane defaults that work on at least a few old systems.
4986 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4987
4988 # Character class describing NM global symbol codes.
4989 symcode='[BCDEGRST]'
4990
4991 # Regexp to match symbols that can be accessed directly from C.
4992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4993
4994 # Define system-specific variables.
4995 case $host_os in
4996 aix*)
4997 symcode='[BCDT]'
4998 ;;
4999 cygwin* | mingw* | pw32* | cegcc*)
5000 symcode='[ABCDGISTW]'
5001 ;;
5002 hpux*)
5003 if test "$host_cpu" = ia64; then
5004 symcode='[ABCDEGRST]'
5005 fi
5006 ;;
5007 irix* | nonstopux*)
5008 symcode='[BCDEGRST]'
5009 ;;
5010 osf*)
5011 symcode='[BCDEGQRST]'
5012 ;;
5013 solaris*)
5014 symcode='[BDRT]'
5015 ;;
5016 sco3.2v5*)
5017 symcode='[DT]'
5018 ;;
5019 sysv4.2uw2*)
5020 symcode='[DT]'
5021 ;;
5022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5023 symcode='[ABDT]'
5024 ;;
5025 sysv4)
5026 symcode='[DFNSTU]'
5027 ;;
5028 esac
5029
5030 # If we're using GNU nm, then use its standard symbol codes.
5031 case `$NM -V 2>&1` in
5032 *GNU* | *'with BFD'*)
5033 symcode='[ABCDGIRSTW]' ;;
5034 esac
5035
5036 # Transform an extracted symbol line into a proper C declaration.
5037 # Some systems (esp. on ia64) link data and code symbols differently,
5038 # so use this general approach.
5039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5040
5041 # Transform an extracted symbol line into symbol name and symbol address
5042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5043 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'"
5044
5045 # Handle CRLF in mingw tool chain
5046 opt_cr=
5047 case $build_os in
5048 mingw*)
5049 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5050 ;;
5051 esac
5052
5053 # Try without a prefix underscore, then with it.
5054 for ac_symprfx in "" "_"; do
5055
5056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5057 symxfrm="\\1 $ac_symprfx\\2 \\2"
5058
5059 # Write the raw and C identifiers.
5060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5061 # Fake it for dumpbin and say T for any non-static function
5062 # and D for any global variable.
5063 # Also find C++ and __fastcall symbols from MSVC++,
5064 # which start with @ or ?.
5065 lt_cv_sys_global_symbol_pipe="$AWK '"\
5066 " {last_section=section; section=\$ 3};"\
5067 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5068 " \$ 0!~/External *\|/{next};"\
5069 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5070 " {if(hide[section]) next};"\
5071 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5072 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5073 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5074 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5075 " ' prfx=^$ac_symprfx"
5076 else
5077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5078 fi
5079
5080 # Check to see that the pipe works correctly.
5081 pipe_works=no
5082
5083 rm -f conftest*
5084 cat > conftest.$ac_ext <<_LT_EOF
5085 #ifdef __cplusplus
5086 extern "C" {
5087 #endif
5088 char nm_test_var;
5089 void nm_test_func(void);
5090 void nm_test_func(void){}
5091 #ifdef __cplusplus
5092 }
5093 #endif
5094 int main(){nm_test_var='a';nm_test_func();return(0);}
5095 _LT_EOF
5096
5097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098 (eval $ac_compile) 2>&5
5099 ac_status=$?
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 # Now try to grab the symbols.
5103 nlist=conftest.nm
5104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5105 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; } && test -s "$nlist"; then
5109 # Try sorting and uniquifying the output.
5110 if sort "$nlist" | uniq > "$nlist"T; then
5111 mv -f "$nlist"T "$nlist"
5112 else
5113 rm -f "$nlist"T
5114 fi
5115
5116 # Make sure that we snagged all the symbols we need.
5117 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5118 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5119 cat <<_LT_EOF > conftest.$ac_ext
5120 #ifdef __cplusplus
5121 extern "C" {
5122 #endif
5123
5124 _LT_EOF
5125 # Now generate the symbol file.
5126 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5127
5128 cat <<_LT_EOF >> conftest.$ac_ext
5129
5130 /* The mapping between symbol names and symbols. */
5131 const struct {
5132 const char *name;
5133 void *address;
5134 }
5135 lt__PROGRAM__LTX_preloaded_symbols[] =
5136 {
5137 { "@PROGRAM@", (void *) 0 },
5138 _LT_EOF
5139 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5140 cat <<\_LT_EOF >> conftest.$ac_ext
5141 {0, (void *) 0}
5142 };
5143
5144 /* This works around a problem in FreeBSD linker */
5145 #ifdef FREEBSD_WORKAROUND
5146 static const void *lt_preloaded_setup() {
5147 return lt__PROGRAM__LTX_preloaded_symbols;
5148 }
5149 #endif
5150
5151 #ifdef __cplusplus
5152 }
5153 #endif
5154 _LT_EOF
5155 # Now try linking the two files.
5156 mv conftest.$ac_objext conftstm.$ac_objext
5157 lt_save_LIBS="$LIBS"
5158 lt_save_CFLAGS="$CFLAGS"
5159 LIBS="conftstm.$ac_objext"
5160 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5162 (eval $ac_link) 2>&5
5163 ac_status=$?
5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5166 pipe_works=yes
5167 fi
5168 LIBS="$lt_save_LIBS"
5169 CFLAGS="$lt_save_CFLAGS"
5170 else
5171 echo "cannot find nm_test_func in $nlist" >&5
5172 fi
5173 else
5174 echo "cannot find nm_test_var in $nlist" >&5
5175 fi
5176 else
5177 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5178 fi
5179 else
5180 echo "$progname: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 fi
5183 rm -rf conftest* conftst*
5184
5185 # Do not use the global_symbol_pipe unless it works.
5186 if test "$pipe_works" = yes; then
5187 break
5188 else
5189 lt_cv_sys_global_symbol_pipe=
5190 fi
5191 done
5192
5193 fi
5194
5195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5196 lt_cv_sys_global_symbol_to_cdecl=
5197 fi
5198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5200 $as_echo "failed" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5203 $as_echo "ok" >&6; }
5204 fi
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 # Check whether --enable-libtool-lock was given.
5229 if test "${enable_libtool_lock+set}" = set; then :
5230 enableval=$enable_libtool_lock;
5231 fi
5232
5233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5234
5235 # Some flags need to be propagated to the compiler or linker for good
5236 # libtool support.
5237 case $host in
5238 ia64-*-hpux*)
5239 # Find out which ABI we are using.
5240 echo 'int i;' > conftest.$ac_ext
5241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5242 (eval $ac_compile) 2>&5
5243 ac_status=$?
5244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; }; then
5246 case `/usr/bin/file conftest.$ac_objext` in
5247 *ELF-32*)
5248 HPUX_IA64_MODE="32"
5249 ;;
5250 *ELF-64*)
5251 HPUX_IA64_MODE="64"
5252 ;;
5253 esac
5254 fi
5255 rm -rf conftest*
5256 ;;
5257 *-*-irix6*)
5258 # Find out which ABI we are using.
5259 echo '#line 5259 "configure"' > conftest.$ac_ext
5260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5261 (eval $ac_compile) 2>&5
5262 ac_status=$?
5263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5264 test $ac_status = 0; }; then
5265 if test "$lt_cv_prog_gnu_ld" = yes; then
5266 case `/usr/bin/file conftest.$ac_objext` in
5267 *32-bit*)
5268 LD="${LD-ld} -melf32bsmip"
5269 ;;
5270 *N32*)
5271 LD="${LD-ld} -melf32bmipn32"
5272 ;;
5273 *64-bit*)
5274 LD="${LD-ld} -melf64bmip"
5275 ;;
5276 esac
5277 else
5278 case `/usr/bin/file conftest.$ac_objext` in
5279 *32-bit*)
5280 LD="${LD-ld} -32"
5281 ;;
5282 *N32*)
5283 LD="${LD-ld} -n32"
5284 ;;
5285 *64-bit*)
5286 LD="${LD-ld} -64"
5287 ;;
5288 esac
5289 fi
5290 fi
5291 rm -rf conftest*
5292 ;;
5293
5294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5296 # Find out which ABI we are using.
5297 echo 'int i;' > conftest.$ac_ext
5298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; then
5303 case `/usr/bin/file conftest.o` in
5304 *32-bit*)
5305 case $host in
5306 x86_64-*kfreebsd*-gnu)
5307 LD="${LD-ld} -m elf_i386_fbsd"
5308 ;;
5309 x86_64-*linux*)
5310 LD="${LD-ld} -m elf_i386"
5311 ;;
5312 ppc64-*linux*|powerpc64-*linux*)
5313 LD="${LD-ld} -m elf32ppclinux"
5314 ;;
5315 s390x-*linux*)
5316 LD="${LD-ld} -m elf_s390"
5317 ;;
5318 sparc64-*linux*)
5319 LD="${LD-ld} -m elf32_sparc"
5320 ;;
5321 esac
5322 ;;
5323 *64-bit*)
5324 case $host in
5325 x86_64-*kfreebsd*-gnu)
5326 LD="${LD-ld} -m elf_x86_64_fbsd"
5327 ;;
5328 x86_64-*linux*)
5329 LD="${LD-ld} -m elf_x86_64"
5330 ;;
5331 ppc*-*linux*|powerpc*-*linux*)
5332 LD="${LD-ld} -m elf64ppc"
5333 ;;
5334 s390*-*linux*|s390*-*tpf*)
5335 LD="${LD-ld} -m elf64_s390"
5336 ;;
5337 sparc*-*linux*)
5338 LD="${LD-ld} -m elf64_sparc"
5339 ;;
5340 esac
5341 ;;
5342 esac
5343 fi
5344 rm -rf conftest*
5345 ;;
5346
5347 *-*-sco3.2v5*)
5348 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5349 SAVE_CFLAGS="$CFLAGS"
5350 CFLAGS="$CFLAGS -belf"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5352 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5353 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 lt_cv_cc_needs_belf=yes
5375 else
5376 lt_cv_cc_needs_belf=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5388 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5389 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5390 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5391 CFLAGS="$SAVE_CFLAGS"
5392 fi
5393 ;;
5394 sparc*-*solaris*)
5395 # Find out which ABI we are using.
5396 echo 'int i;' > conftest.$ac_ext
5397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5398 (eval $ac_compile) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }; then
5402 case `/usr/bin/file conftest.o` in
5403 *64-bit*)
5404 case $lt_cv_prog_gnu_ld in
5405 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5406 *)
5407 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5408 LD="${LD-ld} -64"
5409 fi
5410 ;;
5411 esac
5412 ;;
5413 esac
5414 fi
5415 rm -rf conftest*
5416 ;;
5417 esac
5418
5419 need_locks="$enable_libtool_lock"
5420
5421
5422 case $host_os in
5423 rhapsody* | darwin*)
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$DSYMUTIL"; then
5433 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5453 if test -n "$DSYMUTIL"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5455 $as_echo "$DSYMUTIL" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 fi
5463 if test -z "$ac_cv_prog_DSYMUTIL"; then
5464 ac_ct_DSYMUTIL=$DSYMUTIL
5465 # Extract the first word of "dsymutil", so it can be a program name with args.
5466 set dummy dsymutil; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_DSYMUTIL"; then
5473 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5493 if test -n "$ac_ct_DSYMUTIL"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501 if test "x$ac_ct_DSYMUTIL" = x; then
5502 DSYMUTIL=":"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 DSYMUTIL=$ac_ct_DSYMUTIL
5511 fi
5512 else
5513 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5514 fi
5515
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$NMEDIT"; then
5525 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 NMEDIT=$ac_cv_prog_NMEDIT
5545 if test -n "$NMEDIT"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5547 $as_echo "$NMEDIT" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 fi
5555 if test -z "$ac_cv_prog_NMEDIT"; then
5556 ac_ct_NMEDIT=$NMEDIT
5557 # Extract the first word of "nmedit", so it can be a program name with args.
5558 set dummy nmedit; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$ac_ct_NMEDIT"; then
5565 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5585 if test -n "$ac_ct_NMEDIT"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5587 $as_echo "$ac_ct_NMEDIT" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593 if test "x$ac_ct_NMEDIT" = x; then
5594 NMEDIT=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 NMEDIT=$ac_ct_NMEDIT
5603 fi
5604 else
5605 NMEDIT="$ac_cv_prog_NMEDIT"
5606 fi
5607
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_LIPO+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$LIPO"; then
5617 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 LIPO=$ac_cv_prog_LIPO
5637 if test -n "$LIPO"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5639 $as_echo "$LIPO" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 fi
5647 if test -z "$ac_cv_prog_LIPO"; then
5648 ac_ct_LIPO=$LIPO
5649 # Extract the first word of "lipo", so it can be a program name with args.
5650 set dummy lipo; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$ac_ct_LIPO"; then
5657 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_ac_ct_LIPO="lipo"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5677 if test -n "$ac_ct_LIPO"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5679 $as_echo "$ac_ct_LIPO" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685 if test "x$ac_ct_LIPO" = x; then
5686 LIPO=":"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694 LIPO=$ac_ct_LIPO
5695 fi
5696 else
5697 LIPO="$ac_cv_prog_LIPO"
5698 fi
5699
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}otool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$OTOOL"; then
5709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 OTOOL=$ac_cv_prog_OTOOL
5729 if test -n "$OTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5731 $as_echo "$OTOOL" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_OTOOL"; then
5740 ac_ct_OTOOL=$OTOOL
5741 # Extract the first word of "otool", so it can be a program name with args.
5742 set dummy otool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$ac_ct_OTOOL"; then
5749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_ac_ct_OTOOL="otool"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5769 if test -n "$ac_ct_OTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5771 $as_echo "$ac_ct_OTOOL" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777 if test "x$ac_ct_OTOOL" = x; then
5778 OTOOL=":"
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 OTOOL=$ac_ct_OTOOL
5787 fi
5788 else
5789 OTOOL="$ac_cv_prog_OTOOL"
5790 fi
5791
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$OTOOL64"; then
5801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 OTOOL64=$ac_cv_prog_OTOOL64
5821 if test -n "$OTOOL64"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5823 $as_echo "$OTOOL64" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 fi
5831 if test -z "$ac_cv_prog_OTOOL64"; then
5832 ac_ct_OTOOL64=$OTOOL64
5833 # Extract the first word of "otool64", so it can be a program name with args.
5834 set dummy otool64; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_OTOOL64"; then
5841 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_OTOOL64="otool64"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5861 if test -n "$ac_ct_OTOOL64"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5863 $as_echo "$ac_ct_OTOOL64" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869 if test "x$ac_ct_OTOOL64" = x; then
5870 OTOOL64=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 OTOOL64=$ac_ct_OTOOL64
5879 fi
5880 else
5881 OTOOL64="$ac_cv_prog_OTOOL64"
5882 fi
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5911 $as_echo_n "checking for -single_module linker flag... " >&6; }
5912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 lt_cv_apple_cc_single_mod=no
5916 if test -z "${LT_MULTI_MODULE}"; then
5917 # By default we will add the -single_module flag. You can override
5918 # by either setting the environment variable LT_MULTI_MODULE
5919 # non-empty at configure time, or by adding -multi_module to the
5920 # link flags.
5921 rm -rf libconftest.dylib*
5922 echo "int foo(void){return 1;}" > conftest.c
5923 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5924 -dynamiclib -Wl,-single_module conftest.c" >&5
5925 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5926 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5927 _lt_result=$?
5928 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5929 lt_cv_apple_cc_single_mod=yes
5930 else
5931 cat conftest.err >&5
5932 fi
5933 rm -rf libconftest.dylib*
5934 rm -f conftest.*
5935 fi
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 lt_cv_ld_exported_symbols_list=no
5945 save_LDFLAGS=$LDFLAGS
5946 echo "_main" > conftest.sym
5947 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950
5951 int
5952 main ()
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960 lt_cv_ld_exported_symbols_list=yes
5961 else
5962 lt_cv_ld_exported_symbols_list=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 LDFLAGS="$save_LDFLAGS"
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5971 case $host_os in
5972 rhapsody* | darwin1.[012])
5973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5974 darwin1.*)
5975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5976 darwin*) # darwin 5.x on
5977 # if running on 10.5 or later, the deployment target defaults
5978 # to the OS version, if on x86, and 10.4, the deployment
5979 # target defaults to 10.4. Don't you love it?
5980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5983 10.[012]*)
5984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5985 10.*)
5986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5987 esac
5988 ;;
5989 esac
5990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5991 _lt_dar_single_mod='$single_module'
5992 fi
5993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5995 else
5996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5997 fi
5998 if test "$DSYMUTIL" != ":"; then
5999 _lt_dsymutil='~$DSYMUTIL $lib || :'
6000 else
6001 _lt_dsymutil=
6002 fi
6003 ;;
6004 esac
6005
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6013 # On Suns, sometimes $CPP names a directory.
6014 if test -n "$CPP" && test -d "$CPP"; then
6015 CPP=
6016 fi
6017 if test -z "$CPP"; then
6018 if test "${ac_cv_prog_CPP+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 # Double quotes because CPP needs to be expanded
6022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6023 do
6024 ac_preproc_ok=false
6025 for ac_c_preproc_warn_flag in '' yes
6026 do
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #ifdef __STDC__
6036 # include <limits.h>
6037 #else
6038 # include <assert.h>
6039 #endif
6040 Syntax error
6041 _ACEOF
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6043
6044 else
6045 # Broken: fails on valid input.
6046 continue
6047 fi
6048 rm -f conftest.err conftest.$ac_ext
6049
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6055 _ACEOF
6056 if ac_fn_c_try_cpp "$LINENO"; then :
6057 # Broken: success on invalid input.
6058 continue
6059 else
6060 # Passes both tests.
6061 ac_preproc_ok=:
6062 break
6063 fi
6064 rm -f conftest.err conftest.$ac_ext
6065
6066 done
6067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068 rm -f conftest.err conftest.$ac_ext
6069 if $ac_preproc_ok; then :
6070 break
6071 fi
6072
6073 done
6074 ac_cv_prog_CPP=$CPP
6075
6076 fi
6077 CPP=$ac_cv_prog_CPP
6078 else
6079 ac_cv_prog_CPP=$CPP
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6082 $as_echo "$CPP" >&6; }
6083 ac_preproc_ok=false
6084 for ac_c_preproc_warn_flag in '' yes
6085 do
6086 # Use a header file that comes with gcc, so configuring glibc
6087 # with a fresh cross-compiler works.
6088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 # <limits.h> exists even on freestanding compilers.
6090 # On the NeXT, cc -E runs the code through the compiler's parser,
6091 # not just through cpp. "Syntax error" is here to catch this case.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #ifdef __STDC__
6095 # include <limits.h>
6096 #else
6097 # include <assert.h>
6098 #endif
6099 Syntax error
6100 _ACEOF
6101 if ac_fn_c_try_cpp "$LINENO"; then :
6102
6103 else
6104 # Broken: fails on valid input.
6105 continue
6106 fi
6107 rm -f conftest.err conftest.$ac_ext
6108
6109 # OK, works on sane cases. Now check whether nonexistent headers
6110 # can be detected and how.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <ac_nonexistent.h>
6114 _ACEOF
6115 if ac_fn_c_try_cpp "$LINENO"; then :
6116 # Broken: success on invalid input.
6117 continue
6118 else
6119 # Passes both tests.
6120 ac_preproc_ok=:
6121 break
6122 fi
6123 rm -f conftest.err conftest.$ac_ext
6124
6125 done
6126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6127 rm -f conftest.err conftest.$ac_ext
6128 if $ac_preproc_ok; then :
6129
6130 else
6131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6133 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6134 See \`config.log' for more details." "$LINENO" 5; }
6135 fi
6136
6137 ac_ext=c
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6145 $as_echo_n "checking for ANSI C header files... " >&6; }
6146 if test "${ac_cv_header_stdc+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <stdlib.h>
6152 #include <stdarg.h>
6153 #include <string.h>
6154 #include <float.h>
6155
6156 int
6157 main ()
6158 {
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 ac_cv_header_stdc=yes
6166 else
6167 ac_cv_header_stdc=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170
6171 if test $ac_cv_header_stdc = yes; then
6172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <string.h>
6176
6177 _ACEOF
6178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6179 $EGREP "memchr" >/dev/null 2>&1; then :
6180
6181 else
6182 ac_cv_header_stdc=no
6183 fi
6184 rm -f conftest*
6185
6186 fi
6187
6188 if test $ac_cv_header_stdc = yes; then
6189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <stdlib.h>
6193
6194 _ACEOF
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196 $EGREP "free" >/dev/null 2>&1; then :
6197
6198 else
6199 ac_cv_header_stdc=no
6200 fi
6201 rm -f conftest*
6202
6203 fi
6204
6205 if test $ac_cv_header_stdc = yes; then
6206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6207 if test "$cross_compiling" = yes; then :
6208 :
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ctype.h>
6213 #include <stdlib.h>
6214 #if ((' ' & 0x0FF) == 0x020)
6215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6217 #else
6218 # define ISLOWER(c) \
6219 (('a' <= (c) && (c) <= 'i') \
6220 || ('j' <= (c) && (c) <= 'r') \
6221 || ('s' <= (c) && (c) <= 'z'))
6222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6223 #endif
6224
6225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6226 int
6227 main ()
6228 {
6229 int i;
6230 for (i = 0; i < 256; i++)
6231 if (XOR (islower (i), ISLOWER (i))
6232 || toupper (i) != TOUPPER (i))
6233 return 2;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_run "$LINENO"; then :
6238
6239 else
6240 ac_cv_header_stdc=no
6241 fi
6242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6243 conftest.$ac_objext conftest.beam conftest.$ac_ext
6244 fi
6245
6246 fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6249 $as_echo "$ac_cv_header_stdc" >&6; }
6250 if test $ac_cv_header_stdc = yes; then
6251
6252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6253
6254 fi
6255
6256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6258 inttypes.h stdint.h unistd.h
6259 do :
6260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6262 "
6263 eval as_val=\$$as_ac_Header
6264 if test "x$as_val" = x""yes; then :
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6268
6269 fi
6270
6271 done
6272
6273
6274 for ac_header in dlfcn.h
6275 do :
6276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6277 "
6278 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define HAVE_DLFCN_H 1
6281 _ACEOF
6282
6283 fi
6284
6285 done
6286
6287
6288
6289 # Set options
6290 # Check whether --enable-static was given.
6291 if test "${enable_static+set}" = set; then :
6292 enableval=$enable_static; p=${PACKAGE-default}
6293 case $enableval in
6294 yes) enable_static=yes ;;
6295 no) enable_static=no ;;
6296 *)
6297 enable_static=no
6298 # Look at the argument we got. We use all the common list separators.
6299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6300 for pkg in $enableval; do
6301 IFS="$lt_save_ifs"
6302 if test "X$pkg" = "X$p"; then
6303 enable_static=yes
6304 fi
6305 done
6306 IFS="$lt_save_ifs"
6307 ;;
6308 esac
6309 else
6310 enable_static=no
6311 fi
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 enable_dlopen=no
6323
6324
6325 enable_win32_dll=no
6326
6327
6328 # Check whether --enable-shared was given.
6329 if test "${enable_shared+set}" = set; then :
6330 enableval=$enable_shared; p=${PACKAGE-default}
6331 case $enableval in
6332 yes) enable_shared=yes ;;
6333 no) enable_shared=no ;;
6334 *)
6335 enable_shared=no
6336 # Look at the argument we got. We use all the common list separators.
6337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6338 for pkg in $enableval; do
6339 IFS="$lt_save_ifs"
6340 if test "X$pkg" = "X$p"; then
6341 enable_shared=yes
6342 fi
6343 done
6344 IFS="$lt_save_ifs"
6345 ;;
6346 esac
6347 else
6348 enable_shared=yes
6349 fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 # Check whether --with-pic was given.
6362 if test "${with_pic+set}" = set; then :
6363 withval=$with_pic; pic_mode="$withval"
6364 else
6365 pic_mode=default
6366 fi
6367
6368
6369 test -z "$pic_mode" && pic_mode=default
6370
6371
6372
6373
6374
6375
6376
6377 # Check whether --enable-fast-install was given.
6378 if test "${enable_fast_install+set}" = set; then :
6379 enableval=$enable_fast_install; p=${PACKAGE-default}
6380 case $enableval in
6381 yes) enable_fast_install=yes ;;
6382 no) enable_fast_install=no ;;
6383 *)
6384 enable_fast_install=no
6385 # Look at the argument we got. We use all the common list separators.
6386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6387 for pkg in $enableval; do
6388 IFS="$lt_save_ifs"
6389 if test "X$pkg" = "X$p"; then
6390 enable_fast_install=yes
6391 fi
6392 done
6393 IFS="$lt_save_ifs"
6394 ;;
6395 esac
6396 else
6397 enable_fast_install=yes
6398 fi
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # This can be used to rebuild libtool when needed
6411 LIBTOOL_DEPS="$ltmain"
6412
6413 # Always use our own libtool.
6414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 test -z "$LN_S" && LN_S="ln -s"
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 if test -n "${ZSH_VERSION+set}" ; then
6456 setopt NO_GLOB_SUBST
6457 fi
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6460 $as_echo_n "checking for objdir... " >&6; }
6461 if test "${lt_cv_objdir+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 rm -f .libs 2>/dev/null
6465 mkdir .libs 2>/dev/null
6466 if test -d .libs; then
6467 lt_cv_objdir=.libs
6468 else
6469 # MS-DOS does not allow filenames that begin with a dot.
6470 lt_cv_objdir=_libs
6471 fi
6472 rmdir .libs 2>/dev/null
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6475 $as_echo "$lt_cv_objdir" >&6; }
6476 objdir=$lt_cv_objdir
6477
6478
6479
6480
6481
6482 cat >>confdefs.h <<_ACEOF
6483 #define LT_OBJDIR "$lt_cv_objdir/"
6484 _ACEOF
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 case $host_os in
6503 aix3*)
6504 # AIX sometimes has problems with the GCC collect2 program. For some
6505 # reason, if we set the COLLECT_NAMES environment variable, the problems
6506 # vanish in a puff of smoke.
6507 if test "X${COLLECT_NAMES+set}" != Xset; then
6508 COLLECT_NAMES=
6509 export COLLECT_NAMES
6510 fi
6511 ;;
6512 esac
6513
6514 # Sed substitution that helps us do robust quoting. It backslashifies
6515 # metacharacters that are still active within double-quoted strings.
6516 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6517
6518 # Same as above, but do not quote variable references.
6519 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6520
6521 # Sed substitution to delay expansion of an escaped shell variable in a
6522 # double_quote_subst'ed string.
6523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6524
6525 # Sed substitution to delay expansion of an escaped single quote.
6526 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6527
6528 # Sed substitution to avoid accidental globbing in evaled expressions
6529 no_glob_subst='s/\*/\\\*/g'
6530
6531 # Global variables:
6532 ofile=libtool
6533 can_build_shared=yes
6534
6535 # All known linkers require a `.a' archive for static linking (except MSVC,
6536 # which needs '.lib').
6537 libext=a
6538
6539 with_gnu_ld="$lt_cv_prog_gnu_ld"
6540
6541 old_CC="$CC"
6542 old_CFLAGS="$CFLAGS"
6543
6544 # Set sane defaults for various variables
6545 test -z "$CC" && CC=cc
6546 test -z "$LTCC" && LTCC=$CC
6547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6548 test -z "$LD" && LD=ld
6549 test -z "$ac_objext" && ac_objext=o
6550
6551 for cc_temp in $compiler""; do
6552 case $cc_temp in
6553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6555 \-*) ;;
6556 *) break;;
6557 esac
6558 done
6559 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6560
6561
6562 # Only perform the check for file, if the check method requires it
6563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6564 case $deplibs_check_method in
6565 file_magic*)
6566 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6568 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 case $MAGIC_CMD in
6573 [\\/*] | ?:[\\/]*)
6574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6575 ;;
6576 *)
6577 lt_save_MAGIC_CMD="$MAGIC_CMD"
6578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6580 for ac_dir in $ac_dummy; do
6581 IFS="$lt_save_ifs"
6582 test -z "$ac_dir" && ac_dir=.
6583 if test -f $ac_dir/${ac_tool_prefix}file; then
6584 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6585 if test -n "$file_magic_test_file"; then
6586 case $deplibs_check_method in
6587 "file_magic "*)
6588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6591 $EGREP "$file_magic_regex" > /dev/null; then
6592 :
6593 else
6594 cat <<_LT_EOF 1>&2
6595
6596 *** Warning: the command libtool uses to detect shared libraries,
6597 *** $file_magic_cmd, produces output that libtool cannot recognize.
6598 *** The result is that libtool may fail to recognize shared libraries
6599 *** as such. This will affect the creation of libtool libraries that
6600 *** depend on shared libraries, but programs linked with such libtool
6601 *** libraries will work regardless of this problem. Nevertheless, you
6602 *** may want to report the problem to your system manager and/or to
6603 *** bug-libtool@gnu.org
6604
6605 _LT_EOF
6606 fi ;;
6607 esac
6608 fi
6609 break
6610 fi
6611 done
6612 IFS="$lt_save_ifs"
6613 MAGIC_CMD="$lt_save_MAGIC_CMD"
6614 ;;
6615 esac
6616 fi
6617
6618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6619 if test -n "$MAGIC_CMD"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6621 $as_echo "$MAGIC_CMD" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627
6628
6629
6630
6631 if test -z "$lt_cv_path_MAGIC_CMD"; then
6632 if test -n "$ac_tool_prefix"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6634 $as_echo_n "checking for file... " >&6; }
6635 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 case $MAGIC_CMD in
6639 [\\/*] | ?:[\\/]*)
6640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6641 ;;
6642 *)
6643 lt_save_MAGIC_CMD="$MAGIC_CMD"
6644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6646 for ac_dir in $ac_dummy; do
6647 IFS="$lt_save_ifs"
6648 test -z "$ac_dir" && ac_dir=.
6649 if test -f $ac_dir/file; then
6650 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6651 if test -n "$file_magic_test_file"; then
6652 case $deplibs_check_method in
6653 "file_magic "*)
6654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6657 $EGREP "$file_magic_regex" > /dev/null; then
6658 :
6659 else
6660 cat <<_LT_EOF 1>&2
6661
6662 *** Warning: the command libtool uses to detect shared libraries,
6663 *** $file_magic_cmd, produces output that libtool cannot recognize.
6664 *** The result is that libtool may fail to recognize shared libraries
6665 *** as such. This will affect the creation of libtool libraries that
6666 *** depend on shared libraries, but programs linked with such libtool
6667 *** libraries will work regardless of this problem. Nevertheless, you
6668 *** may want to report the problem to your system manager and/or to
6669 *** bug-libtool@gnu.org
6670
6671 _LT_EOF
6672 fi ;;
6673 esac
6674 fi
6675 break
6676 fi
6677 done
6678 IFS="$lt_save_ifs"
6679 MAGIC_CMD="$lt_save_MAGIC_CMD"
6680 ;;
6681 esac
6682 fi
6683
6684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6685 if test -n "$MAGIC_CMD"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6687 $as_echo "$MAGIC_CMD" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 else
6695 MAGIC_CMD=:
6696 fi
6697 fi
6698
6699 fi
6700 ;;
6701 esac
6702
6703 # Use C for the default configuration in the libtool script
6704
6705 lt_save_CC="$CC"
6706 ac_ext=c
6707 ac_cpp='$CPP $CPPFLAGS'
6708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6711
6712
6713 # Source file extension for C test sources.
6714 ac_ext=c
6715
6716 # Object file extension for compiled C test sources.
6717 objext=o
6718 objext=$objext
6719
6720 # Code to be used in simple compile tests
6721 lt_simple_compile_test_code="int some_variable = 0;"
6722
6723 # Code to be used in simple link tests
6724 lt_simple_link_test_code='int main(){return(0);}'
6725
6726
6727
6728
6729
6730
6731
6732 # If no C compiler was specified, use CC.
6733 LTCC=${LTCC-"$CC"}
6734
6735 # If no C compiler flags were specified, use CFLAGS.
6736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6737
6738 # Allow CC to be a program name with arguments.
6739 compiler=$CC
6740
6741 # Save the default compiler, since it gets overwritten when the other
6742 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6743 compiler_DEFAULT=$CC
6744
6745 # save warnings/boilerplate of simple test code
6746 ac_outfile=conftest.$ac_objext
6747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6749 _lt_compiler_boilerplate=`cat conftest.err`
6750 $RM conftest*
6751
6752 ac_outfile=conftest.$ac_objext
6753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6755 _lt_linker_boilerplate=`cat conftest.err`
6756 $RM -r conftest*
6757
6758
6759 if test -n "$compiler"; then
6760
6761 lt_prog_compiler_no_builtin_flag=
6762
6763 if test "$GCC" = yes; then
6764 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 lt_cv_prog_compiler_rtti_exceptions=no
6772 ac_outfile=conftest.$ac_objext
6773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6774 lt_compiler_flag="-fno-rtti -fno-exceptions"
6775 # Insert the option either (1) after the last *FLAGS variable, or
6776 # (2) before a word containing "conftest.", or (3) at the end.
6777 # Note that $ac_compile itself does not contain backslashes and begins
6778 # with a dollar sign (not a hyphen), so the echo should work correctly.
6779 # The option is referenced via a variable to avoid confusing sed.
6780 lt_compile=`echo "$ac_compile" | $SED \
6781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6783 -e 's:$: $lt_compiler_flag:'`
6784 (eval echo "\"\$as_me:6784: $lt_compile\"" >&5)
6785 (eval "$lt_compile" 2>conftest.err)
6786 ac_status=$?
6787 cat conftest.err >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 if (exit $ac_status) && test -s "$ac_outfile"; then
6790 # The compiler can only warn and ignore the option if not recognized
6791 # So say no if there are warnings other than the usual output.
6792 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6795 lt_cv_prog_compiler_rtti_exceptions=yes
6796 fi
6797 fi
6798 $RM conftest*
6799
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6803
6804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6806 else
6807 :
6808 fi
6809
6810 fi
6811
6812
6813
6814
6815
6816
6817 lt_prog_compiler_wl=
6818 lt_prog_compiler_pic=
6819 lt_prog_compiler_static=
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6823
6824 if test "$GCC" = yes; then
6825 lt_prog_compiler_wl='-Wl,'
6826 lt_prog_compiler_static='-static'
6827
6828 case $host_os in
6829 aix*)
6830 # All AIX code is PIC.
6831 if test "$host_cpu" = ia64; then
6832 # AIX 5 now supports IA64 processor
6833 lt_prog_compiler_static='-Bstatic'
6834 fi
6835 ;;
6836
6837 amigaos*)
6838 case $host_cpu in
6839 powerpc)
6840 # see comment about AmigaOS4 .so support
6841 lt_prog_compiler_pic='-fPIC'
6842 ;;
6843 m68k)
6844 # FIXME: we need at least 68020 code to build shared libraries, but
6845 # adding the `-m68020' flag to GCC prevents building anything better,
6846 # like `-m68040'.
6847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6848 ;;
6849 esac
6850 ;;
6851
6852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6853 # PIC is the default for these OSes.
6854 ;;
6855
6856 mingw* | cygwin* | pw32* | os2* | cegcc*)
6857 # This hack is so that the source file can tell whether it is being
6858 # built for inclusion in a dll (and should export symbols for example).
6859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6860 # (--disable-auto-import) libraries
6861 lt_prog_compiler_pic='-DDLL_EXPORT'
6862 ;;
6863
6864 darwin* | rhapsody*)
6865 # PIC is the default on this platform
6866 # Common symbols not allowed in MH_DYLIB files
6867 lt_prog_compiler_pic='-fno-common'
6868 ;;
6869
6870 hpux*)
6871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6873 # sets the default TLS model and affects inlining.
6874 case $host_cpu in
6875 hppa*64*)
6876 # +Z the default
6877 ;;
6878 *)
6879 lt_prog_compiler_pic='-fPIC'
6880 ;;
6881 esac
6882 ;;
6883
6884 interix[3-9]*)
6885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6886 # Instead, we relocate shared libraries at runtime.
6887 ;;
6888
6889 msdosdjgpp*)
6890 # Just because we use GCC doesn't mean we suddenly get shared libraries
6891 # on systems that don't support them.
6892 lt_prog_compiler_can_build_shared=no
6893 enable_shared=no
6894 ;;
6895
6896 *nto* | *qnx*)
6897 # QNX uses GNU C++, but need to define -shared option too, otherwise
6898 # it will coredump.
6899 lt_prog_compiler_pic='-fPIC -shared'
6900 ;;
6901
6902 sysv4*MP*)
6903 if test -d /usr/nec; then
6904 lt_prog_compiler_pic=-Kconform_pic
6905 fi
6906 ;;
6907
6908 *)
6909 lt_prog_compiler_pic='-fPIC'
6910 ;;
6911 esac
6912 else
6913 # PORTME Check for flag to pass linker flags through the system compiler.
6914 case $host_os in
6915 aix*)
6916 lt_prog_compiler_wl='-Wl,'
6917 if test "$host_cpu" = ia64; then
6918 # AIX 5 now supports IA64 processor
6919 lt_prog_compiler_static='-Bstatic'
6920 else
6921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6922 fi
6923 ;;
6924
6925 mingw* | cygwin* | pw32* | os2* | cegcc*)
6926 # This hack is so that the source file can tell whether it is being
6927 # built for inclusion in a dll (and should export symbols for example).
6928 lt_prog_compiler_pic='-DDLL_EXPORT'
6929 ;;
6930
6931 hpux9* | hpux10* | hpux11*)
6932 lt_prog_compiler_wl='-Wl,'
6933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6934 # not for PA HP-UX.
6935 case $host_cpu in
6936 hppa*64*|ia64*)
6937 # +Z the default
6938 ;;
6939 *)
6940 lt_prog_compiler_pic='+Z'
6941 ;;
6942 esac
6943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6944 lt_prog_compiler_static='${wl}-a ${wl}archive'
6945 ;;
6946
6947 irix5* | irix6* | nonstopux*)
6948 lt_prog_compiler_wl='-Wl,'
6949 # PIC (with -KPIC) is the default.
6950 lt_prog_compiler_static='-non_shared'
6951 ;;
6952
6953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6954 case $cc_basename in
6955 # old Intel for x86_64 which still supported -KPIC.
6956 ecc*)
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_pic='-KPIC'
6959 lt_prog_compiler_static='-static'
6960 ;;
6961 # icc used to be incompatible with GCC.
6962 # ICC 10 doesn't accept -KPIC any more.
6963 icc* | ifort*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_pic='-fPIC'
6966 lt_prog_compiler_static='-static'
6967 ;;
6968 # Lahey Fortran 8.1.
6969 lf95*)
6970 lt_prog_compiler_wl='-Wl,'
6971 lt_prog_compiler_pic='--shared'
6972 lt_prog_compiler_static='--static'
6973 ;;
6974 pgcc* | pgf77* | pgf90* | pgf95*)
6975 # Portland Group compilers (*not* the Pentium gcc compiler,
6976 # which looks to be a dead project)
6977 lt_prog_compiler_wl='-Wl,'
6978 lt_prog_compiler_pic='-fpic'
6979 lt_prog_compiler_static='-Bstatic'
6980 ;;
6981 ccc*)
6982 lt_prog_compiler_wl='-Wl,'
6983 # All Alpha code is PIC.
6984 lt_prog_compiler_static='-non_shared'
6985 ;;
6986 xl*)
6987 # IBM XL C 8.0/Fortran 10.1 on PPC
6988 lt_prog_compiler_wl='-Wl,'
6989 lt_prog_compiler_pic='-qpic'
6990 lt_prog_compiler_static='-qstaticlink'
6991 ;;
6992 *)
6993 case `$CC -V 2>&1 | sed 5q` in
6994 *Sun\ C*)
6995 # Sun C 5.9
6996 lt_prog_compiler_pic='-KPIC'
6997 lt_prog_compiler_static='-Bstatic'
6998 lt_prog_compiler_wl='-Wl,'
6999 ;;
7000 *Sun\ F*)
7001 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-Bstatic'
7004 lt_prog_compiler_wl=''
7005 ;;
7006 esac
7007 ;;
7008 esac
7009 ;;
7010
7011 newsos6)
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
7015
7016 *nto* | *qnx*)
7017 # QNX uses GNU C++, but need to define -shared option too, otherwise
7018 # it will coredump.
7019 lt_prog_compiler_pic='-fPIC -shared'
7020 ;;
7021
7022 osf3* | osf4* | osf5*)
7023 lt_prog_compiler_wl='-Wl,'
7024 # All OSF/1 code is PIC.
7025 lt_prog_compiler_static='-non_shared'
7026 ;;
7027
7028 rdos*)
7029 lt_prog_compiler_static='-non_shared'
7030 ;;
7031
7032 solaris*)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 case $cc_basename in
7036 f77* | f90* | f95*)
7037 lt_prog_compiler_wl='-Qoption ld ';;
7038 *)
7039 lt_prog_compiler_wl='-Wl,';;
7040 esac
7041 ;;
7042
7043 sunos4*)
7044 lt_prog_compiler_wl='-Qoption ld '
7045 lt_prog_compiler_pic='-PIC'
7046 lt_prog_compiler_static='-Bstatic'
7047 ;;
7048
7049 sysv4 | sysv4.2uw2* | sysv4.3*)
7050 lt_prog_compiler_wl='-Wl,'
7051 lt_prog_compiler_pic='-KPIC'
7052 lt_prog_compiler_static='-Bstatic'
7053 ;;
7054
7055 sysv4*MP*)
7056 if test -d /usr/nec ;then
7057 lt_prog_compiler_pic='-Kconform_pic'
7058 lt_prog_compiler_static='-Bstatic'
7059 fi
7060 ;;
7061
7062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7063 lt_prog_compiler_wl='-Wl,'
7064 lt_prog_compiler_pic='-KPIC'
7065 lt_prog_compiler_static='-Bstatic'
7066 ;;
7067
7068 unicos*)
7069 lt_prog_compiler_wl='-Wl,'
7070 lt_prog_compiler_can_build_shared=no
7071 ;;
7072
7073 uts4*)
7074 lt_prog_compiler_pic='-pic'
7075 lt_prog_compiler_static='-Bstatic'
7076 ;;
7077
7078 *)
7079 lt_prog_compiler_can_build_shared=no
7080 ;;
7081 esac
7082 fi
7083
7084 case $host_os in
7085 # For platforms which do not support PIC, -DPIC is meaningless:
7086 *djgpp*)
7087 lt_prog_compiler_pic=
7088 ;;
7089 *)
7090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7091 ;;
7092 esac
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7094 $as_echo "$lt_prog_compiler_pic" >&6; }
7095
7096
7097
7098
7099
7100
7101 #
7102 # Check to make sure the PIC flag actually works.
7103 #
7104 if test -n "$lt_prog_compiler_pic"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7107 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 lt_cv_prog_compiler_pic_works=no
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7114 # Insert the option either (1) after the last *FLAGS variable, or
7115 # (2) before a word containing "conftest.", or (3) at the end.
7116 # Note that $ac_compile itself does not contain backslashes and begins
7117 # with a dollar sign (not a hyphen), so the echo should work correctly.
7118 # The option is referenced via a variable to avoid confusing sed.
7119 lt_compile=`echo "$ac_compile" | $SED \
7120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122 -e 's:$: $lt_compiler_flag:'`
7123 (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124 (eval "$lt_compile" 2>conftest.err)
7125 ac_status=$?
7126 cat conftest.err >&5
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 if (exit $ac_status) && test -s "$ac_outfile"; then
7129 # The compiler can only warn and ignore the option if not recognized
7130 # So say no if there are warnings other than the usual output.
7131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7134 lt_cv_prog_compiler_pic_works=yes
7135 fi
7136 fi
7137 $RM conftest*
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7142
7143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7144 case $lt_prog_compiler_pic in
7145 "" | " "*) ;;
7146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7147 esac
7148 else
7149 lt_prog_compiler_pic=
7150 lt_prog_compiler_can_build_shared=no
7151 fi
7152
7153 fi
7154
7155
7156
7157
7158
7159
7160 #
7161 # Check to make sure the static flag actually works.
7162 #
7163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7166 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 lt_cv_prog_compiler_static_works=no
7170 save_LDFLAGS="$LDFLAGS"
7171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7174 # The linker can only warn and ignore the option if not recognized
7175 # So say no if there are warnings
7176 if test -s conftest.err; then
7177 # Append any errors to the config.log.
7178 cat conftest.err 1>&5
7179 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7181 if diff conftest.exp conftest.er2 >/dev/null; then
7182 lt_cv_prog_compiler_static_works=yes
7183 fi
7184 else
7185 lt_cv_prog_compiler_static_works=yes
7186 fi
7187 fi
7188 $RM -r conftest*
7189 LDFLAGS="$save_LDFLAGS"
7190
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7194
7195 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7196 :
7197 else
7198 lt_prog_compiler_static=
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7209 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 lt_cv_prog_compiler_c_o=no
7213 $RM -r conftest 2>/dev/null
7214 mkdir conftest
7215 cd conftest
7216 mkdir out
7217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7218
7219 lt_compiler_flag="-o out/conftest2.$ac_objext"
7220 # Insert the option either (1) after the last *FLAGS variable, or
7221 # (2) before a word containing "conftest.", or (3) at the end.
7222 # Note that $ac_compile itself does not contain backslashes and begins
7223 # with a dollar sign (not a hyphen), so the echo should work correctly.
7224 lt_compile=`echo "$ac_compile" | $SED \
7225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7227 -e 's:$: $lt_compiler_flag:'`
7228 (eval echo "\"\$as_me:7228: $lt_compile\"" >&5)
7229 (eval "$lt_compile" 2>out/conftest.err)
7230 ac_status=$?
7231 cat out/conftest.err >&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7234 then
7235 # The compiler can only warn and ignore the option if not recognized
7236 # So say no if there are warnings
7237 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7240 lt_cv_prog_compiler_c_o=yes
7241 fi
7242 fi
7243 chmod u+w . 2>&5
7244 $RM conftest*
7245 # SGI C++ compiler will create directory out/ii_files/ for
7246 # template instantiation
7247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7248 $RM out/* && rmdir out
7249 cd ..
7250 $RM -r conftest
7251 $RM conftest*
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7256
7257
7258
7259
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 lt_cv_prog_compiler_c_o=no
7268 $RM -r conftest 2>/dev/null
7269 mkdir conftest
7270 cd conftest
7271 mkdir out
7272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7273
7274 lt_compiler_flag="-o out/conftest2.$ac_objext"
7275 # Insert the option either (1) after the last *FLAGS variable, or
7276 # (2) before a word containing "conftest.", or (3) at the end.
7277 # Note that $ac_compile itself does not contain backslashes and begins
7278 # with a dollar sign (not a hyphen), so the echo should work correctly.
7279 lt_compile=`echo "$ac_compile" | $SED \
7280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7282 -e 's:$: $lt_compiler_flag:'`
7283 (eval echo "\"\$as_me:7283: $lt_compile\"" >&5)
7284 (eval "$lt_compile" 2>out/conftest.err)
7285 ac_status=$?
7286 cat out/conftest.err >&5
7287 echo "$as_me:7287: \$? = $ac_status" >&5
7288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7289 then
7290 # The compiler can only warn and ignore the option if not recognized
7291 # So say no if there are warnings
7292 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7295 lt_cv_prog_compiler_c_o=yes
7296 fi
7297 fi
7298 chmod u+w . 2>&5
7299 $RM conftest*
7300 # SGI C++ compiler will create directory out/ii_files/ for
7301 # template instantiation
7302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7303 $RM out/* && rmdir out
7304 cd ..
7305 $RM -r conftest
7306 $RM conftest*
7307
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7311
7312
7313
7314
7315 hard_links="nottested"
7316 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7317 # do not overwrite the value of need_locks provided by the user
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7319 $as_echo_n "checking if we can lock with hard links... " >&6; }
7320 hard_links=yes
7321 $RM conftest*
7322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7323 touch conftest.a
7324 ln conftest.a conftest.b 2>&5 || hard_links=no
7325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7327 $as_echo "$hard_links" >&6; }
7328 if test "$hard_links" = no; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7331 need_locks=warn
7332 fi
7333 else
7334 need_locks=no
7335 fi
7336
7337
7338
7339
7340
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7344
7345 runpath_var=
7346 allow_undefined_flag=
7347 always_export_symbols=no
7348 archive_cmds=
7349 archive_expsym_cmds=
7350 compiler_needs_object=no
7351 enable_shared_with_static_runtimes=no
7352 export_dynamic_flag_spec=
7353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7354 hardcode_automatic=no
7355 hardcode_direct=no
7356 hardcode_direct_absolute=no
7357 hardcode_libdir_flag_spec=
7358 hardcode_libdir_flag_spec_ld=
7359 hardcode_libdir_separator=
7360 hardcode_minus_L=no
7361 hardcode_shlibpath_var=unsupported
7362 inherit_rpath=no
7363 link_all_deplibs=unknown
7364 module_cmds=
7365 module_expsym_cmds=
7366 old_archive_from_new_cmds=
7367 old_archive_from_expsyms_cmds=
7368 thread_safe_flag_spec=
7369 whole_archive_flag_spec=
7370 # include_expsyms should be a list of space-separated symbols to be *always*
7371 # included in the symbol list
7372 include_expsyms=
7373 # exclude_expsyms can be an extended regexp of symbols to exclude
7374 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7376 # as well as any symbol that contains `d'.
7377 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7379 # platforms (ab)use it in PIC code, but their linkers get confused if
7380 # the symbol is explicitly referenced. Since portable code cannot
7381 # rely on this symbol name, it's probably fine to never include it in
7382 # preloaded symbol tables.
7383 # Exclude shared library initialization/finalization symbols.
7384 extract_expsyms_cmds=
7385
7386 case $host_os in
7387 cygwin* | mingw* | pw32* | cegcc*)
7388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7389 # When not using gcc, we currently assume that we are using
7390 # Microsoft Visual C++.
7391 if test "$GCC" != yes; then
7392 with_gnu_ld=no
7393 fi
7394 ;;
7395 interix*)
7396 # we just hope/assume this is gcc and not c89 (= MSVC++)
7397 with_gnu_ld=yes
7398 ;;
7399 openbsd*)
7400 with_gnu_ld=no
7401 ;;
7402 linux* | k*bsd*-gnu)
7403 link_all_deplibs=no
7404 ;;
7405 esac
7406
7407 ld_shlibs=yes
7408 if test "$with_gnu_ld" = yes; then
7409 # If archive_cmds runs LD, not CC, wlarc should be empty
7410 wlarc='${wl}'
7411
7412 # Set some defaults for GNU ld with shared library support. These
7413 # are reset later if shared libraries are not supported. Putting them
7414 # here allows them to be overridden if necessary.
7415 runpath_var=LD_RUN_PATH
7416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7417 export_dynamic_flag_spec='${wl}--export-dynamic'
7418 # ancient GNU ld didn't support --whole-archive et. al.
7419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7421 else
7422 whole_archive_flag_spec=
7423 fi
7424 supports_anon_versioning=no
7425 case `$LD -v 2>&1` in
7426 *GNU\ gold*) supports_anon_versioning=yes ;;
7427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7430 *\ 2.11.*) ;; # other 2.11 versions
7431 *) supports_anon_versioning=yes ;;
7432 esac
7433
7434 # See if GNU ld supports shared libraries.
7435 case $host_os in
7436 aix[3-9]*)
7437 # On AIX/PPC, the GNU linker is very broken
7438 if test "$host_cpu" != ia64; then
7439 ld_shlibs=no
7440 cat <<_LT_EOF 1>&2
7441
7442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7443 *** to be unable to reliably create shared libraries on AIX.
7444 *** Therefore, libtool is disabling shared libraries support. If you
7445 *** really care for shared libraries, you may want to modify your PATH
7446 *** so that a non-GNU linker is found, and then restart.
7447
7448 _LT_EOF
7449 fi
7450 ;;
7451
7452 amigaos*)
7453 case $host_cpu in
7454 powerpc)
7455 # see comment about AmigaOS4 .so support
7456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7457 archive_expsym_cmds=''
7458 ;;
7459 m68k)
7460 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)'
7461 hardcode_libdir_flag_spec='-L$libdir'
7462 hardcode_minus_L=yes
7463 ;;
7464 esac
7465 ;;
7466
7467 beos*)
7468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7469 allow_undefined_flag=unsupported
7470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7471 # support --undefined. This deserves some investigation. FIXME
7472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7473 else
7474 ld_shlibs=no
7475 fi
7476 ;;
7477
7478 cygwin* | mingw* | pw32* | cegcc*)
7479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7480 # as there is no search path for DLLs.
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 allow_undefined_flag=unsupported
7483 always_export_symbols=no
7484 enable_shared_with_static_runtimes=yes
7485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7486
7487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7489 # If the export-symbols file already is a .def file (1st line
7490 # is EXPORTS), use it as is; otherwise, prepend...
7491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7492 cp $export_symbols $output_objdir/$soname.def;
7493 else
7494 echo EXPORTS > $output_objdir/$soname.def;
7495 cat $export_symbols >> $output_objdir/$soname.def;
7496 fi~
7497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502
7503 interix[3-9]*)
7504 hardcode_direct=no
7505 hardcode_shlibpath_var=no
7506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7507 export_dynamic_flag_spec='${wl}-E'
7508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7509 # Instead, shared libraries are loaded at an image base (0x10000000 by
7510 # default) and relocated if they conflict, which is a slow very memory
7511 # consuming and fragmenting process. To avoid this, we pick a random,
7512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7515 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'
7516 ;;
7517
7518 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7519 tmp_diet=no
7520 if test "$host_os" = linux-dietlibc; then
7521 case $cc_basename in
7522 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7523 esac
7524 fi
7525 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7526 && test "$tmp_diet" = no
7527 then
7528 tmp_addflag=
7529 tmp_sharedflag='-shared'
7530 case $cc_basename,$host_cpu in
7531 pgcc*) # Portland Group C compiler
7532 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'
7533 tmp_addflag=' $pic_flag'
7534 ;;
7535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7536 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'
7537 tmp_addflag=' $pic_flag -Mnomain' ;;
7538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7539 tmp_addflag=' -i_dynamic' ;;
7540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7541 tmp_addflag=' -i_dynamic -nofor_main' ;;
7542 ifc* | ifort*) # Intel Fortran compiler
7543 tmp_addflag=' -nofor_main' ;;
7544 lf95*) # Lahey Fortran 8.1
7545 whole_archive_flag_spec=
7546 tmp_sharedflag='--shared' ;;
7547 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7548 tmp_sharedflag='-qmkshrobj'
7549 tmp_addflag= ;;
7550 esac
7551 case `$CC -V 2>&1 | sed 5q` in
7552 *Sun\ C*) # Sun C 5.9
7553 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'
7554 compiler_needs_object=yes
7555 tmp_sharedflag='-G' ;;
7556 *Sun\ F*) # Sun Fortran 8.3
7557 tmp_sharedflag='-G' ;;
7558 esac
7559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7560
7561 if test "x$supports_anon_versioning" = xyes; then
7562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7564 echo "local: *; };" >> $output_objdir/$libname.ver~
7565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7566 fi
7567
7568 case $cc_basename in
7569 xlf*)
7570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7572 hardcode_libdir_flag_spec=
7573 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7574 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7575 if test "x$supports_anon_versioning" = xyes; then
7576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7578 echo "local: *; };" >> $output_objdir/$libname.ver~
7579 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7580 fi
7581 ;;
7582 esac
7583 else
7584 ld_shlibs=no
7585 fi
7586 ;;
7587
7588 netbsd* | netbsdelf*-gnu)
7589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7591 wlarc=
7592 else
7593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7595 fi
7596 ;;
7597
7598 solaris*)
7599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7600 ld_shlibs=no
7601 cat <<_LT_EOF 1>&2
7602
7603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7604 *** create shared libraries on Solaris systems. Therefore, libtool
7605 *** is disabling shared libraries support. We urge you to upgrade GNU
7606 *** binutils to release 2.9.1 or newer. Another option is to modify
7607 *** your PATH or compiler configuration so that the native linker is
7608 *** used, and then restart.
7609
7610 _LT_EOF
7611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7614 else
7615 ld_shlibs=no
7616 fi
7617 ;;
7618
7619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7620 case `$LD -v 2>&1` in
7621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7622 ld_shlibs=no
7623 cat <<_LT_EOF 1>&2
7624
7625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7626 *** reliably create shared libraries on SCO systems. Therefore, libtool
7627 *** is disabling shared libraries support. We urge you to upgrade GNU
7628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7629 *** your PATH or compiler configuration so that the native linker is
7630 *** used, and then restart.
7631
7632 _LT_EOF
7633 ;;
7634 *)
7635 # For security reasons, it is highly recommended that you always
7636 # use absolute paths for naming shared libraries, and exclude the
7637 # DT_RUNPATH tag from executables and libraries. But doing so
7638 # requires that you compile everything twice, which is a pain.
7639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643 else
7644 ld_shlibs=no
7645 fi
7646 ;;
7647 esac
7648 ;;
7649
7650 sunos4*)
7651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7652 wlarc=
7653 hardcode_direct=yes
7654 hardcode_shlibpath_var=no
7655 ;;
7656
7657 *)
7658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 else
7662 ld_shlibs=no
7663 fi
7664 ;;
7665 esac
7666
7667 if test "$ld_shlibs" = no; then
7668 runpath_var=
7669 hardcode_libdir_flag_spec=
7670 export_dynamic_flag_spec=
7671 whole_archive_flag_spec=
7672 fi
7673 else
7674 # PORTME fill in a description of your system's linker (not GNU ld)
7675 case $host_os in
7676 aix3*)
7677 allow_undefined_flag=unsupported
7678 always_export_symbols=yes
7679 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'
7680 # Note: this linker hardcodes the directories in LIBPATH if there
7681 # are no directories specified by -L.
7682 hardcode_minus_L=yes
7683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7684 # Neither direct hardcoding nor static linking is supported with a
7685 # broken collect2.
7686 hardcode_direct=unsupported
7687 fi
7688 ;;
7689
7690 aix[4-9]*)
7691 if test "$host_cpu" = ia64; then
7692 # On IA64, the linker does run time linking by default, so we don't
7693 # have to do anything special.
7694 aix_use_runtimelinking=no
7695 exp_sym_flag='-Bexport'
7696 no_entry_flag=""
7697 else
7698 # If we're using GNU nm, then we don't want the "-C" option.
7699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7701 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'
7702 else
7703 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'
7704 fi
7705 aix_use_runtimelinking=no
7706
7707 # Test if we are trying to use run time linking or normal
7708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7709 # need to do runtime linking.
7710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7711 for ld_flag in $LDFLAGS; do
7712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7713 aix_use_runtimelinking=yes
7714 break
7715 fi
7716 done
7717 ;;
7718 esac
7719
7720 exp_sym_flag='-bexport'
7721 no_entry_flag='-bnoentry'
7722 fi
7723
7724 # When large executables or shared objects are built, AIX ld can
7725 # have problems creating the table of contents. If linking a library
7726 # or program results in "error TOC overflow" add -mminimal-toc to
7727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7729
7730 archive_cmds=''
7731 hardcode_direct=yes
7732 hardcode_direct_absolute=yes
7733 hardcode_libdir_separator=':'
7734 link_all_deplibs=yes
7735 file_list_spec='${wl}-f,'
7736
7737 if test "$GCC" = yes; then
7738 case $host_os in aix4.[012]|aix4.[012].*)
7739 # We only want to do this on AIX 4.2 and lower, the check
7740 # below for broken collect2 doesn't work under 4.3+
7741 collect2name=`${CC} -print-prog-name=collect2`
7742 if test -f "$collect2name" &&
7743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7744 then
7745 # We have reworked collect2
7746 :
7747 else
7748 # We have old collect2
7749 hardcode_direct=unsupported
7750 # It fails to find uninstalled libraries when the uninstalled
7751 # path is not listed in the libpath. Setting hardcode_minus_L
7752 # to unsupported forces relinking
7753 hardcode_minus_L=yes
7754 hardcode_libdir_flag_spec='-L$libdir'
7755 hardcode_libdir_separator=
7756 fi
7757 ;;
7758 esac
7759 shared_flag='-shared'
7760 if test "$aix_use_runtimelinking" = yes; then
7761 shared_flag="$shared_flag "'${wl}-G'
7762 fi
7763 link_all_deplibs=no
7764 else
7765 # not using gcc
7766 if test "$host_cpu" = ia64; then
7767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7768 # chokes on -Wl,-G. The following line is correct:
7769 shared_flag='-G'
7770 else
7771 if test "$aix_use_runtimelinking" = yes; then
7772 shared_flag='${wl}-G'
7773 else
7774 shared_flag='${wl}-bM:SRE'
7775 fi
7776 fi
7777 fi
7778
7779 export_dynamic_flag_spec='${wl}-bexpall'
7780 # It seems that -bexpall does not export symbols beginning with
7781 # underscore (_), so it is better to generate a list of symbols to export.
7782 always_export_symbols=yes
7783 if test "$aix_use_runtimelinking" = yes; then
7784 # Warning - without using the other runtime loading flags (-brtl),
7785 # -berok will link without error, but may produce a broken library.
7786 allow_undefined_flag='-berok'
7787 # Determine the default libpath from the value encoded in an
7788 # empty executable.
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801
7802 lt_aix_libpath_sed='
7803 /Import File Strings/,/^$/ {
7804 /^0/ {
7805 s/^0 *\(.*\)$/\1/
7806 p
7807 }
7808 }'
7809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7810 # Check for a 64-bit object if we didn't find anything.
7811 if test -z "$aix_libpath"; then
7812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7813 fi
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7818
7819 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7820 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"
7821 else
7822 if test "$host_cpu" = ia64; then
7823 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7824 allow_undefined_flag="-z nodefs"
7825 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"
7826 else
7827 # Determine the default libpath from the value encoded in an
7828 # empty executable.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 int
7833 main ()
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841
7842 lt_aix_libpath_sed='
7843 /Import File Strings/,/^$/ {
7844 /^0/ {
7845 s/^0 *\(.*\)$/\1/
7846 p
7847 }
7848 }'
7849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7850 # Check for a 64-bit object if we didn't find anything.
7851 if test -z "$aix_libpath"; then
7852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7853 fi
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7858
7859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7860 # Warning - without using the other run time loading flags,
7861 # -berok will link without error, but may produce a broken library.
7862 no_undefined_flag=' ${wl}-bernotok'
7863 allow_undefined_flag=' ${wl}-berok'
7864 # Exported symbols can be pulled into shared objects from archives
7865 whole_archive_flag_spec='$convenience'
7866 archive_cmds_need_lc=yes
7867 # This is similar to how AIX traditionally builds its shared libraries.
7868 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'
7869 fi
7870 fi
7871 ;;
7872
7873 amigaos*)
7874 case $host_cpu in
7875 powerpc)
7876 # see comment about AmigaOS4 .so support
7877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7878 archive_expsym_cmds=''
7879 ;;
7880 m68k)
7881 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)'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_minus_L=yes
7884 ;;
7885 esac
7886 ;;
7887
7888 bsdi[45]*)
7889 export_dynamic_flag_spec=-rdynamic
7890 ;;
7891
7892 cygwin* | mingw* | pw32* | cegcc*)
7893 # When not using gcc, we currently assume that we are using
7894 # Microsoft Visual C++.
7895 # hardcode_libdir_flag_spec is actually meaningless, as there is
7896 # no search path for DLLs.
7897 hardcode_libdir_flag_spec=' '
7898 allow_undefined_flag=unsupported
7899 # Tell ltmain to make .lib files, not .a files.
7900 libext=lib
7901 # Tell ltmain to make .dll files, not .so files.
7902 shrext_cmds=".dll"
7903 # FIXME: Setting linknames here is a bad hack.
7904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7905 # The linker will automatically build a .lib file if we build a DLL.
7906 old_archive_from_new_cmds='true'
7907 # FIXME: Should let the user specify the lib program.
7908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7909 fix_srcfile_path='`cygpath -w "$srcfile"`'
7910 enable_shared_with_static_runtimes=yes
7911 ;;
7912
7913 darwin* | rhapsody*)
7914
7915
7916 archive_cmds_need_lc=no
7917 hardcode_direct=no
7918 hardcode_automatic=yes
7919 hardcode_shlibpath_var=unsupported
7920 whole_archive_flag_spec=''
7921 link_all_deplibs=yes
7922 allow_undefined_flag="$_lt_dar_allow_undefined"
7923 case $cc_basename in
7924 ifort*) _lt_dar_can_shared=yes ;;
7925 *) _lt_dar_can_shared=$GCC ;;
7926 esac
7927 if test "$_lt_dar_can_shared" = "yes"; then
7928 output_verbose_link_cmd=echo
7929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7931 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}"
7932 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}"
7933
7934 else
7935 ld_shlibs=no
7936 fi
7937
7938 ;;
7939
7940 dgux*)
7941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942 hardcode_libdir_flag_spec='-L$libdir'
7943 hardcode_shlibpath_var=no
7944 ;;
7945
7946 freebsd1*)
7947 ld_shlibs=no
7948 ;;
7949
7950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7951 # support. Future versions do this automatically, but an explicit c++rt0.o
7952 # does not break anything, and helps significantly (at the cost of a little
7953 # extra space).
7954 freebsd2.2*)
7955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7956 hardcode_libdir_flag_spec='-R$libdir'
7957 hardcode_direct=yes
7958 hardcode_shlibpath_var=no
7959 ;;
7960
7961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7962 freebsd2*)
7963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964 hardcode_direct=yes
7965 hardcode_minus_L=yes
7966 hardcode_shlibpath_var=no
7967 ;;
7968
7969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7970 freebsd* | dragonfly*)
7971 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7972 hardcode_libdir_flag_spec='-R$libdir'
7973 hardcode_direct=yes
7974 hardcode_shlibpath_var=no
7975 ;;
7976
7977 hpux9*)
7978 if test "$GCC" = yes; then
7979 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'
7980 else
7981 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'
7982 fi
7983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7984 hardcode_libdir_separator=:
7985 hardcode_direct=yes
7986
7987 # hardcode_minus_L: Not really in the search PATH,
7988 # but as the default location of the library.
7989 hardcode_minus_L=yes
7990 export_dynamic_flag_spec='${wl}-E'
7991 ;;
7992
7993 hpux10*)
7994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7995 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7996 else
7997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7998 fi
7999 if test "$with_gnu_ld" = no; then
8000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8001 hardcode_libdir_flag_spec_ld='+b $libdir'
8002 hardcode_libdir_separator=:
8003 hardcode_direct=yes
8004 hardcode_direct_absolute=yes
8005 export_dynamic_flag_spec='${wl}-E'
8006 # hardcode_minus_L: Not really in the search PATH,
8007 # but as the default location of the library.
8008 hardcode_minus_L=yes
8009 fi
8010 ;;
8011
8012 hpux11*)
8013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8014 case $host_cpu in
8015 hppa*64*)
8016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 ;;
8018 ia64*)
8019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8020 ;;
8021 *)
8022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8023 ;;
8024 esac
8025 else
8026 case $host_cpu in
8027 hppa*64*)
8028 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8029 ;;
8030 ia64*)
8031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8032 ;;
8033 *)
8034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8035 ;;
8036 esac
8037 fi
8038 if test "$with_gnu_ld" = no; then
8039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8040 hardcode_libdir_separator=:
8041
8042 case $host_cpu in
8043 hppa*64*|ia64*)
8044 hardcode_direct=no
8045 hardcode_shlibpath_var=no
8046 ;;
8047 *)
8048 hardcode_direct=yes
8049 hardcode_direct_absolute=yes
8050 export_dynamic_flag_spec='${wl}-E'
8051
8052 # hardcode_minus_L: Not really in the search PATH,
8053 # but as the default location of the library.
8054 hardcode_minus_L=yes
8055 ;;
8056 esac
8057 fi
8058 ;;
8059
8060 irix5* | irix6* | nonstopux*)
8061 if test "$GCC" = yes; then
8062 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'
8063 # Try to use the -exported_symbol ld option, if it does not
8064 # work, assume that -exports_file does not work either and
8065 # implicitly export all symbols.
8066 save_LDFLAGS="$LDFLAGS"
8067 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 int foo(void) {}
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"; then :
8073 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'
8074
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LDFLAGS="$save_LDFLAGS"
8079 else
8080 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'
8081 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'
8082 fi
8083 archive_cmds_need_lc='no'
8084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8085 hardcode_libdir_separator=:
8086 inherit_rpath=yes
8087 link_all_deplibs=yes
8088 ;;
8089
8090 netbsd* | netbsdelf*-gnu)
8091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8093 else
8094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8095 fi
8096 hardcode_libdir_flag_spec='-R$libdir'
8097 hardcode_direct=yes
8098 hardcode_shlibpath_var=no
8099 ;;
8100
8101 newsos6)
8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_direct=yes
8104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8105 hardcode_libdir_separator=:
8106 hardcode_shlibpath_var=no
8107 ;;
8108
8109 *nto* | *qnx*)
8110 ;;
8111
8112 openbsd*)
8113 if test -f /usr/libexec/ld.so; then
8114 hardcode_direct=yes
8115 hardcode_shlibpath_var=no
8116 hardcode_direct_absolute=yes
8117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8119 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8121 export_dynamic_flag_spec='${wl}-E'
8122 else
8123 case $host_os in
8124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_libdir_flag_spec='-R$libdir'
8127 ;;
8128 *)
8129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8131 ;;
8132 esac
8133 fi
8134 else
8135 ld_shlibs=no
8136 fi
8137 ;;
8138
8139 os2*)
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_minus_L=yes
8142 allow_undefined_flag=unsupported
8143 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'
8144 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8145 ;;
8146
8147 osf3*)
8148 if test "$GCC" = yes; then
8149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8150 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'
8151 else
8152 allow_undefined_flag=' -expect_unresolved \*'
8153 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'
8154 fi
8155 archive_cmds_need_lc='no'
8156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8157 hardcode_libdir_separator=:
8158 ;;
8159
8160 osf4* | osf5*) # as osf3* with the addition of -msym flag
8161 if test "$GCC" = yes; then
8162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8163 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'
8164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8165 else
8166 allow_undefined_flag=' -expect_unresolved \*'
8167 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'
8168 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~
8169 $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'
8170
8171 # Both c and cxx compiler support -rpath directly
8172 hardcode_libdir_flag_spec='-rpath $libdir'
8173 fi
8174 archive_cmds_need_lc='no'
8175 hardcode_libdir_separator=:
8176 ;;
8177
8178 solaris*)
8179 no_undefined_flag=' -z defs'
8180 if test "$GCC" = yes; then
8181 wlarc='${wl}'
8182 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8184 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8185 else
8186 case `$CC -V 2>&1` in
8187 *"Compilers 5.0"*)
8188 wlarc=''
8189 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8192 ;;
8193 *)
8194 wlarc='${wl}'
8195 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8197 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8198 ;;
8199 esac
8200 fi
8201 hardcode_libdir_flag_spec='-R$libdir'
8202 hardcode_shlibpath_var=no
8203 case $host_os in
8204 solaris2.[0-5] | solaris2.[0-5].*) ;;
8205 *)
8206 # The compiler driver will combine and reorder linker options,
8207 # but understands `-z linker_flag'. GCC discards it without `$wl',
8208 # but is careful enough not to reorder.
8209 # Supported since Solaris 2.6 (maybe 2.5.1?)
8210 if test "$GCC" = yes; then
8211 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8212 else
8213 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8214 fi
8215 ;;
8216 esac
8217 link_all_deplibs=yes
8218 ;;
8219
8220 sunos4*)
8221 if test "x$host_vendor" = xsequent; then
8222 # Use $CC to link under sequent, because it throws in some extra .o
8223 # files that make .init and .fini sections work.
8224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8225 else
8226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8227 fi
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_direct=yes
8230 hardcode_minus_L=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 sysv4)
8235 case $host_vendor in
8236 sni)
8237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_direct=yes # is this really true???
8239 ;;
8240 siemens)
8241 ## LD is ld it makes a PLAMLIB
8242 ## CC just makes a GrossModule.
8243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8244 reload_cmds='$CC -r -o $output$reload_objs'
8245 hardcode_direct=no
8246 ;;
8247 motorola)
8248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8250 ;;
8251 esac
8252 runpath_var='LD_RUN_PATH'
8253 hardcode_shlibpath_var=no
8254 ;;
8255
8256 sysv4.3*)
8257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8258 hardcode_shlibpath_var=no
8259 export_dynamic_flag_spec='-Bexport'
8260 ;;
8261
8262 sysv4*MP*)
8263 if test -d /usr/nec; then
8264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_shlibpath_var=no
8266 runpath_var=LD_RUN_PATH
8267 hardcode_runpath_var=yes
8268 ld_shlibs=yes
8269 fi
8270 ;;
8271
8272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8273 no_undefined_flag='${wl}-z,text'
8274 archive_cmds_need_lc=no
8275 hardcode_shlibpath_var=no
8276 runpath_var='LD_RUN_PATH'
8277
8278 if test "$GCC" = yes; then
8279 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 else
8282 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 fi
8285 ;;
8286
8287 sysv5* | sco3.2v5* | sco5v6*)
8288 # Note: We can NOT use -z defs as we might desire, because we do not
8289 # link with -lc, and that would cause any symbols used from libc to
8290 # always be unresolved, which means just about no library would
8291 # ever link correctly. If we're not using GNU ld we use -z text
8292 # though, which does catch some bad symbols but isn't as heavy-handed
8293 # as -z defs.
8294 no_undefined_flag='${wl}-z,text'
8295 allow_undefined_flag='${wl}-z,nodefs'
8296 archive_cmds_need_lc=no
8297 hardcode_shlibpath_var=no
8298 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8299 hardcode_libdir_separator=':'
8300 link_all_deplibs=yes
8301 export_dynamic_flag_spec='${wl}-Bexport'
8302 runpath_var='LD_RUN_PATH'
8303
8304 if test "$GCC" = yes; then
8305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8310 fi
8311 ;;
8312
8313 uts4*)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_shlibpath_var=no
8317 ;;
8318
8319 *)
8320 ld_shlibs=no
8321 ;;
8322 esac
8323
8324 if test x$host_vendor = xsni; then
8325 case $host in
8326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8327 export_dynamic_flag_spec='${wl}-Blargedynsym'
8328 ;;
8329 esac
8330 fi
8331 fi
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8334 $as_echo "$ld_shlibs" >&6; }
8335 test "$ld_shlibs" = no && can_build_shared=no
8336
8337 with_gnu_ld=$with_gnu_ld
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 #
8354 # Do we need to explicitly link libc?
8355 #
8356 case "x$archive_cmds_need_lc" in
8357 x|xyes)
8358 # Assume -lc should be added
8359 archive_cmds_need_lc=yes
8360
8361 if test "$enable_shared" = yes && test "$GCC" = yes; then
8362 case $archive_cmds in
8363 *'~'*)
8364 # FIXME: we may have to deal with multi-command sequences.
8365 ;;
8366 '$CC '*)
8367 # Test whether the compiler implicitly links with -lc since on some
8368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8369 # to ld, don't add -lc before -lgcc.
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8372 $RM conftest*
8373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374
8375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8376 (eval $ac_compile) 2>&5
8377 ac_status=$?
8378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8379 test $ac_status = 0; } 2>conftest.err; then
8380 soname=conftest
8381 lib=conftest
8382 libobjs=conftest.$ac_objext
8383 deplibs=
8384 wl=$lt_prog_compiler_wl
8385 pic_flag=$lt_prog_compiler_pic
8386 compiler_flags=-v
8387 linker_flags=-v
8388 verstring=
8389 output_objdir=.
8390 libname=conftest
8391 lt_save_allow_undefined_flag=$allow_undefined_flag
8392 allow_undefined_flag=
8393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8394 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8395 ac_status=$?
8396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8397 test $ac_status = 0; }
8398 then
8399 archive_cmds_need_lc=no
8400 else
8401 archive_cmds_need_lc=yes
8402 fi
8403 allow_undefined_flag=$lt_save_allow_undefined_flag
8404 else
8405 cat conftest.err 1>&5
8406 fi
8407 $RM conftest*
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8409 $as_echo "$archive_cmds_need_lc" >&6; }
8410 ;;
8411 esac
8412 fi
8413 ;;
8414 esac
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8574
8575 if test "$GCC" = yes; then
8576 case $host_os in
8577 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8578 *) lt_awk_arg="/^libraries:/" ;;
8579 esac
8580 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8581 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8582 # if the path contains ";" then we assume it to be the separator
8583 # otherwise default to the standard path separator (i.e. ":") - it is
8584 # assumed that no part of a normal pathname contains ";" but that should
8585 # okay in the real world where ";" in dirpaths is itself problematic.
8586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8587 else
8588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8589 fi
8590 # Ok, now we have the path, separated by spaces, we can step through it
8591 # and add multilib dir if necessary.
8592 lt_tmp_lt_search_path_spec=
8593 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8594 for lt_sys_path in $lt_search_path_spec; do
8595 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8597 else
8598 test -d "$lt_sys_path" && \
8599 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8600 fi
8601 done
8602 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8603 BEGIN {RS=" "; FS="/|\n";} {
8604 lt_foo="";
8605 lt_count=0;
8606 for (lt_i = NF; lt_i > 0; lt_i--) {
8607 if ($lt_i != "" && $lt_i != ".") {
8608 if ($lt_i == "..") {
8609 lt_count++;
8610 } else {
8611 if (lt_count == 0) {
8612 lt_foo="/" $lt_i lt_foo;
8613 } else {
8614 lt_count--;
8615 }
8616 }
8617 }
8618 }
8619 if (lt_foo != "") { lt_freq[lt_foo]++; }
8620 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8621 }'`
8622 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8623 else
8624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8625 fi
8626 library_names_spec=
8627 libname_spec='lib$name'
8628 soname_spec=
8629 shrext_cmds=".so"
8630 postinstall_cmds=
8631 postuninstall_cmds=
8632 finish_cmds=
8633 finish_eval=
8634 shlibpath_var=
8635 shlibpath_overrides_runpath=unknown
8636 version_type=none
8637 dynamic_linker="$host_os ld.so"
8638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8639 need_lib_prefix=unknown
8640 hardcode_into_libs=no
8641
8642 # when you set need_version to no, make sure it does not cause -set_version
8643 # flags to be left without arguments
8644 need_version=unknown
8645
8646 case $host_os in
8647 aix3*)
8648 version_type=linux
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8650 shlibpath_var=LIBPATH
8651
8652 # AIX 3 has no versioning support, so we append a major version to the name.
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 ;;
8655
8656 aix[4-9]*)
8657 version_type=linux
8658 need_lib_prefix=no
8659 need_version=no
8660 hardcode_into_libs=yes
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 supports IA64
8663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8665 else
8666 # With GCC up to 2.95.x, collect2 would create an import file
8667 # for dependence libraries. The import file would start with
8668 # the line `#! .'. This would cause the generated library to
8669 # depend on `.', always an invalid library. This was fixed in
8670 # development snapshots of GCC prior to 3.0.
8671 case $host_os in
8672 aix4 | aix4.[01] | aix4.[01].*)
8673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8674 echo ' yes '
8675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8676 :
8677 else
8678 can_build_shared=no
8679 fi
8680 ;;
8681 esac
8682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8683 # soname into executable. Probably we can add versioning support to
8684 # collect2, so additional links can be useful in future.
8685 if test "$aix_use_runtimelinking" = yes; then
8686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8687 # instead of lib<name>.a to let people know that these are not
8688 # typical AIX shared libraries.
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 else
8691 # We preserve .a as extension for shared libraries through AIX4.2
8692 # and later when we are not doing run time linking.
8693 library_names_spec='${libname}${release}.a $libname.a'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 fi
8696 shlibpath_var=LIBPATH
8697 fi
8698 ;;
8699
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # Since July 2007 AmigaOS4 officially supports .so libraries.
8704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8706 ;;
8707 m68k)
8708 library_names_spec='$libname.ixlibrary $libname.a'
8709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8710 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'
8711 ;;
8712 esac
8713 ;;
8714
8715 beos*)
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8719 ;;
8720
8721 bsdi[45]*)
8722 version_type=linux
8723 need_version=no
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8733 ;;
8734
8735 cygwin* | mingw* | pw32* | cegcc*)
8736 version_type=windows
8737 shrext_cmds=".dll"
8738 need_version=no
8739 need_lib_prefix=no
8740
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
8749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname~
8751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8753 fi'
8754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8755 dlpath=$dir/\$dldll~
8756 $RM \$dlpath'
8757 shlibpath_overrides_runpath=yes
8758
8759 case $host_os in
8760 cygwin*)
8761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8763 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8764 ;;
8765 mingw* | cegcc*)
8766 # MinGW DLLs use traditional 'lib' prefix
8767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8769 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8770 # It is most probably a Windows format PATH printed by
8771 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8772 # path with ; separators, and with drive letters. We can handle the
8773 # drive letters (cygwin fileutils understands them), so leave them,
8774 # especially as we might pass files found there to a mingw objdump,
8775 # which wouldn't understand a cygwinified path. Ahh.
8776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8777 else
8778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8779 fi
8780 ;;
8781 pw32*)
8782 # pw32 DLLs use 'pw' prefix rather than 'lib'
8783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 ;;
8785 esac
8786 ;;
8787
8788 *)
8789 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8790 ;;
8791 esac
8792 dynamic_linker='Win32 ld.exe'
8793 # FIXME: first we should search . and the directory the executable is in
8794 shlibpath_var=PATH
8795 ;;
8796
8797 darwin* | rhapsody*)
8798 dynamic_linker="$host_os dyld"
8799 version_type=darwin
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8803 soname_spec='${libname}${release}${major}$shared_ext'
8804 shlibpath_overrides_runpath=yes
8805 shlibpath_var=DYLD_LIBRARY_PATH
8806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8807
8808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8810 ;;
8811
8812 dgux*)
8813 version_type=linux
8814 need_lib_prefix=no
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 shlibpath_var=LD_LIBRARY_PATH
8819 ;;
8820
8821 freebsd1*)
8822 dynamic_linker=no
8823 ;;
8824
8825 freebsd* | dragonfly*)
8826 # DragonFly does not have aout. When/if they implement a new
8827 # versioning mechanism, adjust this.
8828 if test -x /usr/bin/objformat; then
8829 objformat=`/usr/bin/objformat`
8830 else
8831 case $host_os in
8832 freebsd[123]*) objformat=aout ;;
8833 *) objformat=elf ;;
8834 esac
8835 fi
8836 version_type=freebsd-$objformat
8837 case $version_type in
8838 freebsd-elf*)
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8840 need_version=no
8841 need_lib_prefix=no
8842 ;;
8843 freebsd-*)
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8845 need_version=yes
8846 ;;
8847 esac
8848 shlibpath_var=LD_LIBRARY_PATH
8849 case $host_os in
8850 freebsd2*)
8851 shlibpath_overrides_runpath=yes
8852 ;;
8853 freebsd3.[01]* | freebsdelf3.[01]*)
8854 shlibpath_overrides_runpath=yes
8855 hardcode_into_libs=yes
8856 ;;
8857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8859 shlibpath_overrides_runpath=no
8860 hardcode_into_libs=yes
8861 ;;
8862 *) # from 4.6 on, and DragonFly
8863 shlibpath_overrides_runpath=yes
8864 hardcode_into_libs=yes
8865 ;;
8866 esac
8867 ;;
8868
8869 gnu*)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 hardcode_into_libs=yes
8877 ;;
8878
8879 hpux9* | hpux10* | hpux11*)
8880 # Give a soname corresponding to the major version so that dld.sl refuses to
8881 # link against other versions.
8882 version_type=sunos
8883 need_lib_prefix=no
8884 need_version=no
8885 case $host_cpu in
8886 ia64*)
8887 shrext_cmds='.so'
8888 hardcode_into_libs=yes
8889 dynamic_linker="$host_os dld.so"
8890 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 if test "X$HPUX_IA64_MODE" = X32; then
8895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8896 else
8897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8898 fi
8899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 ;;
8901 hppa*64*)
8902 shrext_cmds='.sl'
8903 hardcode_into_libs=yes
8904 dynamic_linker="$host_os dld.sl"
8905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8911 ;;
8912 *)
8913 shrext_cmds='.sl'
8914 dynamic_linker="$host_os dld.sl"
8915 shlibpath_var=SHLIB_PATH
8916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
8920 esac
8921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8922 postinstall_cmds='chmod 555 $lib'
8923 ;;
8924
8925 interix[3-9]*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 ;;
8936
8937 irix5* | irix6* | nonstopux*)
8938 case $host_os in
8939 nonstopux*) version_type=nonstopux ;;
8940 *)
8941 if test "$lt_cv_prog_gnu_ld" = yes; then
8942 version_type=linux
8943 else
8944 version_type=irix
8945 fi ;;
8946 esac
8947 need_lib_prefix=no
8948 need_version=no
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8951 case $host_os in
8952 irix5* | nonstopux*)
8953 libsuff= shlibsuff=
8954 ;;
8955 *)
8956 case $LD in # libtool.m4 will add one of these switches to LD
8957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8958 libsuff= shlibsuff= libmagic=32-bit;;
8959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8960 libsuff=32 shlibsuff=N32 libmagic=N32;;
8961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8963 *) libsuff= shlibsuff= libmagic=never-match;;
8964 esac
8965 ;;
8966 esac
8967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8968 shlibpath_overrides_runpath=no
8969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8971 hardcode_into_libs=yes
8972 ;;
8973
8974 # No shared lib support for Linux oldld, aout, or coff.
8975 linux*oldld* | linux*aout* | linux*coff*)
8976 dynamic_linker=no
8977 ;;
8978
8979 # This must be Linux ELF.
8980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8981 version_type=linux
8982 need_lib_prefix=no
8983 need_version=no
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=no
8989 # Some binutils ld are patched to set DT_RUNPATH
8990 save_LDFLAGS=$LDFLAGS
8991 save_libdir=$libdir
8992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996
8997 int
8998 main ()
8999 {
9000
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9007 shlibpath_overrides_runpath=yes
9008 fi
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LDFLAGS=$save_LDFLAGS
9013 libdir=$save_libdir
9014
9015 # This implies no fast_install, which is unacceptable.
9016 # Some rework will be needed to allow for fast_install
9017 # before this can be enabled.
9018 hardcode_into_libs=yes
9019
9020 # Append ld.so.conf contents to the search path
9021 if test -f /etc/ld.so.conf; then
9022 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' ' '`
9023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9024 fi
9025
9026 # We used to test for /lib/ld.so.1 and disable shared libraries on
9027 # powerpc, because MkLinux only supported shared libraries with the
9028 # GNU dynamic linker. Since this was broken with cross compilers,
9029 # most powerpc-linux boxes support dynamic linking these days and
9030 # people can always --disable-shared, the test was removed, and we
9031 # assume the GNU/Linux dynamic linker is in use.
9032 dynamic_linker='GNU/Linux ld.so'
9033 ;;
9034
9035 netbsdelf*-gnu)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 dynamic_linker='NetBSD ld.elf_so'
9045 ;;
9046
9047 netbsd*)
9048 version_type=sunos
9049 need_lib_prefix=no
9050 need_version=no
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 dynamic_linker='NetBSD (a.out) ld.so'
9055 else
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 dynamic_linker='NetBSD ld.elf_so'
9059 fi
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 ;;
9064
9065 newsos6)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 ;;
9071
9072 *nto* | *qnx*)
9073 version_type=qnx
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=no
9080 hardcode_into_libs=yes
9081 dynamic_linker='ldqnx.so'
9082 ;;
9083
9084 openbsd*)
9085 version_type=sunos
9086 sys_lib_dlsearch_path_spec="/usr/lib"
9087 need_lib_prefix=no
9088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9089 case $host_os in
9090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9091 *) need_version=no ;;
9092 esac
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097 case $host_os in
9098 openbsd2.[89] | openbsd2.[89].*)
9099 shlibpath_overrides_runpath=no
9100 ;;
9101 *)
9102 shlibpath_overrides_runpath=yes
9103 ;;
9104 esac
9105 else
9106 shlibpath_overrides_runpath=yes
9107 fi
9108 ;;
9109
9110 os2*)
9111 libname_spec='$name'
9112 shrext_cmds=".dll"
9113 need_lib_prefix=no
9114 library_names_spec='$libname${shared_ext} $libname.a'
9115 dynamic_linker='OS/2 ld.exe'
9116 shlibpath_var=LIBPATH
9117 ;;
9118
9119 osf3* | osf4* | osf5*)
9120 version_type=osf
9121 need_lib_prefix=no
9122 need_version=no
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9128 ;;
9129
9130 rdos*)
9131 dynamic_linker=no
9132 ;;
9133
9134 solaris*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9145 ;;
9146
9147 sunos4*)
9148 version_type=sunos
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9154 need_lib_prefix=no
9155 fi
9156 need_version=yes
9157 ;;
9158
9159 sysv4 | sysv4.3*)
9160 version_type=linux
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9165 sni)
9166 shlibpath_overrides_runpath=no
9167 need_lib_prefix=no
9168 runpath_var=LD_RUN_PATH
9169 ;;
9170 siemens)
9171 need_lib_prefix=no
9172 ;;
9173 motorola)
9174 need_lib_prefix=no
9175 need_version=no
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9178 ;;
9179 esac
9180 ;;
9181
9182 sysv4*MP*)
9183 if test -d /usr/nec ;then
9184 version_type=linux
9185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9186 soname_spec='$libname${shared_ext}.$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9192 version_type=freebsd-elf
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9202 else
9203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9204 case $host_os in
9205 sco3.2v5*)
9206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9207 ;;
9208 esac
9209 fi
9210 sys_lib_dlsearch_path_spec='/usr/lib'
9211 ;;
9212
9213 tpf*)
9214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 hardcode_into_libs=yes
9222 ;;
9223
9224 uts4*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 ;;
9230
9231 *)
9232 dynamic_linker=no
9233 ;;
9234 esac
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9236 $as_echo "$dynamic_linker" >&6; }
9237 test "$dynamic_linker" = no && can_build_shared=no
9238
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242 fi
9243
9244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9245 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9246 fi
9247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9248 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9249 fi
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9339 hardcode_action=
9340 if test -n "$hardcode_libdir_flag_spec" ||
9341 test -n "$runpath_var" ||
9342 test "X$hardcode_automatic" = "Xyes" ; then
9343
9344 # We can hardcode non-existent directories.
9345 if test "$hardcode_direct" != no &&
9346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9347 # have to relink, otherwise we might link with an installed library
9348 # when we should be linking with a yet-to-be-installed one
9349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9350 test "$hardcode_minus_L" != no; then
9351 # Linking always hardcodes the temporary library directory.
9352 hardcode_action=relink
9353 else
9354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9355 hardcode_action=immediate
9356 fi
9357 else
9358 # We cannot hardcode anything, or else we can only hardcode existing
9359 # directories.
9360 hardcode_action=unsupported
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9363 $as_echo "$hardcode_action" >&6; }
9364
9365 if test "$hardcode_action" = relink ||
9366 test "$inherit_rpath" = yes; then
9367 # Fast installation is not supported
9368 enable_fast_install=no
9369 elif test "$shlibpath_overrides_runpath" = yes ||
9370 test "$enable_shared" = no; then
9371 # Fast installation is not necessary
9372 enable_fast_install=needless
9373 fi
9374
9375
9376
9377
9378
9379
9380 if test "x$enable_dlopen" != xyes; then
9381 enable_dlopen=unknown
9382 enable_dlopen_self=unknown
9383 enable_dlopen_self_static=unknown
9384 else
9385 lt_cv_dlopen=no
9386 lt_cv_dlopen_libs=
9387
9388 case $host_os in
9389 beos*)
9390 lt_cv_dlopen="load_add_on"
9391 lt_cv_dlopen_libs=
9392 lt_cv_dlopen_self=yes
9393 ;;
9394
9395 mingw* | pw32* | cegcc*)
9396 lt_cv_dlopen="LoadLibrary"
9397 lt_cv_dlopen_libs=
9398 ;;
9399
9400 cygwin*)
9401 lt_cv_dlopen="dlopen"
9402 lt_cv_dlopen_libs=
9403 ;;
9404
9405 darwin*)
9406 # if libdl is installed we need to link against it
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-ldl $LIBS"
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char dlopen ();
9424 int
9425 main ()
9426 {
9427 return dlopen ();
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 if ac_fn_c_try_link "$LINENO"; then :
9433 ac_cv_lib_dl_dlopen=yes
9434 else
9435 ac_cv_lib_dl_dlopen=no
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9443 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9445 else
9446
9447 lt_cv_dlopen="dyld"
9448 lt_cv_dlopen_libs=
9449 lt_cv_dlopen_self=yes
9450
9451 fi
9452
9453 ;;
9454
9455 *)
9456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9457 if test "x$ac_cv_func_shl_load" = x""yes; then :
9458 lt_cv_dlopen="shl_load"
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-ldld $LIBS"
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char shl_load ();
9477 int
9478 main ()
9479 {
9480 return shl_load ();
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ac_cv_lib_dld_shl_load=yes
9487 else
9488 ac_cv_lib_dld_shl_load=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9498 else
9499 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9500 if test "x$ac_cv_func_dlopen" = x""yes; then :
9501 lt_cv_dlopen="dlopen"
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-ldl $LIBS"
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char dlopen ();
9520 int
9521 main ()
9522 {
9523 return dlopen ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 ac_cv_lib_dl_dlopen=yes
9530 else
9531 ac_cv_lib_dl_dlopen=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lsvld $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char dlopen ();
9559 int
9560 main ()
9561 {
9562 return dlopen ();
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_svld_dlopen=yes
9569 else
9570 ac_cv_lib_svld_dlopen=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-ldld $LIBS"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dld_link ();
9598 int
9599 main ()
9600 {
9601 return dld_link ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 ac_cv_lib_dld_dld_link=yes
9608 else
9609 ac_cv_lib_dld_dld_link=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9617 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9618 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9619 fi
9620
9621
9622 fi
9623
9624
9625 fi
9626
9627
9628 fi
9629
9630
9631 fi
9632
9633
9634 fi
9635
9636 ;;
9637 esac
9638
9639 if test "x$lt_cv_dlopen" != xno; then
9640 enable_dlopen=yes
9641 else
9642 enable_dlopen=no
9643 fi
9644
9645 case $lt_cv_dlopen in
9646 dlopen)
9647 save_CPPFLAGS="$CPPFLAGS"
9648 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9649
9650 save_LDFLAGS="$LDFLAGS"
9651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9652
9653 save_LIBS="$LIBS"
9654 LIBS="$lt_cv_dlopen_libs $LIBS"
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9658 if test "${lt_cv_dlopen_self+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 if test "$cross_compiling" = yes; then :
9662 lt_cv_dlopen_self=cross
9663 else
9664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9665 lt_status=$lt_dlunknown
9666 cat > conftest.$ac_ext <<_LT_EOF
9667 #line 9667 "configure"
9668 #include "confdefs.h"
9669
9670 #if HAVE_DLFCN_H
9671 #include <dlfcn.h>
9672 #endif
9673
9674 #include <stdio.h>
9675
9676 #ifdef RTLD_GLOBAL
9677 # define LT_DLGLOBAL RTLD_GLOBAL
9678 #else
9679 # ifdef DL_GLOBAL
9680 # define LT_DLGLOBAL DL_GLOBAL
9681 # else
9682 # define LT_DLGLOBAL 0
9683 # endif
9684 #endif
9685
9686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9687 find out it does not work in some platform. */
9688 #ifndef LT_DLLAZY_OR_NOW
9689 # ifdef RTLD_LAZY
9690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9691 # else
9692 # ifdef DL_LAZY
9693 # define LT_DLLAZY_OR_NOW DL_LAZY
9694 # else
9695 # ifdef RTLD_NOW
9696 # define LT_DLLAZY_OR_NOW RTLD_NOW
9697 # else
9698 # ifdef DL_NOW
9699 # define LT_DLLAZY_OR_NOW DL_NOW
9700 # else
9701 # define LT_DLLAZY_OR_NOW 0
9702 # endif
9703 # endif
9704 # endif
9705 # endif
9706 #endif
9707
9708 void fnord() { int i=42;}
9709 int main ()
9710 {
9711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9712 int status = $lt_dlunknown;
9713
9714 if (self)
9715 {
9716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9718 /* dlclose (self); */
9719 }
9720 else
9721 puts (dlerror ());
9722
9723 return status;
9724 }
9725 _LT_EOF
9726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9727 (eval $ac_link) 2>&5
9728 ac_status=$?
9729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9730 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9731 (./conftest; exit; ) >&5 2>/dev/null
9732 lt_status=$?
9733 case x$lt_status in
9734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9737 esac
9738 else :
9739 # compilation failed
9740 lt_cv_dlopen_self=no
9741 fi
9742 fi
9743 rm -fr conftest*
9744
9745
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9748 $as_echo "$lt_cv_dlopen_self" >&6; }
9749
9750 if test "x$lt_cv_dlopen_self" = xyes; then
9751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9753 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9754 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test "$cross_compiling" = yes; then :
9758 lt_cv_dlopen_self_static=cross
9759 else
9760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9761 lt_status=$lt_dlunknown
9762 cat > conftest.$ac_ext <<_LT_EOF
9763 #line 9763 "configure"
9764 #include "confdefs.h"
9765
9766 #if HAVE_DLFCN_H
9767 #include <dlfcn.h>
9768 #endif
9769
9770 #include <stdio.h>
9771
9772 #ifdef RTLD_GLOBAL
9773 # define LT_DLGLOBAL RTLD_GLOBAL
9774 #else
9775 # ifdef DL_GLOBAL
9776 # define LT_DLGLOBAL DL_GLOBAL
9777 # else
9778 # define LT_DLGLOBAL 0
9779 # endif
9780 #endif
9781
9782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9783 find out it does not work in some platform. */
9784 #ifndef LT_DLLAZY_OR_NOW
9785 # ifdef RTLD_LAZY
9786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9787 # else
9788 # ifdef DL_LAZY
9789 # define LT_DLLAZY_OR_NOW DL_LAZY
9790 # else
9791 # ifdef RTLD_NOW
9792 # define LT_DLLAZY_OR_NOW RTLD_NOW
9793 # else
9794 # ifdef DL_NOW
9795 # define LT_DLLAZY_OR_NOW DL_NOW
9796 # else
9797 # define LT_DLLAZY_OR_NOW 0
9798 # endif
9799 # endif
9800 # endif
9801 # endif
9802 #endif
9803
9804 void fnord() { int i=42;}
9805 int main ()
9806 {
9807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9808 int status = $lt_dlunknown;
9809
9810 if (self)
9811 {
9812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9814 /* dlclose (self); */
9815 }
9816 else
9817 puts (dlerror ());
9818
9819 return status;
9820 }
9821 _LT_EOF
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9823 (eval $ac_link) 2>&5
9824 ac_status=$?
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9827 (./conftest; exit; ) >&5 2>/dev/null
9828 lt_status=$?
9829 case x$lt_status in
9830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9833 esac
9834 else :
9835 # compilation failed
9836 lt_cv_dlopen_self_static=no
9837 fi
9838 fi
9839 rm -fr conftest*
9840
9841
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9845 fi
9846
9847 CPPFLAGS="$save_CPPFLAGS"
9848 LDFLAGS="$save_LDFLAGS"
9849 LIBS="$save_LIBS"
9850 ;;
9851 esac
9852
9853 case $lt_cv_dlopen_self in
9854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9855 *) enable_dlopen_self=unknown ;;
9856 esac
9857
9858 case $lt_cv_dlopen_self_static in
9859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9860 *) enable_dlopen_self_static=unknown ;;
9861 esac
9862 fi
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880 striplib=
9881 old_striplib=
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9888 $as_echo "yes" >&6; }
9889 else
9890 # FIXME - insert some real tests, host_os isn't really good enough
9891 case $host_os in
9892 darwin*)
9893 if test -n "$STRIP" ; then
9894 striplib="$STRIP -x"
9895 old_striplib="$STRIP -S"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9897 $as_echo "yes" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902 ;;
9903 *)
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9906 ;;
9907 esac
9908 fi
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 # Report which library types will actually be built
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9925 $as_echo "$can_build_shared" >&6; }
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9928 $as_echo_n "checking whether to build shared libraries... " >&6; }
9929 test "$can_build_shared" = "no" && enable_shared=no
9930
9931 # On AIX, shared libraries and static libraries use the same namespace, and
9932 # are all built from PIC.
9933 case $host_os in
9934 aix3*)
9935 test "$enable_shared" = yes && enable_static=no
9936 if test -n "$RANLIB"; then
9937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9938 postinstall_cmds='$RANLIB $lib'
9939 fi
9940 ;;
9941
9942 aix[4-9]*)
9943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9944 test "$enable_shared" = yes && enable_static=no
9945 fi
9946 ;;
9947 esac
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9949 $as_echo "$enable_shared" >&6; }
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9952 $as_echo_n "checking whether to build static libraries... " >&6; }
9953 # Make sure either enable_shared or enable_static is yes.
9954 test "$enable_shared" = yes || enable_static=yes
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9956 $as_echo "$enable_static" >&6; }
9957
9958
9959
9960
9961 fi
9962 ac_ext=c
9963 ac_cpp='$CPP $CPPFLAGS'
9964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9967
9968 CC="$lt_save_CC"
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 ac_config_commands="$ac_config_commands libtool"
9983
9984
9985
9986
9987 # Only expand once:
9988
9989
9990
9991
9992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9993 if test -n "$ac_tool_prefix"; then
9994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 case $PKG_CONFIG in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 ;;
10022 esac
10023 fi
10024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10025 if test -n "$PKG_CONFIG"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10027 $as_echo "$PKG_CONFIG" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032
10033
10034 fi
10035 if test -z "$ac_cv_path_PKG_CONFIG"; then
10036 ac_pt_PKG_CONFIG=$PKG_CONFIG
10037 # Extract the first word of "pkg-config", so it can be a program name with args.
10038 set dummy pkg-config; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 case $ac_pt_PKG_CONFIG in
10045 [\\/]* | ?:[\\/]*)
10046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10047 ;;
10048 *)
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060 done
10061 done
10062 IFS=$as_save_IFS
10063
10064 ;;
10065 esac
10066 fi
10067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10068 if test -n "$ac_pt_PKG_CONFIG"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 fi
10075
10076 if test "x$ac_pt_PKG_CONFIG" = x; then
10077 PKG_CONFIG=""
10078 else
10079 case $cross_compiling:$ac_tool_warned in
10080 yes:)
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10083 ac_tool_warned=yes ;;
10084 esac
10085 PKG_CONFIG=$ac_pt_PKG_CONFIG
10086 fi
10087 else
10088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10089 fi
10090
10091 fi
10092 if test -n "$PKG_CONFIG"; then
10093 _pkg_min_version=0.22
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10098 $as_echo "yes" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10102 PKG_CONFIG=""
10103 fi
10104
10105 fi
10106 for ac_prog in 'bison -y' byacc
10107 do
10108 # Extract the first word of "$ac_prog", so it can be a program name with args.
10109 set dummy $ac_prog; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if test "${ac_cv_prog_YACC+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 if test -n "$YACC"; then
10116 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10120 do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10125 ac_cv_prog_YACC="$ac_prog"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10128 fi
10129 done
10130 done
10131 IFS=$as_save_IFS
10132
10133 fi
10134 fi
10135 YACC=$ac_cv_prog_YACC
10136 if test -n "$YACC"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10138 $as_echo "$YACC" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145 test -n "$YACC" && break
10146 done
10147 test -n "$YACC" || YACC="yacc"
10148
10149
10150
10151
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
10154 $as_echo_n "checking if bison is the parser generator... " >&6; }
10155 if test "${ax_cv_prog_bison+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158
10159 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
10160
10161 ax_cv_prog_bison=yes
10162
10163 else
10164
10165 ax_cv_prog_bison=no
10166
10167 fi
10168
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
10171 $as_echo "$ax_cv_prog_bison" >&6; }
10172 if test "$ax_cv_prog_bison" = yes; then :
10173
10174 :
10175
10176 BISON=`echo $YACC | $SED -e 's/ -y//'`
10177 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10178
10179
10180 else
10181
10182 :
10183 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
10184
10185 fi
10186
10187 for ac_prog in gawk mawk nawk awk
10188 do
10189 # Extract the first word of "$ac_prog", so it can be a program name with args.
10190 set dummy $ac_prog; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_prog_AWK+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test -n "$AWK"; then
10197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10198 else
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_prog_AWK="$ac_prog"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 fi
10215 fi
10216 AWK=$ac_cv_prog_AWK
10217 if test -n "$AWK"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10219 $as_echo "$AWK" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224
10225
10226 test -n "$AWK" && break
10227 done
10228
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
10230 $as_echo_n "checking if bison is >= 2.4... " >&6; }
10231 as_arg_v1=$BISON_VERSION
10232 as_arg_v2=2.4
10233 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10234 case $? in #(
10235 1) :
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
10240 ;; #(
10241 0) :
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10243 $as_echo "yes" >&6; } ;; #(
10244 2) :
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10246 $as_echo "yes" >&6; } ;; #(
10247 *) :
10248 ;;
10249 esac
10250
10251 # expand $ac_aux_dir to an absolute path
10252 am_aux_dir=`cd $ac_aux_dir && pwd`
10253
10254 if test x"${MISSING+set}" != xset; then
10255 case $am_aux_dir in
10256 *\ * | *\ *)
10257 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10258 *)
10259 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10260 esac
10261 fi
10262 # Use eval to expand $SHELL
10263 if eval "$MISSING --run true"; then
10264 am_missing_run="$MISSING --run "
10265 else
10266 am_missing_run=
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10268 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10269 fi
10270
10271 for ac_prog in flex lex
10272 do
10273 # Extract the first word of "$ac_prog", so it can be a program name with args.
10274 set dummy $ac_prog; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if test "${ac_cv_prog_LEX+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 if test -n "$LEX"; then
10281 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10285 do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_LEX="$ac_prog"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294 done
10295 done
10296 IFS=$as_save_IFS
10297
10298 fi
10299 fi
10300 LEX=$ac_cv_prog_LEX
10301 if test -n "$LEX"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10303 $as_echo "$LEX" >&6; }
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10307 fi
10308
10309
10310 test -n "$LEX" && break
10311 done
10312 test -n "$LEX" || LEX=":"
10313
10314 if test "x$LEX" != "x:"; then
10315 cat >conftest.l <<_ACEOF
10316 %%
10317 a { ECHO; }
10318 b { REJECT; }
10319 c { yymore (); }
10320 d { yyless (1); }
10321 e { yyless (input () != 0); }
10322 f { unput (yytext[0]); }
10323 . { BEGIN INITIAL; }
10324 %%
10325 #ifdef YYTEXT_POINTER
10326 extern char *yytext;
10327 #endif
10328 int
10329 main (void)
10330 {
10331 return ! yylex () + ! yywrap ();
10332 }
10333 _ACEOF
10334 { { ac_try="$LEX conftest.l"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338 esac
10339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10340 $as_echo "$ac_try_echo"; } >&5
10341 (eval "$LEX conftest.l") 2>&5
10342 ac_status=$?
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; }
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10346 $as_echo_n "checking lex output file root... " >&6; }
10347 if test "${ac_cv_prog_lex_root+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350
10351 if test -f lex.yy.c; then
10352 ac_cv_prog_lex_root=lex.yy
10353 elif test -f lexyy.c; then
10354 ac_cv_prog_lex_root=lexyy
10355 else
10356 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
10357 fi
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10360 $as_echo "$ac_cv_prog_lex_root" >&6; }
10361 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10362
10363 if test -z "${LEXLIB+set}"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10365 $as_echo_n "checking lex library... " >&6; }
10366 if test "${ac_cv_lib_lex+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369
10370 ac_save_LIBS=$LIBS
10371 ac_cv_lib_lex='none needed'
10372 for ac_lib in '' -lfl -ll; do
10373 LIBS="$ac_lib $ac_save_LIBS"
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 `cat $LEX_OUTPUT_ROOT.c`
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 ac_cv_lib_lex=$ac_lib
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 test "$ac_cv_lib_lex" != 'none needed' && break
10384 done
10385 LIBS=$ac_save_LIBS
10386
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10389 $as_echo "$ac_cv_lib_lex" >&6; }
10390 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10391 fi
10392
10393
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10395 $as_echo_n "checking whether yytext is a pointer... " >&6; }
10396 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 # POSIX says lex can declare yytext either as a pointer or an array; the
10400 # default is implementation-dependent. Figure out which it is, since
10401 # not all implementations provide the %pointer and %array declarations.
10402 ac_cv_prog_lex_yytext_pointer=no
10403 ac_save_LIBS=$LIBS
10404 LIBS="$LEXLIB $ac_save_LIBS"
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 #define YYTEXT_POINTER 1
10408 `cat $LEX_OUTPUT_ROOT.c`
10409 _ACEOF
10410 if ac_fn_c_try_link "$LINENO"; then :
10411 ac_cv_prog_lex_yytext_pointer=yes
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_save_LIBS
10416
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
10419 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10420 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10421
10422 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
10423
10424 fi
10425 rm -f conftest.l $LEX_OUTPUT_ROOT.c
10426
10427 fi
10428 if test "$LEX" = :; then
10429 LEX=${am_missing_run}flex
10430 fi
10431
10432
10433
10434
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
10436 $as_echo_n "checking if flex is the lexer generator... " >&6; }
10437 if test "${ax_cv_prog_flex+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440
10441 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
10442
10443 ax_cv_prog_flex=yes
10444
10445 else
10446
10447 ax_cv_prog_flex=no
10448
10449 fi
10450
10451 fi
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
10453 $as_echo "$ax_cv_prog_flex" >&6; }
10454 if test "$ax_cv_prog_flex" = yes; then :
10455
10456 :
10457
10458 FLEX=$LEX
10459 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
10460
10461
10462 else
10463
10464 :
10465 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
10466
10467 fi
10468
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
10470 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
10471 as_arg_v1=$FLEX_VERSION
10472 as_arg_v2=2.5.33
10473 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10474 case $? in #(
10475 1) :
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
10480 ;; #(
10481 0) :
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10483 $as_echo "yes" >&6; } ;; #(
10484 2) :
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; } ;; #(
10487 *) :
10488 ;;
10489 esac
10490
10491 for ac_prog in bash
10492 do
10493 # Extract the first word of "$ac_prog", so it can be a program name with args.
10494 set dummy $ac_prog; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if test "${ac_cv_prog__BASH+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 if test -n "$_BASH"; then
10501 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
10502 else
10503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504 for as_dir in $PATH
10505 do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_prog__BASH="$ac_prog"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514 done
10515 done
10516 IFS=$as_save_IFS
10517
10518 fi
10519 fi
10520 _BASH=$ac_cv_prog__BASH
10521 if test -n "$_BASH"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10523 $as_echo "$_BASH" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528
10529
10530 test -n "$_BASH" && break
10531 done
10532
10533 for ac_prog in gperf
10534 do
10535 # Extract the first word of "$ac_prog", so it can be a program name with args.
10536 set dummy $ac_prog; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if test "${ac_cv_prog_GPERF+set}" = set; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 if test -n "$GPERF"; then
10543 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
10544 else
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10552 ac_cv_prog_GPERF="$ac_prog"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556 done
10557 done
10558 IFS=$as_save_IFS
10559
10560 fi
10561 fi
10562 GPERF=$ac_cv_prog_GPERF
10563 if test -n "$GPERF"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10565 $as_echo "$GPERF" >&6; }
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 fi
10570
10571
10572 test -n "$GPERF" && break
10573 done
10574
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
10576 $as_echo_n "checking if gperf >= 3.0.3... " >&6; }
10577 GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
10578 as_arg_v1=$GPERF_VERSION
10579 as_arg_v2=3.0.3
10580 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10581 case $? in #(
10582 1) :
10583
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10586 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
10587 ;; #(
10588 0) :
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; } ;; #(
10591 2) :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; } ;; #(
10594 *) :
10595 ;;
10596 esac
10597 for ac_prog in time
10598 do
10599 # Extract the first word of "$ac_prog", so it can be a program name with args.
10600 set dummy $ac_prog; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if test "${ac_cv_prog_TIME+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 if test -n "$TIME"; then
10607 ac_cv_prog_TIME="$TIME" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616 ac_cv_prog_TIME="$ac_prog"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10619 fi
10620 done
10621 done
10622 IFS=$as_save_IFS
10623
10624 fi
10625 fi
10626 TIME=$ac_cv_prog_TIME
10627 if test -n "$TIME"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10629 $as_echo "$TIME" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634
10635
10636 test -n "$TIME" && break
10637 done
10638
10639
10640 apr_found="no"
10641
10642 if test "$target_os" = "os2-emx"; then
10643 # Scripts don't pass test -x on OS/2
10644 TEST_X="test -f"
10645 else
10646 TEST_X="test -x"
10647 fi
10648
10649 acceptable_majors="1"
10650
10651 apr_temp_acceptable_apr_config=""
10652 for apr_temp_major in $acceptable_majors
10653 do
10654 case $apr_temp_major in
10655 0)
10656 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
10657 ;;
10658 *)
10659 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
10660 ;;
10661 esac
10662 done
10663
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
10665 $as_echo_n "checking for APR... " >&6; }
10666
10667 # Check whether --with-apr was given.
10668 if test "${with_apr+set}" = set; then :
10669 withval=$with_apr;
10670 if test "$withval" = "no" || test "$withval" = "yes"; then
10671 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
10672 fi
10673
10674 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
10675 do
10676 for lookdir in "$withval/bin" "$withval"
10677 do
10678 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
10679 apr_config="$lookdir/$apr_temp_apr_config_file"
10680
10681 apr_found="yes"
10682 break 2
10683 fi
10684 done
10685 done
10686
10687 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
10688 apr_config="$withval"
10689 apr_found="yes"
10690 fi
10691
10692 if test "$apr_found" != "yes"; then
10693 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
10694 fi
10695
10696 else
10697
10698 if test -n "1" && test "1" = "1"; then
10699 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
10700 do
10701 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
10702 apr_config="$apr_temp_apr_config_file"
10703
10704 apr_found="yes"
10705 break
10706 else
10707 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
10708 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
10709 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
10710
10711 apr_found="yes"
10712 break 2
10713 fi
10714 done
10715 fi
10716 done
10717 fi
10718 if test "$apr_found" = "no" && test -d ""; then
10719 apr_temp_abs_srcdir="`cd && pwd`"
10720 apr_found="reconfig"
10721 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
10722 case $apr_bundled_major in
10723 "")
10724 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
10725 ;;
10726 0)
10727 apr_temp_apr_config_file="apr-config"
10728 ;;
10729 *)
10730 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
10731 ;;
10732 esac
10733 if test -n ""; then
10734 apr_config="/$apr_temp_apr_config_file"
10735 else
10736 apr_config="/$apr_temp_apr_config_file"
10737 fi
10738 fi
10739
10740 fi
10741
10742
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
10744 $as_echo "$apr_found" >&6; }
10745
10746 case $apr_found in #(
10747 yes) :
10748
10749
10750 for element in `$apr_config --includes`; do
10751 haveit=
10752 for x in $CPPFLAGS; do
10753
10754 acl_save_prefix="$prefix"
10755 prefix="$acl_final_prefix"
10756 acl_save_exec_prefix="$exec_prefix"
10757 exec_prefix="$acl_final_exec_prefix"
10758 eval x=\"$x\"
10759 exec_prefix="$acl_save_exec_prefix"
10760 prefix="$acl_save_prefix"
10761
10762 if test "X$x" = "X$element"; then
10763 haveit=yes
10764 break
10765 fi
10766 done
10767 if test -z "$haveit"; then
10768 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10769 fi
10770 done
10771
10772 LTLIBAPR=`$apr_config --link-libtool`
10773
10774 ;; #(
10775 *) :
10776 as_fn_error "You need apr" "$LINENO" 5 ;;
10777 esac
10778
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
10780 $as_echo_n "checking for a readline compatible library... " >&6; }
10781 if test "${vl_cv_lib_readline+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10784
10785 ORIG_LIBS="$LIBS"
10786 for readline_lib in readline edit editline; do
10787 for termcap_lib in "" termcap curses ncurses; do
10788 if test -z "$termcap_lib"; then
10789 TRY_LIB="-l$readline_lib"
10790 else
10791 TRY_LIB="-l$readline_lib -l$termcap_lib"
10792 fi
10793 LIBS="$ORIG_LIBS $TRY_LIB"
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796
10797 /* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10800 #ifdef __cplusplus
10801 extern "C"
10802 #endif
10803 char readline ();
10804 int
10805 main ()
10806 {
10807 return readline ();
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_link "$LINENO"; then :
10813 vl_cv_lib_readline="$TRY_LIB"
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 if test -n "$vl_cv_lib_readline"; then
10818 break
10819 fi
10820 done
10821 if test -n "$vl_cv_lib_readline"; then
10822 break
10823 fi
10824 done
10825 if test -z "$vl_cv_lib_readline"; then
10826 vl_cv_lib_readline="no"
10827 LIBS="$ORIG_LIBS"
10828 fi
10829
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
10832 $as_echo "$vl_cv_lib_readline" >&6; }
10833
10834 if test "$vl_cv_lib_readline" != "no"; then
10835
10836 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10837
10838 for ac_header in readline.h readline/readline.h
10839 do :
10840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10841 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10842 eval as_val=\$$as_ac_Header
10843 if test "x$as_val" = x""yes; then :
10844 cat >>confdefs.h <<_ACEOF
10845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846 _ACEOF
10847
10848 fi
10849
10850 done
10851
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
10853 $as_echo_n "checking whether readline supports history... " >&6; }
10854 if test "${vl_cv_lib_readline_history+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857
10858 vl_cv_lib_readline_history="no"
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10865 #ifdef __cplusplus
10866 extern "C"
10867 #endif
10868 char add_history ();
10869 int
10870 main ()
10871 {
10872 return add_history ();
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 if ac_fn_c_try_link "$LINENO"; then :
10878 vl_cv_lib_readline_history="yes"
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
10885 $as_echo "$vl_cv_lib_readline_history" >&6; }
10886 if test "$vl_cv_lib_readline_history" = "yes"; then
10887
10888 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
10889
10890 for ac_header in history.h readline/history.h
10891 do :
10892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10894 eval as_val=\$$as_ac_Header
10895 if test "x$as_val" = x""yes; then :
10896 cat >>confdefs.h <<_ACEOF
10897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10898 _ACEOF
10899
10900 fi
10901
10902 done
10903
10904 fi
10905 fi
10906
10907 ac_ext=cpp
10908 ac_cpp='$CXXCPP $CPPFLAGS'
10909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10912 if test -z "$CXX"; then
10913 if test -n "$CCC"; then
10914 CXX=$CCC
10915 else
10916 if test -n "$ac_tool_prefix"; then
10917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10918 do
10919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if test "${ac_cv_prog_CXX+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 if test -n "$CXX"; then
10927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10928 else
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940 done
10941 done
10942 IFS=$as_save_IFS
10943
10944 fi
10945 fi
10946 CXX=$ac_cv_prog_CXX
10947 if test -n "$CXX"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10949 $as_echo "$CXX" >&6; }
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10953 fi
10954
10955
10956 test -n "$CXX" && break
10957 done
10958 fi
10959 if test -z "$CXX"; then
10960 ac_ct_CXX=$CXX
10961 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10962 do
10963 # Extract the first word of "$ac_prog", so it can be a program name with args.
10964 set dummy $ac_prog; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 if test -n "$ac_ct_CXX"; then
10971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_prog_ac_ct_CXX="$ac_prog"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984 done
10985 done
10986 IFS=$as_save_IFS
10987
10988 fi
10989 fi
10990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10991 if test -n "$ac_ct_CXX"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10993 $as_echo "$ac_ct_CXX" >&6; }
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997 fi
10998
10999
11000 test -n "$ac_ct_CXX" && break
11001 done
11002
11003 if test "x$ac_ct_CXX" = x; then
11004 CXX="g++"
11005 else
11006 case $cross_compiling:$ac_tool_warned in
11007 yes:)
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11010 ac_tool_warned=yes ;;
11011 esac
11012 CXX=$ac_ct_CXX
11013 fi
11014 fi
11015
11016 fi
11017 fi
11018 # Provide some information about the compiler.
11019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11020 set X $ac_compile
11021 ac_compiler=$2
11022 for ac_option in --version -v -V -qversion; do
11023 { { ac_try="$ac_compiler $ac_option >&5"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027 esac
11028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11029 $as_echo "$ac_try_echo"; } >&5
11030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11031 ac_status=$?
11032 if test -s conftest.err; then
11033 sed '10a\
11034 ... rest of stderr output deleted ...
11035 10q' conftest.err >conftest.er1
11036 cat conftest.er1 >&5
11037 fi
11038 rm -f conftest.er1 conftest.err
11039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040 test $ac_status = 0; }
11041 done
11042
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11044 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11045 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050
11051 int
11052 main ()
11053 {
11054 #ifndef __GNUC__
11055 choke me
11056 #endif
11057
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_cxx_try_compile "$LINENO"; then :
11063 ac_compiler_gnu=yes
11064 else
11065 ac_compiler_gnu=no
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11069
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11072 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11073 if test $ac_compiler_gnu = yes; then
11074 GXX=yes
11075 else
11076 GXX=
11077 fi
11078 ac_test_CXXFLAGS=${CXXFLAGS+set}
11079 ac_save_CXXFLAGS=$CXXFLAGS
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11081 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11082 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11086 ac_cxx_werror_flag=yes
11087 ac_cv_prog_cxx_g=no
11088 CXXFLAGS="-g"
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091
11092 int
11093 main ()
11094 {
11095
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_cxx_try_compile "$LINENO"; then :
11101 ac_cv_prog_cxx_g=yes
11102 else
11103 CXXFLAGS=""
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11106
11107 int
11108 main ()
11109 {
11110
11111 ;
11112 return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_cxx_try_compile "$LINENO"; then :
11116
11117 else
11118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11119 CXXFLAGS="-g"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122
11123 int
11124 main ()
11125 {
11126
11127 ;
11128 return 0;
11129 }
11130 _ACEOF
11131 if ac_fn_cxx_try_compile "$LINENO"; then :
11132 ac_cv_prog_cxx_g=yes
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 fi
11136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11142 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11143 if test "$ac_test_CXXFLAGS" = set; then
11144 CXXFLAGS=$ac_save_CXXFLAGS
11145 elif test $ac_cv_prog_cxx_g = yes; then
11146 if test "$GXX" = yes; then
11147 CXXFLAGS="-g -O2"
11148 else
11149 CXXFLAGS="-g"
11150 fi
11151 else
11152 if test "$GXX" = yes; then
11153 CXXFLAGS="-O2"
11154 else
11155 CXXFLAGS=
11156 fi
11157 fi
11158 ac_ext=c
11159 ac_cpp='$CPP $CPPFLAGS'
11160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11163
11164
11165 ac_ext=cpp
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170 if test -z "$CXX"; then
11171 if test -n "$CCC"; then
11172 CXX=$CCC
11173 else
11174 if test -n "$ac_tool_prefix"; then
11175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11176 do
11177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if test "${ac_cv_prog_CXX+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 if test -n "$CXX"; then
11185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11186 else
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198 done
11199 done
11200 IFS=$as_save_IFS
11201
11202 fi
11203 fi
11204 CXX=$ac_cv_prog_CXX
11205 if test -n "$CXX"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11207 $as_echo "$CXX" >&6; }
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212
11213
11214 test -n "$CXX" && break
11215 done
11216 fi
11217 if test -z "$CXX"; then
11218 ac_ct_CXX=$CXX
11219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11220 do
11221 # Extract the first word of "$ac_prog", so it can be a program name with args.
11222 set dummy $ac_prog; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$ac_ct_CXX"; then
11229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_ac_ct_CXX="$ac_prog"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242 done
11243 done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11249 if test -n "$ac_ct_CXX"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11251 $as_echo "$ac_ct_CXX" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257
11258 test -n "$ac_ct_CXX" && break
11259 done
11260
11261 if test "x$ac_ct_CXX" = x; then
11262 CXX="g++"
11263 else
11264 case $cross_compiling:$ac_tool_warned in
11265 yes:)
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268 ac_tool_warned=yes ;;
11269 esac
11270 CXX=$ac_ct_CXX
11271 fi
11272 fi
11273
11274 fi
11275 fi
11276 # Provide some information about the compiler.
11277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11278 set X $ac_compile
11279 ac_compiler=$2
11280 for ac_option in --version -v -V -qversion; do
11281 { { ac_try="$ac_compiler $ac_option >&5"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11287 $as_echo "$ac_try_echo"; } >&5
11288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11289 ac_status=$?
11290 if test -s conftest.err; then
11291 sed '10a\
11292 ... rest of stderr output deleted ...
11293 10q' conftest.err >conftest.er1
11294 cat conftest.er1 >&5
11295 fi
11296 rm -f conftest.er1 conftest.err
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; }
11299 done
11300
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308
11309 int
11310 main ()
11311 {
11312 #ifndef __GNUC__
11313 choke me
11314 #endif
11315
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_cxx_try_compile "$LINENO"; then :
11321 ac_compiler_gnu=yes
11322 else
11323 ac_compiler_gnu=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11327
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11331 if test $ac_compiler_gnu = yes; then
11332 GXX=yes
11333 else
11334 GXX=
11335 fi
11336 ac_test_CXXFLAGS=${CXXFLAGS+set}
11337 ac_save_CXXFLAGS=$CXXFLAGS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11340 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11344 ac_cxx_werror_flag=yes
11345 ac_cv_prog_cxx_g=no
11346 CXXFLAGS="-g"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 int
11351 main ()
11352 {
11353
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_cxx_try_compile "$LINENO"; then :
11359 ac_cv_prog_cxx_g=yes
11360 else
11361 CXXFLAGS=""
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11364
11365 int
11366 main ()
11367 {
11368
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_cxx_try_compile "$LINENO"; then :
11374
11375 else
11376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11377 CXXFLAGS="-g"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380
11381 int
11382 main ()
11383 {
11384
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_cxx_try_compile "$LINENO"; then :
11390 ac_cv_prog_cxx_g=yes
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11401 if test "$ac_test_CXXFLAGS" = set; then
11402 CXXFLAGS=$ac_save_CXXFLAGS
11403 elif test $ac_cv_prog_cxx_g = yes; then
11404 if test "$GXX" = yes; then
11405 CXXFLAGS="-g -O2"
11406 else
11407 CXXFLAGS="-g"
11408 fi
11409 else
11410 if test "$GXX" = yes; then
11411 CXXFLAGS="-O2"
11412 else
11413 CXXFLAGS=
11414 fi
11415 fi
11416 ac_ext=c
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11421
11422 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11423 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11424 (test "X$CXX" != "Xg++"))) ; then
11425 ac_ext=cpp
11426 ac_cpp='$CXXCPP $CPPFLAGS'
11427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11431 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11432 if test -z "$CXXCPP"; then
11433 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 # Double quotes because CXXCPP needs to be expanded
11437 for CXXCPP in "$CXX -E" "/lib/cpp"
11438 do
11439 ac_preproc_ok=false
11440 for ac_cxx_preproc_warn_flag in '' yes
11441 do
11442 # Use a header file that comes with gcc, so configuring glibc
11443 # with a fresh cross-compiler works.
11444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 # <limits.h> exists even on freestanding compilers.
11446 # On the NeXT, cc -E runs the code through the compiler's parser,
11447 # not just through cpp. "Syntax error" is here to catch this case.
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 #ifdef __STDC__
11451 # include <limits.h>
11452 #else
11453 # include <assert.h>
11454 #endif
11455 Syntax error
11456 _ACEOF
11457 if ac_fn_cxx_try_cpp "$LINENO"; then :
11458
11459 else
11460 # Broken: fails on valid input.
11461 continue
11462 fi
11463 rm -f conftest.err conftest.$ac_ext
11464
11465 # OK, works on sane cases. Now check whether nonexistent headers
11466 # can be detected and how.
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 #include <ac_nonexistent.h>
11470 _ACEOF
11471 if ac_fn_cxx_try_cpp "$LINENO"; then :
11472 # Broken: success on invalid input.
11473 continue
11474 else
11475 # Passes both tests.
11476 ac_preproc_ok=:
11477 break
11478 fi
11479 rm -f conftest.err conftest.$ac_ext
11480
11481 done
11482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11483 rm -f conftest.err conftest.$ac_ext
11484 if $ac_preproc_ok; then :
11485 break
11486 fi
11487
11488 done
11489 ac_cv_prog_CXXCPP=$CXXCPP
11490
11491 fi
11492 CXXCPP=$ac_cv_prog_CXXCPP
11493 else
11494 ac_cv_prog_CXXCPP=$CXXCPP
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11497 $as_echo "$CXXCPP" >&6; }
11498 ac_preproc_ok=false
11499 for ac_cxx_preproc_warn_flag in '' yes
11500 do
11501 # Use a header file that comes with gcc, so configuring glibc
11502 # with a fresh cross-compiler works.
11503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11504 # <limits.h> exists even on freestanding compilers.
11505 # On the NeXT, cc -E runs the code through the compiler's parser,
11506 # not just through cpp. "Syntax error" is here to catch this case.
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509 #ifdef __STDC__
11510 # include <limits.h>
11511 #else
11512 # include <assert.h>
11513 #endif
11514 Syntax error
11515 _ACEOF
11516 if ac_fn_cxx_try_cpp "$LINENO"; then :
11517
11518 else
11519 # Broken: fails on valid input.
11520 continue
11521 fi
11522 rm -f conftest.err conftest.$ac_ext
11523
11524 # OK, works on sane cases. Now check whether nonexistent headers
11525 # can be detected and how.
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #include <ac_nonexistent.h>
11529 _ACEOF
11530 if ac_fn_cxx_try_cpp "$LINENO"; then :
11531 # Broken: success on invalid input.
11532 continue
11533 else
11534 # Passes both tests.
11535 ac_preproc_ok=:
11536 break
11537 fi
11538 rm -f conftest.err conftest.$ac_ext
11539
11540 done
11541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11542 rm -f conftest.err conftest.$ac_ext
11543 if $ac_preproc_ok; then :
11544
11545 else
11546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11548 _lt_caught_CXX_error=yes; }
11549 fi
11550
11551 ac_ext=c
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556
11557 else
11558 _lt_caught_CXX_error=yes
11559 fi
11560
11561
11562
11563
11564 ac_ext=cpp
11565 ac_cpp='$CXXCPP $CPPFLAGS'
11566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11569
11570 archive_cmds_need_lc_CXX=no
11571 allow_undefined_flag_CXX=
11572 always_export_symbols_CXX=no
11573 archive_expsym_cmds_CXX=
11574 compiler_needs_object_CXX=no
11575 export_dynamic_flag_spec_CXX=
11576 hardcode_direct_CXX=no
11577 hardcode_direct_absolute_CXX=no
11578 hardcode_libdir_flag_spec_CXX=
11579 hardcode_libdir_flag_spec_ld_CXX=
11580 hardcode_libdir_separator_CXX=
11581 hardcode_minus_L_CXX=no
11582 hardcode_shlibpath_var_CXX=unsupported
11583 hardcode_automatic_CXX=no
11584 inherit_rpath_CXX=no
11585 module_cmds_CXX=
11586 module_expsym_cmds_CXX=
11587 link_all_deplibs_CXX=unknown
11588 old_archive_cmds_CXX=$old_archive_cmds
11589 no_undefined_flag_CXX=
11590 whole_archive_flag_spec_CXX=
11591 enable_shared_with_static_runtimes_CXX=no
11592
11593 # Source file extension for C++ test sources.
11594 ac_ext=cpp
11595
11596 # Object file extension for compiled C++ test sources.
11597 objext=o
11598 objext_CXX=$objext
11599
11600 # No sense in running all these tests if we already determined that
11601 # the CXX compiler isn't working. Some variables (like enable_shared)
11602 # are currently assumed to apply to all compilers on this platform,
11603 # and will be corrupted by setting them based on a non-working compiler.
11604 if test "$_lt_caught_CXX_error" != yes; then
11605 # Code to be used in simple compile tests
11606 lt_simple_compile_test_code="int some_variable = 0;"
11607
11608 # Code to be used in simple link tests
11609 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11610
11611 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11612
11613
11614
11615
11616
11617
11618 # If no C compiler was specified, use CC.
11619 LTCC=${LTCC-"$CC"}
11620
11621 # If no C compiler flags were specified, use CFLAGS.
11622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11623
11624 # Allow CC to be a program name with arguments.
11625 compiler=$CC
11626
11627
11628 # save warnings/boilerplate of simple test code
11629 ac_outfile=conftest.$ac_objext
11630 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11632 _lt_compiler_boilerplate=`cat conftest.err`
11633 $RM conftest*
11634
11635 ac_outfile=conftest.$ac_objext
11636 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11638 _lt_linker_boilerplate=`cat conftest.err`
11639 $RM -r conftest*
11640
11641
11642 # Allow CC to be a program name with arguments.
11643 lt_save_CC=$CC
11644 lt_save_LD=$LD
11645 lt_save_GCC=$GCC
11646 GCC=$GXX
11647 lt_save_with_gnu_ld=$with_gnu_ld
11648 lt_save_path_LD=$lt_cv_path_LD
11649 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11650 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11651 else
11652 $as_unset lt_cv_prog_gnu_ld
11653 fi
11654 if test -n "${lt_cv_path_LDCXX+set}"; then
11655 lt_cv_path_LD=$lt_cv_path_LDCXX
11656 else
11657 $as_unset lt_cv_path_LD
11658 fi
11659 test -z "${LDCXX+set}" || LD=$LDCXX
11660 CC=${CXX-"c++"}
11661 compiler=$CC
11662 compiler_CXX=$CC
11663 for cc_temp in $compiler""; do
11664 case $cc_temp in
11665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11667 \-*) ;;
11668 *) break;;
11669 esac
11670 done
11671 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11672
11673
11674 if test -n "$compiler"; then
11675 # We don't want -fno-exception when compiling C++ code, so set the
11676 # no_builtin_flag separately
11677 if test "$GXX" = yes; then
11678 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11679 else
11680 lt_prog_compiler_no_builtin_flag_CXX=
11681 fi
11682
11683 if test "$GXX" = yes; then
11684 # Set up default GNU C++ configuration
11685
11686
11687
11688 # Check whether --with-gnu-ld was given.
11689 if test "${with_gnu_ld+set}" = set; then :
11690 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11691 else
11692 with_gnu_ld=no
11693 fi
11694
11695 ac_prog=ld
11696 if test "$GCC" = yes; then
11697 # Check if gcc -print-prog-name=ld gives a path.
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11699 $as_echo_n "checking for ld used by $CC... " >&6; }
11700 case $host in
11701 *-*-mingw*)
11702 # gcc leaves a trailing carriage return which upsets mingw
11703 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11704 *)
11705 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11706 esac
11707 case $ac_prog in
11708 # Accept absolute paths.
11709 [\\/]* | ?:[\\/]*)
11710 re_direlt='/[^/][^/]*/\.\./'
11711 # Canonicalize the pathname of ld
11712 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11713 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11714 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11715 done
11716 test -z "$LD" && LD="$ac_prog"
11717 ;;
11718 "")
11719 # If it fails, then pretend we aren't using GCC.
11720 ac_prog=ld
11721 ;;
11722 *)
11723 # If it is relative, then search for the first ld in PATH.
11724 with_gnu_ld=unknown
11725 ;;
11726 esac
11727 elif test "$with_gnu_ld" = yes; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11729 $as_echo_n "checking for GNU ld... " >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11732 $as_echo_n "checking for non-GNU ld... " >&6; }
11733 fi
11734 if test "${lt_cv_path_LD+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test -z "$LD"; then
11738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11739 for ac_dir in $PATH; do
11740 IFS="$lt_save_ifs"
11741 test -z "$ac_dir" && ac_dir=.
11742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11743 lt_cv_path_LD="$ac_dir/$ac_prog"
11744 # Check to see if the program is GNU ld. I'd rather use --version,
11745 # but apparently some variants of GNU ld only accept -v.
11746 # Break only if it was the GNU/non-GNU ld that we prefer.
11747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11748 *GNU* | *'with BFD'*)
11749 test "$with_gnu_ld" != no && break
11750 ;;
11751 *)
11752 test "$with_gnu_ld" != yes && break
11753 ;;
11754 esac
11755 fi
11756 done
11757 IFS="$lt_save_ifs"
11758 else
11759 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11760 fi
11761 fi
11762
11763 LD="$lt_cv_path_LD"
11764 if test -n "$LD"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11766 $as_echo "$LD" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11774 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11778 case `$LD -v 2>&1 </dev/null` in
11779 *GNU* | *'with BFD'*)
11780 lt_cv_prog_gnu_ld=yes
11781 ;;
11782 *)
11783 lt_cv_prog_gnu_ld=no
11784 ;;
11785 esac
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11789 with_gnu_ld=$lt_cv_prog_gnu_ld
11790
11791
11792
11793
11794
11795
11796
11797 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11798 # archiving commands below assume that GNU ld is being used.
11799 if test "$with_gnu_ld" = yes; then
11800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801 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'
11802
11803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11805
11806 # If archive_cmds runs LD, not CC, wlarc should be empty
11807 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11808 # investigate it a little bit more. (MM)
11809 wlarc='${wl}'
11810
11811 # ancient GNU ld didn't support --whole-archive et. al.
11812 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11813 $GREP 'no-whole-archive' > /dev/null; then
11814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11815 else
11816 whole_archive_flag_spec_CXX=
11817 fi
11818 else
11819 with_gnu_ld=no
11820 wlarc=
11821
11822 # A generic and very simple default shared library creation
11823 # command for GNU C++ for the case where it uses the native
11824 # linker, instead of GNU ld. If possible, this setting should
11825 # overridden to take advantage of the native linker features on
11826 # the platform it is being used on.
11827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11828 fi
11829
11830 # Commands to make compiler produce verbose output that lists
11831 # what "hidden" libraries, object files and flags are used when
11832 # linking a shared library.
11833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11834
11835 else
11836 GXX=no
11837 with_gnu_ld=no
11838 wlarc=
11839 fi
11840
11841 # PORTME: fill in a description of your system's C++ link characteristics
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11844 ld_shlibs_CXX=yes
11845 case $host_os in
11846 aix3*)
11847 # FIXME: insert proper C++ library support
11848 ld_shlibs_CXX=no
11849 ;;
11850 aix[4-9]*)
11851 if test "$host_cpu" = ia64; then
11852 # On IA64, the linker does run time linking by default, so we don't
11853 # have to do anything special.
11854 aix_use_runtimelinking=no
11855 exp_sym_flag='-Bexport'
11856 no_entry_flag=""
11857 else
11858 aix_use_runtimelinking=no
11859
11860 # Test if we are trying to use run time linking or normal
11861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11862 # need to do runtime linking.
11863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11864 for ld_flag in $LDFLAGS; do
11865 case $ld_flag in
11866 *-brtl*)
11867 aix_use_runtimelinking=yes
11868 break
11869 ;;
11870 esac
11871 done
11872 ;;
11873 esac
11874
11875 exp_sym_flag='-bexport'
11876 no_entry_flag='-bnoentry'
11877 fi
11878
11879 # When large executables or shared objects are built, AIX ld can
11880 # have problems creating the table of contents. If linking a library
11881 # or program results in "error TOC overflow" add -mminimal-toc to
11882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11884
11885 archive_cmds_CXX=''
11886 hardcode_direct_CXX=yes
11887 hardcode_direct_absolute_CXX=yes
11888 hardcode_libdir_separator_CXX=':'
11889 link_all_deplibs_CXX=yes
11890 file_list_spec_CXX='${wl}-f,'
11891
11892 if test "$GXX" = yes; then
11893 case $host_os in aix4.[012]|aix4.[012].*)
11894 # We only want to do this on AIX 4.2 and lower, the check
11895 # below for broken collect2 doesn't work under 4.3+
11896 collect2name=`${CC} -print-prog-name=collect2`
11897 if test -f "$collect2name" &&
11898 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11899 then
11900 # We have reworked collect2
11901 :
11902 else
11903 # We have old collect2
11904 hardcode_direct_CXX=unsupported
11905 # It fails to find uninstalled libraries when the uninstalled
11906 # path is not listed in the libpath. Setting hardcode_minus_L
11907 # to unsupported forces relinking
11908 hardcode_minus_L_CXX=yes
11909 hardcode_libdir_flag_spec_CXX='-L$libdir'
11910 hardcode_libdir_separator_CXX=
11911 fi
11912 esac
11913 shared_flag='-shared'
11914 if test "$aix_use_runtimelinking" = yes; then
11915 shared_flag="$shared_flag "'${wl}-G'
11916 fi
11917 else
11918 # not using gcc
11919 if test "$host_cpu" = ia64; then
11920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11921 # chokes on -Wl,-G. The following line is correct:
11922 shared_flag='-G'
11923 else
11924 if test "$aix_use_runtimelinking" = yes; then
11925 shared_flag='${wl}-G'
11926 else
11927 shared_flag='${wl}-bM:SRE'
11928 fi
11929 fi
11930 fi
11931
11932 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11933 # It seems that -bexpall does not export symbols beginning with
11934 # underscore (_), so it is better to generate a list of symbols to
11935 # export.
11936 always_export_symbols_CXX=yes
11937 if test "$aix_use_runtimelinking" = yes; then
11938 # Warning - without using the other runtime loading flags (-brtl),
11939 # -berok will link without error, but may produce a broken library.
11940 allow_undefined_flag_CXX='-berok'
11941 # Determine the default libpath from the value encoded in an empty
11942 # executable.
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945
11946 int
11947 main ()
11948 {
11949
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_cxx_try_link "$LINENO"; then :
11955
11956 lt_aix_libpath_sed='
11957 /Import File Strings/,/^$/ {
11958 /^0/ {
11959 s/^0 *\(.*\)$/\1/
11960 p
11961 }
11962 }'
11963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11964 # Check for a 64-bit object if we didn't find anything.
11965 if test -z "$aix_libpath"; then
11966 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11967 fi
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11972
11973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11974
11975 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"
11976 else
11977 if test "$host_cpu" = ia64; then
11978 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11979 allow_undefined_flag_CXX="-z nodefs"
11980 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"
11981 else
11982 # Determine the default libpath from the value encoded in an
11983 # empty executable.
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986
11987 int
11988 main ()
11989 {
11990
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_cxx_try_link "$LINENO"; then :
11996
11997 lt_aix_libpath_sed='
11998 /Import File Strings/,/^$/ {
11999 /^0/ {
12000 s/^0 *\(.*\)$/\1/
12001 p
12002 }
12003 }'
12004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12005 # Check for a 64-bit object if we didn't find anything.
12006 if test -z "$aix_libpath"; then
12007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12008 fi
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12013
12014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12015 # Warning - without using the other run time loading flags,
12016 # -berok will link without error, but may produce a broken library.
12017 no_undefined_flag_CXX=' ${wl}-bernotok'
12018 allow_undefined_flag_CXX=' ${wl}-berok'
12019 # Exported symbols can be pulled into shared objects from archives
12020 whole_archive_flag_spec_CXX='$convenience'
12021 archive_cmds_need_lc_CXX=yes
12022 # This is similar to how AIX traditionally builds its shared
12023 # libraries.
12024 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'
12025 fi
12026 fi
12027 ;;
12028
12029 beos*)
12030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12031 allow_undefined_flag_CXX=unsupported
12032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12033 # support --undefined. This deserves some investigation. FIXME
12034 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12035 else
12036 ld_shlibs_CXX=no
12037 fi
12038 ;;
12039
12040 chorus*)
12041 case $cc_basename in
12042 *)
12043 # FIXME: insert proper C++ library support
12044 ld_shlibs_CXX=no
12045 ;;
12046 esac
12047 ;;
12048
12049 cygwin* | mingw* | pw32* | cegcc*)
12050 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12051 # as there is no search path for DLLs.
12052 hardcode_libdir_flag_spec_CXX='-L$libdir'
12053 allow_undefined_flag_CXX=unsupported
12054 always_export_symbols_CXX=no
12055 enable_shared_with_static_runtimes_CXX=yes
12056
12057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12058 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'
12059 # If the export-symbols file already is a .def file (1st line
12060 # is EXPORTS), use it as is; otherwise, prepend...
12061 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12062 cp $export_symbols $output_objdir/$soname.def;
12063 else
12064 echo EXPORTS > $output_objdir/$soname.def;
12065 cat $export_symbols >> $output_objdir/$soname.def;
12066 fi~
12067 $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'
12068 else
12069 ld_shlibs_CXX=no
12070 fi
12071 ;;
12072 darwin* | rhapsody*)
12073
12074
12075 archive_cmds_need_lc_CXX=no
12076 hardcode_direct_CXX=no
12077 hardcode_automatic_CXX=yes
12078 hardcode_shlibpath_var_CXX=unsupported
12079 whole_archive_flag_spec_CXX=''
12080 link_all_deplibs_CXX=yes
12081 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12082 case $cc_basename in
12083 ifort*) _lt_dar_can_shared=yes ;;
12084 *) _lt_dar_can_shared=$GCC ;;
12085 esac
12086 if test "$_lt_dar_can_shared" = "yes"; then
12087 output_verbose_link_cmd=echo
12088 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}"
12089 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12090 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}"
12091 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}"
12092 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12093 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}"
12094 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}"
12095 fi
12096
12097 else
12098 ld_shlibs_CXX=no
12099 fi
12100
12101 ;;
12102
12103 dgux*)
12104 case $cc_basename in
12105 ec++*)
12106 # FIXME: insert proper C++ library support
12107 ld_shlibs_CXX=no
12108 ;;
12109 ghcx*)
12110 # Green Hills C++ Compiler
12111 # FIXME: insert proper C++ library support
12112 ld_shlibs_CXX=no
12113 ;;
12114 *)
12115 # FIXME: insert proper C++ library support
12116 ld_shlibs_CXX=no
12117 ;;
12118 esac
12119 ;;
12120
12121 freebsd[12]*)
12122 # C++ shared libraries reported to be fairly broken before
12123 # switch to ELF
12124 ld_shlibs_CXX=no
12125 ;;
12126
12127 freebsd-elf*)
12128 archive_cmds_need_lc_CXX=no
12129 ;;
12130
12131 freebsd* | dragonfly*)
12132 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12133 # conventions
12134 ld_shlibs_CXX=yes
12135 ;;
12136
12137 gnu*)
12138 ;;
12139
12140 hpux9*)
12141 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12142 hardcode_libdir_separator_CXX=:
12143 export_dynamic_flag_spec_CXX='${wl}-E'
12144 hardcode_direct_CXX=yes
12145 hardcode_minus_L_CXX=yes # Not in the search PATH,
12146 # but as the default
12147 # location of the library.
12148
12149 case $cc_basename in
12150 CC*)
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 ;;
12154 aCC*)
12155 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'
12156 # Commands to make compiler produce verbose output that lists
12157 # what "hidden" libraries, object files and flags are used when
12158 # linking a shared library.
12159 #
12160 # There doesn't appear to be a way to prevent this compiler from
12161 # explicitly linking system object files so we need to strip them
12162 # from the output so that they don't get included in the library
12163 # dependencies.
12164 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'
12165 ;;
12166 *)
12167 if test "$GXX" = yes; then
12168 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'
12169 else
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12172 fi
12173 ;;
12174 esac
12175 ;;
12176
12177 hpux10*|hpux11*)
12178 if test $with_gnu_ld = no; then
12179 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12180 hardcode_libdir_separator_CXX=:
12181
12182 case $host_cpu in
12183 hppa*64*|ia64*)
12184 ;;
12185 *)
12186 export_dynamic_flag_spec_CXX='${wl}-E'
12187 ;;
12188 esac
12189 fi
12190 case $host_cpu in
12191 hppa*64*|ia64*)
12192 hardcode_direct_CXX=no
12193 hardcode_shlibpath_var_CXX=no
12194 ;;
12195 *)
12196 hardcode_direct_CXX=yes
12197 hardcode_direct_absolute_CXX=yes
12198 hardcode_minus_L_CXX=yes # Not in the search PATH,
12199 # but as the default
12200 # location of the library.
12201 ;;
12202 esac
12203
12204 case $cc_basename in
12205 CC*)
12206 # FIXME: insert proper C++ library support
12207 ld_shlibs_CXX=no
12208 ;;
12209 aCC*)
12210 case $host_cpu in
12211 hppa*64*)
12212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12213 ;;
12214 ia64*)
12215 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12216 ;;
12217 *)
12218 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12219 ;;
12220 esac
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 #
12225 # There doesn't appear to be a way to prevent this compiler from
12226 # explicitly linking system object files so we need to strip them
12227 # from the output so that they don't get included in the library
12228 # dependencies.
12229 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'
12230 ;;
12231 *)
12232 if test "$GXX" = yes; then
12233 if test $with_gnu_ld = no; then
12234 case $host_cpu in
12235 hppa*64*)
12236 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12237 ;;
12238 ia64*)
12239 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12240 ;;
12241 *)
12242 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'
12243 ;;
12244 esac
12245 fi
12246 else
12247 # FIXME: insert proper C++ library support
12248 ld_shlibs_CXX=no
12249 fi
12250 ;;
12251 esac
12252 ;;
12253
12254 interix[3-9]*)
12255 hardcode_direct_CXX=no
12256 hardcode_shlibpath_var_CXX=no
12257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12258 export_dynamic_flag_spec_CXX='${wl}-E'
12259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12260 # Instead, shared libraries are loaded at an image base (0x10000000 by
12261 # default) and relocated if they conflict, which is a slow very memory
12262 # consuming and fragmenting process. To avoid this, we pick a random,
12263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12265 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'
12266 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'
12267 ;;
12268 irix5* | irix6*)
12269 case $cc_basename in
12270 CC*)
12271 # SGI C++
12272 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'
12273
12274 # Archives containing C++ object files must be created using
12275 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12276 # necessary to make sure instantiated templates are included
12277 # in the archive.
12278 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12279 ;;
12280 *)
12281 if test "$GXX" = yes; then
12282 if test "$with_gnu_ld" = no; then
12283 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'
12284 else
12285 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'
12286 fi
12287 fi
12288 link_all_deplibs_CXX=yes
12289 ;;
12290 esac
12291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12292 hardcode_libdir_separator_CXX=:
12293 inherit_rpath_CXX=yes
12294 ;;
12295
12296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12297 case $cc_basename in
12298 KCC*)
12299 # Kuck and Associates, Inc. (KAI) C++ Compiler
12300
12301 # KCC will only create a shared library if the output file
12302 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12303 # to its proper name (with version) after linking.
12304 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'
12305 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'
12306 # Commands to make compiler produce verbose output that lists
12307 # what "hidden" libraries, object files and flags are used when
12308 # linking a shared library.
12309 #
12310 # There doesn't appear to be a way to prevent this compiler from
12311 # explicitly linking system object files so we need to strip them
12312 # from the output so that they don't get included in the library
12313 # dependencies.
12314 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'
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12318
12319 # Archives containing C++ object files must be created using
12320 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12321 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12322 ;;
12323 icpc* | ecpc* )
12324 # Intel C++
12325 with_gnu_ld=yes
12326 # version 8.0 and above of icpc choke on multiply defined symbols
12327 # if we add $predep_objects and $postdep_objects, however 7.1 and
12328 # earlier do not add the objects themselves.
12329 case `$CC -V 2>&1` in
12330 *"Version 7."*)
12331 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12332 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'
12333 ;;
12334 *) # Version 8.0 or newer
12335 tmp_idyn=
12336 case $host_cpu in
12337 ia64*) tmp_idyn=' -i_dynamic';;
12338 esac
12339 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 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'
12341 ;;
12342 esac
12343 archive_cmds_need_lc_CXX=no
12344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12346 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12347 ;;
12348 pgCC* | pgcpp*)
12349 # Portland Group C++ compiler
12350 case `$CC -V` in
12351 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12352 prelink_cmds_CXX='tpldir=Template.dir~
12353 rm -rf $tpldir~
12354 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12355 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12356 old_archive_cmds_CXX='tpldir=Template.dir~
12357 rm -rf $tpldir~
12358 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12359 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12360 $RANLIB $oldlib'
12361 archive_cmds_CXX='tpldir=Template.dir~
12362 rm -rf $tpldir~
12363 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12364 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12365 archive_expsym_cmds_CXX='tpldir=Template.dir~
12366 rm -rf $tpldir~
12367 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12368 $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'
12369 ;;
12370 *) # Version 6 will use weak symbols
12371 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12372 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'
12373 ;;
12374 esac
12375
12376 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12378 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'
12379 ;;
12380 cxx*)
12381 # Compaq C++
12382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383 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'
12384
12385 runpath_var=LD_RUN_PATH
12386 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12387 hardcode_libdir_separator_CXX=:
12388
12389 # Commands to make compiler produce verbose output that lists
12390 # what "hidden" libraries, object files and flags are used when
12391 # linking a shared library.
12392 #
12393 # There doesn't appear to be a way to prevent this compiler from
12394 # explicitly linking system object files so we need to strip them
12395 # from the output so that they don't get included in the library
12396 # dependencies.
12397 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'
12398 ;;
12399 xl*)
12400 # IBM XL 8.0 on PPC, with GNU ld
12401 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12403 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 if test "x$supports_anon_versioning" = xyes; then
12405 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12407 echo "local: *; };" >> $output_objdir/$libname.ver~
12408 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12409 fi
12410 ;;
12411 *)
12412 case `$CC -V 2>&1 | sed 5q` in
12413 *Sun\ C*)
12414 # Sun C++ 5.9
12415 no_undefined_flag_CXX=' -zdefs'
12416 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12417 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'
12418 hardcode_libdir_flag_spec_CXX='-R$libdir'
12419 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'
12420 compiler_needs_object_CXX=yes
12421
12422 # Not sure whether something based on
12423 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12424 # would be better.
12425 output_verbose_link_cmd='echo'
12426
12427 # Archives containing C++ object files must be created using
12428 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12429 # necessary to make sure instantiated templates are included
12430 # in the archive.
12431 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12432 ;;
12433 esac
12434 ;;
12435 esac
12436 ;;
12437
12438 lynxos*)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12441 ;;
12442
12443 m88k*)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12446 ;;
12447
12448 mvs*)
12449 case $cc_basename in
12450 cxx*)
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 esac
12459 ;;
12460
12461 netbsd*)
12462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12463 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12464 wlarc=
12465 hardcode_libdir_flag_spec_CXX='-R$libdir'
12466 hardcode_direct_CXX=yes
12467 hardcode_shlibpath_var_CXX=no
12468 fi
12469 # Workaround some broken pre-1.5 toolchains
12470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12471 ;;
12472
12473 *nto* | *qnx*)
12474 ld_shlibs_CXX=yes
12475 ;;
12476
12477 openbsd2*)
12478 # C++ shared libraries are fairly broken
12479 ld_shlibs_CXX=no
12480 ;;
12481
12482 openbsd*)
12483 if test -f /usr/libexec/ld.so; then
12484 hardcode_direct_CXX=yes
12485 hardcode_shlibpath_var_CXX=no
12486 hardcode_direct_absolute_CXX=yes
12487 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12490 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12491 export_dynamic_flag_spec_CXX='${wl}-E'
12492 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12493 fi
12494 output_verbose_link_cmd=echo
12495 else
12496 ld_shlibs_CXX=no
12497 fi
12498 ;;
12499
12500 osf3* | osf4* | osf5*)
12501 case $cc_basename in
12502 KCC*)
12503 # Kuck and Associates, Inc. (KAI) C++ Compiler
12504
12505 # KCC will only create a shared library if the output file
12506 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12507 # to its proper name (with version) after linking.
12508 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'
12509
12510 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12511 hardcode_libdir_separator_CXX=:
12512
12513 # Archives containing C++ object files must be created using
12514 # the KAI C++ compiler.
12515 case $host in
12516 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12517 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12518 esac
12519 ;;
12520 RCC*)
12521 # Rational C++ 2.4.1
12522 # FIXME: insert proper C++ library support
12523 ld_shlibs_CXX=no
12524 ;;
12525 cxx*)
12526 case $host in
12527 osf3*)
12528 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12529 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'
12530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12531 ;;
12532 *)
12533 allow_undefined_flag_CXX=' -expect_unresolved \*'
12534 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'
12535 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12536 echo "-hidden">> $lib.exp~
12537 $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~
12538 $RM $lib.exp'
12539 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12540 ;;
12541 esac
12542
12543 hardcode_libdir_separator_CXX=:
12544
12545 # Commands to make compiler produce verbose output that lists
12546 # what "hidden" libraries, object files and flags are used when
12547 # linking a shared library.
12548 #
12549 # There doesn't appear to be a way to prevent this compiler from
12550 # explicitly linking system object files so we need to strip them
12551 # from the output so that they don't get included in the library
12552 # dependencies.
12553 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'
12554 ;;
12555 *)
12556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12557 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12558 case $host in
12559 osf3*)
12560 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'
12561 ;;
12562 *)
12563 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'
12564 ;;
12565 esac
12566
12567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12568 hardcode_libdir_separator_CXX=:
12569
12570 # Commands to make compiler produce verbose output that lists
12571 # what "hidden" libraries, object files and flags are used when
12572 # linking a shared library.
12573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12574
12575 else
12576 # FIXME: insert proper C++ library support
12577 ld_shlibs_CXX=no
12578 fi
12579 ;;
12580 esac
12581 ;;
12582
12583 psos*)
12584 # FIXME: insert proper C++ library support
12585 ld_shlibs_CXX=no
12586 ;;
12587
12588 sunos4*)
12589 case $cc_basename in
12590 CC*)
12591 # Sun C++ 4.x
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 lcc*)
12596 # Lucid
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 *)
12601 # FIXME: insert proper C++ library support
12602 ld_shlibs_CXX=no
12603 ;;
12604 esac
12605 ;;
12606
12607 solaris*)
12608 case $cc_basename in
12609 CC*)
12610 # Sun C++ 4.2, 5.x and Centerline C++
12611 archive_cmds_need_lc_CXX=yes
12612 no_undefined_flag_CXX=' -zdefs'
12613 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12615 $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'
12616
12617 hardcode_libdir_flag_spec_CXX='-R$libdir'
12618 hardcode_shlibpath_var_CXX=no
12619 case $host_os in
12620 solaris2.[0-5] | solaris2.[0-5].*) ;;
12621 *)
12622 # The compiler driver will combine and reorder linker options,
12623 # but understands `-z linker_flag'.
12624 # Supported since Solaris 2.6 (maybe 2.5.1?)
12625 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12626 ;;
12627 esac
12628 link_all_deplibs_CXX=yes
12629
12630 output_verbose_link_cmd='echo'
12631
12632 # Archives containing C++ object files must be created using
12633 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12634 # necessary to make sure instantiated templates are included
12635 # in the archive.
12636 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12637 ;;
12638 gcx*)
12639 # Green Hills C++ Compiler
12640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12641
12642 # The C++ compiler must be used to create the archive.
12643 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12644 ;;
12645 *)
12646 # GNU C++ compiler with Solaris linker
12647 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12648 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12649 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12650 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12651 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12652 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12653
12654 # Commands to make compiler produce verbose output that lists
12655 # what "hidden" libraries, object files and flags are used when
12656 # linking a shared library.
12657 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12658 else
12659 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12660 # platform.
12661 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12662 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12663 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12664
12665 # Commands to make compiler produce verbose output that lists
12666 # what "hidden" libraries, object files and flags are used when
12667 # linking a shared library.
12668 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12669 fi
12670
12671 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12672 case $host_os in
12673 solaris2.[0-5] | solaris2.[0-5].*) ;;
12674 *)
12675 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12676 ;;
12677 esac
12678 fi
12679 ;;
12680 esac
12681 ;;
12682
12683 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12684 no_undefined_flag_CXX='${wl}-z,text'
12685 archive_cmds_need_lc_CXX=no
12686 hardcode_shlibpath_var_CXX=no
12687 runpath_var='LD_RUN_PATH'
12688
12689 case $cc_basename in
12690 CC*)
12691 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12693 ;;
12694 *)
12695 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12697 ;;
12698 esac
12699 ;;
12700
12701 sysv5* | sco3.2v5* | sco5v6*)
12702 # Note: We can NOT use -z defs as we might desire, because we do not
12703 # link with -lc, and that would cause any symbols used from libc to
12704 # always be unresolved, which means just about no library would
12705 # ever link correctly. If we're not using GNU ld we use -z text
12706 # though, which does catch some bad symbols but isn't as heavy-handed
12707 # as -z defs.
12708 no_undefined_flag_CXX='${wl}-z,text'
12709 allow_undefined_flag_CXX='${wl}-z,nodefs'
12710 archive_cmds_need_lc_CXX=no
12711 hardcode_shlibpath_var_CXX=no
12712 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12713 hardcode_libdir_separator_CXX=':'
12714 link_all_deplibs_CXX=yes
12715 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12716 runpath_var='LD_RUN_PATH'
12717
12718 case $cc_basename in
12719 CC*)
12720 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 ;;
12723 *)
12724 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12725 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12726 ;;
12727 esac
12728 ;;
12729
12730 tandem*)
12731 case $cc_basename in
12732 NCC*)
12733 # NonStop-UX NCC 3.20
12734 # FIXME: insert proper C++ library support
12735 ld_shlibs_CXX=no
12736 ;;
12737 *)
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12740 ;;
12741 esac
12742 ;;
12743
12744 vxworks*)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748
12749 *)
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12752 ;;
12753 esac
12754
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12756 $as_echo "$ld_shlibs_CXX" >&6; }
12757 test "$ld_shlibs_CXX" = no && can_build_shared=no
12758
12759 GCC_CXX="$GXX"
12760 LD_CXX="$LD"
12761
12762 ## CAVEAT EMPTOR:
12763 ## There is no encapsulation within the following macros, do not change
12764 ## the running order or otherwise move them around unless you know exactly
12765 ## what you are doing...
12766 # Dependencies to place before and after the object being linked:
12767 predep_objects_CXX=
12768 postdep_objects_CXX=
12769 predeps_CXX=
12770 postdeps_CXX=
12771 compiler_lib_search_path_CXX=
12772
12773 cat > conftest.$ac_ext <<_LT_EOF
12774 class Foo
12775 {
12776 public:
12777 Foo (void) { a = 0; }
12778 private:
12779 int a;
12780 };
12781 _LT_EOF
12782
12783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12784 (eval $ac_compile) 2>&5
12785 ac_status=$?
12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787 test $ac_status = 0; }; then
12788 # Parse the compiler output and extract the necessary
12789 # objects, libraries and library flags.
12790
12791 # Sentinel used to keep track of whether or not we are before
12792 # the conftest object file.
12793 pre_test_object_deps_done=no
12794
12795 for p in `eval "$output_verbose_link_cmd"`; do
12796 case $p in
12797
12798 -L* | -R* | -l*)
12799 # Some compilers place space between "-{L,R}" and the path.
12800 # Remove the space.
12801 if test $p = "-L" ||
12802 test $p = "-R"; then
12803 prev=$p
12804 continue
12805 else
12806 prev=
12807 fi
12808
12809 if test "$pre_test_object_deps_done" = no; then
12810 case $p in
12811 -L* | -R*)
12812 # Internal compiler library paths should come after those
12813 # provided the user. The postdeps already come after the
12814 # user supplied libs so there is no need to process them.
12815 if test -z "$compiler_lib_search_path_CXX"; then
12816 compiler_lib_search_path_CXX="${prev}${p}"
12817 else
12818 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12819 fi
12820 ;;
12821 # The "-l" case would never come before the object being
12822 # linked, so don't bother handling this case.
12823 esac
12824 else
12825 if test -z "$postdeps_CXX"; then
12826 postdeps_CXX="${prev}${p}"
12827 else
12828 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12829 fi
12830 fi
12831 ;;
12832
12833 *.$objext)
12834 # This assumes that the test object file only shows up
12835 # once in the compiler output.
12836 if test "$p" = "conftest.$objext"; then
12837 pre_test_object_deps_done=yes
12838 continue
12839 fi
12840
12841 if test "$pre_test_object_deps_done" = no; then
12842 if test -z "$predep_objects_CXX"; then
12843 predep_objects_CXX="$p"
12844 else
12845 predep_objects_CXX="$predep_objects_CXX $p"
12846 fi
12847 else
12848 if test -z "$postdep_objects_CXX"; then
12849 postdep_objects_CXX="$p"
12850 else
12851 postdep_objects_CXX="$postdep_objects_CXX $p"
12852 fi
12853 fi
12854 ;;
12855
12856 *) ;; # Ignore the rest.
12857
12858 esac
12859 done
12860
12861 # Clean up.
12862 rm -f a.out a.exe
12863 else
12864 echo "libtool.m4: error: problem compiling CXX test program"
12865 fi
12866
12867 $RM -f confest.$objext
12868
12869 # PORTME: override above test on systems where it is broken
12870 case $host_os in
12871 interix[3-9]*)
12872 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12873 # hack all around it, let's just trust "g++" to DTRT.
12874 predep_objects_CXX=
12875 postdep_objects_CXX=
12876 postdeps_CXX=
12877 ;;
12878
12879 linux*)
12880 case `$CC -V 2>&1 | sed 5q` in
12881 *Sun\ C*)
12882 # Sun C++ 5.9
12883
12884 # The more standards-conforming stlport4 library is
12885 # incompatible with the Cstd library. Avoid specifying
12886 # it if it's in CXXFLAGS. Ignore libCrun as
12887 # -library=stlport4 depends on it.
12888 case " $CXX $CXXFLAGS " in
12889 *" -library=stlport4 "*)
12890 solaris_use_stlport4=yes
12891 ;;
12892 esac
12893
12894 if test "$solaris_use_stlport4" != yes; then
12895 postdeps_CXX='-library=Cstd -library=Crun'
12896 fi
12897 ;;
12898 esac
12899 ;;
12900
12901 solaris*)
12902 case $cc_basename in
12903 CC*)
12904 # The more standards-conforming stlport4 library is
12905 # incompatible with the Cstd library. Avoid specifying
12906 # it if it's in CXXFLAGS. Ignore libCrun as
12907 # -library=stlport4 depends on it.
12908 case " $CXX $CXXFLAGS " in
12909 *" -library=stlport4 "*)
12910 solaris_use_stlport4=yes
12911 ;;
12912 esac
12913
12914 # Adding this requires a known-good setup of shared libraries for
12915 # Sun compiler versions before 5.6, else PIC objects from an old
12916 # archive will be linked into the output, leading to subtle bugs.
12917 if test "$solaris_use_stlport4" != yes; then
12918 postdeps_CXX='-library=Cstd -library=Crun'
12919 fi
12920 ;;
12921 esac
12922 ;;
12923 esac
12924
12925
12926 case " $postdeps_CXX " in
12927 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12928 esac
12929 compiler_lib_search_dirs_CXX=
12930 if test -n "${compiler_lib_search_path_CXX}"; then
12931 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12932 fi
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 lt_prog_compiler_wl_CXX=
12965 lt_prog_compiler_pic_CXX=
12966 lt_prog_compiler_static_CXX=
12967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12970
12971 # C++ specific cases for pic, static, wl, etc.
12972 if test "$GXX" = yes; then
12973 lt_prog_compiler_wl_CXX='-Wl,'
12974 lt_prog_compiler_static_CXX='-static'
12975
12976 case $host_os in
12977 aix*)
12978 # All AIX code is PIC.
12979 if test "$host_cpu" = ia64; then
12980 # AIX 5 now supports IA64 processor
12981 lt_prog_compiler_static_CXX='-Bstatic'
12982 fi
12983 ;;
12984
12985 amigaos*)
12986 case $host_cpu in
12987 powerpc)
12988 # see comment about AmigaOS4 .so support
12989 lt_prog_compiler_pic_CXX='-fPIC'
12990 ;;
12991 m68k)
12992 # FIXME: we need at least 68020 code to build shared libraries, but
12993 # adding the `-m68020' flag to GCC prevents building anything better,
12994 # like `-m68040'.
12995 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12996 ;;
12997 esac
12998 ;;
12999
13000 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13001 # PIC is the default for these OSes.
13002 ;;
13003 mingw* | cygwin* | os2* | pw32* | cegcc*)
13004 # This hack is so that the source file can tell whether it is being
13005 # built for inclusion in a dll (and should export symbols for example).
13006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13007 # (--disable-auto-import) libraries
13008 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13009 ;;
13010 darwin* | rhapsody*)
13011 # PIC is the default on this platform
13012 # Common symbols not allowed in MH_DYLIB files
13013 lt_prog_compiler_pic_CXX='-fno-common'
13014 ;;
13015 *djgpp*)
13016 # DJGPP does not support shared libraries at all
13017 lt_prog_compiler_pic_CXX=
13018 ;;
13019 interix[3-9]*)
13020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13021 # Instead, we relocate shared libraries at runtime.
13022 ;;
13023 sysv4*MP*)
13024 if test -d /usr/nec; then
13025 lt_prog_compiler_pic_CXX=-Kconform_pic
13026 fi
13027 ;;
13028 hpux*)
13029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13031 # sets the default TLS model and affects inlining.
13032 case $host_cpu in
13033 hppa*64*)
13034 ;;
13035 *)
13036 lt_prog_compiler_pic_CXX='-fPIC'
13037 ;;
13038 esac
13039 ;;
13040 *qnx* | *nto*)
13041 # QNX uses GNU C++, but need to define -shared option too, otherwise
13042 # it will coredump.
13043 lt_prog_compiler_pic_CXX='-fPIC -shared'
13044 ;;
13045 *)
13046 lt_prog_compiler_pic_CXX='-fPIC'
13047 ;;
13048 esac
13049 else
13050 case $host_os in
13051 aix[4-9]*)
13052 # All AIX code is PIC.
13053 if test "$host_cpu" = ia64; then
13054 # AIX 5 now supports IA64 processor
13055 lt_prog_compiler_static_CXX='-Bstatic'
13056 else
13057 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13058 fi
13059 ;;
13060 chorus*)
13061 case $cc_basename in
13062 cxch68*)
13063 # Green Hills C++ Compiler
13064 # _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"
13065 ;;
13066 esac
13067 ;;
13068 dgux*)
13069 case $cc_basename in
13070 ec++*)
13071 lt_prog_compiler_pic_CXX='-KPIC'
13072 ;;
13073 ghcx*)
13074 # Green Hills C++ Compiler
13075 lt_prog_compiler_pic_CXX='-pic'
13076 ;;
13077 *)
13078 ;;
13079 esac
13080 ;;
13081 freebsd* | dragonfly*)
13082 # FreeBSD uses GNU C++
13083 ;;
13084 hpux9* | hpux10* | hpux11*)
13085 case $cc_basename in
13086 CC*)
13087 lt_prog_compiler_wl_CXX='-Wl,'
13088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13089 if test "$host_cpu" != ia64; then
13090 lt_prog_compiler_pic_CXX='+Z'
13091 fi
13092 ;;
13093 aCC*)
13094 lt_prog_compiler_wl_CXX='-Wl,'
13095 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13096 case $host_cpu in
13097 hppa*64*|ia64*)
13098 # +Z the default
13099 ;;
13100 *)
13101 lt_prog_compiler_pic_CXX='+Z'
13102 ;;
13103 esac
13104 ;;
13105 *)
13106 ;;
13107 esac
13108 ;;
13109 interix*)
13110 # This is c89, which is MS Visual C++ (no shared libs)
13111 # Anyone wants to do a port?
13112 ;;
13113 irix5* | irix6* | nonstopux*)
13114 case $cc_basename in
13115 CC*)
13116 lt_prog_compiler_wl_CXX='-Wl,'
13117 lt_prog_compiler_static_CXX='-non_shared'
13118 # CC pic flag -KPIC is the default.
13119 ;;
13120 *)
13121 ;;
13122 esac
13123 ;;
13124 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13125 case $cc_basename in
13126 KCC*)
13127 # KAI C++ Compiler
13128 lt_prog_compiler_wl_CXX='--backend -Wl,'
13129 lt_prog_compiler_pic_CXX='-fPIC'
13130 ;;
13131 ecpc* )
13132 # old Intel C++ for x86_64 which still supported -KPIC.
13133 lt_prog_compiler_wl_CXX='-Wl,'
13134 lt_prog_compiler_pic_CXX='-KPIC'
13135 lt_prog_compiler_static_CXX='-static'
13136 ;;
13137 icpc* )
13138 # Intel C++, used to be incompatible with GCC.
13139 # ICC 10 doesn't accept -KPIC any more.
13140 lt_prog_compiler_wl_CXX='-Wl,'
13141 lt_prog_compiler_pic_CXX='-fPIC'
13142 lt_prog_compiler_static_CXX='-static'
13143 ;;
13144 pgCC* | pgcpp*)
13145 # Portland Group C++ compiler
13146 lt_prog_compiler_wl_CXX='-Wl,'
13147 lt_prog_compiler_pic_CXX='-fpic'
13148 lt_prog_compiler_static_CXX='-Bstatic'
13149 ;;
13150 cxx*)
13151 # Compaq C++
13152 # Make sure the PIC flag is empty. It appears that all Alpha
13153 # Linux and Compaq Tru64 Unix objects are PIC.
13154 lt_prog_compiler_pic_CXX=
13155 lt_prog_compiler_static_CXX='-non_shared'
13156 ;;
13157 xlc* | xlC*)
13158 # IBM XL 8.0 on PPC
13159 lt_prog_compiler_wl_CXX='-Wl,'
13160 lt_prog_compiler_pic_CXX='-qpic'
13161 lt_prog_compiler_static_CXX='-qstaticlink'
13162 ;;
13163 *)
13164 case `$CC -V 2>&1 | sed 5q` in
13165 *Sun\ C*)
13166 # Sun C++ 5.9
13167 lt_prog_compiler_pic_CXX='-KPIC'
13168 lt_prog_compiler_static_CXX='-Bstatic'
13169 lt_prog_compiler_wl_CXX='-Qoption ld '
13170 ;;
13171 esac
13172 ;;
13173 esac
13174 ;;
13175 lynxos*)
13176 ;;
13177 m88k*)
13178 ;;
13179 mvs*)
13180 case $cc_basename in
13181 cxx*)
13182 lt_prog_compiler_pic_CXX='-W c,exportall'
13183 ;;
13184 *)
13185 ;;
13186 esac
13187 ;;
13188 netbsd* | netbsdelf*-gnu)
13189 ;;
13190 *qnx* | *nto*)
13191 # QNX uses GNU C++, but need to define -shared option too, otherwise
13192 # it will coredump.
13193 lt_prog_compiler_pic_CXX='-fPIC -shared'
13194 ;;
13195 osf3* | osf4* | osf5*)
13196 case $cc_basename in
13197 KCC*)
13198 lt_prog_compiler_wl_CXX='--backend -Wl,'
13199 ;;
13200 RCC*)
13201 # Rational C++ 2.4.1
13202 lt_prog_compiler_pic_CXX='-pic'
13203 ;;
13204 cxx*)
13205 # Digital/Compaq C++
13206 lt_prog_compiler_wl_CXX='-Wl,'
13207 # Make sure the PIC flag is empty. It appears that all Alpha
13208 # Linux and Compaq Tru64 Unix objects are PIC.
13209 lt_prog_compiler_pic_CXX=
13210 lt_prog_compiler_static_CXX='-non_shared'
13211 ;;
13212 *)
13213 ;;
13214 esac
13215 ;;
13216 psos*)
13217 ;;
13218 solaris*)
13219 case $cc_basename in
13220 CC*)
13221 # Sun C++ 4.2, 5.x and Centerline C++
13222 lt_prog_compiler_pic_CXX='-KPIC'
13223 lt_prog_compiler_static_CXX='-Bstatic'
13224 lt_prog_compiler_wl_CXX='-Qoption ld '
13225 ;;
13226 gcx*)
13227 # Green Hills C++ Compiler
13228 lt_prog_compiler_pic_CXX='-PIC'
13229 ;;
13230 *)
13231 ;;
13232 esac
13233 ;;
13234 sunos4*)
13235 case $cc_basename in
13236 CC*)
13237 # Sun C++ 4.x
13238 lt_prog_compiler_pic_CXX='-pic'
13239 lt_prog_compiler_static_CXX='-Bstatic'
13240 ;;
13241 lcc*)
13242 # Lucid
13243 lt_prog_compiler_pic_CXX='-pic'
13244 ;;
13245 *)
13246 ;;
13247 esac
13248 ;;
13249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13250 case $cc_basename in
13251 CC*)
13252 lt_prog_compiler_wl_CXX='-Wl,'
13253 lt_prog_compiler_pic_CXX='-KPIC'
13254 lt_prog_compiler_static_CXX='-Bstatic'
13255 ;;
13256 esac
13257 ;;
13258 tandem*)
13259 case $cc_basename in
13260 NCC*)
13261 # NonStop-UX NCC 3.20
13262 lt_prog_compiler_pic_CXX='-KPIC'
13263 ;;
13264 *)
13265 ;;
13266 esac
13267 ;;
13268 vxworks*)
13269 ;;
13270 *)
13271 lt_prog_compiler_can_build_shared_CXX=no
13272 ;;
13273 esac
13274 fi
13275
13276 case $host_os in
13277 # For platforms which do not support PIC, -DPIC is meaningless:
13278 *djgpp*)
13279 lt_prog_compiler_pic_CXX=
13280 ;;
13281 *)
13282 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13283 ;;
13284 esac
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13286 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13287
13288
13289
13290 #
13291 # Check to make sure the PIC flag actually works.
13292 #
13293 if test -n "$lt_prog_compiler_pic_CXX"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13296 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 lt_cv_prog_compiler_pic_works_CXX=no
13300 ac_outfile=conftest.$ac_objext
13301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13302 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13303 # Insert the option either (1) after the last *FLAGS variable, or
13304 # (2) before a word containing "conftest.", or (3) at the end.
13305 # Note that $ac_compile itself does not contain backslashes and begins
13306 # with a dollar sign (not a hyphen), so the echo should work correctly.
13307 # The option is referenced via a variable to avoid confusing sed.
13308 lt_compile=`echo "$ac_compile" | $SED \
13309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13311 -e 's:$: $lt_compiler_flag:'`
13312 (eval echo "\"\$as_me:13312: $lt_compile\"" >&5)
13313 (eval "$lt_compile" 2>conftest.err)
13314 ac_status=$?
13315 cat conftest.err >&5
13316 echo "$as_me:13316: \$? = $ac_status" >&5
13317 if (exit $ac_status) && test -s "$ac_outfile"; then
13318 # The compiler can only warn and ignore the option if not recognized
13319 # So say no if there are warnings other than the usual output.
13320 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13323 lt_cv_prog_compiler_pic_works_CXX=yes
13324 fi
13325 fi
13326 $RM conftest*
13327
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13330 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13331
13332 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13333 case $lt_prog_compiler_pic_CXX in
13334 "" | " "*) ;;
13335 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13336 esac
13337 else
13338 lt_prog_compiler_pic_CXX=
13339 lt_prog_compiler_can_build_shared_CXX=no
13340 fi
13341
13342 fi
13343
13344
13345
13346 #
13347 # Check to make sure the static flag actually works.
13348 #
13349 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13351 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13352 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 lt_cv_prog_compiler_static_works_CXX=no
13356 save_LDFLAGS="$LDFLAGS"
13357 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13358 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13360 # The linker can only warn and ignore the option if not recognized
13361 # So say no if there are warnings
13362 if test -s conftest.err; then
13363 # Append any errors to the config.log.
13364 cat conftest.err 1>&5
13365 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13367 if diff conftest.exp conftest.er2 >/dev/null; then
13368 lt_cv_prog_compiler_static_works_CXX=yes
13369 fi
13370 else
13371 lt_cv_prog_compiler_static_works_CXX=yes
13372 fi
13373 fi
13374 $RM -r conftest*
13375 LDFLAGS="$save_LDFLAGS"
13376
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13379 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13380
13381 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13382 :
13383 else
13384 lt_prog_compiler_static_CXX=
13385 fi
13386
13387
13388
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 lt_cv_prog_compiler_c_o_CXX=no
13396 $RM -r conftest 2>/dev/null
13397 mkdir conftest
13398 cd conftest
13399 mkdir out
13400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
13402 lt_compiler_flag="-o out/conftest2.$ac_objext"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 lt_compile=`echo "$ac_compile" | $SED \
13408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13410 -e 's:$: $lt_compiler_flag:'`
13411 (eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
13412 (eval "$lt_compile" 2>out/conftest.err)
13413 ac_status=$?
13414 cat out/conftest.err >&5
13415 echo "$as_me:13415: \$? = $ac_status" >&5
13416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13417 then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings
13420 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13423 lt_cv_prog_compiler_c_o_CXX=yes
13424 fi
13425 fi
13426 chmod u+w . 2>&5
13427 $RM conftest*
13428 # SGI C++ compiler will create directory out/ii_files/ for
13429 # template instantiation
13430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13431 $RM out/* && rmdir out
13432 cd ..
13433 $RM -r conftest
13434 $RM conftest*
13435
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13438 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13439
13440
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13443 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 lt_cv_prog_compiler_c_o_CXX=no
13448 $RM -r conftest 2>/dev/null
13449 mkdir conftest
13450 cd conftest
13451 mkdir out
13452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
13454 lt_compiler_flag="-o out/conftest2.$ac_objext"
13455 # Insert the option either (1) after the last *FLAGS variable, or
13456 # (2) before a word containing "conftest.", or (3) at the end.
13457 # Note that $ac_compile itself does not contain backslashes and begins
13458 # with a dollar sign (not a hyphen), so the echo should work correctly.
13459 lt_compile=`echo "$ac_compile" | $SED \
13460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462 -e 's:$: $lt_compiler_flag:'`
13463 (eval echo "\"\$as_me:13463: $lt_compile\"" >&5)
13464 (eval "$lt_compile" 2>out/conftest.err)
13465 ac_status=$?
13466 cat out/conftest.err >&5
13467 echo "$as_me:13467: \$? = $ac_status" >&5
13468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13469 then
13470 # The compiler can only warn and ignore the option if not recognized
13471 # So say no if there are warnings
13472 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13475 lt_cv_prog_compiler_c_o_CXX=yes
13476 fi
13477 fi
13478 chmod u+w . 2>&5
13479 $RM conftest*
13480 # SGI C++ compiler will create directory out/ii_files/ for
13481 # template instantiation
13482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13483 $RM out/* && rmdir out
13484 cd ..
13485 $RM -r conftest
13486 $RM conftest*
13487
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13490 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13491
13492
13493
13494
13495 hard_links="nottested"
13496 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13497 # do not overwrite the value of need_locks provided by the user
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13499 $as_echo_n "checking if we can lock with hard links... " >&6; }
13500 hard_links=yes
13501 $RM conftest*
13502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13503 touch conftest.a
13504 ln conftest.a conftest.b 2>&5 || hard_links=no
13505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13507 $as_echo "$hard_links" >&6; }
13508 if test "$hard_links" = no; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13510 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13511 need_locks=warn
13512 fi
13513 else
13514 need_locks=no
13515 fi
13516
13517
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13520 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13521
13522 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13523 case $host_os in
13524 aix[4-9]*)
13525 # If we're using GNU nm, then we don't want the "-C" option.
13526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13528 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'
13529 else
13530 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'
13531 fi
13532 ;;
13533 pw32*)
13534 export_symbols_cmds_CXX="$ltdll_cmds"
13535 ;;
13536 cygwin* | mingw* | cegcc*)
13537 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'
13538 ;;
13539 linux* | k*bsd*-gnu)
13540 link_all_deplibs_CXX=no
13541 ;;
13542 *)
13543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13544 ;;
13545 esac
13546 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13547
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13549 $as_echo "$ld_shlibs_CXX" >&6; }
13550 test "$ld_shlibs_CXX" = no && can_build_shared=no
13551
13552 with_gnu_ld_CXX=$with_gnu_ld
13553
13554
13555
13556
13557
13558
13559 #
13560 # Do we need to explicitly link libc?
13561 #
13562 case "x$archive_cmds_need_lc_CXX" in
13563 x|xyes)
13564 # Assume -lc should be added
13565 archive_cmds_need_lc_CXX=yes
13566
13567 if test "$enable_shared" = yes && test "$GCC" = yes; then
13568 case $archive_cmds_CXX in
13569 *'~'*)
13570 # FIXME: we may have to deal with multi-command sequences.
13571 ;;
13572 '$CC '*)
13573 # Test whether the compiler implicitly links with -lc since on some
13574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13575 # to ld, don't add -lc before -lgcc.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13577 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13578 $RM conftest*
13579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13580
13581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13582 (eval $ac_compile) 2>&5
13583 ac_status=$?
13584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13585 test $ac_status = 0; } 2>conftest.err; then
13586 soname=conftest
13587 lib=conftest
13588 libobjs=conftest.$ac_objext
13589 deplibs=
13590 wl=$lt_prog_compiler_wl_CXX
13591 pic_flag=$lt_prog_compiler_pic_CXX
13592 compiler_flags=-v
13593 linker_flags=-v
13594 verstring=
13595 output_objdir=.
13596 libname=conftest
13597 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13598 allow_undefined_flag_CXX=
13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13600 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13601 ac_status=$?
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }
13604 then
13605 archive_cmds_need_lc_CXX=no
13606 else
13607 archive_cmds_need_lc_CXX=yes
13608 fi
13609 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13610 else
13611 cat conftest.err 1>&5
13612 fi
13613 $RM conftest*
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13615 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13616 ;;
13617 esac
13618 fi
13619 ;;
13620 esac
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13687
13688 library_names_spec=
13689 libname_spec='lib$name'
13690 soname_spec=
13691 shrext_cmds=".so"
13692 postinstall_cmds=
13693 postuninstall_cmds=
13694 finish_cmds=
13695 finish_eval=
13696 shlibpath_var=
13697 shlibpath_overrides_runpath=unknown
13698 version_type=none
13699 dynamic_linker="$host_os ld.so"
13700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13701 need_lib_prefix=unknown
13702 hardcode_into_libs=no
13703
13704 # when you set need_version to no, make sure it does not cause -set_version
13705 # flags to be left without arguments
13706 need_version=unknown
13707
13708 case $host_os in
13709 aix3*)
13710 version_type=linux
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13712 shlibpath_var=LIBPATH
13713
13714 # AIX 3 has no versioning support, so we append a major version to the name.
13715 soname_spec='${libname}${release}${shared_ext}$major'
13716 ;;
13717
13718 aix[4-9]*)
13719 version_type=linux
13720 need_lib_prefix=no
13721 need_version=no
13722 hardcode_into_libs=yes
13723 if test "$host_cpu" = ia64; then
13724 # AIX 5 supports IA64
13725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 else
13728 # With GCC up to 2.95.x, collect2 would create an import file
13729 # for dependence libraries. The import file would start with
13730 # the line `#! .'. This would cause the generated library to
13731 # depend on `.', always an invalid library. This was fixed in
13732 # development snapshots of GCC prior to 3.0.
13733 case $host_os in
13734 aix4 | aix4.[01] | aix4.[01].*)
13735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13736 echo ' yes '
13737 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13738 :
13739 else
13740 can_build_shared=no
13741 fi
13742 ;;
13743 esac
13744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13745 # soname into executable. Probably we can add versioning support to
13746 # collect2, so additional links can be useful in future.
13747 if test "$aix_use_runtimelinking" = yes; then
13748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13749 # instead of lib<name>.a to let people know that these are not
13750 # typical AIX shared libraries.
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 else
13753 # We preserve .a as extension for shared libraries through AIX4.2
13754 # and later when we are not doing run time linking.
13755 library_names_spec='${libname}${release}.a $libname.a'
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 fi
13758 shlibpath_var=LIBPATH
13759 fi
13760 ;;
13761
13762 amigaos*)
13763 case $host_cpu in
13764 powerpc)
13765 # Since July 2007 AmigaOS4 officially supports .so libraries.
13766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 ;;
13769 m68k)
13770 library_names_spec='$libname.ixlibrary $libname.a'
13771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772 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'
13773 ;;
13774 esac
13775 ;;
13776
13777 beos*)
13778 library_names_spec='${libname}${shared_ext}'
13779 dynamic_linker="$host_os ld.so"
13780 shlibpath_var=LIBRARY_PATH
13781 ;;
13782
13783 bsdi[45]*)
13784 version_type=linux
13785 need_version=no
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13792 # the default ld.so.conf also contains /usr/contrib/lib and
13793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13794 # libtool to hard-code these into programs
13795 ;;
13796
13797 cygwin* | mingw* | pw32* | cegcc*)
13798 version_type=windows
13799 shrext_cmds=".dll"
13800 need_version=no
13801 need_lib_prefix=no
13802
13803 case $GCC,$host_os in
13804 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13805 library_names_spec='$libname.dll.a'
13806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13807 postinstall_cmds='base_file=`basename \${file}`~
13808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13809 dldir=$destdir/`dirname \$dlpath`~
13810 test -d \$dldir || mkdir -p \$dldir~
13811 $install_prog $dir/$dlname \$dldir/$dlname~
13812 chmod a+x \$dldir/$dlname~
13813 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13814 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13815 fi'
13816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13817 dlpath=$dir/\$dldll~
13818 $RM \$dlpath'
13819 shlibpath_overrides_runpath=yes
13820
13821 case $host_os in
13822 cygwin*)
13823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13825 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13826 ;;
13827 mingw* | cegcc*)
13828 # MinGW DLLs use traditional 'lib' prefix
13829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13830 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13831 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13832 # It is most probably a Windows format PATH printed by
13833 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13834 # path with ; separators, and with drive letters. We can handle the
13835 # drive letters (cygwin fileutils understands them), so leave them,
13836 # especially as we might pass files found there to a mingw objdump,
13837 # which wouldn't understand a cygwinified path. Ahh.
13838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13839 else
13840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13841 fi
13842 ;;
13843 pw32*)
13844 # pw32 DLLs use 'pw' prefix rather than 'lib'
13845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13846 ;;
13847 esac
13848 ;;
13849
13850 *)
13851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13852 ;;
13853 esac
13854 dynamic_linker='Win32 ld.exe'
13855 # FIXME: first we should search . and the directory the executable is in
13856 shlibpath_var=PATH
13857 ;;
13858
13859 darwin* | rhapsody*)
13860 dynamic_linker="$host_os dyld"
13861 version_type=darwin
13862 need_lib_prefix=no
13863 need_version=no
13864 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13865 soname_spec='${libname}${release}${major}$shared_ext'
13866 shlibpath_overrides_runpath=yes
13867 shlibpath_var=DYLD_LIBRARY_PATH
13868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13869
13870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13871 ;;
13872
13873 dgux*)
13874 version_type=linux
13875 need_lib_prefix=no
13876 need_version=no
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13878 soname_spec='${libname}${release}${shared_ext}$major'
13879 shlibpath_var=LD_LIBRARY_PATH
13880 ;;
13881
13882 freebsd1*)
13883 dynamic_linker=no
13884 ;;
13885
13886 freebsd* | dragonfly*)
13887 # DragonFly does not have aout. When/if they implement a new
13888 # versioning mechanism, adjust this.
13889 if test -x /usr/bin/objformat; then
13890 objformat=`/usr/bin/objformat`
13891 else
13892 case $host_os in
13893 freebsd[123]*) objformat=aout ;;
13894 *) objformat=elf ;;
13895 esac
13896 fi
13897 version_type=freebsd-$objformat
13898 case $version_type in
13899 freebsd-elf*)
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13901 need_version=no
13902 need_lib_prefix=no
13903 ;;
13904 freebsd-*)
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13906 need_version=yes
13907 ;;
13908 esac
13909 shlibpath_var=LD_LIBRARY_PATH
13910 case $host_os in
13911 freebsd2*)
13912 shlibpath_overrides_runpath=yes
13913 ;;
13914 freebsd3.[01]* | freebsdelf3.[01]*)
13915 shlibpath_overrides_runpath=yes
13916 hardcode_into_libs=yes
13917 ;;
13918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13920 shlibpath_overrides_runpath=no
13921 hardcode_into_libs=yes
13922 ;;
13923 *) # from 4.6 on, and DragonFly
13924 shlibpath_overrides_runpath=yes
13925 hardcode_into_libs=yes
13926 ;;
13927 esac
13928 ;;
13929
13930 gnu*)
13931 version_type=linux
13932 need_lib_prefix=no
13933 need_version=no
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 hardcode_into_libs=yes
13938 ;;
13939
13940 hpux9* | hpux10* | hpux11*)
13941 # Give a soname corresponding to the major version so that dld.sl refuses to
13942 # link against other versions.
13943 version_type=sunos
13944 need_lib_prefix=no
13945 need_version=no
13946 case $host_cpu in
13947 ia64*)
13948 shrext_cmds='.so'
13949 hardcode_into_libs=yes
13950 dynamic_linker="$host_os dld.so"
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 if test "X$HPUX_IA64_MODE" = X32; then
13956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13957 else
13958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13959 fi
13960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13961 ;;
13962 hppa*64*)
13963 shrext_cmds='.sl'
13964 hardcode_into_libs=yes
13965 dynamic_linker="$host_os dld.sl"
13966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972 ;;
13973 *)
13974 shrext_cmds='.sl'
13975 dynamic_linker="$host_os dld.sl"
13976 shlibpath_var=SHLIB_PATH
13977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 ;;
13981 esac
13982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13983 postinstall_cmds='chmod 555 $lib'
13984 ;;
13985
13986 interix[3-9]*)
13987 version_type=linux
13988 need_lib_prefix=no
13989 need_version=no
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13993 shlibpath_var=LD_LIBRARY_PATH
13994 shlibpath_overrides_runpath=no
13995 hardcode_into_libs=yes
13996 ;;
13997
13998 irix5* | irix6* | nonstopux*)
13999 case $host_os in
14000 nonstopux*) version_type=nonstopux ;;
14001 *)
14002 if test "$lt_cv_prog_gnu_ld" = yes; then
14003 version_type=linux
14004 else
14005 version_type=irix
14006 fi ;;
14007 esac
14008 need_lib_prefix=no
14009 need_version=no
14010 soname_spec='${libname}${release}${shared_ext}$major'
14011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14012 case $host_os in
14013 irix5* | nonstopux*)
14014 libsuff= shlibsuff=
14015 ;;
14016 *)
14017 case $LD in # libtool.m4 will add one of these switches to LD
14018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14019 libsuff= shlibsuff= libmagic=32-bit;;
14020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14021 libsuff=32 shlibsuff=N32 libmagic=N32;;
14022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14023 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14024 *) libsuff= shlibsuff= libmagic=never-match;;
14025 esac
14026 ;;
14027 esac
14028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14029 shlibpath_overrides_runpath=no
14030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14032 hardcode_into_libs=yes
14033 ;;
14034
14035 # No shared lib support for Linux oldld, aout, or coff.
14036 linux*oldld* | linux*aout* | linux*coff*)
14037 dynamic_linker=no
14038 ;;
14039
14040 # This must be Linux ELF.
14041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14048 shlibpath_var=LD_LIBRARY_PATH
14049 shlibpath_overrides_runpath=no
14050 # Some binutils ld are patched to set DT_RUNPATH
14051 save_LDFLAGS=$LDFLAGS
14052 save_libdir=$libdir
14053 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14054 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057
14058 int
14059 main ()
14060 {
14061
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_cxx_try_link "$LINENO"; then :
14067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14068 shlibpath_overrides_runpath=yes
14069 fi
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LDFLAGS=$save_LDFLAGS
14074 libdir=$save_libdir
14075
14076 # This implies no fast_install, which is unacceptable.
14077 # Some rework will be needed to allow for fast_install
14078 # before this can be enabled.
14079 hardcode_into_libs=yes
14080
14081 # Append ld.so.conf contents to the search path
14082 if test -f /etc/ld.so.conf; then
14083 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' ' '`
14084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14085 fi
14086
14087 # We used to test for /lib/ld.so.1 and disable shared libraries on
14088 # powerpc, because MkLinux only supported shared libraries with the
14089 # GNU dynamic linker. Since this was broken with cross compilers,
14090 # most powerpc-linux boxes support dynamic linking these days and
14091 # people can always --disable-shared, the test was removed, and we
14092 # assume the GNU/Linux dynamic linker is in use.
14093 dynamic_linker='GNU/Linux ld.so'
14094 ;;
14095
14096 netbsdelf*-gnu)
14097 version_type=linux
14098 need_lib_prefix=no
14099 need_version=no
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 shlibpath_var=LD_LIBRARY_PATH
14103 shlibpath_overrides_runpath=no
14104 hardcode_into_libs=yes
14105 dynamic_linker='NetBSD ld.elf_so'
14106 ;;
14107
14108 netbsd*)
14109 version_type=sunos
14110 need_lib_prefix=no
14111 need_version=no
14112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14115 dynamic_linker='NetBSD (a.out) ld.so'
14116 else
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 dynamic_linker='NetBSD ld.elf_so'
14120 fi
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes
14123 hardcode_into_libs=yes
14124 ;;
14125
14126 newsos6)
14127 version_type=linux
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 ;;
14132
14133 *nto* | *qnx*)
14134 version_type=qnx
14135 need_lib_prefix=no
14136 need_version=no
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath=no
14141 hardcode_into_libs=yes
14142 dynamic_linker='ldqnx.so'
14143 ;;
14144
14145 openbsd*)
14146 version_type=sunos
14147 sys_lib_dlsearch_path_spec="/usr/lib"
14148 need_lib_prefix=no
14149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14150 case $host_os in
14151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14152 *) need_version=no ;;
14153 esac
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14158 case $host_os in
14159 openbsd2.[89] | openbsd2.[89].*)
14160 shlibpath_overrides_runpath=no
14161 ;;
14162 *)
14163 shlibpath_overrides_runpath=yes
14164 ;;
14165 esac
14166 else
14167 shlibpath_overrides_runpath=yes
14168 fi
14169 ;;
14170
14171 os2*)
14172 libname_spec='$name'
14173 shrext_cmds=".dll"
14174 need_lib_prefix=no
14175 library_names_spec='$libname${shared_ext} $libname.a'
14176 dynamic_linker='OS/2 ld.exe'
14177 shlibpath_var=LIBPATH
14178 ;;
14179
14180 osf3* | osf4* | osf5*)
14181 version_type=osf
14182 need_lib_prefix=no
14183 need_version=no
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14189 ;;
14190
14191 rdos*)
14192 dynamic_linker=no
14193 ;;
14194
14195 solaris*)
14196 version_type=linux
14197 need_lib_prefix=no
14198 need_version=no
14199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 shlibpath_var=LD_LIBRARY_PATH
14202 shlibpath_overrides_runpath=yes
14203 hardcode_into_libs=yes
14204 # ldd complains unless libraries are executable
14205 postinstall_cmds='chmod +x $lib'
14206 ;;
14207
14208 sunos4*)
14209 version_type=sunos
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 shlibpath_overrides_runpath=yes
14214 if test "$with_gnu_ld" = yes; then
14215 need_lib_prefix=no
14216 fi
14217 need_version=yes
14218 ;;
14219
14220 sysv4 | sysv4.3*)
14221 version_type=linux
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 case $host_vendor in
14226 sni)
14227 shlibpath_overrides_runpath=no
14228 need_lib_prefix=no
14229 runpath_var=LD_RUN_PATH
14230 ;;
14231 siemens)
14232 need_lib_prefix=no
14233 ;;
14234 motorola)
14235 need_lib_prefix=no
14236 need_version=no
14237 shlibpath_overrides_runpath=no
14238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14239 ;;
14240 esac
14241 ;;
14242
14243 sysv4*MP*)
14244 if test -d /usr/nec ;then
14245 version_type=linux
14246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14247 soname_spec='$libname${shared_ext}.$major'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 fi
14250 ;;
14251
14252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14253 version_type=freebsd-elf
14254 need_lib_prefix=no
14255 need_version=no
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 shlibpath_overrides_runpath=yes
14260 hardcode_into_libs=yes
14261 if test "$with_gnu_ld" = yes; then
14262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14263 else
14264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14265 case $host_os in
14266 sco3.2v5*)
14267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14268 ;;
14269 esac
14270 fi
14271 sys_lib_dlsearch_path_spec='/usr/lib'
14272 ;;
14273
14274 tpf*)
14275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14276 version_type=linux
14277 need_lib_prefix=no
14278 need_version=no
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=no
14282 hardcode_into_libs=yes
14283 ;;
14284
14285 uts4*)
14286 version_type=linux
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 shlibpath_var=LD_LIBRARY_PATH
14290 ;;
14291
14292 *)
14293 dynamic_linker=no
14294 ;;
14295 esac
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14297 $as_echo "$dynamic_linker" >&6; }
14298 test "$dynamic_linker" = no && can_build_shared=no
14299
14300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14301 if test "$GCC" = yes; then
14302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14303 fi
14304
14305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14307 fi
14308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14310 fi
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14348 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14349 hardcode_action_CXX=
14350 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14351 test -n "$runpath_var_CXX" ||
14352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14353
14354 # We can hardcode non-existent directories.
14355 if test "$hardcode_direct_CXX" != no &&
14356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14357 # have to relink, otherwise we might link with an installed library
14358 # when we should be linking with a yet-to-be-installed one
14359 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14360 test "$hardcode_minus_L_CXX" != no; then
14361 # Linking always hardcodes the temporary library directory.
14362 hardcode_action_CXX=relink
14363 else
14364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14365 hardcode_action_CXX=immediate
14366 fi
14367 else
14368 # We cannot hardcode anything, or else we can only hardcode existing
14369 # directories.
14370 hardcode_action_CXX=unsupported
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14373 $as_echo "$hardcode_action_CXX" >&6; }
14374
14375 if test "$hardcode_action_CXX" = relink ||
14376 test "$inherit_rpath_CXX" = yes; then
14377 # Fast installation is not supported
14378 enable_fast_install=no
14379 elif test "$shlibpath_overrides_runpath" = yes ||
14380 test "$enable_shared" = no; then
14381 # Fast installation is not necessary
14382 enable_fast_install=needless
14383 fi
14384
14385
14386
14387
14388
14389
14390
14391 fi # test -n "$compiler"
14392
14393 CC=$lt_save_CC
14394 LDCXX=$LD
14395 LD=$lt_save_LD
14396 GCC=$lt_save_GCC
14397 with_gnu_ld=$lt_save_with_gnu_ld
14398 lt_cv_path_LDCXX=$lt_cv_path_LD
14399 lt_cv_path_LD=$lt_save_path_LD
14400 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14401 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14402 fi # test "$_lt_caught_CXX_error" != yes
14403
14404 ac_ext=c
14405 ac_cpp='$CPP $CPPFLAGS'
14406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14409
14410
14411 # Find a good install program. We prefer a C program (faster),
14412 # so one script is as good as another. But avoid the broken or
14413 # incompatible versions:
14414 # SysV /etc/install, /usr/sbin/install
14415 # SunOS /usr/etc/install
14416 # IRIX /sbin/install
14417 # AIX /bin/install
14418 # AmigaOS /C/install, which installs bootblocks on floppy discs
14419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14422 # OS/2's system install, which has a completely different semantic
14423 # ./install, which can be erroneously created by make from ./install.sh.
14424 # Reject install programs that cannot install multiple files.
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14426 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14427 if test -z "$INSTALL"; then
14428 if test "${ac_cv_path_install+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14433 do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 # Account for people who put trailing slashes in PATH elements.
14437 case $as_dir/ in #((
14438 ./ | .// | /[cC]/* | \
14439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14441 /usr/ucb/* ) ;;
14442 *)
14443 # OSF1 and SCO ODT 3.0 have their own names for install.
14444 # Don't use installbsd from OSF since it installs stuff as root
14445 # by default.
14446 for ac_prog in ginstall scoinst install; do
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14449 if test $ac_prog = install &&
14450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14451 # AIX install. It has an incompatible calling convention.
14452 :
14453 elif test $ac_prog = install &&
14454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14455 # program-specific install script used by HP pwplus--don't use.
14456 :
14457 else
14458 rm -rf conftest.one conftest.two conftest.dir
14459 echo one > conftest.one
14460 echo two > conftest.two
14461 mkdir conftest.dir
14462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14463 test -s conftest.one && test -s conftest.two &&
14464 test -s conftest.dir/conftest.one &&
14465 test -s conftest.dir/conftest.two
14466 then
14467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14468 break 3
14469 fi
14470 fi
14471 fi
14472 done
14473 done
14474 ;;
14475 esac
14476
14477 done
14478 IFS=$as_save_IFS
14479
14480 rm -rf conftest.one conftest.two conftest.dir
14481
14482 fi
14483 if test "${ac_cv_path_install+set}" = set; then
14484 INSTALL=$ac_cv_path_install
14485 else
14486 # As a last resort, use the slow shell script. Don't cache a
14487 # value for INSTALL within a source directory, because that will
14488 # break other packages using the cache if that directory is
14489 # removed, or if the value is a relative name.
14490 INSTALL=$ac_install_sh
14491 fi
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14494 $as_echo "$INSTALL" >&6; }
14495
14496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14497 # It thinks the first close brace ends the variable substitution.
14498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14499
14500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14501
14502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14503
14504
14505 if test "X$prefix" = "XNONE"; then
14506 acl_final_prefix="$ac_default_prefix"
14507 else
14508 acl_final_prefix="$prefix"
14509 fi
14510 if test "X$exec_prefix" = "XNONE"; then
14511 acl_final_exec_prefix='${prefix}'
14512 else
14513 acl_final_exec_prefix="$exec_prefix"
14514 fi
14515 acl_save_prefix="$prefix"
14516 prefix="$acl_final_prefix"
14517 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14518 prefix="$acl_save_prefix"
14519
14520
14521 # Check whether --with-gnu-ld was given.
14522 if test "${with_gnu_ld+set}" = set; then :
14523 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14524 else
14525 with_gnu_ld=no
14526 fi
14527
14528 # Prepare PATH_SEPARATOR.
14529 # The user is always right.
14530 if test "${PATH_SEPARATOR+set}" != set; then
14531 echo "#! /bin/sh" >conf$$.sh
14532 echo "exit 0" >>conf$$.sh
14533 chmod +x conf$$.sh
14534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14535 PATH_SEPARATOR=';'
14536 else
14537 PATH_SEPARATOR=:
14538 fi
14539 rm -f conf$$.sh
14540 fi
14541 ac_prog=ld
14542 if test "$GCC" = yes; then
14543 # Check if gcc -print-prog-name=ld gives a path.
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14545 $as_echo_n "checking for ld used by GCC... " >&6; }
14546 case $host in
14547 *-*-mingw*)
14548 # gcc leaves a trailing carriage return which upsets mingw
14549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14550 *)
14551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14552 esac
14553 case $ac_prog in
14554 # Accept absolute paths.
14555 [\\/]* | [A-Za-z]:[\\/]*)
14556 re_direlt='/[^/][^/]*/\.\./'
14557 # Canonicalize the path of ld
14558 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14559 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14560 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14561 done
14562 test -z "$LD" && LD="$ac_prog"
14563 ;;
14564 "")
14565 # If it fails, then pretend we aren't using GCC.
14566 ac_prog=ld
14567 ;;
14568 *)
14569 # If it is relative, then search for the first ld in PATH.
14570 with_gnu_ld=unknown
14571 ;;
14572 esac
14573 elif test "$with_gnu_ld" = yes; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14575 $as_echo_n "checking for GNU ld... " >&6; }
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14578 $as_echo_n "checking for non-GNU ld... " >&6; }
14579 fi
14580 if test "${acl_cv_path_LD+set}" = set; then :
14581 $as_echo_n "(cached) " >&6
14582 else
14583 if test -z "$LD"; then
14584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14585 for ac_dir in $PATH; do
14586 test -z "$ac_dir" && ac_dir=.
14587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14588 acl_cv_path_LD="$ac_dir/$ac_prog"
14589 # Check to see if the program is GNU ld. I'd rather use --version,
14590 # but apparently some GNU ld's only accept -v.
14591 # Break only if it was the GNU/non-GNU ld that we prefer.
14592 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14593 *GNU* | *'with BFD'*)
14594 test "$with_gnu_ld" != no && break ;;
14595 *)
14596 test "$with_gnu_ld" != yes && break ;;
14597 esac
14598 fi
14599 done
14600 IFS="$ac_save_ifs"
14601 else
14602 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14603 fi
14604 fi
14605
14606 LD="$acl_cv_path_LD"
14607 if test -n "$LD"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14609 $as_echo "$LD" >&6; }
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14613 fi
14614 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14616 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14617 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14621 case `$LD -v 2>&1 </dev/null` in
14622 *GNU* | *'with BFD'*)
14623 acl_cv_prog_gnu_ld=yes ;;
14624 *)
14625 acl_cv_prog_gnu_ld=no ;;
14626 esac
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14629 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14630 with_gnu_ld=$acl_cv_prog_gnu_ld
14631
14632
14633
14634
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14636 $as_echo_n "checking for shared library run path origin... " >&6; }
14637 if test "${acl_cv_rpath+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640
14641 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14642 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14643 . ./conftest.sh
14644 rm -f ./conftest.sh
14645 acl_cv_rpath=done
14646
14647 fi
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14649 $as_echo "$acl_cv_rpath" >&6; }
14650 wl="$acl_cv_wl"
14651 acl_libext="$acl_cv_libext"
14652 acl_shlibext="$acl_cv_shlibext"
14653 acl_libname_spec="$acl_cv_libname_spec"
14654 acl_library_names_spec="$acl_cv_library_names_spec"
14655 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14656 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14657 acl_hardcode_direct="$acl_cv_hardcode_direct"
14658 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14659 # Check whether --enable-rpath was given.
14660 if test "${enable_rpath+set}" = set; then :
14661 enableval=$enable_rpath; :
14662 else
14663 enable_rpath=yes
14664 fi
14665
14666
14667
14668 acl_libdirstem=lib
14669 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14670 if test -n "$searchpath"; then
14671 acl_save_IFS="${IFS= }"; IFS=":"
14672 for searchdir in $searchpath; do
14673 if test -d "$searchdir"; then
14674 case "$searchdir" in
14675 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14676 *) searchdir=`cd "$searchdir" && pwd`
14677 case "$searchdir" in
14678 */lib64 ) acl_libdirstem=lib64 ;;
14679 esac ;;
14680 esac
14681 fi
14682 done
14683 IFS="$acl_save_IFS"
14684 fi
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 use_additional=yes
14695
14696 acl_save_prefix="$prefix"
14697 prefix="$acl_final_prefix"
14698 acl_save_exec_prefix="$exec_prefix"
14699 exec_prefix="$acl_final_exec_prefix"
14700
14701 eval additional_includedir=\"$includedir\"
14702 eval additional_libdir=\"$libdir\"
14703
14704 exec_prefix="$acl_save_exec_prefix"
14705 prefix="$acl_save_prefix"
14706
14707
14708 # Check whether --with-libiconv-prefix was given.
14709 if test "${with_libiconv_prefix+set}" = set; then :
14710 withval=$with_libiconv_prefix;
14711 if test "X$withval" = "Xno"; then
14712 use_additional=no
14713 else
14714 if test "X$withval" = "X"; then
14715
14716 acl_save_prefix="$prefix"
14717 prefix="$acl_final_prefix"
14718 acl_save_exec_prefix="$exec_prefix"
14719 exec_prefix="$acl_final_exec_prefix"
14720
14721 eval additional_includedir=\"$includedir\"
14722 eval additional_libdir=\"$libdir\"
14723
14724 exec_prefix="$acl_save_exec_prefix"
14725 prefix="$acl_save_prefix"
14726
14727 else
14728 additional_includedir="$withval/include"
14729 additional_libdir="$withval/$acl_libdirstem"
14730 fi
14731 fi
14732
14733 fi
14734
14735 LIBICONV=
14736 LTLIBICONV=
14737 INCICONV=
14738 LIBICONV_PREFIX=
14739 rpathdirs=
14740 ltrpathdirs=
14741 names_already_handled=
14742 names_next_round='iconv '
14743 while test -n "$names_next_round"; do
14744 names_this_round="$names_next_round"
14745 names_next_round=
14746 for name in $names_this_round; do
14747 already_handled=
14748 for n in $names_already_handled; do
14749 if test "$n" = "$name"; then
14750 already_handled=yes
14751 break
14752 fi
14753 done
14754 if test -z "$already_handled"; then
14755 names_already_handled="$names_already_handled $name"
14756 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14757 eval value=\"\$HAVE_LIB$uppername\"
14758 if test -n "$value"; then
14759 if test "$value" = yes; then
14760 eval value=\"\$LIB$uppername\"
14761 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14762 eval value=\"\$LTLIB$uppername\"
14763 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14764 else
14765 :
14766 fi
14767 else
14768 found_dir=
14769 found_la=
14770 found_so=
14771 found_a=
14772 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14773 if test -n "$acl_shlibext"; then
14774 shrext=".$acl_shlibext" # typically: shrext=.so
14775 else
14776 shrext=
14777 fi
14778 if test $use_additional = yes; then
14779 dir="$additional_libdir"
14780 if test -n "$acl_shlibext"; then
14781 if test -f "$dir/$libname$shrext"; then
14782 found_dir="$dir"
14783 found_so="$dir/$libname$shrext"
14784 else
14785 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14786 ver=`(cd "$dir" && \
14787 for f in "$libname$shrext".*; do echo "$f"; done \
14788 | sed -e "s,^$libname$shrext\\\\.,," \
14789 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14790 | sed 1q ) 2>/dev/null`
14791 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14792 found_dir="$dir"
14793 found_so="$dir/$libname$shrext.$ver"
14794 fi
14795 else
14796 eval library_names=\"$acl_library_names_spec\"
14797 for f in $library_names; do
14798 if test -f "$dir/$f"; then
14799 found_dir="$dir"
14800 found_so="$dir/$f"
14801 break
14802 fi
14803 done
14804 fi
14805 fi
14806 fi
14807 if test "X$found_dir" = "X"; then
14808 if test -f "$dir/$libname.$acl_libext"; then
14809 found_dir="$dir"
14810 found_a="$dir/$libname.$acl_libext"
14811 fi
14812 fi
14813 if test "X$found_dir" != "X"; then
14814 if test -f "$dir/$libname.la"; then
14815 found_la="$dir/$libname.la"
14816 fi
14817 fi
14818 fi
14819 if test "X$found_dir" = "X"; then
14820 for x in $LDFLAGS $LTLIBICONV; do
14821
14822 acl_save_prefix="$prefix"
14823 prefix="$acl_final_prefix"
14824 acl_save_exec_prefix="$exec_prefix"
14825 exec_prefix="$acl_final_exec_prefix"
14826 eval x=\"$x\"
14827 exec_prefix="$acl_save_exec_prefix"
14828 prefix="$acl_save_prefix"
14829
14830 case "$x" in
14831 -L*)
14832 dir=`echo "X$x" | sed -e 's/^X-L//'`
14833 if test -n "$acl_shlibext"; then
14834 if test -f "$dir/$libname$shrext"; then
14835 found_dir="$dir"
14836 found_so="$dir/$libname$shrext"
14837 else
14838 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14839 ver=`(cd "$dir" && \
14840 for f in "$libname$shrext".*; do echo "$f"; done \
14841 | sed -e "s,^$libname$shrext\\\\.,," \
14842 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14843 | sed 1q ) 2>/dev/null`
14844 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14845 found_dir="$dir"
14846 found_so="$dir/$libname$shrext.$ver"
14847 fi
14848 else
14849 eval library_names=\"$acl_library_names_spec\"
14850 for f in $library_names; do
14851 if test -f "$dir/$f"; then
14852 found_dir="$dir"
14853 found_so="$dir/$f"
14854 break
14855 fi
14856 done
14857 fi
14858 fi
14859 fi
14860 if test "X$found_dir" = "X"; then
14861 if test -f "$dir/$libname.$acl_libext"; then
14862 found_dir="$dir"
14863 found_a="$dir/$libname.$acl_libext"
14864 fi
14865 fi
14866 if test "X$found_dir" != "X"; then
14867 if test -f "$dir/$libname.la"; then
14868 found_la="$dir/$libname.la"
14869 fi
14870 fi
14871 ;;
14872 esac
14873 if test "X$found_dir" != "X"; then
14874 break
14875 fi
14876 done
14877 fi
14878 if test "X$found_dir" != "X"; then
14879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14880 if test "X$found_so" != "X"; then
14881 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14882 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14883 else
14884 haveit=
14885 for x in $ltrpathdirs; do
14886 if test "X$x" = "X$found_dir"; then
14887 haveit=yes
14888 break
14889 fi
14890 done
14891 if test -z "$haveit"; then
14892 ltrpathdirs="$ltrpathdirs $found_dir"
14893 fi
14894 if test "$acl_hardcode_direct" = yes; then
14895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14896 else
14897 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14899 haveit=
14900 for x in $rpathdirs; do
14901 if test "X$x" = "X$found_dir"; then
14902 haveit=yes
14903 break
14904 fi
14905 done
14906 if test -z "$haveit"; then
14907 rpathdirs="$rpathdirs $found_dir"
14908 fi
14909 else
14910 haveit=
14911 for x in $LDFLAGS $LIBICONV; do
14912
14913 acl_save_prefix="$prefix"
14914 prefix="$acl_final_prefix"
14915 acl_save_exec_prefix="$exec_prefix"
14916 exec_prefix="$acl_final_exec_prefix"
14917 eval x=\"$x\"
14918 exec_prefix="$acl_save_exec_prefix"
14919 prefix="$acl_save_prefix"
14920
14921 if test "X$x" = "X-L$found_dir"; then
14922 haveit=yes
14923 break
14924 fi
14925 done
14926 if test -z "$haveit"; then
14927 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14928 fi
14929 if test "$acl_hardcode_minus_L" != no; then
14930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14931 else
14932 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14933 fi
14934 fi
14935 fi
14936 fi
14937 else
14938 if test "X$found_a" != "X"; then
14939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14940 else
14941 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14942 fi
14943 fi
14944 additional_includedir=
14945 case "$found_dir" in
14946 */$acl_libdirstem | */$acl_libdirstem/)
14947 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14948 LIBICONV_PREFIX="$basedir"
14949 additional_includedir="$basedir/include"
14950 ;;
14951 esac
14952 if test "X$additional_includedir" != "X"; then
14953 if test "X$additional_includedir" != "X/usr/include"; then
14954 haveit=
14955 if test "X$additional_includedir" = "X/usr/local/include"; then
14956 if test -n "$GCC"; then
14957 case $host_os in
14958 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14959 esac
14960 fi
14961 fi
14962 if test -z "$haveit"; then
14963 for x in $CPPFLAGS $INCICONV; do
14964
14965 acl_save_prefix="$prefix"
14966 prefix="$acl_final_prefix"
14967 acl_save_exec_prefix="$exec_prefix"
14968 exec_prefix="$acl_final_exec_prefix"
14969 eval x=\"$x\"
14970 exec_prefix="$acl_save_exec_prefix"
14971 prefix="$acl_save_prefix"
14972
14973 if test "X$x" = "X-I$additional_includedir"; then
14974 haveit=yes
14975 break
14976 fi
14977 done
14978 if test -z "$haveit"; then
14979 if test -d "$additional_includedir"; then
14980 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14981 fi
14982 fi
14983 fi
14984 fi
14985 fi
14986 if test -n "$found_la"; then
14987 save_libdir="$libdir"
14988 case "$found_la" in
14989 */* | *\\*) . "$found_la" ;;
14990 *) . "./$found_la" ;;
14991 esac
14992 libdir="$save_libdir"
14993 for dep in $dependency_libs; do
14994 case "$dep" in
14995 -L*)
14996 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14997 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14998 haveit=
14999 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15000 if test -n "$GCC"; then
15001 case $host_os in
15002 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15003 esac
15004 fi
15005 fi
15006 if test -z "$haveit"; then
15007 haveit=
15008 for x in $LDFLAGS $LIBICONV; do
15009
15010 acl_save_prefix="$prefix"
15011 prefix="$acl_final_prefix"
15012 acl_save_exec_prefix="$exec_prefix"
15013 exec_prefix="$acl_final_exec_prefix"
15014 eval x=\"$x\"
15015 exec_prefix="$acl_save_exec_prefix"
15016 prefix="$acl_save_prefix"
15017
15018 if test "X$x" = "X-L$additional_libdir"; then
15019 haveit=yes
15020 break
15021 fi
15022 done
15023 if test -z "$haveit"; then
15024 if test -d "$additional_libdir"; then
15025 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15026 fi
15027 fi
15028 haveit=
15029 for x in $LDFLAGS $LTLIBICONV; do
15030
15031 acl_save_prefix="$prefix"
15032 prefix="$acl_final_prefix"
15033 acl_save_exec_prefix="$exec_prefix"
15034 exec_prefix="$acl_final_exec_prefix"
15035 eval x=\"$x\"
15036 exec_prefix="$acl_save_exec_prefix"
15037 prefix="$acl_save_prefix"
15038
15039 if test "X$x" = "X-L$additional_libdir"; then
15040 haveit=yes
15041 break
15042 fi
15043 done
15044 if test -z "$haveit"; then
15045 if test -d "$additional_libdir"; then
15046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15047 fi
15048 fi
15049 fi
15050 fi
15051 ;;
15052 -R*)
15053 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15054 if test "$enable_rpath" != no; then
15055 haveit=
15056 for x in $rpathdirs; do
15057 if test "X$x" = "X$dir"; then
15058 haveit=yes
15059 break
15060 fi
15061 done
15062 if test -z "$haveit"; then
15063 rpathdirs="$rpathdirs $dir"
15064 fi
15065 haveit=
15066 for x in $ltrpathdirs; do
15067 if test "X$x" = "X$dir"; then
15068 haveit=yes
15069 break
15070 fi
15071 done
15072 if test -z "$haveit"; then
15073 ltrpathdirs="$ltrpathdirs $dir"
15074 fi
15075 fi
15076 ;;
15077 -l*)
15078 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15079 ;;
15080 *.la)
15081 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15082 ;;
15083 *)
15084 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15086 ;;
15087 esac
15088 done
15089 fi
15090 else
15091 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15092 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15093 fi
15094 fi
15095 fi
15096 done
15097 done
15098 if test "X$rpathdirs" != "X"; then
15099 if test -n "$acl_hardcode_libdir_separator"; then
15100 alldirs=
15101 for found_dir in $rpathdirs; do
15102 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15103 done
15104 acl_save_libdir="$libdir"
15105 libdir="$alldirs"
15106 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15107 libdir="$acl_save_libdir"
15108 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15109 else
15110 for found_dir in $rpathdirs; do
15111 acl_save_libdir="$libdir"
15112 libdir="$found_dir"
15113 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15114 libdir="$acl_save_libdir"
15115 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15116 done
15117 fi
15118 fi
15119 if test "X$ltrpathdirs" != "X"; then
15120 for found_dir in $ltrpathdirs; do
15121 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15122 done
15123 fi
15124
15125
15126
15127
15128
15129
15130
15131 am_save_CPPFLAGS="$CPPFLAGS"
15132
15133 for element in $INCICONV; do
15134 haveit=
15135 for x in $CPPFLAGS; do
15136
15137 acl_save_prefix="$prefix"
15138 prefix="$acl_final_prefix"
15139 acl_save_exec_prefix="$exec_prefix"
15140 exec_prefix="$acl_final_exec_prefix"
15141 eval x=\"$x\"
15142 exec_prefix="$acl_save_exec_prefix"
15143 prefix="$acl_save_prefix"
15144
15145 if test "X$x" = "X$element"; then
15146 haveit=yes
15147 break
15148 fi
15149 done
15150 if test -z "$haveit"; then
15151 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15152 fi
15153 done
15154
15155
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15157 $as_echo_n "checking for iconv... " >&6; }
15158 if test "${am_cv_func_iconv+set}" = set; then :
15159 $as_echo_n "(cached) " >&6
15160 else
15161
15162 am_cv_func_iconv="no, consider installing GNU libiconv"
15163 am_cv_lib_iconv=no
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <stdlib.h>
15167 #include <iconv.h>
15168 int
15169 main ()
15170 {
15171 iconv_t cd = iconv_open("","");
15172 iconv(cd,NULL,NULL,NULL,NULL);
15173 iconv_close(cd);
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"; then :
15179 am_cv_func_iconv=yes
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15183 if test "$am_cv_func_iconv" != yes; then
15184 am_save_LIBS="$LIBS"
15185 LIBS="$LIBS $LIBICONV"
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <stdlib.h>
15189 #include <iconv.h>
15190 int
15191 main ()
15192 {
15193 iconv_t cd = iconv_open("","");
15194 iconv(cd,NULL,NULL,NULL,NULL);
15195 iconv_close(cd);
15196 ;
15197 return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201 am_cv_lib_iconv=yes
15202 am_cv_func_iconv=yes
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LIBS="$am_save_LIBS"
15207 fi
15208
15209 fi
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15211 $as_echo "$am_cv_func_iconv" >&6; }
15212 if test "$am_cv_func_iconv" = yes; then
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15214 $as_echo_n "checking for working iconv... " >&6; }
15215 if test "${am_cv_func_iconv_works+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218
15219 am_save_LIBS="$LIBS"
15220 if test $am_cv_lib_iconv = yes; then
15221 LIBS="$LIBS $LIBICONV"
15222 fi
15223 if test "$cross_compiling" = yes; then :
15224 case "$host_os" in
15225 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15226 *) am_cv_func_iconv_works="guessing yes" ;;
15227 esac
15228 else
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231
15232 #include <iconv.h>
15233 #include <string.h>
15234 int main ()
15235 {
15236 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15237 returns. */
15238 {
15239 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15240 if (cd_utf8_to_88591 != (iconv_t)(-1))
15241 {
15242 static const char input[] = "\342\202\254"; /* EURO SIGN */
15243 char buf[10];
15244 const char *inptr = input;
15245 size_t inbytesleft = strlen (input);
15246 char *outptr = buf;
15247 size_t outbytesleft = sizeof (buf);
15248 size_t res = iconv (cd_utf8_to_88591,
15249 (char **) &inptr, &inbytesleft,
15250 &outptr, &outbytesleft);
15251 if (res == 0)
15252 return 1;
15253 }
15254 }
15255 #if 0 /* This bug could be worked around by the caller. */
15256 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15257 {
15258 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15259 if (cd_88591_to_utf8 != (iconv_t)(-1))
15260 {
15261 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15262 char buf[50];
15263 const char *inptr = input;
15264 size_t inbytesleft = strlen (input);
15265 char *outptr = buf;
15266 size_t outbytesleft = sizeof (buf);
15267 size_t res = iconv (cd_88591_to_utf8,
15268 (char **) &inptr, &inbytesleft,
15269 &outptr, &outbytesleft);
15270 if ((int)res > 0)
15271 return 1;
15272 }
15273 }
15274 #endif
15275 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15276 provided. */
15277 if (/* Try standardized names. */
15278 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15279 /* Try IRIX, OSF/1 names. */
15280 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15281 /* Try AIX names. */
15282 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15283 /* Try HP-UX names. */
15284 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15285 return 1;
15286 return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_c_try_run "$LINENO"; then :
15290 am_cv_func_iconv_works=yes
15291 else
15292 am_cv_func_iconv_works=no
15293 fi
15294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15295 conftest.$ac_objext conftest.beam conftest.$ac_ext
15296 fi
15297
15298 LIBS="$am_save_LIBS"
15299
15300 fi
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15302 $as_echo "$am_cv_func_iconv_works" >&6; }
15303 case "$am_cv_func_iconv_works" in
15304 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15305 *) am_func_iconv=yes ;;
15306 esac
15307 else
15308 am_func_iconv=no am_cv_lib_iconv=no
15309 fi
15310 if test "$am_func_iconv" = yes; then
15311
15312 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15313
15314 fi
15315 if test "$am_cv_lib_iconv" = yes; then
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15317 $as_echo_n "checking how to link with libiconv... " >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15319 $as_echo "$LIBICONV" >&6; }
15320 else
15321 CPPFLAGS="$am_save_CPPFLAGS"
15322 LIBICONV=
15323 LTLIBICONV=
15324 fi
15325
15326
15327
15328 if test "$am_cv_func_iconv" = yes; then
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15330 $as_echo_n "checking for iconv declaration... " >&6; }
15331 if test "${am_cv_proto_iconv+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337
15338 #include <stdlib.h>
15339 #include <iconv.h>
15340 extern
15341 #ifdef __cplusplus
15342 "C"
15343 #endif
15344 #if defined(__STDC__) || defined(__cplusplus)
15345 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15346 #else
15347 size_t iconv();
15348 #endif
15349
15350 int
15351 main ()
15352 {
15353
15354 ;
15355 return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_compile "$LINENO"; then :
15359 am_cv_proto_iconv_arg1=""
15360 else
15361 am_cv_proto_iconv_arg1="const"
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 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);"
15365 fi
15366
15367 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15369 }$am_cv_proto_iconv" >&5
15370 $as_echo "${ac_t:-
15371 }$am_cv_proto_iconv" >&6; }
15372
15373 cat >>confdefs.h <<_ACEOF
15374 #define ICONV_CONST $am_cv_proto_iconv_arg1
15375 _ACEOF
15376
15377 fi
15378
15379 case $am_cv_func_iconv in #(
15380 yes) :
15381 ;; #(
15382 *) :
15383 as_fn_error "You need iconv" "$LINENO" 5 ;;
15384 esac
15385
15386 pkg_failed=no
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15388 $as_echo_n "checking for WEBKIT... " >&6; }
15389
15390 if test -n "$PKG_CONFIG"; then
15391 if test -n "$WEBKIT_CFLAGS"; then
15392 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15393 else
15394 if test -n "$PKG_CONFIG" && \
15395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15396 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15397 ac_status=$?
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; }; then
15400 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15401 else
15402 pkg_failed=yes
15403 fi
15404 fi
15405 else
15406 pkg_failed=untried
15407 fi
15408 if test -n "$PKG_CONFIG"; then
15409 if test -n "$WEBKIT_LIBS"; then
15410 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15411 else
15412 if test -n "$PKG_CONFIG" && \
15413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15414 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15415 ac_status=$?
15416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15417 test $ac_status = 0; }; then
15418 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15419 else
15420 pkg_failed=yes
15421 fi
15422 fi
15423 else
15424 pkg_failed=untried
15425 fi
15426
15427
15428
15429 if test $pkg_failed = yes; then
15430
15431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15432 _pkg_short_errors_supported=yes
15433 else
15434 _pkg_short_errors_supported=no
15435 fi
15436 if test $_pkg_short_errors_supported = yes; then
15437 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15438 else
15439 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15440 fi
15441 # Put the nasty error message in config.log where it belongs
15442 echo "$WEBKIT_PKG_ERRORS" >&5
15443
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 $as_echo "no" >&6; }
15446
15447
15448 pkg_failed=no
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15450 $as_echo_n "checking for WEBKIT... " >&6; }
15451
15452 if test -n "$PKG_CONFIG"; then
15453 if test -n "$WEBKIT_CFLAGS"; then
15454 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15455 else
15456 if test -n "$PKG_CONFIG" && \
15457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15458 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15459 ac_status=$?
15460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15461 test $ac_status = 0; }; then
15462 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15463 else
15464 pkg_failed=yes
15465 fi
15466 fi
15467 else
15468 pkg_failed=untried
15469 fi
15470 if test -n "$PKG_CONFIG"; then
15471 if test -n "$WEBKIT_LIBS"; then
15472 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15473 else
15474 if test -n "$PKG_CONFIG" && \
15475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15476 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15477 ac_status=$?
15478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479 test $ac_status = 0; }; then
15480 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15481 else
15482 pkg_failed=yes
15483 fi
15484 fi
15485 else
15486 pkg_failed=untried
15487 fi
15488
15489
15490
15491 if test $pkg_failed = yes; then
15492
15493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15494 _pkg_short_errors_supported=yes
15495 else
15496 _pkg_short_errors_supported=no
15497 fi
15498 if test $_pkg_short_errors_supported = yes; then
15499 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15500 else
15501 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15502 fi
15503 # Put the nasty error message in config.log where it belongs
15504 echo "$WEBKIT_PKG_ERRORS" >&5
15505
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507 $as_echo "no" >&6; }
15508 WEBKIT=no
15509 elif test $pkg_failed = untried; then
15510 WEBKIT=no
15511 else
15512 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15513 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15515 $as_echo "yes" >&6; }
15516
15517 WEBKIT=yes
15518
15519 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15520 haveit=
15521 for x in $CXXFLAGS; do
15522
15523 acl_save_prefix="$prefix"
15524 prefix="$acl_final_prefix"
15525 acl_save_exec_prefix="$exec_prefix"
15526 exec_prefix="$acl_final_exec_prefix"
15527 eval x=\"$x\"
15528 exec_prefix="$acl_save_exec_prefix"
15529 prefix="$acl_save_prefix"
15530
15531 if test "X$x" = "X$element"; then
15532 haveit=yes
15533 break
15534 fi
15535 done
15536 if test -z "$haveit"; then
15537 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15538 fi
15539 done
15540
15541
15542 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15543 haveit=
15544 for x in $LIBS; do
15545
15546 acl_save_prefix="$prefix"
15547 prefix="$acl_final_prefix"
15548 acl_save_exec_prefix="$exec_prefix"
15549 exec_prefix="$acl_final_exec_prefix"
15550 eval x=\"$x\"
15551 exec_prefix="$acl_save_exec_prefix"
15552 prefix="$acl_save_prefix"
15553
15554 if test "X$x" = "X$element"; then
15555 haveit=yes
15556 break
15557 fi
15558 done
15559 if test -z "$haveit"; then
15560 LIBS="${LIBS}${LIBS:+ }$element"
15561 fi
15562 done
15563
15564
15565 fi
15566
15567 elif test $pkg_failed = untried; then
15568
15569
15570 pkg_failed=no
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15572 $as_echo_n "checking for WEBKIT... " >&6; }
15573
15574 if test -n "$PKG_CONFIG"; then
15575 if test -n "$WEBKIT_CFLAGS"; then
15576 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15577 else
15578 if test -n "$PKG_CONFIG" && \
15579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15580 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15581 ac_status=$?
15582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15583 test $ac_status = 0; }; then
15584 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15585 else
15586 pkg_failed=yes
15587 fi
15588 fi
15589 else
15590 pkg_failed=untried
15591 fi
15592 if test -n "$PKG_CONFIG"; then
15593 if test -n "$WEBKIT_LIBS"; then
15594 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15595 else
15596 if test -n "$PKG_CONFIG" && \
15597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15598 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15599 ac_status=$?
15600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15601 test $ac_status = 0; }; then
15602 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15603 else
15604 pkg_failed=yes
15605 fi
15606 fi
15607 else
15608 pkg_failed=untried
15609 fi
15610
15611
15612
15613 if test $pkg_failed = yes; then
15614
15615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15616 _pkg_short_errors_supported=yes
15617 else
15618 _pkg_short_errors_supported=no
15619 fi
15620 if test $_pkg_short_errors_supported = yes; then
15621 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15622 else
15623 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15624 fi
15625 # Put the nasty error message in config.log where it belongs
15626 echo "$WEBKIT_PKG_ERRORS" >&5
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 WEBKIT=no
15631 elif test $pkg_failed = untried; then
15632 WEBKIT=no
15633 else
15634 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15635 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15637 $as_echo "yes" >&6; }
15638
15639 WEBKIT=yes
15640
15641 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15642 haveit=
15643 for x in $CXXFLAGS; do
15644
15645 acl_save_prefix="$prefix"
15646 prefix="$acl_final_prefix"
15647 acl_save_exec_prefix="$exec_prefix"
15648 exec_prefix="$acl_final_exec_prefix"
15649 eval x=\"$x\"
15650 exec_prefix="$acl_save_exec_prefix"
15651 prefix="$acl_save_prefix"
15652
15653 if test "X$x" = "X$element"; then
15654 haveit=yes
15655 break
15656 fi
15657 done
15658 if test -z "$haveit"; then
15659 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15660 fi
15661 done
15662
15663
15664 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15665 haveit=
15666 for x in $LIBS; do
15667
15668 acl_save_prefix="$prefix"
15669 prefix="$acl_final_prefix"
15670 acl_save_exec_prefix="$exec_prefix"
15671 exec_prefix="$acl_final_exec_prefix"
15672 eval x=\"$x\"
15673 exec_prefix="$acl_save_exec_prefix"
15674 prefix="$acl_save_prefix"
15675
15676 if test "X$x" = "X$element"; then
15677 haveit=yes
15678 break
15679 fi
15680 done
15681 if test -z "$haveit"; then
15682 LIBS="${LIBS}${LIBS:+ }$element"
15683 fi
15684 done
15685
15686
15687 fi
15688
15689 else
15690 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15691 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15693 $as_echo "yes" >&6; }
15694
15695 WEBKIT=yes
15696
15697 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15698 haveit=
15699 for x in $CXXFLAGS; do
15700
15701 acl_save_prefix="$prefix"
15702 prefix="$acl_final_prefix"
15703 acl_save_exec_prefix="$exec_prefix"
15704 exec_prefix="$acl_final_exec_prefix"
15705 eval x=\"$x\"
15706 exec_prefix="$acl_save_exec_prefix"
15707 prefix="$acl_save_prefix"
15708
15709 if test "X$x" = "X$element"; then
15710 haveit=yes
15711 break
15712 fi
15713 done
15714 if test -z "$haveit"; then
15715 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15716 fi
15717 done
15718
15719
15720 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15721 haveit=
15722 for x in $LIBS; do
15723
15724 acl_save_prefix="$prefix"
15725 prefix="$acl_final_prefix"
15726 acl_save_exec_prefix="$exec_prefix"
15727 exec_prefix="$acl_final_exec_prefix"
15728 eval x=\"$x\"
15729 exec_prefix="$acl_save_exec_prefix"
15730 prefix="$acl_save_prefix"
15731
15732 if test "X$x" = "X$element"; then
15733 haveit=yes
15734 break
15735 fi
15736 done
15737 if test -z "$haveit"; then
15738 LIBS="${LIBS}${LIBS:+ }$element"
15739 fi
15740 done
15741
15742
15743 fi
15744 case $WEBKIT in #(
15745 yes) :
15746
15747 CY_EXECUTE=1
15748
15749
15750 pkg_failed=no
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
15752 $as_echo_n "checking for LIBFFI... " >&6; }
15753
15754 if test -n "$PKG_CONFIG"; then
15755 if test -n "$LIBFFI_CFLAGS"; then
15756 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15757 else
15758 if test -n "$PKG_CONFIG" && \
15759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15760 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15761 ac_status=$?
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }; then
15764 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15765 else
15766 pkg_failed=yes
15767 fi
15768 fi
15769 else
15770 pkg_failed=untried
15771 fi
15772 if test -n "$PKG_CONFIG"; then
15773 if test -n "$LIBFFI_LIBS"; then
15774 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15775 else
15776 if test -n "$PKG_CONFIG" && \
15777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15778 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15779 ac_status=$?
15780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15781 test $ac_status = 0; }; then
15782 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15783 else
15784 pkg_failed=yes
15785 fi
15786 fi
15787 else
15788 pkg_failed=untried
15789 fi
15790
15791
15792
15793 if test $pkg_failed = yes; then
15794
15795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15796 _pkg_short_errors_supported=yes
15797 else
15798 _pkg_short_errors_supported=no
15799 fi
15800 if test $_pkg_short_errors_supported = yes; then
15801 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
15802 else
15803 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
15804 fi
15805 # Put the nasty error message in config.log where it belongs
15806 echo "$LIBFFI_PKG_ERRORS" >&5
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15810
15811 for ac_header in ffi.h ffi/ffi.h
15812 do :
15813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15815 eval as_val=\$$as_ac_Header
15816 if test "x$as_val" = x""yes; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15819 _ACEOF
15820 break
15821 fi
15822
15823 done
15824
15825 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15826
15827 as_fn_error "You need libffi" "$LINENO" 5
15828
15829 fi
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15831 $as_echo_n "checking for library containing ffi_call... " >&6; }
15832 if test "${ac_cv_search_ffi_call+set}" = set; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 ac_func_search_save_LIBS=$LIBS
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838
15839 /* Override any GCC internal prototype to avoid an error.
15840 Use char because int might match the return type of a GCC
15841 builtin and then its argument prototype would still apply. */
15842 #ifdef __cplusplus
15843 extern "C"
15844 #endif
15845 char ffi_call ();
15846 int
15847 main ()
15848 {
15849 return ffi_call ();
15850 ;
15851 return 0;
15852 }
15853 _ACEOF
15854 for ac_lib in '' ffi; do
15855 if test -z "$ac_lib"; then
15856 ac_res="none required"
15857 else
15858 ac_res=-l$ac_lib
15859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15860 fi
15861 if ac_fn_c_try_link "$LINENO"; then :
15862 ac_cv_search_ffi_call=$ac_res
15863 fi
15864 rm -f core conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext
15866 if test "${ac_cv_search_ffi_call+set}" = set; then :
15867 break
15868 fi
15869 done
15870 if test "${ac_cv_search_ffi_call+set}" = set; then :
15871
15872 else
15873 ac_cv_search_ffi_call=no
15874 fi
15875 rm conftest.$ac_ext
15876 LIBS=$ac_func_search_save_LIBS
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15879 $as_echo "$ac_cv_search_ffi_call" >&6; }
15880 ac_res=$ac_cv_search_ffi_call
15881 if test "$ac_res" != no; then :
15882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15883
15884 fi
15885
15886 case $ac_cv_search_ffi_call in #(
15887 no) :
15888
15889 as_fn_error "You need libffi" "$LINENO" 5
15890 ;; #(
15891 *) :
15892 ;;
15893 esac
15894
15895 elif test $pkg_failed = untried; then
15896
15897 for ac_header in ffi.h ffi/ffi.h
15898 do :
15899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15901 eval as_val=\$$as_ac_Header
15902 if test "x$as_val" = x""yes; then :
15903 cat >>confdefs.h <<_ACEOF
15904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15905 _ACEOF
15906 break
15907 fi
15908
15909 done
15910
15911 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
15912
15913 as_fn_error "You need libffi" "$LINENO" 5
15914
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
15917 $as_echo_n "checking for library containing ffi_call... " >&6; }
15918 if test "${ac_cv_search_ffi_call+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 ac_func_search_save_LIBS=$LIBS
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15924
15925 /* Override any GCC internal prototype to avoid an error.
15926 Use char because int might match the return type of a GCC
15927 builtin and then its argument prototype would still apply. */
15928 #ifdef __cplusplus
15929 extern "C"
15930 #endif
15931 char ffi_call ();
15932 int
15933 main ()
15934 {
15935 return ffi_call ();
15936 ;
15937 return 0;
15938 }
15939 _ACEOF
15940 for ac_lib in '' ffi; do
15941 if test -z "$ac_lib"; then
15942 ac_res="none required"
15943 else
15944 ac_res=-l$ac_lib
15945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15946 fi
15947 if ac_fn_c_try_link "$LINENO"; then :
15948 ac_cv_search_ffi_call=$ac_res
15949 fi
15950 rm -f core conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext
15952 if test "${ac_cv_search_ffi_call+set}" = set; then :
15953 break
15954 fi
15955 done
15956 if test "${ac_cv_search_ffi_call+set}" = set; then :
15957
15958 else
15959 ac_cv_search_ffi_call=no
15960 fi
15961 rm conftest.$ac_ext
15962 LIBS=$ac_func_search_save_LIBS
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
15965 $as_echo "$ac_cv_search_ffi_call" >&6; }
15966 ac_res=$ac_cv_search_ffi_call
15967 if test "$ac_res" != no; then :
15968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15969
15970 fi
15971
15972 case $ac_cv_search_ffi_call in #(
15973 no) :
15974
15975 as_fn_error "You need libffi" "$LINENO" 5
15976 ;; #(
15977 *) :
15978 ;;
15979 esac
15980
15981 else
15982 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
15983 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15985 $as_echo "yes" >&6; }
15986
15987
15988 for element in `$PKG_CONFIG --cflags libffi`; do
15989 haveit=
15990 for x in $CXXFLAGS; do
15991
15992 acl_save_prefix="$prefix"
15993 prefix="$acl_final_prefix"
15994 acl_save_exec_prefix="$exec_prefix"
15995 exec_prefix="$acl_final_exec_prefix"
15996 eval x=\"$x\"
15997 exec_prefix="$acl_save_exec_prefix"
15998 prefix="$acl_save_prefix"
15999
16000 if test "X$x" = "X$element"; then
16001 haveit=yes
16002 break
16003 fi
16004 done
16005 if test -z "$haveit"; then
16006 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16007 fi
16008 done
16009
16010
16011 for element in `$PKG_CONFIG --libs libffi`; do
16012 haveit=
16013 for x in $LIBS; do
16014
16015 acl_save_prefix="$prefix"
16016 prefix="$acl_final_prefix"
16017 acl_save_exec_prefix="$exec_prefix"
16018 exec_prefix="$acl_final_exec_prefix"
16019 eval x=\"$x\"
16020 exec_prefix="$acl_save_exec_prefix"
16021 prefix="$acl_save_prefix"
16022
16023 if test "X$x" = "X$element"; then
16024 haveit=yes
16025 break
16026 fi
16027 done
16028 if test -z "$haveit"; then
16029 LIBS="${LIBS}${LIBS:+ }$element"
16030 fi
16031 done
16032
16033
16034 fi
16035 ;; #(
16036 *) :
16037
16038 CY_EXECUTE=0
16039
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
16041 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
16042 ;;
16043 esac
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16045 $as_echo_n "checking for GNU make... " >&6; }
16046 if test "${_cv_gnu_make_command+set}" = set; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 _cv_gnu_make_command='' ;
16050 for a in "$MAKE" make gmake gnumake ; do
16051 if test -z "$a" ; then continue ; fi ;
16052 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
16053 _cv_gnu_make_command=$a ;
16054 break;
16055 fi
16056 done ;
16057
16058 fi
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
16060 $as_echo "$_cv_gnu_make_command" >&6; } ;
16061 if test "x$_cv_gnu_make_command" != "x" ; then
16062 ifGNUmake='' ;
16063 else
16064 ifGNUmake='#' ;
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16066 $as_echo "\"Not found\"" >&6; };
16067 fi
16068
16069
16070 if test "x$_cv_gnu_make_command" = x; then :
16071 as_fn_error "You need GNU make" "$LINENO" 5
16072 fi
16073 # XXX: gnustep
16074 ac_ext=mm
16075 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16076 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16077 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16078 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16079 if test -n "$ac_tool_prefix"; then
16080 for ac_prog in g++ objc++ objcxx c++ CXX
16081 do
16082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085 $as_echo_n "checking for $ac_word... " >&6; }
16086 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 if test -n "$OBJCXX"; then
16090 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
16091 else
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16094 do
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16099 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16102 fi
16103 done
16104 done
16105 IFS=$as_save_IFS
16106
16107 fi
16108 fi
16109 OBJCXX=$ac_cv_prog_OBJCXX
16110 if test -n "$OBJCXX"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
16112 $as_echo "$OBJCXX" >&6; }
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16116 fi
16117
16118
16119 test -n "$OBJCXX" && break
16120 done
16121 fi
16122 if test -z "$OBJCXX"; then
16123 ac_ct_OBJCXX=$OBJCXX
16124 for ac_prog in g++ objc++ objcxx c++ CXX
16125 do
16126 # Extract the first word of "$ac_prog", so it can be a program name with args.
16127 set dummy $ac_prog; ac_word=$2
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129 $as_echo_n "checking for $ac_word... " >&6; }
16130 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 if test -n "$ac_ct_OBJCXX"; then
16134 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
16135 else
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137 for as_dir in $PATH
16138 do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16143 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145 break 2
16146 fi
16147 done
16148 done
16149 IFS=$as_save_IFS
16150
16151 fi
16152 fi
16153 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
16154 if test -n "$ac_ct_OBJCXX"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
16156 $as_echo "$ac_ct_OBJCXX" >&6; }
16157 else
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159 $as_echo "no" >&6; }
16160 fi
16161
16162
16163 test -n "$ac_ct_OBJCXX" && break
16164 done
16165
16166 if test "x$ac_ct_OBJCXX" = x; then
16167 OBJCXX="g++"
16168 else
16169 case $cross_compiling:$ac_tool_warned in
16170 yes:)
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16173 ac_tool_warned=yes ;;
16174 esac
16175 OBJCXX=$ac_ct_OBJCXX
16176 fi
16177 fi
16178
16179 # Provide some information about the compiler.
16180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
16181 set X $ac_compile
16182 ac_compiler=$2
16183 for ac_option in --version -v -V -qversion; do
16184 { { ac_try="$ac_compiler $ac_option >&5"
16185 case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188 esac
16189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16190 $as_echo "$ac_try_echo"; } >&5
16191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16192 ac_status=$?
16193 if test -s conftest.err; then
16194 sed '10a\
16195 ... rest of stderr output deleted ...
16196 10q' conftest.err >conftest.er1
16197 cat conftest.er1 >&5
16198 fi
16199 rm -f conftest.er1 conftest.err
16200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201 test $ac_status = 0; }
16202 done
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
16205 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
16206 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
16207 $as_echo_n "(cached) " >&6
16208 else
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211
16212 int
16213 main ()
16214 {
16215 #ifndef __GNUC__
16216 choke me
16217 #endif
16218
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_objcxx_try_compile "$LINENO"; then :
16224 ac_compiler_gnu=yes
16225 else
16226 ac_compiler_gnu=no
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
16230
16231 fi
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
16233 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
16234 if test $ac_compiler_gnu = yes; then
16235 GOBJCXX=yes
16236 else
16237 GOBJCXX=
16238 fi
16239 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
16240 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
16242 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
16243 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
16247 ac_objcxx_werror_flag=yes
16248 ac_cv_prog_objcxx_g=no
16249 OBJCXXFLAGS="-g"
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252
16253 int
16254 main ()
16255 {
16256
16257 ;
16258 return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_objcxx_try_compile "$LINENO"; then :
16262 ac_cv_prog_objcxx_g=yes
16263 else
16264 OBJCXXFLAGS=""
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267
16268 int
16269 main ()
16270 {
16271
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 if ac_fn_objcxx_try_compile "$LINENO"; then :
16277
16278 else
16279 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
16280 OBJCXXFLAGS="-g"
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284 int
16285 main ()
16286 {
16287
16288 ;
16289 return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_objcxx_try_compile "$LINENO"; then :
16293 ac_cv_prog_objcxx_g=yes
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
16303 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
16304 if test "$ac_test_OBJCXXFLAGS" = set; then
16305 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16306 elif test $ac_cv_prog_objcxx_g = yes; then
16307 if test "$GOBJCXX" = yes; then
16308 OBJCXXFLAGS="-g -O2"
16309 else
16310 OBJCXXFLAGS="-g"
16311 fi
16312 else
16313 if test "$GOBJCXX" = yes; then
16314 OBJCXXFLAGS="-O2"
16315 else
16316 OBJCXXFLAGS=
16317 fi
16318 fi
16319 ac_ext=c
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16324
16325 ac_config_files="$ac_config_files GNUmakefile"
16326
16327 cat >confcache <<\_ACEOF
16328 # This file is a shell script that caches the results of configure
16329 # tests run on this system so they can be shared between configure
16330 # scripts and configure runs, see configure's option --config-cache.
16331 # It is not useful on other systems. If it contains results you don't
16332 # want to keep, you may remove or edit it.
16333 #
16334 # config.status only pays attention to the cache file if you give it
16335 # the --recheck option to rerun configure.
16336 #
16337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16339 # following values.
16340
16341 _ACEOF
16342
16343 # The following way of writing the cache mishandles newlines in values,
16344 # but we know of no workaround that is simple, portable, and efficient.
16345 # So, we kill variables containing newlines.
16346 # Ultrix sh set writes to stderr and can't be redirected directly,
16347 # and sets the high bit in the cache file unless we assign to the vars.
16348 (
16349 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16350 eval ac_val=\$$ac_var
16351 case $ac_val in #(
16352 *${as_nl}*)
16353 case $ac_var in #(
16354 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16355 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16356 esac
16357 case $ac_var in #(
16358 _ | IFS | as_nl) ;; #(
16359 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16360 *) { eval $ac_var=; unset $ac_var;} ;;
16361 esac ;;
16362 esac
16363 done
16364
16365 (set) 2>&1 |
16366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16367 *${as_nl}ac_space=\ *)
16368 # `set' does not quote correctly, so add quotes: double-quote
16369 # substitution turns \\\\ into \\, and sed turns \\ into \.
16370 sed -n \
16371 "s/'/'\\\\''/g;
16372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16373 ;; #(
16374 *)
16375 # `set' quotes correctly as required by POSIX, so do not add quotes.
16376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16377 ;;
16378 esac |
16379 sort
16380 ) |
16381 sed '
16382 /^ac_cv_env_/b end
16383 t clear
16384 :clear
16385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16386 t end
16387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16388 :end' >>confcache
16389 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16390 if test -w "$cache_file"; then
16391 test "x$cache_file" != "x/dev/null" &&
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16393 $as_echo "$as_me: updating cache $cache_file" >&6;}
16394 cat confcache >$cache_file
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16397 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16398 fi
16399 fi
16400 rm -f confcache
16401
16402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16403 # Let make expand exec_prefix.
16404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16405
16406 # Transform confdefs.h into DEFS.
16407 # Protect against shell expansion while executing Makefile rules.
16408 # Protect against Makefile macro expansion.
16409 #
16410 # If the first sed substitution is executed (which looks for macros that
16411 # take arguments), then branch to the quote section. Otherwise,
16412 # look for a macro that doesn't take arguments.
16413 ac_script='
16414 :mline
16415 /\\$/{
16416 N
16417 s,\\\n,,
16418 b mline
16419 }
16420 t clear
16421 :clear
16422 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16423 t quote
16424 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16425 t quote
16426 b any
16427 :quote
16428 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16429 s/\[/\\&/g
16430 s/\]/\\&/g
16431 s/\$/$$/g
16432 H
16433 :any
16434 ${
16435 g
16436 s/^\n//
16437 s/\n/ /g
16438 p
16439 }
16440 '
16441 DEFS=`sed -n "$ac_script" confdefs.h`
16442
16443
16444 ac_libobjs=
16445 ac_ltlibobjs=
16446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16447 # 1. Remove the extension, and $U if already installed.
16448 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16449 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16450 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16451 # will be set to the directory where LIBOBJS objects are built.
16452 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16453 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16454 done
16455 LIBOBJS=$ac_libobjs
16456
16457 LTLIBOBJS=$ac_ltlibobjs
16458
16459
16460
16461 : ${CONFIG_STATUS=./config.status}
16462 ac_write_fail=0
16463 ac_clean_files_save=$ac_clean_files
16464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16466 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16467 as_write_fail=0
16468 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16469 #! $SHELL
16470 # Generated by $as_me.
16471 # Run this file to recreate the current configuration.
16472 # Compiler output produced by configure, useful for debugging
16473 # configure, is in config.log if it exists.
16474
16475 debug=false
16476 ac_cs_recheck=false
16477 ac_cs_silent=false
16478
16479 SHELL=\${CONFIG_SHELL-$SHELL}
16480 export SHELL
16481 _ASEOF
16482 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16483 ## -------------------- ##
16484 ## M4sh Initialization. ##
16485 ## -------------------- ##
16486
16487 # Be more Bourne compatible
16488 DUALCASE=1; export DUALCASE # for MKS sh
16489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16490 emulate sh
16491 NULLCMD=:
16492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16493 # is contrary to our usage. Disable this feature.
16494 alias -g '${1+"$@"}'='"$@"'
16495 setopt NO_GLOB_SUBST
16496 else
16497 case `(set -o) 2>/dev/null` in #(
16498 *posix*) :
16499 set -o posix ;; #(
16500 *) :
16501 ;;
16502 esac
16503 fi
16504
16505
16506 as_nl='
16507 '
16508 export as_nl
16509 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16510 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16511 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16512 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16513 # Prefer a ksh shell builtin over an external printf program on Solaris,
16514 # but without wasting forks for bash or zsh.
16515 if test -z "$BASH_VERSION$ZSH_VERSION" \
16516 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16517 as_echo='print -r --'
16518 as_echo_n='print -rn --'
16519 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16520 as_echo='printf %s\n'
16521 as_echo_n='printf %s'
16522 else
16523 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16524 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16525 as_echo_n='/usr/ucb/echo -n'
16526 else
16527 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16528 as_echo_n_body='eval
16529 arg=$1;
16530 case $arg in #(
16531 *"$as_nl"*)
16532 expr "X$arg" : "X\\(.*\\)$as_nl";
16533 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16534 esac;
16535 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16536 '
16537 export as_echo_n_body
16538 as_echo_n='sh -c $as_echo_n_body as_echo'
16539 fi
16540 export as_echo_body
16541 as_echo='sh -c $as_echo_body as_echo'
16542 fi
16543
16544 # The user is always right.
16545 if test "${PATH_SEPARATOR+set}" != set; then
16546 PATH_SEPARATOR=:
16547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16548 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16549 PATH_SEPARATOR=';'
16550 }
16551 fi
16552
16553
16554 # IFS
16555 # We need space, tab and new line, in precisely that order. Quoting is
16556 # there to prevent editors from complaining about space-tab.
16557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16558 # splitting by setting IFS to empty value.)
16559 IFS=" "" $as_nl"
16560
16561 # Find who we are. Look in the path if we contain no directory separator.
16562 case $0 in #((
16563 *[\\/]* ) as_myself=$0 ;;
16564 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $PATH
16566 do
16567 IFS=$as_save_IFS
16568 test -z "$as_dir" && as_dir=.
16569 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16570 done
16571 IFS=$as_save_IFS
16572
16573 ;;
16574 esac
16575 # We did not find ourselves, most probably we were run as `sh COMMAND'
16576 # in which case we are not to be found in the path.
16577 if test "x$as_myself" = x; then
16578 as_myself=$0
16579 fi
16580 if test ! -f "$as_myself"; then
16581 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16582 exit 1
16583 fi
16584
16585 # Unset variables that we do not need and which cause bugs (e.g. in
16586 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16587 # suppresses any "Segmentation fault" message there. '((' could
16588 # trigger a bug in pdksh 5.2.14.
16589 for as_var in BASH_ENV ENV MAIL MAILPATH
16590 do eval test x\${$as_var+set} = xset \
16591 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16592 done
16593 PS1='$ '
16594 PS2='> '
16595 PS4='+ '
16596
16597 # NLS nuisances.
16598 LC_ALL=C
16599 export LC_ALL
16600 LANGUAGE=C
16601 export LANGUAGE
16602
16603 # CDPATH.
16604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16605
16606
16607 # as_fn_error ERROR [LINENO LOG_FD]
16608 # ---------------------------------
16609 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16610 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16611 # script with status $?, using 1 if that was 0.
16612 as_fn_error ()
16613 {
16614 as_status=$?; test $as_status -eq 0 && as_status=1
16615 if test "$3"; then
16616 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16617 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16618 fi
16619 $as_echo "$as_me: error: $1" >&2
16620 as_fn_exit $as_status
16621 } # as_fn_error
16622
16623
16624 # as_fn_set_status STATUS
16625 # -----------------------
16626 # Set $? to STATUS, without forking.
16627 as_fn_set_status ()
16628 {
16629 return $1
16630 } # as_fn_set_status
16631
16632 # as_fn_exit STATUS
16633 # -----------------
16634 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16635 as_fn_exit ()
16636 {
16637 set +e
16638 as_fn_set_status $1
16639 exit $1
16640 } # as_fn_exit
16641
16642 # as_fn_unset VAR
16643 # ---------------
16644 # Portably unset VAR.
16645 as_fn_unset ()
16646 {
16647 { eval $1=; unset $1;}
16648 }
16649 as_unset=as_fn_unset
16650 # as_fn_append VAR VALUE
16651 # ----------------------
16652 # Append the text in VALUE to the end of the definition contained in VAR. Take
16653 # advantage of any shell optimizations that allow amortized linear growth over
16654 # repeated appends, instead of the typical quadratic growth present in naive
16655 # implementations.
16656 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16657 eval 'as_fn_append ()
16658 {
16659 eval $1+=\$2
16660 }'
16661 else
16662 as_fn_append ()
16663 {
16664 eval $1=\$$1\$2
16665 }
16666 fi # as_fn_append
16667
16668 # as_fn_arith ARG...
16669 # ------------------
16670 # Perform arithmetic evaluation on the ARGs, and store the result in the
16671 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16672 # must be portable across $(()) and expr.
16673 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16674 eval 'as_fn_arith ()
16675 {
16676 as_val=$(( $* ))
16677 }'
16678 else
16679 as_fn_arith ()
16680 {
16681 as_val=`expr "$@" || test $? -eq 1`
16682 }
16683 fi # as_fn_arith
16684
16685
16686 if expr a : '\(a\)' >/dev/null 2>&1 &&
16687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16688 as_expr=expr
16689 else
16690 as_expr=false
16691 fi
16692
16693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16694 as_basename=basename
16695 else
16696 as_basename=false
16697 fi
16698
16699 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16700 as_dirname=dirname
16701 else
16702 as_dirname=false
16703 fi
16704
16705 as_me=`$as_basename -- "$0" ||
16706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16707 X"$0" : 'X\(//\)$' \| \
16708 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16709 $as_echo X/"$0" |
16710 sed '/^.*\/\([^/][^/]*\)\/*$/{
16711 s//\1/
16712 q
16713 }
16714 /^X\/\(\/\/\)$/{
16715 s//\1/
16716 q
16717 }
16718 /^X\/\(\/\).*/{
16719 s//\1/
16720 q
16721 }
16722 s/.*/./; q'`
16723
16724 # Avoid depending upon Character Ranges.
16725 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16726 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16727 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16728 as_cr_digits='0123456789'
16729 as_cr_alnum=$as_cr_Letters$as_cr_digits
16730
16731 ECHO_C= ECHO_N= ECHO_T=
16732 case `echo -n x` in #(((((
16733 -n*)
16734 case `echo 'xy\c'` in
16735 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16736 xy) ECHO_C='\c';;
16737 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16738 ECHO_T=' ';;
16739 esac;;
16740 *)
16741 ECHO_N='-n';;
16742 esac
16743
16744 rm -f conf$$ conf$$.exe conf$$.file
16745 if test -d conf$$.dir; then
16746 rm -f conf$$.dir/conf$$.file
16747 else
16748 rm -f conf$$.dir
16749 mkdir conf$$.dir 2>/dev/null
16750 fi
16751 if (echo >conf$$.file) 2>/dev/null; then
16752 if ln -s conf$$.file conf$$ 2>/dev/null; then
16753 as_ln_s='ln -s'
16754 # ... but there are two gotchas:
16755 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16756 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16757 # In both cases, we have to default to `cp -p'.
16758 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16759 as_ln_s='cp -p'
16760 elif ln conf$$.file conf$$ 2>/dev/null; then
16761 as_ln_s=ln
16762 else
16763 as_ln_s='cp -p'
16764 fi
16765 else
16766 as_ln_s='cp -p'
16767 fi
16768 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16769 rmdir conf$$.dir 2>/dev/null
16770
16771
16772 # as_fn_mkdir_p
16773 # -------------
16774 # Create "$as_dir" as a directory, including parents if necessary.
16775 as_fn_mkdir_p ()
16776 {
16777
16778 case $as_dir in #(
16779 -*) as_dir=./$as_dir;;
16780 esac
16781 test -d "$as_dir" || eval $as_mkdir_p || {
16782 as_dirs=
16783 while :; do
16784 case $as_dir in #(
16785 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16786 *) as_qdir=$as_dir;;
16787 esac
16788 as_dirs="'$as_qdir' $as_dirs"
16789 as_dir=`$as_dirname -- "$as_dir" ||
16790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16791 X"$as_dir" : 'X\(//\)[^/]' \| \
16792 X"$as_dir" : 'X\(//\)$' \| \
16793 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16794 $as_echo X"$as_dir" |
16795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16796 s//\1/
16797 q
16798 }
16799 /^X\(\/\/\)[^/].*/{
16800 s//\1/
16801 q
16802 }
16803 /^X\(\/\/\)$/{
16804 s//\1/
16805 q
16806 }
16807 /^X\(\/\).*/{
16808 s//\1/
16809 q
16810 }
16811 s/.*/./; q'`
16812 test -d "$as_dir" && break
16813 done
16814 test -z "$as_dirs" || eval "mkdir $as_dirs"
16815 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16816
16817
16818 } # as_fn_mkdir_p
16819 if mkdir -p . 2>/dev/null; then
16820 as_mkdir_p='mkdir -p "$as_dir"'
16821 else
16822 test -d ./-p && rmdir ./-p
16823 as_mkdir_p=false
16824 fi
16825
16826 if test -x / >/dev/null 2>&1; then
16827 as_test_x='test -x'
16828 else
16829 if ls -dL / >/dev/null 2>&1; then
16830 as_ls_L_option=L
16831 else
16832 as_ls_L_option=
16833 fi
16834 as_test_x='
16835 eval sh -c '\''
16836 if test -d "$1"; then
16837 test -d "$1/.";
16838 else
16839 case $1 in #(
16840 -*)set "./$1";;
16841 esac;
16842 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16843 ???[sx]*):;;*)false;;esac;fi
16844 '\'' sh
16845 '
16846 fi
16847 as_executable_p=$as_test_x
16848
16849 # Sed expression to map a string onto a valid CPP name.
16850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16851
16852 # Sed expression to map a string onto a valid variable name.
16853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16854
16855
16856 exec 6>&1
16857 ## ----------------------------------- ##
16858 ## Main body of $CONFIG_STATUS script. ##
16859 ## ----------------------------------- ##
16860 _ASEOF
16861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16862
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 # Save the log message, to keep $0 and so on meaningful, and to
16865 # report actual input values of CONFIG_FILES etc. instead of their
16866 # values after options handling.
16867 ac_log="
16868 This file was extended by Cycript $as_me 0.9, which was
16869 generated by GNU Autoconf 2.65. Invocation command line was
16870
16871 CONFIG_FILES = $CONFIG_FILES
16872 CONFIG_HEADERS = $CONFIG_HEADERS
16873 CONFIG_LINKS = $CONFIG_LINKS
16874 CONFIG_COMMANDS = $CONFIG_COMMANDS
16875 $ $0 $@
16876
16877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16878 "
16879
16880 _ACEOF
16881
16882 case $ac_config_files in *"
16883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16884 esac
16885
16886
16887
16888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16889 # Files that config.status was made for.
16890 config_files="$ac_config_files"
16891 config_commands="$ac_config_commands"
16892
16893 _ACEOF
16894
16895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16896 ac_cs_usage="\
16897 \`$as_me' instantiates files and other configuration actions
16898 from templates according to the current configuration. Unless the files
16899 and actions are specified as TAGs, all are instantiated by default.
16900
16901 Usage: $0 [OPTION]... [TAG]...
16902
16903 -h, --help print this help, then exit
16904 -V, --version print version number and configuration settings, then exit
16905 --config print configuration, then exit
16906 -q, --quiet, --silent
16907 do not print progress messages
16908 -d, --debug don't remove temporary files
16909 --recheck update $as_me by reconfiguring in the same conditions
16910 --file=FILE[:TEMPLATE]
16911 instantiate the configuration file FILE
16912
16913 Configuration files:
16914 $config_files
16915
16916 Configuration commands:
16917 $config_commands
16918
16919 Report bugs to <saurik@saurik.com>.
16920 Cycript home page: <http://www.cycript.org/>."
16921
16922 _ACEOF
16923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16924 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16925 ac_cs_version="\\
16926 Cycript config.status 0.9
16927 configured by $0, generated by GNU Autoconf 2.65,
16928 with options \\"\$ac_cs_config\\"
16929
16930 Copyright (C) 2009 Free Software Foundation, Inc.
16931 This config.status script is free software; the Free Software Foundation
16932 gives unlimited permission to copy, distribute and modify it."
16933
16934 ac_pwd='$ac_pwd'
16935 srcdir='$srcdir'
16936 INSTALL='$INSTALL'
16937 AWK='$AWK'
16938 test -n "\$AWK" || AWK=awk
16939 _ACEOF
16940
16941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942 # The default lists apply if the user does not specify any file.
16943 ac_need_defaults=:
16944 while test $# != 0
16945 do
16946 case $1 in
16947 --*=*)
16948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16949 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16950 ac_shift=:
16951 ;;
16952 *)
16953 ac_option=$1
16954 ac_optarg=$2
16955 ac_shift=shift
16956 ;;
16957 esac
16958
16959 case $ac_option in
16960 # Handling of the options.
16961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16962 ac_cs_recheck=: ;;
16963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16964 $as_echo "$ac_cs_version"; exit ;;
16965 --config | --confi | --conf | --con | --co | --c )
16966 $as_echo "$ac_cs_config"; exit ;;
16967 --debug | --debu | --deb | --de | --d | -d )
16968 debug=: ;;
16969 --file | --fil | --fi | --f )
16970 $ac_shift
16971 case $ac_optarg in
16972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16973 esac
16974 as_fn_append CONFIG_FILES " '$ac_optarg'"
16975 ac_need_defaults=false;;
16976 --he | --h | --help | --hel | -h )
16977 $as_echo "$ac_cs_usage"; exit ;;
16978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16980 ac_cs_silent=: ;;
16981
16982 # This is an error.
16983 -*) as_fn_error "unrecognized option: \`$1'
16984 Try \`$0 --help' for more information." ;;
16985
16986 *) as_fn_append ac_config_targets " $1"
16987 ac_need_defaults=false ;;
16988
16989 esac
16990 shift
16991 done
16992
16993 ac_configure_extra_args=
16994
16995 if $ac_cs_silent; then
16996 exec 6>/dev/null
16997 ac_configure_extra_args="$ac_configure_extra_args --silent"
16998 fi
16999
17000 _ACEOF
17001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17002 if \$ac_cs_recheck; then
17003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17004 shift
17005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17006 CONFIG_SHELL='$SHELL'
17007 export CONFIG_SHELL
17008 exec "\$@"
17009 fi
17010
17011 _ACEOF
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17013 exec 5>>config.log
17014 {
17015 echo
17016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17017 ## Running $as_me. ##
17018 _ASBOX
17019 $as_echo "$ac_log"
17020 } >&5
17021
17022 _ACEOF
17023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17024 #
17025 # INIT-COMMANDS
17026 #
17027
17028
17029 # The HP-UX ksh and POSIX shell print the target directory to stdout
17030 # if CDPATH is set.
17031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17032
17033 sed_quote_subst='$sed_quote_subst'
17034 double_quote_subst='$double_quote_subst'
17035 delay_variable_subst='$delay_variable_subst'
17036 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17037 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17038 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17039 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17040 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17041 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17042 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17043 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17044 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17045 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17046 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17047 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17048 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17049 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17050 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17051 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17052 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17053 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17054 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17055 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17056 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17057 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17058 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17059 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17060 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17061 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17062 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17063 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17064 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17065 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17066 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17067 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17068 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17069 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17070 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17071 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17072 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17073 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17074 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17075 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17076 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17077 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17078 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17079 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17080 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"`'
17081 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"`'
17082 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17083 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17084 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17085 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17086 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17087 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17088 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17089 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17090 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17091 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17092 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17093 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17094 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17095 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17096 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17097 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17098 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17099 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17100 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17101 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17102 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17103 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17104 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17105 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17106 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17107 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17108 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17109 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17110 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17111 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17112 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17113 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17114 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17115 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17116 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17117 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17118 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17119 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17120 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17121 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17122 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17123 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17124 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17125 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17126 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17127 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17128 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17129 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17130 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17131 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17132 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17133 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17134 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17135 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17136 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17137 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17138 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17139 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17140 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17141 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17142 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17143 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17144 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17145 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17146 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17147 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17148 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17149 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17150 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17151 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17152 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17153 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17154 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17155 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17156 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17157 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17158 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17159 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17160 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17161 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17162 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17163 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17164 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17165 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17166 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17167 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17168 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17169 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17170 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17171 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17172 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17173 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17174 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17175 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17176 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17177 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17178 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17179 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17180 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17181 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17182 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17183 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17184 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17185 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17186 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17187 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17188 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17189 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17190 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17191 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17192 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17193 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17194 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17195 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17196 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17197 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17198 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17199 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17200 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17201 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17202 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17203 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17204 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17205 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17206 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17207
17208 LTCC='$LTCC'
17209 LTCFLAGS='$LTCFLAGS'
17210 compiler='$compiler_DEFAULT'
17211
17212 # Quote evaled strings.
17213 for var in SED \
17214 GREP \
17215 EGREP \
17216 FGREP \
17217 LD \
17218 NM \
17219 LN_S \
17220 lt_SP2NL \
17221 lt_NL2SP \
17222 reload_flag \
17223 OBJDUMP \
17224 deplibs_check_method \
17225 file_magic_cmd \
17226 AR \
17227 AR_FLAGS \
17228 STRIP \
17229 RANLIB \
17230 CC \
17231 CFLAGS \
17232 compiler \
17233 lt_cv_sys_global_symbol_pipe \
17234 lt_cv_sys_global_symbol_to_cdecl \
17235 lt_cv_sys_global_symbol_to_c_name_address \
17236 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17237 SHELL \
17238 ECHO \
17239 lt_prog_compiler_no_builtin_flag \
17240 lt_prog_compiler_wl \
17241 lt_prog_compiler_pic \
17242 lt_prog_compiler_static \
17243 lt_cv_prog_compiler_c_o \
17244 need_locks \
17245 DSYMUTIL \
17246 NMEDIT \
17247 LIPO \
17248 OTOOL \
17249 OTOOL64 \
17250 shrext_cmds \
17251 export_dynamic_flag_spec \
17252 whole_archive_flag_spec \
17253 compiler_needs_object \
17254 with_gnu_ld \
17255 allow_undefined_flag \
17256 no_undefined_flag \
17257 hardcode_libdir_flag_spec \
17258 hardcode_libdir_flag_spec_ld \
17259 hardcode_libdir_separator \
17260 fix_srcfile_path \
17261 exclude_expsyms \
17262 include_expsyms \
17263 file_list_spec \
17264 variables_saved_for_relink \
17265 libname_spec \
17266 library_names_spec \
17267 soname_spec \
17268 finish_eval \
17269 old_striplib \
17270 striplib \
17271 compiler_lib_search_dirs \
17272 predep_objects \
17273 postdep_objects \
17274 predeps \
17275 postdeps \
17276 compiler_lib_search_path \
17277 LD_CXX \
17278 compiler_CXX \
17279 lt_prog_compiler_no_builtin_flag_CXX \
17280 lt_prog_compiler_wl_CXX \
17281 lt_prog_compiler_pic_CXX \
17282 lt_prog_compiler_static_CXX \
17283 lt_cv_prog_compiler_c_o_CXX \
17284 export_dynamic_flag_spec_CXX \
17285 whole_archive_flag_spec_CXX \
17286 compiler_needs_object_CXX \
17287 with_gnu_ld_CXX \
17288 allow_undefined_flag_CXX \
17289 no_undefined_flag_CXX \
17290 hardcode_libdir_flag_spec_CXX \
17291 hardcode_libdir_flag_spec_ld_CXX \
17292 hardcode_libdir_separator_CXX \
17293 fix_srcfile_path_CXX \
17294 exclude_expsyms_CXX \
17295 include_expsyms_CXX \
17296 file_list_spec_CXX \
17297 compiler_lib_search_dirs_CXX \
17298 predep_objects_CXX \
17299 postdep_objects_CXX \
17300 predeps_CXX \
17301 postdeps_CXX \
17302 compiler_lib_search_path_CXX; do
17303 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17304 *[\\\\\\\`\\"\\\$]*)
17305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17306 ;;
17307 *)
17308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17309 ;;
17310 esac
17311 done
17312
17313 # Double-quote double-evaled strings.
17314 for var in reload_cmds \
17315 old_postinstall_cmds \
17316 old_postuninstall_cmds \
17317 old_archive_cmds \
17318 extract_expsyms_cmds \
17319 old_archive_from_new_cmds \
17320 old_archive_from_expsyms_cmds \
17321 archive_cmds \
17322 archive_expsym_cmds \
17323 module_cmds \
17324 module_expsym_cmds \
17325 export_symbols_cmds \
17326 prelink_cmds \
17327 postinstall_cmds \
17328 postuninstall_cmds \
17329 finish_cmds \
17330 sys_lib_search_path_spec \
17331 sys_lib_dlsearch_path_spec \
17332 old_archive_cmds_CXX \
17333 old_archive_from_new_cmds_CXX \
17334 old_archive_from_expsyms_cmds_CXX \
17335 archive_cmds_CXX \
17336 archive_expsym_cmds_CXX \
17337 module_cmds_CXX \
17338 module_expsym_cmds_CXX \
17339 export_symbols_cmds_CXX \
17340 prelink_cmds_CXX; do
17341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17342 *[\\\\\\\`\\"\\\$]*)
17343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17344 ;;
17345 *)
17346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17347 ;;
17348 esac
17349 done
17350
17351 # Fix-up fallback echo if it was mangled by the above quoting rules.
17352 case \$lt_ECHO in
17353 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17354 ;;
17355 esac
17356
17357 ac_aux_dir='$ac_aux_dir'
17358 xsi_shell='$xsi_shell'
17359 lt_shell_append='$lt_shell_append'
17360
17361 # See if we are running on zsh, and set the options which allow our
17362 # commands through without removal of \ escapes INIT.
17363 if test -n "\${ZSH_VERSION+set}" ; then
17364 setopt NO_GLOB_SUBST
17365 fi
17366
17367
17368 PACKAGE='$PACKAGE'
17369 VERSION='$VERSION'
17370 TIMESTAMP='$TIMESTAMP'
17371 RM='$RM'
17372 ofile='$ofile'
17373
17374
17375
17376
17377
17378
17379 _ACEOF
17380
17381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17382
17383 # Handling of arguments.
17384 for ac_config_target in $ac_config_targets
17385 do
17386 case $ac_config_target in
17387 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17388 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17389
17390 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17391 esac
17392 done
17393
17394
17395 # If the user did not use the arguments to specify the items to instantiate,
17396 # then the envvar interface is used. Set only those that are not.
17397 # We use the long form for the default assignment because of an extremely
17398 # bizarre bug on SunOS 4.1.3.
17399 if $ac_need_defaults; then
17400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17402 fi
17403
17404 # Have a temporary directory for convenience. Make it in the build tree
17405 # simply because there is no reason against having it here, and in addition,
17406 # creating and moving files from /tmp can sometimes cause problems.
17407 # Hook for its removal unless debugging.
17408 # Note that there is a small window in which the directory will not be cleaned:
17409 # after its creation but before its name has been assigned to `$tmp'.
17410 $debug ||
17411 {
17412 tmp=
17413 trap 'exit_status=$?
17414 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17415 ' 0
17416 trap 'as_fn_exit 1' 1 2 13 15
17417 }
17418 # Create a (secure) tmp directory for tmp files.
17419
17420 {
17421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17422 test -n "$tmp" && test -d "$tmp"
17423 } ||
17424 {
17425 tmp=./conf$$-$RANDOM
17426 (umask 077 && mkdir "$tmp")
17427 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17428
17429 # Set up the scripts for CONFIG_FILES section.
17430 # No need to generate them if there are no CONFIG_FILES.
17431 # This happens for instance with `./config.status config.h'.
17432 if test -n "$CONFIG_FILES"; then
17433
17434
17435 ac_cr=`echo X | tr X '\015'`
17436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17437 # But we know of no other shell where ac_cr would be empty at this
17438 # point, so we can use a bashism as a fallback.
17439 if test "x$ac_cr" = x; then
17440 eval ac_cr=\$\'\\r\'
17441 fi
17442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17444 ac_cs_awk_cr='\r'
17445 else
17446 ac_cs_awk_cr=$ac_cr
17447 fi
17448
17449 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17450 _ACEOF
17451
17452
17453 {
17454 echo "cat >conf$$subs.awk <<_ACEOF" &&
17455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17456 echo "_ACEOF"
17457 } >conf$$subs.sh ||
17458 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17460 ac_delim='%!_!# '
17461 for ac_last_try in false false false false false :; do
17462 . ./conf$$subs.sh ||
17463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17464
17465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17466 if test $ac_delim_n = $ac_delim_num; then
17467 break
17468 elif $ac_last_try; then
17469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17470 else
17471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17472 fi
17473 done
17474 rm -f conf$$subs.sh
17475
17476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17477 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17478 _ACEOF
17479 sed -n '
17480 h
17481 s/^/S["/; s/!.*/"]=/
17482 p
17483 g
17484 s/^[^!]*!//
17485 :repl
17486 t repl
17487 s/'"$ac_delim"'$//
17488 t delim
17489 :nl
17490 h
17491 s/\(.\{148\}\)..*/\1/
17492 t more1
17493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17494 p
17495 n
17496 b repl
17497 :more1
17498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17499 p
17500 g
17501 s/.\{148\}//
17502 t nl
17503 :delim
17504 h
17505 s/\(.\{148\}\)..*/\1/
17506 t more2
17507 s/["\\]/\\&/g; s/^/"/; s/$/"/
17508 p
17509 b
17510 :more2
17511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17512 p
17513 g
17514 s/.\{148\}//
17515 t delim
17516 ' <conf$$subs.awk | sed '
17517 /^[^""]/{
17518 N
17519 s/\n//
17520 }
17521 ' >>$CONFIG_STATUS || ac_write_fail=1
17522 rm -f conf$$subs.awk
17523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17524 _ACAWK
17525 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17526 for (key in S) S_is_set[key] = 1
17527 FS = "\a"
17528
17529 }
17530 {
17531 line = $ 0
17532 nfields = split(line, field, "@")
17533 substed = 0
17534 len = length(field[1])
17535 for (i = 2; i < nfields; i++) {
17536 key = field[i]
17537 keylen = length(key)
17538 if (S_is_set[key]) {
17539 value = S[key]
17540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17541 len += length(value) + length(field[++i])
17542 substed = 1
17543 } else
17544 len += 1 + keylen
17545 }
17546
17547 print line
17548 }
17549
17550 _ACAWK
17551 _ACEOF
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17555 else
17556 cat
17557 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17558 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17559 _ACEOF
17560
17561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17563 # trailing colons and then remove the whole line if VPATH becomes empty
17564 # (actually we leave an empty line to preserve line numbers).
17565 if test "x$srcdir" = x.; then
17566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17567 s/:*\$(srcdir):*/:/
17568 s/:*\${srcdir}:*/:/
17569 s/:*@srcdir@:*/:/
17570 s/^\([^=]*=[ ]*\):*/\1/
17571 s/:*$//
17572 s/^[^=]*=[ ]*$//
17573 }'
17574 fi
17575
17576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17577 fi # test -n "$CONFIG_FILES"
17578
17579
17580 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17581 shift
17582 for ac_tag
17583 do
17584 case $ac_tag in
17585 :[FHLC]) ac_mode=$ac_tag; continue;;
17586 esac
17587 case $ac_mode$ac_tag in
17588 :[FHL]*:*);;
17589 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17590 :[FH]-) ac_tag=-:-;;
17591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17592 esac
17593 ac_save_IFS=$IFS
17594 IFS=:
17595 set x $ac_tag
17596 IFS=$ac_save_IFS
17597 shift
17598 ac_file=$1
17599 shift
17600
17601 case $ac_mode in
17602 :L) ac_source=$1;;
17603 :[FH])
17604 ac_file_inputs=
17605 for ac_f
17606 do
17607 case $ac_f in
17608 -) ac_f="$tmp/stdin";;
17609 *) # Look for the file first in the build tree, then in the source tree
17610 # (if the path is not absolute). The absolute path cannot be DOS-style,
17611 # because $ac_f cannot contain `:'.
17612 test -f "$ac_f" ||
17613 case $ac_f in
17614 [\\/$]*) false;;
17615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17616 esac ||
17617 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17618 esac
17619 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17620 as_fn_append ac_file_inputs " '$ac_f'"
17621 done
17622
17623 # Let's still pretend it is `configure' which instantiates (i.e., don't
17624 # use $as_me), people would be surprised to read:
17625 # /* config.h. Generated by config.status. */
17626 configure_input='Generated from '`
17627 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17628 `' by configure.'
17629 if test x"$ac_file" != x-; then
17630 configure_input="$ac_file. $configure_input"
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17632 $as_echo "$as_me: creating $ac_file" >&6;}
17633 fi
17634 # Neutralize special characters interpreted by sed in replacement strings.
17635 case $configure_input in #(
17636 *\&* | *\|* | *\\* )
17637 ac_sed_conf_input=`$as_echo "$configure_input" |
17638 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17639 *) ac_sed_conf_input=$configure_input;;
17640 esac
17641
17642 case $ac_tag in
17643 *:-:* | *:-) cat >"$tmp/stdin" \
17644 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17645 esac
17646 ;;
17647 esac
17648
17649 ac_dir=`$as_dirname -- "$ac_file" ||
17650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651 X"$ac_file" : 'X\(//\)[^/]' \| \
17652 X"$ac_file" : 'X\(//\)$' \| \
17653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17654 $as_echo X"$ac_file" |
17655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17656 s//\1/
17657 q
17658 }
17659 /^X\(\/\/\)[^/].*/{
17660 s//\1/
17661 q
17662 }
17663 /^X\(\/\/\)$/{
17664 s//\1/
17665 q
17666 }
17667 /^X\(\/\).*/{
17668 s//\1/
17669 q
17670 }
17671 s/.*/./; q'`
17672 as_dir="$ac_dir"; as_fn_mkdir_p
17673 ac_builddir=.
17674
17675 case "$ac_dir" in
17676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17677 *)
17678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17679 # A ".." for each directory in $ac_dir_suffix.
17680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17681 case $ac_top_builddir_sub in
17682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17684 esac ;;
17685 esac
17686 ac_abs_top_builddir=$ac_pwd
17687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17688 # for backward compatibility:
17689 ac_top_builddir=$ac_top_build_prefix
17690
17691 case $srcdir in
17692 .) # We are building in place.
17693 ac_srcdir=.
17694 ac_top_srcdir=$ac_top_builddir_sub
17695 ac_abs_top_srcdir=$ac_pwd ;;
17696 [\\/]* | ?:[\\/]* ) # Absolute name.
17697 ac_srcdir=$srcdir$ac_dir_suffix;
17698 ac_top_srcdir=$srcdir
17699 ac_abs_top_srcdir=$srcdir ;;
17700 *) # Relative name.
17701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17702 ac_top_srcdir=$ac_top_build_prefix$srcdir
17703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17704 esac
17705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17706
17707
17708 case $ac_mode in
17709 :F)
17710 #
17711 # CONFIG_FILE
17712 #
17713
17714 case $INSTALL in
17715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17717 esac
17718 _ACEOF
17719
17720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17721 # If the template does not know about datarootdir, expand it.
17722 # FIXME: This hack should be removed a few years after 2.60.
17723 ac_datarootdir_hack=; ac_datarootdir_seen=
17724 ac_sed_dataroot='
17725 /datarootdir/ {
17726 p
17727 q
17728 }
17729 /@datadir@/p
17730 /@docdir@/p
17731 /@infodir@/p
17732 /@localedir@/p
17733 /@mandir@/p'
17734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17735 *datarootdir*) ac_datarootdir_seen=yes;;
17736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17739 _ACEOF
17740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741 ac_datarootdir_hack='
17742 s&@datadir@&$datadir&g
17743 s&@docdir@&$docdir&g
17744 s&@infodir@&$infodir&g
17745 s&@localedir@&$localedir&g
17746 s&@mandir@&$mandir&g
17747 s&\\\${datarootdir}&$datarootdir&g' ;;
17748 esac
17749 _ACEOF
17750
17751 # Neutralize VPATH when `$srcdir' = `.'.
17752 # Shell code in configure.ac might set extrasub.
17753 # FIXME: do we really want to maintain this feature?
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 ac_sed_extra="$ac_vpsub
17756 $extrasub
17757 _ACEOF
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759 :t
17760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17761 s|@configure_input@|$ac_sed_conf_input|;t t
17762 s&@top_builddir@&$ac_top_builddir_sub&;t t
17763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17764 s&@srcdir@&$ac_srcdir&;t t
17765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17766 s&@top_srcdir@&$ac_top_srcdir&;t t
17767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17768 s&@builddir@&$ac_builddir&;t t
17769 s&@abs_builddir@&$ac_abs_builddir&;t t
17770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17771 s&@INSTALL@&$ac_INSTALL&;t t
17772 $ac_datarootdir_hack
17773 "
17774 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17775 || as_fn_error "could not create $ac_file" "$LINENO" 5
17776
17777 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17778 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17779 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17781 which seems to be undefined. Please make sure it is defined." >&5
17782 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17783 which seems to be undefined. Please make sure it is defined." >&2;}
17784
17785 rm -f "$tmp/stdin"
17786 case $ac_file in
17787 -) cat "$tmp/out" && rm -f "$tmp/out";;
17788 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17789 esac \
17790 || as_fn_error "could not create $ac_file" "$LINENO" 5
17791 ;;
17792
17793
17794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17795 $as_echo "$as_me: executing $ac_file commands" >&6;}
17796 ;;
17797 esac
17798
17799
17800 case $ac_file$ac_mode in
17801 "libtool":C)
17802
17803 # See if we are running on zsh, and set the options which allow our
17804 # commands through without removal of \ escapes.
17805 if test -n "${ZSH_VERSION+set}" ; then
17806 setopt NO_GLOB_SUBST
17807 fi
17808
17809 cfgfile="${ofile}T"
17810 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17811 $RM "$cfgfile"
17812
17813 cat <<_LT_EOF >> "$cfgfile"
17814 #! $SHELL
17815
17816 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17817 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17819 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17820 #
17821 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17822 # 2006, 2007, 2008 Free Software Foundation, Inc.
17823 # Written by Gordon Matzigkeit, 1996
17824 #
17825 # This file is part of GNU Libtool.
17826 #
17827 # GNU Libtool is free software; you can redistribute it and/or
17828 # modify it under the terms of the GNU General Public License as
17829 # published by the Free Software Foundation; either version 2 of
17830 # the License, or (at your option) any later version.
17831 #
17832 # As a special exception to the GNU General Public License,
17833 # if you distribute this file as part of a program or library that
17834 # is built using GNU Libtool, you may include this file under the
17835 # same distribution terms that you use for the rest of that program.
17836 #
17837 # GNU Libtool is distributed in the hope that it will be useful,
17838 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17839 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17840 # GNU General Public License for more details.
17841 #
17842 # You should have received a copy of the GNU General Public License
17843 # along with GNU Libtool; see the file COPYING. If not, a copy
17844 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17845 # obtained by writing to the Free Software Foundation, Inc.,
17846 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17847
17848
17849 # The names of the tagged configurations supported by this script.
17850 available_tags="CXX "
17851
17852 # ### BEGIN LIBTOOL CONFIG
17853
17854 # Which release of libtool.m4 was used?
17855 macro_version=$macro_version
17856 macro_revision=$macro_revision
17857
17858 # Whether or not to build static libraries.
17859 build_old_libs=$enable_static
17860
17861 # Whether or not to build shared libraries.
17862 build_libtool_libs=$enable_shared
17863
17864 # What type of objects to build.
17865 pic_mode=$pic_mode
17866
17867 # Whether or not to optimize for fast installation.
17868 fast_install=$enable_fast_install
17869
17870 # The host system.
17871 host_alias=$host_alias
17872 host=$host
17873 host_os=$host_os
17874
17875 # The build system.
17876 build_alias=$build_alias
17877 build=$build
17878 build_os=$build_os
17879
17880 # A sed program that does not truncate output.
17881 SED=$lt_SED
17882
17883 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17884 Xsed="\$SED -e 1s/^X//"
17885
17886 # A grep program that handles long lines.
17887 GREP=$lt_GREP
17888
17889 # An ERE matcher.
17890 EGREP=$lt_EGREP
17891
17892 # A literal string matcher.
17893 FGREP=$lt_FGREP
17894
17895 # A BSD- or MS-compatible name lister.
17896 NM=$lt_NM
17897
17898 # Whether we need soft or hard links.
17899 LN_S=$lt_LN_S
17900
17901 # What is the maximum length of a command?
17902 max_cmd_len=$max_cmd_len
17903
17904 # Object file suffix (normally "o").
17905 objext=$ac_objext
17906
17907 # Executable file suffix (normally "").
17908 exeext=$exeext
17909
17910 # whether the shell understands "unset".
17911 lt_unset=$lt_unset
17912
17913 # turn spaces into newlines.
17914 SP2NL=$lt_lt_SP2NL
17915
17916 # turn newlines into spaces.
17917 NL2SP=$lt_lt_NL2SP
17918
17919 # How to create reloadable object files.
17920 reload_flag=$lt_reload_flag
17921 reload_cmds=$lt_reload_cmds
17922
17923 # An object symbol dumper.
17924 OBJDUMP=$lt_OBJDUMP
17925
17926 # Method to check whether dependent libraries are shared objects.
17927 deplibs_check_method=$lt_deplibs_check_method
17928
17929 # Command to use when deplibs_check_method == "file_magic".
17930 file_magic_cmd=$lt_file_magic_cmd
17931
17932 # The archiver.
17933 AR=$lt_AR
17934 AR_FLAGS=$lt_AR_FLAGS
17935
17936 # A symbol stripping program.
17937 STRIP=$lt_STRIP
17938
17939 # Commands used to install an old-style archive.
17940 RANLIB=$lt_RANLIB
17941 old_postinstall_cmds=$lt_old_postinstall_cmds
17942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17943
17944 # A C compiler.
17945 LTCC=$lt_CC
17946
17947 # LTCC compiler flags.
17948 LTCFLAGS=$lt_CFLAGS
17949
17950 # Take the output of nm and produce a listing of raw symbols and C names.
17951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17952
17953 # Transform the output of nm in a proper C declaration.
17954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17955
17956 # Transform the output of nm in a C name address pair.
17957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17958
17959 # Transform the output of nm in a C name address pair when lib prefix is needed.
17960 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17961
17962 # The name of the directory that contains temporary libtool files.
17963 objdir=$objdir
17964
17965 # Shell to use when invoking shell scripts.
17966 SHELL=$lt_SHELL
17967
17968 # An echo program that does not interpret backslashes.
17969 ECHO=$lt_ECHO
17970
17971 # Used to examine libraries when file_magic_cmd begins with "file".
17972 MAGIC_CMD=$MAGIC_CMD
17973
17974 # Must we lock files when doing compilation?
17975 need_locks=$lt_need_locks
17976
17977 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17978 DSYMUTIL=$lt_DSYMUTIL
17979
17980 # Tool to change global to local symbols on Mac OS X.
17981 NMEDIT=$lt_NMEDIT
17982
17983 # Tool to manipulate fat objects and archives on Mac OS X.
17984 LIPO=$lt_LIPO
17985
17986 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17987 OTOOL=$lt_OTOOL
17988
17989 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17990 OTOOL64=$lt_OTOOL64
17991
17992 # Old archive suffix (normally "a").
17993 libext=$libext
17994
17995 # Shared library suffix (normally ".so").
17996 shrext_cmds=$lt_shrext_cmds
17997
17998 # The commands to extract the exported symbol list from a shared archive.
17999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18000
18001 # Variables whose values should be saved in libtool wrapper scripts and
18002 # restored at link time.
18003 variables_saved_for_relink=$lt_variables_saved_for_relink
18004
18005 # Do we need the "lib" prefix for modules?
18006 need_lib_prefix=$need_lib_prefix
18007
18008 # Do we need a version for libraries?
18009 need_version=$need_version
18010
18011 # Library versioning type.
18012 version_type=$version_type
18013
18014 # Shared library runtime path variable.
18015 runpath_var=$runpath_var
18016
18017 # Shared library path variable.
18018 shlibpath_var=$shlibpath_var
18019
18020 # Is shlibpath searched before the hard-coded library search path?
18021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18022
18023 # Format of library name prefix.
18024 libname_spec=$lt_libname_spec
18025
18026 # List of archive names. First name is the real one, the rest are links.
18027 # The last name is the one that the linker finds with -lNAME
18028 library_names_spec=$lt_library_names_spec
18029
18030 # The coded name of the library, if different from the real name.
18031 soname_spec=$lt_soname_spec
18032
18033 # Command to use after installation of a shared archive.
18034 postinstall_cmds=$lt_postinstall_cmds
18035
18036 # Command to use after uninstallation of a shared archive.
18037 postuninstall_cmds=$lt_postuninstall_cmds
18038
18039 # Commands used to finish a libtool library installation in a directory.
18040 finish_cmds=$lt_finish_cmds
18041
18042 # As "finish_cmds", except a single script fragment to be evaled but
18043 # not shown.
18044 finish_eval=$lt_finish_eval
18045
18046 # Whether we should hardcode library paths into libraries.
18047 hardcode_into_libs=$hardcode_into_libs
18048
18049 # Compile-time system search path for libraries.
18050 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18051
18052 # Run-time system search path for libraries.
18053 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18054
18055 # Whether dlopen is supported.
18056 dlopen_support=$enable_dlopen
18057
18058 # Whether dlopen of programs is supported.
18059 dlopen_self=$enable_dlopen_self
18060
18061 # Whether dlopen of statically linked programs is supported.
18062 dlopen_self_static=$enable_dlopen_self_static
18063
18064 # Commands to strip libraries.
18065 old_striplib=$lt_old_striplib
18066 striplib=$lt_striplib
18067
18068
18069 # The linker used to build libraries.
18070 LD=$lt_LD
18071
18072 # Commands used to build an old-style archive.
18073 old_archive_cmds=$lt_old_archive_cmds
18074
18075 # A language specific compiler.
18076 CC=$lt_compiler
18077
18078 # Is the compiler the GNU compiler?
18079 with_gcc=$GCC
18080
18081 # Compiler flag to turn off builtin functions.
18082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18083
18084 # How to pass a linker flag through the compiler.
18085 wl=$lt_lt_prog_compiler_wl
18086
18087 # Additional compiler flags for building library objects.
18088 pic_flag=$lt_lt_prog_compiler_pic
18089
18090 # Compiler flag to prevent dynamic linking.
18091 link_static_flag=$lt_lt_prog_compiler_static
18092
18093 # Does compiler simultaneously support -c and -o options?
18094 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18095
18096 # Whether or not to add -lc for building shared libraries.
18097 build_libtool_need_lc=$archive_cmds_need_lc
18098
18099 # Whether or not to disallow shared libs when runtime libs are static.
18100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18101
18102 # Compiler flag to allow reflexive dlopens.
18103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18104
18105 # Compiler flag to generate shared objects directly from archives.
18106 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18107
18108 # Whether the compiler copes with passing no objects directly.
18109 compiler_needs_object=$lt_compiler_needs_object
18110
18111 # Create an old-style archive from a shared archive.
18112 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18113
18114 # Create a temporary old-style archive to link instead of a shared archive.
18115 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18116
18117 # Commands used to build a shared archive.
18118 archive_cmds=$lt_archive_cmds
18119 archive_expsym_cmds=$lt_archive_expsym_cmds
18120
18121 # Commands used to build a loadable module if different from building
18122 # a shared archive.
18123 module_cmds=$lt_module_cmds
18124 module_expsym_cmds=$lt_module_expsym_cmds
18125
18126 # Whether we are building with GNU ld or not.
18127 with_gnu_ld=$lt_with_gnu_ld
18128
18129 # Flag that allows shared libraries with undefined symbols to be built.
18130 allow_undefined_flag=$lt_allow_undefined_flag
18131
18132 # Flag that enforces no undefined symbols.
18133 no_undefined_flag=$lt_no_undefined_flag
18134
18135 # Flag to hardcode \$libdir into a binary during linking.
18136 # This must work even if \$libdir does not exist
18137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18138
18139 # If ld is used when linking, flag to hardcode \$libdir into a binary
18140 # during linking. This must work even if \$libdir does not exist.
18141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18142
18143 # Whether we need a single "-rpath" flag with a separated argument.
18144 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18145
18146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18147 # DIR into the resulting binary.
18148 hardcode_direct=$hardcode_direct
18149
18150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18151 # DIR into the resulting binary and the resulting library dependency is
18152 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18153 # library is relocated.
18154 hardcode_direct_absolute=$hardcode_direct_absolute
18155
18156 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18157 # into the resulting binary.
18158 hardcode_minus_L=$hardcode_minus_L
18159
18160 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18161 # into the resulting binary.
18162 hardcode_shlibpath_var=$hardcode_shlibpath_var
18163
18164 # Set to "yes" if building a shared library automatically hardcodes DIR
18165 # into the library and all subsequent libraries and executables linked
18166 # against it.
18167 hardcode_automatic=$hardcode_automatic
18168
18169 # Set to yes if linker adds runtime paths of dependent libraries
18170 # to runtime path list.
18171 inherit_rpath=$inherit_rpath
18172
18173 # Whether libtool must link a program against all its dependency libraries.
18174 link_all_deplibs=$link_all_deplibs
18175
18176 # Fix the shell variable \$srcfile for the compiler.
18177 fix_srcfile_path=$lt_fix_srcfile_path
18178
18179 # Set to "yes" if exported symbols are required.
18180 always_export_symbols=$always_export_symbols
18181
18182 # The commands to list exported symbols.
18183 export_symbols_cmds=$lt_export_symbols_cmds
18184
18185 # Symbols that should not be listed in the preloaded symbols.
18186 exclude_expsyms=$lt_exclude_expsyms
18187
18188 # Symbols that must always be exported.
18189 include_expsyms=$lt_include_expsyms
18190
18191 # Commands necessary for linking programs (against libraries) with templates.
18192 prelink_cmds=$lt_prelink_cmds
18193
18194 # Specify filename containing input files.
18195 file_list_spec=$lt_file_list_spec
18196
18197 # How to hardcode a shared library path into an executable.
18198 hardcode_action=$hardcode_action
18199
18200 # The directories searched by this compiler when creating a shared library.
18201 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18202
18203 # Dependencies to place before and after the objects being linked to
18204 # create a shared library.
18205 predep_objects=$lt_predep_objects
18206 postdep_objects=$lt_postdep_objects
18207 predeps=$lt_predeps
18208 postdeps=$lt_postdeps
18209
18210 # The library search path used internally by the compiler when linking
18211 # a shared library.
18212 compiler_lib_search_path=$lt_compiler_lib_search_path
18213
18214 # ### END LIBTOOL CONFIG
18215
18216 _LT_EOF
18217
18218 case $host_os in
18219 aix3*)
18220 cat <<\_LT_EOF >> "$cfgfile"
18221 # AIX sometimes has problems with the GCC collect2 program. For some
18222 # reason, if we set the COLLECT_NAMES environment variable, the problems
18223 # vanish in a puff of smoke.
18224 if test "X${COLLECT_NAMES+set}" != Xset; then
18225 COLLECT_NAMES=
18226 export COLLECT_NAMES
18227 fi
18228 _LT_EOF
18229 ;;
18230 esac
18231
18232
18233 ltmain="$ac_aux_dir/ltmain.sh"
18234
18235
18236 # We use sed instead of cat because bash on DJGPP gets confused if
18237 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18238 # text mode, it properly converts lines to CR/LF. This bash problem
18239 # is reportedly fixed, but why not run on old versions too?
18240 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18241 || (rm -f "$cfgfile"; exit 1)
18242
18243 case $xsi_shell in
18244 yes)
18245 cat << \_LT_EOF >> "$cfgfile"
18246
18247 # func_dirname file append nondir_replacement
18248 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18249 # otherwise set result to NONDIR_REPLACEMENT.
18250 func_dirname ()
18251 {
18252 case ${1} in
18253 */*) func_dirname_result="${1%/*}${2}" ;;
18254 * ) func_dirname_result="${3}" ;;
18255 esac
18256 }
18257
18258 # func_basename file
18259 func_basename ()
18260 {
18261 func_basename_result="${1##*/}"
18262 }
18263
18264 # func_dirname_and_basename file append nondir_replacement
18265 # perform func_basename and func_dirname in a single function
18266 # call:
18267 # dirname: Compute the dirname of FILE. If nonempty,
18268 # add APPEND to the result, otherwise set result
18269 # to NONDIR_REPLACEMENT.
18270 # value returned in "$func_dirname_result"
18271 # basename: Compute filename of FILE.
18272 # value retuned in "$func_basename_result"
18273 # Implementation must be kept synchronized with func_dirname
18274 # and func_basename. For efficiency, we do not delegate to
18275 # those functions but instead duplicate the functionality here.
18276 func_dirname_and_basename ()
18277 {
18278 case ${1} in
18279 */*) func_dirname_result="${1%/*}${2}" ;;
18280 * ) func_dirname_result="${3}" ;;
18281 esac
18282 func_basename_result="${1##*/}"
18283 }
18284
18285 # func_stripname prefix suffix name
18286 # strip PREFIX and SUFFIX off of NAME.
18287 # PREFIX and SUFFIX must not contain globbing or regex special
18288 # characters, hashes, percent signs, but SUFFIX may contain a leading
18289 # dot (in which case that matches only a dot).
18290 func_stripname ()
18291 {
18292 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18293 # positional parameters, so assign one to ordinary parameter first.
18294 func_stripname_result=${3}
18295 func_stripname_result=${func_stripname_result#"${1}"}
18296 func_stripname_result=${func_stripname_result%"${2}"}
18297 }
18298
18299 # func_opt_split
18300 func_opt_split ()
18301 {
18302 func_opt_split_opt=${1%%=*}
18303 func_opt_split_arg=${1#*=}
18304 }
18305
18306 # func_lo2o object
18307 func_lo2o ()
18308 {
18309 case ${1} in
18310 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18311 *) func_lo2o_result=${1} ;;
18312 esac
18313 }
18314
18315 # func_xform libobj-or-source
18316 func_xform ()
18317 {
18318 func_xform_result=${1%.*}.lo
18319 }
18320
18321 # func_arith arithmetic-term...
18322 func_arith ()
18323 {
18324 func_arith_result=$(( $* ))
18325 }
18326
18327 # func_len string
18328 # STRING may not start with a hyphen.
18329 func_len ()
18330 {
18331 func_len_result=${#1}
18332 }
18333
18334 _LT_EOF
18335 ;;
18336 *) # Bourne compatible functions.
18337 cat << \_LT_EOF >> "$cfgfile"
18338
18339 # func_dirname file append nondir_replacement
18340 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18341 # otherwise set result to NONDIR_REPLACEMENT.
18342 func_dirname ()
18343 {
18344 # Extract subdirectory from the argument.
18345 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18346 if test "X$func_dirname_result" = "X${1}"; then
18347 func_dirname_result="${3}"
18348 else
18349 func_dirname_result="$func_dirname_result${2}"
18350 fi
18351 }
18352
18353 # func_basename file
18354 func_basename ()
18355 {
18356 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18357 }
18358
18359
18360 # func_stripname prefix suffix name
18361 # strip PREFIX and SUFFIX off of NAME.
18362 # PREFIX and SUFFIX must not contain globbing or regex special
18363 # characters, hashes, percent signs, but SUFFIX may contain a leading
18364 # dot (in which case that matches only a dot).
18365 # func_strip_suffix prefix name
18366 func_stripname ()
18367 {
18368 case ${2} in
18369 .*) func_stripname_result=`$ECHO "X${3}" \
18370 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18371 *) func_stripname_result=`$ECHO "X${3}" \
18372 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18373 esac
18374 }
18375
18376 # sed scripts:
18377 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18378 my_sed_long_arg='1s/^-[^=]*=//'
18379
18380 # func_opt_split
18381 func_opt_split ()
18382 {
18383 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18384 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18385 }
18386
18387 # func_lo2o object
18388 func_lo2o ()
18389 {
18390 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18391 }
18392
18393 # func_xform libobj-or-source
18394 func_xform ()
18395 {
18396 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18397 }
18398
18399 # func_arith arithmetic-term...
18400 func_arith ()
18401 {
18402 func_arith_result=`expr "$@"`
18403 }
18404
18405 # func_len string
18406 # STRING may not start with a hyphen.
18407 func_len ()
18408 {
18409 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18410 }
18411
18412 _LT_EOF
18413 esac
18414
18415 case $lt_shell_append in
18416 yes)
18417 cat << \_LT_EOF >> "$cfgfile"
18418
18419 # func_append var value
18420 # Append VALUE to the end of shell variable VAR.
18421 func_append ()
18422 {
18423 eval "$1+=\$2"
18424 }
18425 _LT_EOF
18426 ;;
18427 *)
18428 cat << \_LT_EOF >> "$cfgfile"
18429
18430 # func_append var value
18431 # Append VALUE to the end of shell variable VAR.
18432 func_append ()
18433 {
18434 eval "$1=\$$1\$2"
18435 }
18436
18437 _LT_EOF
18438 ;;
18439 esac
18440
18441
18442 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18443 || (rm -f "$cfgfile"; exit 1)
18444
18445 mv -f "$cfgfile" "$ofile" ||
18446 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18447 chmod +x "$ofile"
18448
18449
18450 cat <<_LT_EOF >> "$ofile"
18451
18452 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18453
18454 # The linker used to build libraries.
18455 LD=$lt_LD_CXX
18456
18457 # Commands used to build an old-style archive.
18458 old_archive_cmds=$lt_old_archive_cmds_CXX
18459
18460 # A language specific compiler.
18461 CC=$lt_compiler_CXX
18462
18463 # Is the compiler the GNU compiler?
18464 with_gcc=$GCC_CXX
18465
18466 # Compiler flag to turn off builtin functions.
18467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18468
18469 # How to pass a linker flag through the compiler.
18470 wl=$lt_lt_prog_compiler_wl_CXX
18471
18472 # Additional compiler flags for building library objects.
18473 pic_flag=$lt_lt_prog_compiler_pic_CXX
18474
18475 # Compiler flag to prevent dynamic linking.
18476 link_static_flag=$lt_lt_prog_compiler_static_CXX
18477
18478 # Does compiler simultaneously support -c and -o options?
18479 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18480
18481 # Whether or not to add -lc for building shared libraries.
18482 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18483
18484 # Whether or not to disallow shared libs when runtime libs are static.
18485 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18486
18487 # Compiler flag to allow reflexive dlopens.
18488 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18489
18490 # Compiler flag to generate shared objects directly from archives.
18491 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18492
18493 # Whether the compiler copes with passing no objects directly.
18494 compiler_needs_object=$lt_compiler_needs_object_CXX
18495
18496 # Create an old-style archive from a shared archive.
18497 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18498
18499 # Create a temporary old-style archive to link instead of a shared archive.
18500 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18501
18502 # Commands used to build a shared archive.
18503 archive_cmds=$lt_archive_cmds_CXX
18504 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18505
18506 # Commands used to build a loadable module if different from building
18507 # a shared archive.
18508 module_cmds=$lt_module_cmds_CXX
18509 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18510
18511 # Whether we are building with GNU ld or not.
18512 with_gnu_ld=$lt_with_gnu_ld_CXX
18513
18514 # Flag that allows shared libraries with undefined symbols to be built.
18515 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18516
18517 # Flag that enforces no undefined symbols.
18518 no_undefined_flag=$lt_no_undefined_flag_CXX
18519
18520 # Flag to hardcode \$libdir into a binary during linking.
18521 # This must work even if \$libdir does not exist
18522 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18523
18524 # If ld is used when linking, flag to hardcode \$libdir into a binary
18525 # during linking. This must work even if \$libdir does not exist.
18526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18527
18528 # Whether we need a single "-rpath" flag with a separated argument.
18529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18530
18531 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18532 # DIR into the resulting binary.
18533 hardcode_direct=$hardcode_direct_CXX
18534
18535 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18536 # DIR into the resulting binary and the resulting library dependency is
18537 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18538 # library is relocated.
18539 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18540
18541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18542 # into the resulting binary.
18543 hardcode_minus_L=$hardcode_minus_L_CXX
18544
18545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18546 # into the resulting binary.
18547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18548
18549 # Set to "yes" if building a shared library automatically hardcodes DIR
18550 # into the library and all subsequent libraries and executables linked
18551 # against it.
18552 hardcode_automatic=$hardcode_automatic_CXX
18553
18554 # Set to yes if linker adds runtime paths of dependent libraries
18555 # to runtime path list.
18556 inherit_rpath=$inherit_rpath_CXX
18557
18558 # Whether libtool must link a program against all its dependency libraries.
18559 link_all_deplibs=$link_all_deplibs_CXX
18560
18561 # Fix the shell variable \$srcfile for the compiler.
18562 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18563
18564 # Set to "yes" if exported symbols are required.
18565 always_export_symbols=$always_export_symbols_CXX
18566
18567 # The commands to list exported symbols.
18568 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18569
18570 # Symbols that should not be listed in the preloaded symbols.
18571 exclude_expsyms=$lt_exclude_expsyms_CXX
18572
18573 # Symbols that must always be exported.
18574 include_expsyms=$lt_include_expsyms_CXX
18575
18576 # Commands necessary for linking programs (against libraries) with templates.
18577 prelink_cmds=$lt_prelink_cmds_CXX
18578
18579 # Specify filename containing input files.
18580 file_list_spec=$lt_file_list_spec_CXX
18581
18582 # How to hardcode a shared library path into an executable.
18583 hardcode_action=$hardcode_action_CXX
18584
18585 # The directories searched by this compiler when creating a shared library.
18586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18587
18588 # Dependencies to place before and after the objects being linked to
18589 # create a shared library.
18590 predep_objects=$lt_predep_objects_CXX
18591 postdep_objects=$lt_postdep_objects_CXX
18592 predeps=$lt_predeps_CXX
18593 postdeps=$lt_postdeps_CXX
18594
18595 # The library search path used internally by the compiler when linking
18596 # a shared library.
18597 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18598
18599 # ### END LIBTOOL TAG CONFIG: CXX
18600 _LT_EOF
18601
18602 ;;
18603
18604 esac
18605 done # for ac_tag
18606
18607
18608 as_fn_exit 0
18609 _ACEOF
18610 ac_clean_files=$ac_clean_files_save
18611
18612 test $ac_write_fail = 0 ||
18613 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18614
18615
18616 # configure is writing to config.log, and then calls config.status.
18617 # config.status does its own redirection, appending to config.log.
18618 # Unfortunately, on DOS this fails, as config.log is still kept open
18619 # by configure, so config.status won't be able to write to it; its
18620 # output is simply discarded. So we exec the FD to /dev/null,
18621 # effectively closing config.log, so it can be properly (re)opened and
18622 # appended to by config.status. When coming back to configure, we
18623 # need to make the FD available again.
18624 if test "$no_create" != yes; then
18625 ac_cs_success=:
18626 ac_config_status_args=
18627 test "$silent" = yes &&
18628 ac_config_status_args="$ac_config_status_args --quiet"
18629 exec 5>/dev/null
18630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18631 exec 5>>config.log
18632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18633 # would make configure fail if this is the last instruction.
18634 $ac_cs_success || as_fn_exit $?
18635 fi
18636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18639 fi
18640