]> git.saurik.com Git - cycript.git/blob - configure
Improve definition of CYIsClass using meta classes.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
10 # Foundation, 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 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='Cycript'
572 PACKAGE_TARNAME='cycript'
573 PACKAGE_VERSION='0.9'
574 PACKAGE_STRING='Cycript 0.9'
575 PACKAGE_BUGREPORT='saurik@saurik.com'
576 PACKAGE_URL='http://www.cycript.org/'
577
578 ac_unique_file="Console.cpp"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='LTLIBOBJS
616 LIBOBJS
617 CY_ATTACH_GROUP
618 CY_OBJECTIVEC_MACH
619 ac_ct__NM
620 _NM
621 ac_ct__LIPO
622 _LIPO
623 ac_ct__OTOOL
624 _OTOOL
625 SO
626 LTLIBICONV
627 LIBICONV
628 GNUSTEP_CONFIG
629 CY_OBJECTIVEC
630 LIBFFI_LIBS
631 LIBFFI_CFLAGS
632 CY_EXECUTE
633 WEBKIT_LIBS
634 WEBKIT_CFLAGS
635 LTLIBAPR
636 ac_ct_OBJCXX
637 OBJCXXFLAGS
638 OBJCXX
639 CXXCPP
640 ac_ct_CXX
641 CXXFLAGS
642 CXX
643 GIT
644 GNUTAR
645 INSTALL_DATA
646 INSTALL_SCRIPT
647 INSTALL_PROGRAM
648 GPERF
649 FLEX
650 BISON
651 TIME
652 _BASH
653 LTFLAGS
654 GMAKE
655 ifGNUmake
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CPP
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 STRIP
668 ac_ct_AR
669 AR
670 DLLTOOL
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 EGREP
679 GREP
680 SED
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_static
739 enable_shared
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 with_sysroot
744 enable_libtool_lock
745 enable_universal_binary
746 with_frameworks
747 with_apr
748 enable_javascript
749 enable_rpath
750 with_libiconv_prefix
751 '
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CC
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CPP
761 PKG_CONFIG
762 PKG_CONFIG_PATH
763 PKG_CONFIG_LIBDIR
764 BISON
765 FLEX
766 GPERF
767 CXX
768 CXXFLAGS
769 CCC
770 CXXCPP
771 OBJCXX
772 OBJCXXFLAGS
773 WEBKIT_CFLAGS
774 WEBKIT_LIBS
775 LIBFFI_CFLAGS
776 LIBFFI_LIBS
777 GNUSTEP_CONFIG'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of Cycript 0.9:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-static[=PKGS] build static libraries [default=no]
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --disable-universal-binary
1399 do not build with universal binary support on Darwin
1400 --enable-javascript[=ENGINE]
1401 use a JavaScript runtime (currently the only
1402 available option for ENGINE is JavaScriptCore)
1403 [default=yes]
1404 --disable-rpath do not hardcode runtime library paths
1405
1406 Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-pic try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412 --with-sysroot=DIR Search for dependent libraries within DIR
1413 (or the compiler's sysroot if not specified).
1414 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1415 path for frameworks with -F
1416 --with-apr=PATH prefix for installed APR or the full path to
1417 apr-config
1418 --with-gnu-ld assume the C compiler uses GNU ld default=no
1419 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1420 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1421
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431 PKG_CONFIG path to pkg-config utility
1432 PKG_CONFIG_PATH
1433 directories to add to pkg-config's search path
1434 PKG_CONFIG_LIBDIR
1435 path overriding pkg-config's built-in search path
1436 BISON GNU Project parser generator (yacc replacement)
1437 FLEX the fast lexical analyser generator
1438 GPERF perfect hash function generator
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CXXCPP C++ preprocessor
1442 OBJCXX Objective C++ compiler command
1443 OBJCXXFLAGS Objective C++ compiler flags
1444 WEBKIT_CFLAGS
1445 C compiler flags for WEBKIT, overriding pkg-config
1446 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1447 LIBFFI_CFLAGS
1448 C compiler flags for LIBFFI, overriding pkg-config
1449 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1450 GNUSTEP_CONFIG
1451 prints information about the current gnustep installation
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to <saurik@saurik.com>.
1457 Cycript home page: <http://www.cycript.org/>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515 fi
1516
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519 cat <<\_ACEOF
1520 Cycript configure 0.9
1521 generated by GNU Autoconf 2.68
1522
1523 Copyright (C) 2010 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527 exit
1528 fi
1529
1530 ## ------------------------ ##
1531 ## Autoconf initialization. ##
1532 ## ------------------------ ##
1533
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_compile
1571
1572 # ac_fn_c_try_link LINENO
1573 # -----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_link ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest$ac_exeext
1579 if { { ac_try="$ac_link"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 $as_test_x conftest$ac_exeext
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_link
1617
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629 else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637 else
1638 eval "$3=no"
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 fi
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647 } # ac_fn_c_check_header_compile
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743 #define $2 innocuous_$2
1744
1745 /* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1749
1750 #ifdef __STDC__
1751 # include <limits.h>
1752 #else
1753 # include <assert.h>
1754 #endif
1755
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 ();
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main ()
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_func
1794
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_cxx_try_compile
1832
1833 # ac_fn_cxx_try_cpp LINENO
1834 # ------------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_cpp ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1867
1868 } # ac_fn_cxx_try_cpp
1869
1870 # ac_fn_cxx_try_link LINENO
1871 # -------------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_link ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 $as_test_x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905 fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914 } # ac_fn_cxx_try_link
1915
1916 # ac_fn_objcxx_try_compile LINENO
1917 # -------------------------------
1918 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_objcxx_try_compile ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext
1923 if { { ac_try="$ac_compile"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_compile") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_objcxx_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest.$ac_objext; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948 fi
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_objcxx_try_compile
1953
1954 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1955 # ---------------------------------------------------------
1956 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1957 # the include files in INCLUDES and setting the cache variable VAR
1958 # accordingly.
1959 ac_fn_cxx_check_header_mongrel ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if eval \${$3+:} false; then :
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967 fi
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 else
1972 # Is the header compilable?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1974 $as_echo_n "checking $2 usability... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_cxx_try_compile "$LINENO"; then :
1981 ac_header_compiler=yes
1982 else
1983 ac_header_compiler=no
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1987 $as_echo "$ac_header_compiler" >&6; }
1988
1989 # Is the header present?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1991 $as_echo_n "checking $2 presence... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_cxx_try_cpp "$LINENO"; then :
1997 ac_header_preproc=yes
1998 else
1999 ac_header_preproc=no
2000 fi
2001 rm -f conftest.err conftest.i conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2003 $as_echo "$ac_header_preproc" >&6; }
2004
2005 # So? What about this header?
2006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2007 yes:no: )
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2009 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013 no:yes:* )
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2015 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2017 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2019 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2021 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ( $as_echo "## -------------------------------- ##
2025 ## Report this to saurik@saurik.com ##
2026 ## -------------------------------- ##"
2027 ) | sed "s/^/$as_me: WARNING: /" >&2
2028 ;;
2029 esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 eval "$3=\$ac_header_compiler"
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 fi
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_cxx_check_header_mongrel
2044
2045 # ac_fn_objcxx_try_link LINENO
2046 # ----------------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_objcxx_try_link ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_objcxx_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 $as_test_x conftest$ac_exeext
2073 }; then :
2074 ac_retval=0
2075 else
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080 fi
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2088
2089 } # ac_fn_objcxx_try_link
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2093
2094 It was created by Cycript $as_me 0.9, which was
2095 generated by GNU Autoconf 2.68. Invocation command line was
2096
2097 $ $0 $@
2098
2099 _ACEOF
2100 exec 5>>config.log
2101 {
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2106
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2123
2124 _ASUNAME
2125
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2134
2135 } >&5
2136
2137 cat >&5 <<_ACEOF
2138
2139
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2143
2144 _ACEOF
2145
2146
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2157 do
2158 for ac_arg
2159 do
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 2)
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2183 ;;
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2186 fi
2187 as_fn_append ac_configure_args " '$ac_arg'"
2188 ;;
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2194
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2202 {
2203 echo
2204
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2210 (
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2233 *)
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2235 ;;
2236 esac |
2237 sort
2238 )
2239 echo
2240
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2244 echo
2245 for ac_var in $ac_subst_vars
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2259 echo
2260 for ac_var in $ac_subst_files
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269 fi
2270
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2273 ## confdefs.h. ##
2274 ## ----------- ##"
2275 echo
2276 cat confdefs.h
2277 echo
2278 fi
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2286 ' 0
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2291
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2294
2295 $as_echo "/* confdefs.h */" > confdefs.h
2296
2297 # Predefined preprocessor variables.
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2322
2323
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
2335 elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338 else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2341 fi
2342 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 do
2344 test "x$ac_site_file" = xNONE && continue
2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 # Check that the precious variables saved in the cache have kept the same
2375 # value.
2376 ac_cache_corrupted=false
2377 for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2392 *)
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2422 fi
2423 done
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430 fi
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2434
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441
2442
2443 ac_aux_dir=
2444 for ac_dir in . "$srcdir"/.; do
2445 if test -f "$ac_dir/install-sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install-sh -c"
2448 break
2449 elif test -f "$ac_dir/install.sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install.sh -c"
2452 break
2453 elif test -f "$ac_dir/shtool"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/shtool install -c"
2456 break
2457 fi
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2461 fi
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
2472 case `pwd` in
2473 *\ * | *\ *)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2475 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2476 esac
2477
2478
2479
2480 macro_version='2.4'
2481 macro_revision='1.3293'
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495 ltmain="$ac_aux_dir/ltmain.sh"
2496
2497 # Make sure we can run config.sub.
2498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502 $as_echo_n "checking build system type... " >&6; }
2503 if ${ac_cv_build+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 ac_build_alias=$build_alias
2507 test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509 test "x$ac_build_alias" = x &&
2510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516 $as_echo "$ac_cv_build" >&6; }
2517 case $ac_cv_build in
2518 *-*-*) ;;
2519 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2520 esac
2521 build=$ac_cv_build
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_build
2524 shift
2525 build_cpu=$1
2526 build_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 build_os=$*
2531 IFS=$ac_save_IFS
2532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536 $as_echo_n "checking host system type... " >&6; }
2537 if ${ac_cv_host+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542 else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545 fi
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549 $as_echo "$ac_cv_host" >&6; }
2550 case $ac_cv_host in
2551 *-*-*) ;;
2552 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2553 esac
2554 host=$ac_cv_host
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_host
2557 shift
2558 host_cpu=$1
2559 host_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 host_os=$*
2564 IFS=$ac_save_IFS
2565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 # Backslashify metacharacters that are still active within
2569 # double-quoted strings.
2570 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2571
2572 # Same as above, but do not quote variable references.
2573 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2574
2575 # Sed substitution to delay expansion of an escaped shell variable in a
2576 # double_quote_subst'ed string.
2577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2578
2579 # Sed substitution to delay expansion of an escaped single quote.
2580 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2581
2582 # Sed substitution to avoid accidental globbing in evaled expressions
2583 no_glob_subst='s/\*/\\\*/g'
2584
2585 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2586 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2587 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2590 $as_echo_n "checking how to print strings... " >&6; }
2591 # Test print first, because it will be a builtin if present.
2592 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2593 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2594 ECHO='print -r --'
2595 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2596 ECHO='printf %s\n'
2597 else
2598 # Use this function as a fallback that always works.
2599 func_fallback_echo ()
2600 {
2601 eval 'cat <<_LTECHO_EOF
2602 $1
2603 _LTECHO_EOF'
2604 }
2605 ECHO='func_fallback_echo'
2606 fi
2607
2608 # func_echo_all arg...
2609 # Invoke $ECHO with all args, space-separated.
2610 func_echo_all ()
2611 {
2612 $ECHO ""
2613 }
2614
2615 case "$ECHO" in
2616 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2617 $as_echo "printf" >&6; } ;;
2618 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2619 $as_echo "print -r" >&6; } ;;
2620 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2621 $as_echo "cat" >&6; } ;;
2622 esac
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_CC"; then
2682 ac_ct_CC=$CC
2683 # Extract the first word of "gcc", so it can be a program name with args.
2684 set dummy gcc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_CC="gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713 $as_echo "$ac_ct_CC" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719 if test "x$ac_ct_CC" = x; then
2720 CC=""
2721 else
2722 case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728 CC=$ac_ct_CC
2729 fi
2730 else
2731 CC="$ac_cv_prog_CC"
2732 fi
2733
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}cc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_CC="${ac_tool_prefix}cc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 $as_echo "$CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773 fi
2774 fi
2775 if test -z "$CC"; then
2776 # Extract the first word of "cc", so it can be a program name with args.
2777 set dummy cc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 ac_prog_rejected=no
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795 ac_prog_rejected=yes
2796 continue
2797 fi
2798 ac_cv_prog_CC="cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 if test $ac_prog_rejected = yes; then
2807 # We found a bogon in the path, so make sure we never use it.
2808 set dummy $ac_cv_prog_CC
2809 shift
2810 if test $# != 0; then
2811 # We chose a different compiler from the bogus one.
2812 # However, it has the same basename, so the bogon will be chosen
2813 # first if we set CC to just the basename; use the full file name.
2814 shift
2815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 fi
2817 fi
2818 fi
2819 fi
2820 CC=$ac_cv_prog_CC
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 fi
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 for ac_prog in cl.exe
2834 do
2835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 test -n "$CC" && break
2873 done
2874 fi
2875 if test -z "$CC"; then
2876 ac_ct_CC=$CC
2877 for ac_prog in cl.exe
2878 do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 test -n "$ac_ct_CC" && break
2917 done
2918
2919 if test "x$ac_ct_CC" = x; then
2920 CC=""
2921 else
2922 case $cross_compiling:$ac_tool_warned in
2923 yes:)
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928 CC=$ac_ct_CC
2929 fi
2930 fi
2931
2932 fi
2933
2934
2935 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error $? "no acceptable C compiler found in \$PATH
2938 See \`config.log' for more details" "$LINENO" 5; }
2939
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2942 set X $ac_compile
2943 ac_compiler=$2
2944 for ac_option in --version -v -V -qversion; do
2945 { { ac_try="$ac_compiler $ac_option >&5"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953 ac_status=$?
2954 if test -s conftest.err; then
2955 sed '10a\
2956 ... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
2959 fi
2960 rm -f conftest.er1 conftest.err
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 done
2964
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 ac_clean_files_save=$ac_clean_files
2977 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978 # Try to create an executable without -o first, disregard a.out.
2979 # It will help us diagnose broken compilers, and finding out an intuition
2980 # of exeext.
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982 $as_echo_n "checking whether the C compiler works... " >&6; }
2983 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985 # The possible output files:
2986 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988 ac_rmfiles=
2989 for ac_file in $ac_files
2990 do
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995 done
2996 rm -f $ac_rmfiles
2997
2998 if { { ac_try="$ac_link_default"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3012 # so that the user can short-circuit this test for compilers unknown to
3013 # Autoconf.
3014 for ac_file in $ac_files ''
3015 do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 ;;
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 fi
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3035 * )
3036 break;;
3037 esac
3038 done
3039 test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041 else
3042 ac_file=''
3043 fi
3044 if test -z "$ac_file"; then :
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 $as_echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error 77 "C compiler cannot create executables
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056 $as_echo "yes" >&6; }
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059 $as_echo_n "checking for C compiler default output file name... " >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061 $as_echo "$ac_file" >&6; }
3062 ac_exeext=$ac_cv_exeext
3063
3064 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067 $as_echo_n "checking for suffix of executables... " >&6; }
3068 if { { ac_try="$ac_link"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081 # work properly (i.e., refer to `conftest.exe'), while it won't with
3082 # `rm'.
3083 for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091 done
3092 else
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details" "$LINENO" 5; }
3097 fi
3098 rm -f conftest conftest$ac_cv_exeext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100 $as_echo "$ac_cv_exeext" >&6; }
3101
3102 rm -f conftest.$ac_ext
3103 EXEEXT=$ac_cv_exeext
3104 ac_exeext=$EXEEXT
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107 #include <stdio.h>
3108 int
3109 main ()
3110 {
3111 FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3113
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 ac_clean_files="$ac_clean_files conftest.out"
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 if test "$cross_compiling" != yes; then
3124 { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details" "$LINENO" 5; }
3156 fi
3157 fi
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160 $as_echo "$cross_compiling" >&6; }
3161
3162 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if ${ac_cv_objext+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171
3172 int
3173 main ()
3174 {
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199 done
3200 else
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of object files: cannot compile
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 fi
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3214 ac_objext=$OBJEXT
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217 if ${ac_cv_c_compiler_gnu+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236 else
3237 ac_compiler_gnu=no
3238 fi
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3246 GCC=yes
3247 else
3248 GCC=
3249 fi
3250 ac_test_CFLAGS=${CFLAGS+set}
3251 ac_save_CFLAGS=$CFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3254 if ${ac_cv_prog_cc_g+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_save_c_werror_flag=$ac_c_werror_flag
3258 ac_c_werror_flag=yes
3259 ac_cv_prog_cc_g=no
3260 CFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_cv_prog_cc_g=yes
3274 else
3275 CFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288
3289 else
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305 fi
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314 $as_echo "$ac_cv_prog_cc_g" >&6; }
3315 if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317 elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3319 CFLAGS="-g -O2"
3320 else
3321 CFLAGS="-g"
3322 fi
3323 else
3324 if test "$GCC" = yes; then
3325 CFLAGS="-O2"
3326 else
3327 CFLAGS=
3328 fi
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332 if ${ac_cv_prog_cc_c89+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 ac_cv_prog_cc_c89=no
3336 ac_save_CC=$CC
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373 #define FOO(x) 'x'
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 int argc;
3381 char **argv;
3382 int
3383 main ()
3384 {
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392 do
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c89=$ac_arg
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3402
3403 fi
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c89" in
3406 x)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408 $as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411 $as_echo "unsupported" >&6; } ;;
3412 *)
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416 esac
3417 if test "x$ac_cv_prog_cc_c89" != xno; then :
3418
3419 fi
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3428 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3429 if ${ac_cv_path_SED+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3433 for ac_i in 1 2 3 4 5 6 7; do
3434 ac_script="$ac_script$as_nl$ac_script"
3435 done
3436 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3437 { ac_script=; unset ac_script;}
3438 if test -z "$SED"; then
3439 ac_path_SED_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in sed gsed; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3450 # Check for GNU ac_path_SED and select it if it is found.
3451 # Check for GNU $ac_path_SED
3452 case `"$ac_path_SED" --version 2>&1` in
3453 *GNU*)
3454 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3455 *)
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3459 do
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo '' >> "conftest.nl"
3464 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 as_fn_arith $ac_count + 1 && ac_count=$as_val
3467 if test $ac_count -gt ${ac_path_SED_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_SED="$ac_path_SED"
3470 ac_path_SED_max=$ac_count
3471 fi
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476 esac
3477
3478 $ac_path_SED_found && break 3
3479 done
3480 done
3481 done
3482 IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_SED"; then
3484 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3485 fi
3486 else
3487 ac_cv_path_SED=$SED
3488 fi
3489
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3492 $as_echo "$ac_cv_path_SED" >&6; }
3493 SED="$ac_cv_path_SED"
3494 rm -f conftest.sed
3495
3496 test -z "$SED" && SED=sed
3497 Xsed="$SED -e 1s/^X//"
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3511 if ${ac_cv_path_GREP+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -z "$GREP"; then
3515 ac_path_GREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519 do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in grep ggrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3526 # Check for GNU ac_path_GREP and select it if it is found.
3527 # Check for GNU $ac_path_GREP
3528 case `"$ac_path_GREP" --version 2>&1` in
3529 *GNU*)
3530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3531 *)
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3535 do
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'GREP' >> "conftest.nl"
3540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_GREP="$ac_path_GREP"
3546 ac_path_GREP_max=$ac_count
3547 fi
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552 esac
3553
3554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558 IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_GREP"; then
3560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3561 fi
3562 else
3563 ac_cv_path_GREP=$GREP
3564 fi
3565
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3568 $as_echo "$ac_cv_path_GREP" >&6; }
3569 GREP="$ac_cv_path_GREP"
3570
3571
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3573 $as_echo_n "checking for egrep... " >&6; }
3574 if ${ac_cv_path_EGREP+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3578 then ac_cv_path_EGREP="$GREP -E"
3579 else
3580 if test -z "$EGREP"; then
3581 ac_path_EGREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585 do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in egrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3592 # Check for GNU ac_path_EGREP and select it if it is found.
3593 # Check for GNU $ac_path_EGREP
3594 case `"$ac_path_EGREP" --version 2>&1` in
3595 *GNU*)
3596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597 *)
3598 ac_count=0
3599 $as_echo_n 0123456789 >"conftest.in"
3600 while :
3601 do
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 $as_echo 'EGREP' >> "conftest.nl"
3606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 as_fn_arith $ac_count + 1 && ac_count=$as_val
3609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_EGREP="$ac_path_EGREP"
3612 ac_path_EGREP_max=$ac_count
3613 fi
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618 esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624 IFS=$as_save_IFS
3625 if test -z "$ac_cv_path_EGREP"; then
3626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3627 fi
3628 else
3629 ac_cv_path_EGREP=$EGREP
3630 fi
3631
3632 fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3635 $as_echo "$ac_cv_path_EGREP" >&6; }
3636 EGREP="$ac_cv_path_EGREP"
3637
3638
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3640 $as_echo_n "checking for fgrep... " >&6; }
3641 if ${ac_cv_path_FGREP+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3645 then ac_cv_path_FGREP="$GREP -F"
3646 else
3647 if test -z "$FGREP"; then
3648 ac_path_FGREP_found=false
3649 # Loop through the user's path and test for each of PROGNAME-LIST
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_prog in fgrep; do
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3658 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3659 # Check for GNU ac_path_FGREP and select it if it is found.
3660 # Check for GNU $ac_path_FGREP
3661 case `"$ac_path_FGREP" --version 2>&1` in
3662 *GNU*)
3663 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3664 *)
3665 ac_count=0
3666 $as_echo_n 0123456789 >"conftest.in"
3667 while :
3668 do
3669 cat "conftest.in" "conftest.in" >"conftest.tmp"
3670 mv "conftest.tmp" "conftest.in"
3671 cp "conftest.in" "conftest.nl"
3672 $as_echo 'FGREP' >> "conftest.nl"
3673 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3675 as_fn_arith $ac_count + 1 && ac_count=$as_val
3676 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3677 # Best one so far, save it but keep looking for a better one
3678 ac_cv_path_FGREP="$ac_path_FGREP"
3679 ac_path_FGREP_max=$ac_count
3680 fi
3681 # 10*(2^10) chars as input seems more than enough
3682 test $ac_count -gt 10 && break
3683 done
3684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 esac
3686
3687 $ac_path_FGREP_found && break 3
3688 done
3689 done
3690 done
3691 IFS=$as_save_IFS
3692 if test -z "$ac_cv_path_FGREP"; then
3693 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3694 fi
3695 else
3696 ac_cv_path_FGREP=$FGREP
3697 fi
3698
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3702 $as_echo "$ac_cv_path_FGREP" >&6; }
3703 FGREP="$ac_cv_path_FGREP"
3704
3705
3706 test -z "$GREP" && GREP=grep
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726 # Check whether --with-gnu-ld was given.
3727 if test "${with_gnu_ld+set}" = set; then :
3728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3729 else
3730 with_gnu_ld=no
3731 fi
3732
3733 ac_prog=ld
3734 if test "$GCC" = yes; then
3735 # Check if gcc -print-prog-name=ld gives a path.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3737 $as_echo_n "checking for ld used by $CC... " >&6; }
3738 case $host in
3739 *-*-mingw*)
3740 # gcc leaves a trailing carriage return which upsets mingw
3741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3742 *)
3743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3744 esac
3745 case $ac_prog in
3746 # Accept absolute paths.
3747 [\\/]* | ?:[\\/]*)
3748 re_direlt='/[^/][^/]*/\.\./'
3749 # Canonicalize the pathname of ld
3750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3753 done
3754 test -z "$LD" && LD="$ac_prog"
3755 ;;
3756 "")
3757 # If it fails, then pretend we aren't using GCC.
3758 ac_prog=ld
3759 ;;
3760 *)
3761 # If it is relative, then search for the first ld in PATH.
3762 with_gnu_ld=unknown
3763 ;;
3764 esac
3765 elif test "$with_gnu_ld" = yes; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3767 $as_echo_n "checking for GNU ld... " >&6; }
3768 else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3770 $as_echo_n "checking for non-GNU ld... " >&6; }
3771 fi
3772 if ${lt_cv_path_LD+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$LD"; then
3776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3777 for ac_dir in $PATH; do
3778 IFS="$lt_save_ifs"
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3781 lt_cv_path_LD="$ac_dir/$ac_prog"
3782 # Check to see if the program is GNU ld. I'd rather use --version,
3783 # but apparently some variants of GNU ld only accept -v.
3784 # Break only if it was the GNU/non-GNU ld that we prefer.
3785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3786 *GNU* | *'with BFD'*)
3787 test "$with_gnu_ld" != no && break
3788 ;;
3789 *)
3790 test "$with_gnu_ld" != yes && break
3791 ;;
3792 esac
3793 fi
3794 done
3795 IFS="$lt_save_ifs"
3796 else
3797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3798 fi
3799 fi
3800
3801 LD="$lt_cv_path_LD"
3802 if test -n "$LD"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3804 $as_echo "$LD" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 fi
3809 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3812 if ${lt_cv_prog_gnu_ld+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3816 case `$LD -v 2>&1 </dev/null` in
3817 *GNU* | *'with BFD'*)
3818 lt_cv_prog_gnu_ld=yes
3819 ;;
3820 *)
3821 lt_cv_prog_gnu_ld=no
3822 ;;
3823 esac
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3827 with_gnu_ld=$lt_cv_prog_gnu_ld
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3838 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3839 if ${lt_cv_path_NM+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$NM"; then
3843 # Let the user override the test.
3844 lt_cv_path_NM="$NM"
3845 else
3846 lt_nm_to_check="${ac_tool_prefix}nm"
3847 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3848 lt_nm_to_check="$lt_nm_to_check nm"
3849 fi
3850 for lt_tmp_nm in $lt_nm_to_check; do
3851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3852 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3853 IFS="$lt_save_ifs"
3854 test -z "$ac_dir" && ac_dir=.
3855 tmp_nm="$ac_dir/$lt_tmp_nm"
3856 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3857 # Check to see if the nm accepts a BSD-compat flag.
3858 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3859 # nm: unknown option "B" ignored
3860 # Tru64's nm complains that /dev/null is an invalid object file
3861 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3862 */dev/null* | *'Invalid file or object type'*)
3863 lt_cv_path_NM="$tmp_nm -B"
3864 break
3865 ;;
3866 *)
3867 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3868 */dev/null*)
3869 lt_cv_path_NM="$tmp_nm -p"
3870 break
3871 ;;
3872 *)
3873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3874 continue # so that we can try to find one that supports BSD flags
3875 ;;
3876 esac
3877 ;;
3878 esac
3879 fi
3880 done
3881 IFS="$lt_save_ifs"
3882 done
3883 : ${lt_cv_path_NM=no}
3884 fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3887 $as_echo "$lt_cv_path_NM" >&6; }
3888 if test "$lt_cv_path_NM" != "no"; then
3889 NM="$lt_cv_path_NM"
3890 else
3891 # Didn't find any BSD compatible name lister, look for dumpbin.
3892 if test -n "$DUMPBIN"; then :
3893 # Let the user override the test.
3894 else
3895 if test -n "$ac_tool_prefix"; then
3896 for ac_prog in dumpbin "link -dump"
3897 do
3898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_DUMPBIN+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 if test -n "$DUMPBIN"; then
3906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 DUMPBIN=$ac_cv_prog_DUMPBIN
3926 if test -n "$DUMPBIN"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3928 $as_echo "$DUMPBIN" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935 test -n "$DUMPBIN" && break
3936 done
3937 fi
3938 if test -z "$DUMPBIN"; then
3939 ac_ct_DUMPBIN=$DUMPBIN
3940 for ac_prog in dumpbin "link -dump"
3941 do
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943 set dummy $ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$ac_ct_DUMPBIN"; then
3950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3970 if test -n "$ac_ct_DUMPBIN"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3972 $as_echo "$ac_ct_DUMPBIN" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979 test -n "$ac_ct_DUMPBIN" && break
3980 done
3981
3982 if test "x$ac_ct_DUMPBIN" = x; then
3983 DUMPBIN=":"
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 DUMPBIN=$ac_ct_DUMPBIN
3992 fi
3993 fi
3994
3995 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3996 *COFF*)
3997 DUMPBIN="$DUMPBIN -symbols"
3998 ;;
3999 *)
4000 DUMPBIN=:
4001 ;;
4002 esac
4003 fi
4004
4005 if test "$DUMPBIN" != ":"; then
4006 NM="$DUMPBIN"
4007 fi
4008 fi
4009 test -z "$NM" && NM=nm
4010
4011
4012
4013
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4017 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4018 if ${lt_cv_nm_interface+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 lt_cv_nm_interface="BSD nm"
4022 echo "int some_variable = 0;" > conftest.$ac_ext
4023 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4024 (eval "$ac_compile" 2>conftest.err)
4025 cat conftest.err >&5
4026 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4027 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4028 cat conftest.err >&5
4029 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4030 cat conftest.out >&5
4031 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4032 lt_cv_nm_interface="MS dumpbin"
4033 fi
4034 rm -f conftest*
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4037 $as_echo "$lt_cv_nm_interface" >&6; }
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4040 $as_echo_n "checking whether ln -s works... " >&6; }
4041 LN_S=$as_ln_s
4042 if test "$LN_S" = "ln -s"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044 $as_echo "yes" >&6; }
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4047 $as_echo "no, using $LN_S" >&6; }
4048 fi
4049
4050 # find the maximum length of command line arguments
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4052 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4053 if ${lt_cv_sys_max_cmd_len+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 i=0
4057 teststring="ABCD"
4058
4059 case $build_os in
4060 msdosdjgpp*)
4061 # On DJGPP, this test can blow up pretty badly due to problems in libc
4062 # (any single argument exceeding 2000 bytes causes a buffer overrun
4063 # during glob expansion). Even if it were fixed, the result of this
4064 # check would be larger than it should be.
4065 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4066 ;;
4067
4068 gnu*)
4069 # Under GNU Hurd, this test is not required because there is
4070 # no limit to the length of command line arguments.
4071 # Libtool will interpret -1 as no limit whatsoever
4072 lt_cv_sys_max_cmd_len=-1;
4073 ;;
4074
4075 cygwin* | mingw* | cegcc*)
4076 # On Win9x/ME, this test blows up -- it succeeds, but takes
4077 # about 5 minutes as the teststring grows exponentially.
4078 # Worse, since 9x/ME are not pre-emptively multitasking,
4079 # you end up with a "frozen" computer, even though with patience
4080 # the test eventually succeeds (with a max line length of 256k).
4081 # Instead, let's just punt: use the minimum linelength reported by
4082 # all of the supported platforms: 8192 (on NT/2K/XP).
4083 lt_cv_sys_max_cmd_len=8192;
4084 ;;
4085
4086 mint*)
4087 # On MiNT this can take a long time and run out of memory.
4088 lt_cv_sys_max_cmd_len=8192;
4089 ;;
4090
4091 amigaos*)
4092 # On AmigaOS with pdksh, this test takes hours, literally.
4093 # So we just punt and use a minimum line length of 8192.
4094 lt_cv_sys_max_cmd_len=8192;
4095 ;;
4096
4097 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4098 # This has been around since 386BSD, at least. Likely further.
4099 if test -x /sbin/sysctl; then
4100 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4101 elif test -x /usr/sbin/sysctl; then
4102 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4103 else
4104 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4105 fi
4106 # And add a safety zone
4107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4109 ;;
4110
4111 interix*)
4112 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4113 lt_cv_sys_max_cmd_len=196608
4114 ;;
4115
4116 osf*)
4117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4119 # nice to cause kernel panics so lets avoid the loop below.
4120 # First set a reasonable default.
4121 lt_cv_sys_max_cmd_len=16384
4122 #
4123 if test -x /sbin/sysconfig; then
4124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4125 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4126 esac
4127 fi
4128 ;;
4129 sco3.2v5*)
4130 lt_cv_sys_max_cmd_len=102400
4131 ;;
4132 sysv5* | sco5v6* | sysv4.2uw2*)
4133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4134 if test -n "$kargmax"; then
4135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4136 else
4137 lt_cv_sys_max_cmd_len=32768
4138 fi
4139 ;;
4140 *)
4141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4142 if test -n "$lt_cv_sys_max_cmd_len"; then
4143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4145 else
4146 # Make teststring a little bigger before we do anything with it.
4147 # a 1K string should be a reasonable start.
4148 for i in 1 2 3 4 5 6 7 8 ; do
4149 teststring=$teststring$teststring
4150 done
4151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4152 # If test is not a shell built-in, we'll probably end up computing a
4153 # maximum length that is only half of the actual maximum length, but
4154 # we can't tell.
4155 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4156 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4157 test $i != 17 # 1/2 MB should be enough
4158 do
4159 i=`expr $i + 1`
4160 teststring=$teststring$teststring
4161 done
4162 # Only check the string length outside the loop.
4163 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4164 teststring=
4165 # Add a significant safety factor because C++ compilers can tack on
4166 # massive amounts of additional arguments before passing them to the
4167 # linker. It appears as though 1/2 is a usable value.
4168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4169 fi
4170 ;;
4171 esac
4172
4173 fi
4174
4175 if test -n $lt_cv_sys_max_cmd_len ; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4177 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4180 $as_echo "none" >&6; }
4181 fi
4182 max_cmd_len=$lt_cv_sys_max_cmd_len
4183
4184
4185
4186
4187
4188
4189 : ${CP="cp -f"}
4190 : ${MV="mv -f"}
4191 : ${RM="rm -f"}
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4194 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4195 # Try some XSI features
4196 xsi_shell=no
4197 ( _lt_dummy="a/b/c"
4198 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4199 = c,a/b,b/c, \
4200 && eval 'test $(( 1 + 1 )) -eq 2 \
4201 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4202 && xsi_shell=yes
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4204 $as_echo "$xsi_shell" >&6; }
4205
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4208 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4209 lt_shell_append=no
4210 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4211 >/dev/null 2>&1 \
4212 && lt_shell_append=yes
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4214 $as_echo "$lt_shell_append" >&6; }
4215
4216
4217 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4218 lt_unset=unset
4219 else
4220 lt_unset=false
4221 fi
4222
4223
4224
4225
4226
4227 # test EBCDIC or ASCII
4228 case `echo X|tr X '\101'` in
4229 A) # ASCII based system
4230 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4231 lt_SP2NL='tr \040 \012'
4232 lt_NL2SP='tr \015\012 \040\040'
4233 ;;
4234 *) # EBCDIC based system
4235 lt_SP2NL='tr \100 \n'
4236 lt_NL2SP='tr \r\n \100\100'
4237 ;;
4238 esac
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4249 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4250 if ${lt_cv_to_host_file_cmd+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 case $host in
4254 *-*-mingw* )
4255 case $build in
4256 *-*-mingw* ) # actually msys
4257 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4258 ;;
4259 *-*-cygwin* )
4260 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4261 ;;
4262 * ) # otherwise, assume *nix
4263 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4264 ;;
4265 esac
4266 ;;
4267 *-*-cygwin* )
4268 case $build in
4269 *-*-mingw* ) # actually msys
4270 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4271 ;;
4272 *-*-cygwin* )
4273 lt_cv_to_host_file_cmd=func_convert_file_noop
4274 ;;
4275 * ) # otherwise, assume *nix
4276 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4277 ;;
4278 esac
4279 ;;
4280 * ) # unhandled hosts (and "normal" native builds)
4281 lt_cv_to_host_file_cmd=func_convert_file_noop
4282 ;;
4283 esac
4284
4285 fi
4286
4287 to_host_file_cmd=$lt_cv_to_host_file_cmd
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4289 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4290
4291
4292
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4296 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4297 if ${lt_cv_to_tool_file_cmd+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 #assume ordinary cross tools, or native build.
4301 lt_cv_to_tool_file_cmd=func_convert_file_noop
4302 case $host in
4303 *-*-mingw* )
4304 case $build in
4305 *-*-mingw* ) # actually msys
4306 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4307 ;;
4308 esac
4309 ;;
4310 esac
4311
4312 fi
4313
4314 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4316 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4317
4318
4319
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4323 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4324 if ${lt_cv_ld_reload_flag+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 lt_cv_ld_reload_flag='-r'
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4330 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4331 reload_flag=$lt_cv_ld_reload_flag
4332 case $reload_flag in
4333 "" | " "*) ;;
4334 *) reload_flag=" $reload_flag" ;;
4335 esac
4336 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4337 case $host_os in
4338 cygwin* | mingw* | pw32* | cegcc*)
4339 if test "$GCC" != yes; then
4340 reload_cmds=false
4341 fi
4342 ;;
4343 darwin*)
4344 if test "$GCC" = yes; then
4345 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4346 else
4347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4348 fi
4349 ;;
4350 esac
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360 if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4362 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_OBJDUMP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$OBJDUMP"; then
4369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4373 do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382 done
4383 done
4384 IFS=$as_save_IFS
4385
4386 fi
4387 fi
4388 OBJDUMP=$ac_cv_prog_OBJDUMP
4389 if test -n "$OBJDUMP"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4391 $as_echo "$OBJDUMP" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 fi
4399 if test -z "$ac_cv_prog_OBJDUMP"; then
4400 ac_ct_OBJDUMP=$OBJDUMP
4401 # Extract the first word of "objdump", so it can be a program name with args.
4402 set dummy objdump; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$ac_ct_OBJDUMP"; then
4409 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4429 if test -n "$ac_ct_OBJDUMP"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4431 $as_echo "$ac_ct_OBJDUMP" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437 if test "x$ac_ct_OBJDUMP" = x; then
4438 OBJDUMP="false"
4439 else
4440 case $cross_compiling:$ac_tool_warned in
4441 yes:)
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444 ac_tool_warned=yes ;;
4445 esac
4446 OBJDUMP=$ac_ct_OBJDUMP
4447 fi
4448 else
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
4450 fi
4451
4452 test -z "$OBJDUMP" && OBJDUMP=objdump
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4463 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4464 if ${lt_cv_deplibs_check_method+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 lt_cv_file_magic_cmd='$MAGIC_CMD'
4468 lt_cv_file_magic_test_file=
4469 lt_cv_deplibs_check_method='unknown'
4470 # Need to set the preceding variable on all platforms that support
4471 # interlibrary dependencies.
4472 # 'none' -- dependencies not supported.
4473 # `unknown' -- same as none, but documents that we really don't know.
4474 # 'pass_all' -- all dependencies passed with no checks.
4475 # 'test_compile' -- check by making test program.
4476 # 'file_magic [[regex]]' -- check by looking for files in library path
4477 # which responds to the $file_magic_cmd with a given extended regex.
4478 # If you have `file' or equivalent on your system and you're not sure
4479 # whether `pass_all' will *always* work, you probably want this one.
4480
4481 case $host_os in
4482 aix[4-9]*)
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
4485
4486 beos*)
4487 lt_cv_deplibs_check_method=pass_all
4488 ;;
4489
4490 bsdi[45]*)
4491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4492 lt_cv_file_magic_cmd='/usr/bin/file -L'
4493 lt_cv_file_magic_test_file=/shlib/libc.so
4494 ;;
4495
4496 cygwin*)
4497 # func_win32_libid is a shell function defined in ltmain.sh
4498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4499 lt_cv_file_magic_cmd='func_win32_libid'
4500 ;;
4501
4502 mingw* | pw32*)
4503 # Base MSYS/MinGW do not provide the 'file' command needed by
4504 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4505 # unless we find 'file', for example because we are cross-compiling.
4506 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4507 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4509 lt_cv_file_magic_cmd='func_win32_libid'
4510 else
4511 # Keep this pattern in sync with the one in func_win32_libid.
4512 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4513 lt_cv_file_magic_cmd='$OBJDUMP -f'
4514 fi
4515 ;;
4516
4517 cegcc*)
4518 # use the weaker test based on 'objdump'. See mingw*.
4519 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4520 lt_cv_file_magic_cmd='$OBJDUMP -f'
4521 ;;
4522
4523 darwin* | rhapsody*)
4524 lt_cv_deplibs_check_method=pass_all
4525 ;;
4526
4527 freebsd* | dragonfly*)
4528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4529 case $host_cpu in
4530 i*86 )
4531 # Not sure whether the presence of OpenBSD here was a mistake.
4532 # Let's accept both of them until this is cleared up.
4533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4534 lt_cv_file_magic_cmd=/usr/bin/file
4535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4536 ;;
4537 esac
4538 else
4539 lt_cv_deplibs_check_method=pass_all
4540 fi
4541 ;;
4542
4543 gnu*)
4544 lt_cv_deplibs_check_method=pass_all
4545 ;;
4546
4547 haiku*)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4550
4551 hpux10.20* | hpux11*)
4552 lt_cv_file_magic_cmd=/usr/bin/file
4553 case $host_cpu in
4554 ia64*)
4555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4557 ;;
4558 hppa*64*)
4559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4561 ;;
4562 *)
4563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4564 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4565 ;;
4566 esac
4567 ;;
4568
4569 interix[3-9]*)
4570 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4572 ;;
4573
4574 irix5* | irix6* | nonstopux*)
4575 case $LD in
4576 *-32|*"-32 ") libmagic=32-bit;;
4577 *-n32|*"-n32 ") libmagic=N32;;
4578 *-64|*"-64 ") libmagic=64-bit;;
4579 *) libmagic=never-match;;
4580 esac
4581 lt_cv_deplibs_check_method=pass_all
4582 ;;
4583
4584 # This must be Linux ELF.
4585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4586 lt_cv_deplibs_check_method=pass_all
4587 ;;
4588
4589 netbsd* | netbsdelf*-gnu)
4590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4592 else
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4594 fi
4595 ;;
4596
4597 newos6*)
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4599 lt_cv_file_magic_cmd=/usr/bin/file
4600 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4601 ;;
4602
4603 *nto* | *qnx*)
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
4606
4607 openbsd*)
4608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4610 else
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4612 fi
4613 ;;
4614
4615 osf3* | osf4* | osf5*)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618
4619 rdos*)
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
4623 solaris*)
4624 lt_cv_deplibs_check_method=pass_all
4625 ;;
4626
4627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4628 lt_cv_deplibs_check_method=pass_all
4629 ;;
4630
4631 sysv4 | sysv4.3*)
4632 case $host_vendor in
4633 motorola)
4634 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]'
4635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4636 ;;
4637 ncr)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640 sequent)
4641 lt_cv_file_magic_cmd='/bin/file'
4642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4643 ;;
4644 sni)
4645 lt_cv_file_magic_cmd='/bin/file'
4646 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4647 lt_cv_file_magic_test_file=/lib/libc.so
4648 ;;
4649 siemens)
4650 lt_cv_deplibs_check_method=pass_all
4651 ;;
4652 pc)
4653 lt_cv_deplibs_check_method=pass_all
4654 ;;
4655 esac
4656 ;;
4657
4658 tpf*)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4661 esac
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4665 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4666
4667 file_magic_glob=
4668 want_nocaseglob=no
4669 if test "$build" = "$host"; then
4670 case $host_os in
4671 mingw* | pw32*)
4672 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4673 want_nocaseglob=yes
4674 else
4675 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4676 fi
4677 ;;
4678 esac
4679 fi
4680
4681 file_magic_cmd=$lt_cv_file_magic_cmd
4682 deplibs_check_method=$lt_cv_deplibs_check_method
4683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 if test -n "$ac_tool_prefix"; then
4707 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4708 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_DLLTOOL+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$DLLTOOL"; then
4715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 DLLTOOL=$ac_cv_prog_DLLTOOL
4735 if test -n "$DLLTOOL"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4737 $as_echo "$DLLTOOL" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744 fi
4745 if test -z "$ac_cv_prog_DLLTOOL"; then
4746 ac_ct_DLLTOOL=$DLLTOOL
4747 # Extract the first word of "dlltool", so it can be a program name with args.
4748 set dummy dlltool; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -n "$ac_ct_DLLTOOL"; then
4755 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4775 if test -n "$ac_ct_DLLTOOL"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4777 $as_echo "$ac_ct_DLLTOOL" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4781 fi
4782
4783 if test "x$ac_ct_DLLTOOL" = x; then
4784 DLLTOOL="false"
4785 else
4786 case $cross_compiling:$ac_tool_warned in
4787 yes:)
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4790 ac_tool_warned=yes ;;
4791 esac
4792 DLLTOOL=$ac_ct_DLLTOOL
4793 fi
4794 else
4795 DLLTOOL="$ac_cv_prog_DLLTOOL"
4796 fi
4797
4798 test -z "$DLLTOOL" && DLLTOOL=dlltool
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4810 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4811 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 lt_cv_sharedlib_from_linklib_cmd='unknown'
4815
4816 case $host_os in
4817 cygwin* | mingw* | pw32* | cegcc*)
4818 # two different shell functions defined in ltmain.sh
4819 # decide which to use based on capabilities of $DLLTOOL
4820 case `$DLLTOOL --help 2>&1` in
4821 *--identify-strict*)
4822 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4823 ;;
4824 *)
4825 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4826 ;;
4827 esac
4828 ;;
4829 *)
4830 # fallback: assume linklib IS sharedlib
4831 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4832 ;;
4833 esac
4834
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4837 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4838 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4839 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4840
4841
4842
4843
4844
4845
4846
4847
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in ar
4850 do
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_AR+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$AR"; then
4859 ac_cv_prog_AR="$AR" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 AR=$ac_cv_prog_AR
4879 if test -n "$AR"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4881 $as_echo "$AR" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 test -n "$AR" && break
4889 done
4890 fi
4891 if test -z "$AR"; then
4892 ac_ct_AR=$AR
4893 for ac_prog in ar
4894 do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_AR"; then
4903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_AR="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4923 if test -n "$ac_ct_AR"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4925 $as_echo "$ac_ct_AR" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 test -n "$ac_ct_AR" && break
4933 done
4934
4935 if test "x$ac_ct_AR" = x; then
4936 AR="false"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 AR=$ac_ct_AR
4945 fi
4946 fi
4947
4948 : ${AR=ar}
4949 : ${AR_FLAGS=cru}
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4962 $as_echo_n "checking for archiver @FILE support... " >&6; }
4963 if ${lt_cv_ar_at_file+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 lt_cv_ar_at_file=no
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969
4970 int
4971 main ()
4972 {
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 echo conftest.$ac_objext > conftest.lst
4980 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4982 (eval $lt_ar_try) 2>&5
4983 ac_status=$?
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }
4986 if test "$ac_status" -eq 0; then
4987 # Ensure the archiver fails upon bogus file names.
4988 rm -f conftest.$ac_objext libconftest.a
4989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4990 (eval $lt_ar_try) 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }
4994 if test "$ac_status" -ne 0; then
4995 lt_cv_ar_at_file=@
4996 fi
4997 fi
4998 rm -f conftest.* libconftest.a
4999
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5005 $as_echo "$lt_cv_ar_at_file" >&6; }
5006
5007 if test "x$lt_cv_ar_at_file" = xno; then
5008 archiver_list_spec=
5009 else
5010 archiver_list_spec=$lt_cv_ar_at_file
5011 fi
5012
5013
5014
5015
5016
5017
5018
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}strip; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_STRIP+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$STRIP"; then
5028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 STRIP=$ac_cv_prog_STRIP
5048 if test -n "$STRIP"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5050 $as_echo "$STRIP" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057 fi
5058 if test -z "$ac_cv_prog_STRIP"; then
5059 ac_ct_STRIP=$STRIP
5060 # Extract the first word of "strip", so it can be a program name with args.
5061 set dummy strip; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$ac_ct_STRIP"; then
5068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_STRIP="strip"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5088 if test -n "$ac_ct_STRIP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5090 $as_echo "$ac_ct_STRIP" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095
5096 if test "x$ac_ct_STRIP" = x; then
5097 STRIP=":"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105 STRIP=$ac_ct_STRIP
5106 fi
5107 else
5108 STRIP="$ac_cv_prog_STRIP"
5109 fi
5110
5111 test -z "$STRIP" && STRIP=:
5112
5113
5114
5115
5116
5117
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_RANLIB+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 RANLIB=$ac_cv_prog_RANLIB
5147 if test -n "$RANLIB"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5149 $as_echo "$RANLIB" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 fi
5157 if test -z "$ac_cv_prog_RANLIB"; then
5158 ac_ct_RANLIB=$RANLIB
5159 # Extract the first word of "ranlib", so it can be a program name with args.
5160 set dummy ranlib; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$ac_ct_RANLIB"; then
5167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_ac_ct_RANLIB="ranlib"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5187 if test -n "$ac_ct_RANLIB"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5189 $as_echo "$ac_ct_RANLIB" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195 if test "x$ac_ct_RANLIB" = x; then
5196 RANLIB=":"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 RANLIB=$ac_ct_RANLIB
5205 fi
5206 else
5207 RANLIB="$ac_cv_prog_RANLIB"
5208 fi
5209
5210 test -z "$RANLIB" && RANLIB=:
5211
5212
5213
5214
5215
5216
5217 # Determine commands to create old-style static archives.
5218 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5219 old_postinstall_cmds='chmod 644 $oldlib'
5220 old_postuninstall_cmds=
5221
5222 if test -n "$RANLIB"; then
5223 case $host_os in
5224 openbsd*)
5225 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5226 ;;
5227 *)
5228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5229 ;;
5230 esac
5231 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5232 fi
5233
5234 case $host_os in
5235 darwin*)
5236 lock_old_archive_extraction=yes ;;
5237 *)
5238 lock_old_archive_extraction=no ;;
5239 esac
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 # If no C compiler was specified, use CC.
5280 LTCC=${LTCC-"$CC"}
5281
5282 # If no C compiler flags were specified, use CFLAGS.
5283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5284
5285 # Allow CC to be a program name with arguments.
5286 compiler=$CC
5287
5288
5289 # Check for command to grab the raw symbol name followed by C symbol from nm.
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5291 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5292 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295
5296 # These are sane defaults that work on at least a few old systems.
5297 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5298
5299 # Character class describing NM global symbol codes.
5300 symcode='[BCDEGRST]'
5301
5302 # Regexp to match symbols that can be accessed directly from C.
5303 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5304
5305 # Define system-specific variables.
5306 case $host_os in
5307 aix*)
5308 symcode='[BCDT]'
5309 ;;
5310 cygwin* | mingw* | pw32* | cegcc*)
5311 symcode='[ABCDGISTW]'
5312 ;;
5313 hpux*)
5314 if test "$host_cpu" = ia64; then
5315 symcode='[ABCDEGRST]'
5316 fi
5317 ;;
5318 irix* | nonstopux*)
5319 symcode='[BCDEGRST]'
5320 ;;
5321 osf*)
5322 symcode='[BCDEGQRST]'
5323 ;;
5324 solaris*)
5325 symcode='[BDRT]'
5326 ;;
5327 sco3.2v5*)
5328 symcode='[DT]'
5329 ;;
5330 sysv4.2uw2*)
5331 symcode='[DT]'
5332 ;;
5333 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5334 symcode='[ABDT]'
5335 ;;
5336 sysv4)
5337 symcode='[DFNSTU]'
5338 ;;
5339 esac
5340
5341 # If we're using GNU nm, then use its standard symbol codes.
5342 case `$NM -V 2>&1` in
5343 *GNU* | *'with BFD'*)
5344 symcode='[ABCDGIRSTW]' ;;
5345 esac
5346
5347 # Transform an extracted symbol line into a proper C declaration.
5348 # Some systems (esp. on ia64) link data and code symbols differently,
5349 # so use this general approach.
5350 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5351
5352 # Transform an extracted symbol line into symbol name and symbol address
5353 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5354 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'"
5355
5356 # Handle CRLF in mingw tool chain
5357 opt_cr=
5358 case $build_os in
5359 mingw*)
5360 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361 ;;
5362 esac
5363
5364 # Try without a prefix underscore, then with it.
5365 for ac_symprfx in "" "_"; do
5366
5367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5368 symxfrm="\\1 $ac_symprfx\\2 \\2"
5369
5370 # Write the raw and C identifiers.
5371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5372 # Fake it for dumpbin and say T for any non-static function
5373 # and D for any global variable.
5374 # Also find C++ and __fastcall symbols from MSVC++,
5375 # which start with @ or ?.
5376 lt_cv_sys_global_symbol_pipe="$AWK '"\
5377 " {last_section=section; section=\$ 3};"\
5378 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5379 " \$ 0!~/External *\|/{next};"\
5380 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5381 " {if(hide[section]) next};"\
5382 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5383 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5384 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5385 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5386 " ' prfx=^$ac_symprfx"
5387 else
5388 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5389 fi
5390 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5391
5392 # Check to see that the pipe works correctly.
5393 pipe_works=no
5394
5395 rm -f conftest*
5396 cat > conftest.$ac_ext <<_LT_EOF
5397 #ifdef __cplusplus
5398 extern "C" {
5399 #endif
5400 char nm_test_var;
5401 void nm_test_func(void);
5402 void nm_test_func(void){}
5403 #ifdef __cplusplus
5404 }
5405 #endif
5406 int main(){nm_test_var='a';nm_test_func();return(0);}
5407 _LT_EOF
5408
5409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5410 (eval $ac_compile) 2>&5
5411 ac_status=$?
5412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5413 test $ac_status = 0; }; then
5414 # Now try to grab the symbols.
5415 nlist=conftest.nm
5416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5417 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5418 ac_status=$?
5419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; } && test -s "$nlist"; then
5421 # Try sorting and uniquifying the output.
5422 if sort "$nlist" | uniq > "$nlist"T; then
5423 mv -f "$nlist"T "$nlist"
5424 else
5425 rm -f "$nlist"T
5426 fi
5427
5428 # Make sure that we snagged all the symbols we need.
5429 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5430 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5431 cat <<_LT_EOF > conftest.$ac_ext
5432 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5433 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5434 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5435 relocations are performed -- see ld's documentation on pseudo-relocs. */
5436 # define LT_DLSYM_CONST
5437 #elif defined(__osf__)
5438 /* This system does not cope well with relocations in const data. */
5439 # define LT_DLSYM_CONST
5440 #else
5441 # define LT_DLSYM_CONST const
5442 #endif
5443
5444 #ifdef __cplusplus
5445 extern "C" {
5446 #endif
5447
5448 _LT_EOF
5449 # Now generate the symbol file.
5450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5451
5452 cat <<_LT_EOF >> conftest.$ac_ext
5453
5454 /* The mapping between symbol names and symbols. */
5455 LT_DLSYM_CONST struct {
5456 const char *name;
5457 void *address;
5458 }
5459 lt__PROGRAM__LTX_preloaded_symbols[] =
5460 {
5461 { "@PROGRAM@", (void *) 0 },
5462 _LT_EOF
5463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5464 cat <<\_LT_EOF >> conftest.$ac_ext
5465 {0, (void *) 0}
5466 };
5467
5468 /* This works around a problem in FreeBSD linker */
5469 #ifdef FREEBSD_WORKAROUND
5470 static const void *lt_preloaded_setup() {
5471 return lt__PROGRAM__LTX_preloaded_symbols;
5472 }
5473 #endif
5474
5475 #ifdef __cplusplus
5476 }
5477 #endif
5478 _LT_EOF
5479 # Now try linking the two files.
5480 mv conftest.$ac_objext conftstm.$ac_objext
5481 lt_globsym_save_LIBS=$LIBS
5482 lt_globsym_save_CFLAGS=$CFLAGS
5483 LIBS="conftstm.$ac_objext"
5484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5486 (eval $ac_link) 2>&5
5487 ac_status=$?
5488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5490 pipe_works=yes
5491 fi
5492 LIBS=$lt_globsym_save_LIBS
5493 CFLAGS=$lt_globsym_save_CFLAGS
5494 else
5495 echo "cannot find nm_test_func in $nlist" >&5
5496 fi
5497 else
5498 echo "cannot find nm_test_var in $nlist" >&5
5499 fi
5500 else
5501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5502 fi
5503 else
5504 echo "$progname: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 fi
5507 rm -rf conftest* conftst*
5508
5509 # Do not use the global_symbol_pipe unless it works.
5510 if test "$pipe_works" = yes; then
5511 break
5512 else
5513 lt_cv_sys_global_symbol_pipe=
5514 fi
5515 done
5516
5517 fi
5518
5519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5520 lt_cv_sys_global_symbol_to_cdecl=
5521 fi
5522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5524 $as_echo "failed" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5527 $as_echo "ok" >&6; }
5528 fi
5529
5530 # Response file support.
5531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5532 nm_file_list_spec='@'
5533 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5534 nm_file_list_spec='@'
5535 fi
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5564 $as_echo_n "checking for sysroot... " >&6; }
5565
5566 # Check whether --with-sysroot was given.
5567 if test "${with_sysroot+set}" = set; then :
5568 withval=$with_sysroot;
5569 else
5570 with_sysroot=no
5571 fi
5572
5573
5574 lt_sysroot=
5575 case ${with_sysroot} in #(
5576 yes)
5577 if test "$GCC" = yes; then
5578 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5579 fi
5580 ;; #(
5581 /*)
5582 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5583 ;; #(
5584 no|'')
5585 ;; #(
5586 *)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5588 $as_echo "${with_sysroot}" >&6; }
5589 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5590 ;;
5591 esac
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5594 $as_echo "${lt_sysroot:-no}" >&6; }
5595
5596
5597
5598
5599
5600 # Check whether --enable-libtool-lock was given.
5601 if test "${enable_libtool_lock+set}" = set; then :
5602 enableval=$enable_libtool_lock;
5603 fi
5604
5605 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5606
5607 # Some flags need to be propagated to the compiler or linker for good
5608 # libtool support.
5609 case $host in
5610 ia64-*-hpux*)
5611 # Find out which ABI we are using.
5612 echo 'int i;' > conftest.$ac_ext
5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }; then
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *ELF-32*)
5620 HPUX_IA64_MODE="32"
5621 ;;
5622 *ELF-64*)
5623 HPUX_IA64_MODE="64"
5624 ;;
5625 esac
5626 fi
5627 rm -rf conftest*
5628 ;;
5629 *-*-irix6*)
5630 # Find out which ABI we are using.
5631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; then
5637 if test "$lt_cv_prog_gnu_ld" = yes; then
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -melf32bsmip"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -melf32bmipn32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -melf64bmip"
5647 ;;
5648 esac
5649 else
5650 case `/usr/bin/file conftest.$ac_objext` in
5651 *32-bit*)
5652 LD="${LD-ld} -32"
5653 ;;
5654 *N32*)
5655 LD="${LD-ld} -n32"
5656 ;;
5657 *64-bit*)
5658 LD="${LD-ld} -64"
5659 ;;
5660 esac
5661 fi
5662 fi
5663 rm -rf conftest*
5664 ;;
5665
5666 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5667 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5668 # Find out which ABI we are using.
5669 echo 'int i;' > conftest.$ac_ext
5670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }; then
5675 case `/usr/bin/file conftest.o` in
5676 *32-bit*)
5677 case $host in
5678 x86_64-*kfreebsd*-gnu)
5679 LD="${LD-ld} -m elf_i386_fbsd"
5680 ;;
5681 x86_64-*linux*)
5682 LD="${LD-ld} -m elf_i386"
5683 ;;
5684 ppc64-*linux*|powerpc64-*linux*)
5685 LD="${LD-ld} -m elf32ppclinux"
5686 ;;
5687 s390x-*linux*)
5688 LD="${LD-ld} -m elf_s390"
5689 ;;
5690 sparc64-*linux*)
5691 LD="${LD-ld} -m elf32_sparc"
5692 ;;
5693 esac
5694 ;;
5695 *64-bit*)
5696 case $host in
5697 x86_64-*kfreebsd*-gnu)
5698 LD="${LD-ld} -m elf_x86_64_fbsd"
5699 ;;
5700 x86_64-*linux*)
5701 LD="${LD-ld} -m elf_x86_64"
5702 ;;
5703 ppc*-*linux*|powerpc*-*linux*)
5704 LD="${LD-ld} -m elf64ppc"
5705 ;;
5706 s390*-*linux*|s390*-*tpf*)
5707 LD="${LD-ld} -m elf64_s390"
5708 ;;
5709 sparc*-*linux*)
5710 LD="${LD-ld} -m elf64_sparc"
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718
5719 *-*-sco3.2v5*)
5720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5721 SAVE_CFLAGS="$CFLAGS"
5722 CFLAGS="$CFLAGS -belf"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5724 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5725 if ${lt_cv_cc_needs_belf+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736
5737 int
5738 main ()
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_link "$LINENO"; then :
5746 lt_cv_cc_needs_belf=yes
5747 else
5748 lt_cv_cc_needs_belf=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 ac_ext=c
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5760 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5763 CFLAGS="$SAVE_CFLAGS"
5764 fi
5765 ;;
5766 sparc*-*solaris*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }; then
5774 case `/usr/bin/file conftest.o` in
5775 *64-bit*)
5776 case $lt_cv_prog_gnu_ld in
5777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5778 *)
5779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5780 LD="${LD-ld} -64"
5781 fi
5782 ;;
5783 esac
5784 ;;
5785 esac
5786 fi
5787 rm -rf conftest*
5788 ;;
5789 esac
5790
5791 need_locks="$enable_libtool_lock"
5792
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}mt; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 if test -n "$MANIFEST_TOOL"; then
5802 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5822 if test -n "$MANIFEST_TOOL"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5824 $as_echo "$MANIFEST_TOOL" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831 fi
5832 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5833 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5834 # Extract the first word of "mt", so it can be a program name with args.
5835 set dummy mt; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$ac_ct_MANIFEST_TOOL"; then
5842 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5862 if test -n "$ac_ct_MANIFEST_TOOL"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5864 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869
5870 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5871 MANIFEST_TOOL=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5878 esac
5879 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5880 fi
5881 else
5882 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5883 fi
5884
5885 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5887 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5888 if ${lt_cv_path_mainfest_tool+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 lt_cv_path_mainfest_tool=no
5892 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5893 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5894 cat conftest.err >&5
5895 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5896 lt_cv_path_mainfest_tool=yes
5897 fi
5898 rm -f conftest*
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5901 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5902 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5903 MANIFEST_TOOL=:
5904 fi
5905
5906
5907
5908
5909
5910
5911 case $host_os in
5912 rhapsody* | darwin*)
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$DSYMUTIL"; then
5922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5942 if test -n "$DSYMUTIL"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5944 $as_echo "$DSYMUTIL" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 fi
5952 if test -z "$ac_cv_prog_DSYMUTIL"; then
5953 ac_ct_DSYMUTIL=$DSYMUTIL
5954 # Extract the first word of "dsymutil", so it can be a program name with args.
5955 set dummy dsymutil; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$ac_ct_DSYMUTIL"; then
5962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5982 if test -n "$ac_ct_DSYMUTIL"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5984 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990 if test "x$ac_ct_DSYMUTIL" = x; then
5991 DSYMUTIL=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999 DSYMUTIL=$ac_ct_DSYMUTIL
6000 fi
6001 else
6002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6003 fi
6004
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_NMEDIT+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$NMEDIT"; then
6014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 NMEDIT=$ac_cv_prog_NMEDIT
6034 if test -n "$NMEDIT"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6036 $as_echo "$NMEDIT" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043 fi
6044 if test -z "$ac_cv_prog_NMEDIT"; then
6045 ac_ct_NMEDIT=$NMEDIT
6046 # Extract the first word of "nmedit", so it can be a program name with args.
6047 set dummy nmedit; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$ac_ct_NMEDIT"; then
6054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6074 if test -n "$ac_ct_NMEDIT"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6076 $as_echo "$ac_ct_NMEDIT" >&6; }
6077 else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082 if test "x$ac_ct_NMEDIT" = x; then
6083 NMEDIT=":"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091 NMEDIT=$ac_ct_NMEDIT
6092 fi
6093 else
6094 NMEDIT="$ac_cv_prog_NMEDIT"
6095 fi
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_LIPO+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$LIPO"; then
6106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 LIPO=$ac_cv_prog_LIPO
6126 if test -n "$LIPO"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6128 $as_echo "$LIPO" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_LIPO"; then
6137 ac_ct_LIPO=$LIPO
6138 # Extract the first word of "lipo", so it can be a program name with args.
6139 set dummy lipo; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_LIPO"; then
6146 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_LIPO="lipo"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6166 if test -n "$ac_ct_LIPO"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6168 $as_echo "$ac_ct_LIPO" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174 if test "x$ac_ct_LIPO" = x; then
6175 LIPO=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 LIPO=$ac_ct_LIPO
6184 fi
6185 else
6186 LIPO="$ac_cv_prog_LIPO"
6187 fi
6188
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}otool; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if ${ac_cv_prog_OTOOL+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if test -n "$OTOOL"; then
6198 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 OTOOL=$ac_cv_prog_OTOOL
6218 if test -n "$OTOOL"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6220 $as_echo "$OTOOL" >&6; }
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_OTOOL"; then
6229 ac_ct_OTOOL=$OTOOL
6230 # Extract the first word of "otool", so it can be a program name with args.
6231 set dummy otool; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 if test -n "$ac_ct_OTOOL"; then
6238 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_OTOOL="otool"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6258 if test -n "$ac_ct_OTOOL"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6260 $as_echo "$ac_ct_OTOOL" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266 if test "x$ac_ct_OTOOL" = x; then
6267 OTOOL=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275 OTOOL=$ac_ct_OTOOL
6276 fi
6277 else
6278 OTOOL="$ac_cv_prog_OTOOL"
6279 fi
6280
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_OTOOL64+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$OTOOL64"; then
6290 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 OTOOL64=$ac_cv_prog_OTOOL64
6310 if test -n "$OTOOL64"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6312 $as_echo "$OTOOL64" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 fi
6320 if test -z "$ac_cv_prog_OTOOL64"; then
6321 ac_ct_OTOOL64=$OTOOL64
6322 # Extract the first word of "otool64", so it can be a program name with args.
6323 set dummy otool64; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$ac_ct_OTOOL64"; then
6330 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_OTOOL64="otool64"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6350 if test -n "$ac_ct_OTOOL64"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6352 $as_echo "$ac_ct_OTOOL64" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358 if test "x$ac_ct_OTOOL64" = x; then
6359 OTOOL64=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 OTOOL64=$ac_ct_OTOOL64
6368 fi
6369 else
6370 OTOOL64="$ac_cv_prog_OTOOL64"
6371 fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6400 $as_echo_n "checking for -single_module linker flag... " >&6; }
6401 if ${lt_cv_apple_cc_single_mod+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 lt_cv_apple_cc_single_mod=no
6405 if test -z "${LT_MULTI_MODULE}"; then
6406 # By default we will add the -single_module flag. You can override
6407 # by either setting the environment variable LT_MULTI_MODULE
6408 # non-empty at configure time, or by adding -multi_module to the
6409 # link flags.
6410 rm -rf libconftest.dylib*
6411 echo "int foo(void){return 1;}" > conftest.c
6412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6413 -dynamiclib -Wl,-single_module conftest.c" >&5
6414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6416 _lt_result=$?
6417 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6418 lt_cv_apple_cc_single_mod=yes
6419 else
6420 cat conftest.err >&5
6421 fi
6422 rm -rf libconftest.dylib*
6423 rm -f conftest.*
6424 fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6427 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6429 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6430 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 lt_cv_ld_exported_symbols_list=no
6434 save_LDFLAGS=$LDFLAGS
6435 echo "_main" > conftest.sym
6436 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439
6440 int
6441 main ()
6442 {
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_c_try_link "$LINENO"; then :
6449 lt_cv_ld_exported_symbols_list=yes
6450 else
6451 lt_cv_ld_exported_symbols_list=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LDFLAGS="$save_LDFLAGS"
6456
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6459 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6461 $as_echo_n "checking for -force_load linker flag... " >&6; }
6462 if ${lt_cv_ld_force_load+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 lt_cv_ld_force_load=no
6466 cat > conftest.c << _LT_EOF
6467 int forced_loaded() { return 2;}
6468 _LT_EOF
6469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6471 echo "$AR cru libconftest.a conftest.o" >&5
6472 $AR cru libconftest.a conftest.o 2>&5
6473 echo "$RANLIB libconftest.a" >&5
6474 $RANLIB libconftest.a 2>&5
6475 cat > conftest.c << _LT_EOF
6476 int main() { return 0;}
6477 _LT_EOF
6478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6480 _lt_result=$?
6481 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6482 lt_cv_ld_force_load=yes
6483 else
6484 cat conftest.err >&5
6485 fi
6486 rm -f conftest.err libconftest.a conftest conftest.c
6487 rm -rf conftest.dSYM
6488
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6491 $as_echo "$lt_cv_ld_force_load" >&6; }
6492 case $host_os in
6493 rhapsody* | darwin1.[012])
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6495 darwin1.*)
6496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6497 darwin*) # darwin 5.x on
6498 # if running on 10.5 or later, the deployment target defaults
6499 # to the OS version, if on x86, and 10.4, the deployment
6500 # target defaults to 10.4. Don't you love it?
6501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6502 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6504 10.[012]*)
6505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6506 10.*)
6507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6508 esac
6509 ;;
6510 esac
6511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6512 _lt_dar_single_mod='$single_module'
6513 fi
6514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6516 else
6517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 fi
6519 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6520 _lt_dsymutil='~$DSYMUTIL $lib || :'
6521 else
6522 _lt_dsymutil=
6523 fi
6524 ;;
6525 esac
6526
6527 ac_ext=c
6528 ac_cpp='$CPP $CPPFLAGS'
6529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6533 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6534 # On Suns, sometimes $CPP names a directory.
6535 if test -n "$CPP" && test -d "$CPP"; then
6536 CPP=
6537 fi
6538 if test -z "$CPP"; then
6539 if ${ac_cv_prog_CPP+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 # Double quotes because CPP needs to be expanded
6543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6544 do
6545 ac_preproc_ok=false
6546 for ac_c_preproc_warn_flag in '' yes
6547 do
6548 # Use a header file that comes with gcc, so configuring glibc
6549 # with a fresh cross-compiler works.
6550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6551 # <limits.h> exists even on freestanding compilers.
6552 # On the NeXT, cc -E runs the code through the compiler's parser,
6553 # not just through cpp. "Syntax error" is here to catch this case.
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 #ifdef __STDC__
6557 # include <limits.h>
6558 #else
6559 # include <assert.h>
6560 #endif
6561 Syntax error
6562 _ACEOF
6563 if ac_fn_c_try_cpp "$LINENO"; then :
6564
6565 else
6566 # Broken: fails on valid input.
6567 continue
6568 fi
6569 rm -f conftest.err conftest.i conftest.$ac_ext
6570
6571 # OK, works on sane cases. Now check whether nonexistent headers
6572 # can be detected and how.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <ac_nonexistent.h>
6576 _ACEOF
6577 if ac_fn_c_try_cpp "$LINENO"; then :
6578 # Broken: success on invalid input.
6579 continue
6580 else
6581 # Passes both tests.
6582 ac_preproc_ok=:
6583 break
6584 fi
6585 rm -f conftest.err conftest.i conftest.$ac_ext
6586
6587 done
6588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6589 rm -f conftest.i conftest.err conftest.$ac_ext
6590 if $ac_preproc_ok; then :
6591 break
6592 fi
6593
6594 done
6595 ac_cv_prog_CPP=$CPP
6596
6597 fi
6598 CPP=$ac_cv_prog_CPP
6599 else
6600 ac_cv_prog_CPP=$CPP
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6603 $as_echo "$CPP" >&6; }
6604 ac_preproc_ok=false
6605 for ac_c_preproc_warn_flag in '' yes
6606 do
6607 # Use a header file that comes with gcc, so configuring glibc
6608 # with a fresh cross-compiler works.
6609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610 # <limits.h> exists even on freestanding compilers.
6611 # On the NeXT, cc -E runs the code through the compiler's parser,
6612 # not just through cpp. "Syntax error" is here to catch this case.
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 #ifdef __STDC__
6616 # include <limits.h>
6617 #else
6618 # include <assert.h>
6619 #endif
6620 Syntax error
6621 _ACEOF
6622 if ac_fn_c_try_cpp "$LINENO"; then :
6623
6624 else
6625 # Broken: fails on valid input.
6626 continue
6627 fi
6628 rm -f conftest.err conftest.i conftest.$ac_ext
6629
6630 # OK, works on sane cases. Now check whether nonexistent headers
6631 # can be detected and how.
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634 #include <ac_nonexistent.h>
6635 _ACEOF
6636 if ac_fn_c_try_cpp "$LINENO"; then :
6637 # Broken: success on invalid input.
6638 continue
6639 else
6640 # Passes both tests.
6641 ac_preproc_ok=:
6642 break
6643 fi
6644 rm -f conftest.err conftest.i conftest.$ac_ext
6645
6646 done
6647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6648 rm -f conftest.i conftest.err conftest.$ac_ext
6649 if $ac_preproc_ok; then :
6650
6651 else
6652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6654 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6655 See \`config.log' for more details" "$LINENO" 5; }
6656 fi
6657
6658 ac_ext=c
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6666 $as_echo_n "checking for ANSI C header files... " >&6; }
6667 if ${ac_cv_header_stdc+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <stdlib.h>
6673 #include <stdarg.h>
6674 #include <string.h>
6675 #include <float.h>
6676
6677 int
6678 main ()
6679 {
6680
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_header_stdc=yes
6687 else
6688 ac_cv_header_stdc=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691
6692 if test $ac_cv_header_stdc = yes; then
6693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <string.h>
6697
6698 _ACEOF
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "memchr" >/dev/null 2>&1; then :
6701
6702 else
6703 ac_cv_header_stdc=no
6704 fi
6705 rm -f conftest*
6706
6707 fi
6708
6709 if test $ac_cv_header_stdc = yes; then
6710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <stdlib.h>
6714
6715 _ACEOF
6716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "free" >/dev/null 2>&1; then :
6718
6719 else
6720 ac_cv_header_stdc=no
6721 fi
6722 rm -f conftest*
6723
6724 fi
6725
6726 if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then :
6729 :
6730 else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 #include <ctype.h>
6734 #include <stdlib.h>
6735 #if ((' ' & 0x0FF) == 0x020)
6736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738 #else
6739 # define ISLOWER(c) \
6740 (('a' <= (c) && (c) <= 'i') \
6741 || ('j' <= (c) && (c) <= 'r') \
6742 || ('s' <= (c) && (c) <= 'z'))
6743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744 #endif
6745
6746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6747 int
6748 main ()
6749 {
6750 int i;
6751 for (i = 0; i < 256; i++)
6752 if (XOR (islower (i), ISLOWER (i))
6753 || toupper (i) != TOUPPER (i))
6754 return 2;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_run "$LINENO"; then :
6759
6760 else
6761 ac_cv_header_stdc=no
6762 fi
6763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6764 conftest.$ac_objext conftest.beam conftest.$ac_ext
6765 fi
6766
6767 fi
6768 fi
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6770 $as_echo "$ac_cv_header_stdc" >&6; }
6771 if test $ac_cv_header_stdc = yes; then
6772
6773 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6774
6775 fi
6776
6777 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6778 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6779 inttypes.h stdint.h unistd.h
6780 do :
6781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6782 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6783 "
6784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787 _ACEOF
6788
6789 fi
6790
6791 done
6792
6793
6794 for ac_header in dlfcn.h
6795 do :
6796 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6797 "
6798 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_DLFCN_H 1
6801 _ACEOF
6802
6803 fi
6804
6805 done
6806
6807
6808
6809
6810
6811 # Set options
6812 # Check whether --enable-static was given.
6813 if test "${enable_static+set}" = set; then :
6814 enableval=$enable_static; p=${PACKAGE-default}
6815 case $enableval in
6816 yes) enable_static=yes ;;
6817 no) enable_static=no ;;
6818 *)
6819 enable_static=no
6820 # Look at the argument we got. We use all the common list separators.
6821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6822 for pkg in $enableval; do
6823 IFS="$lt_save_ifs"
6824 if test "X$pkg" = "X$p"; then
6825 enable_static=yes
6826 fi
6827 done
6828 IFS="$lt_save_ifs"
6829 ;;
6830 esac
6831 else
6832 enable_static=no
6833 fi
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 enable_dlopen=no
6845
6846
6847 enable_win32_dll=no
6848
6849
6850 # Check whether --enable-shared was given.
6851 if test "${enable_shared+set}" = set; then :
6852 enableval=$enable_shared; p=${PACKAGE-default}
6853 case $enableval in
6854 yes) enable_shared=yes ;;
6855 no) enable_shared=no ;;
6856 *)
6857 enable_shared=no
6858 # Look at the argument we got. We use all the common list separators.
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6860 for pkg in $enableval; do
6861 IFS="$lt_save_ifs"
6862 if test "X$pkg" = "X$p"; then
6863 enable_shared=yes
6864 fi
6865 done
6866 IFS="$lt_save_ifs"
6867 ;;
6868 esac
6869 else
6870 enable_shared=yes
6871 fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 # Check whether --with-pic was given.
6884 if test "${with_pic+set}" = set; then :
6885 withval=$with_pic; pic_mode="$withval"
6886 else
6887 pic_mode=default
6888 fi
6889
6890
6891 test -z "$pic_mode" && pic_mode=default
6892
6893
6894
6895
6896
6897
6898
6899 # Check whether --enable-fast-install was given.
6900 if test "${enable_fast_install+set}" = set; then :
6901 enableval=$enable_fast_install; p=${PACKAGE-default}
6902 case $enableval in
6903 yes) enable_fast_install=yes ;;
6904 no) enable_fast_install=no ;;
6905 *)
6906 enable_fast_install=no
6907 # Look at the argument we got. We use all the common list separators.
6908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6909 for pkg in $enableval; do
6910 IFS="$lt_save_ifs"
6911 if test "X$pkg" = "X$p"; then
6912 enable_fast_install=yes
6913 fi
6914 done
6915 IFS="$lt_save_ifs"
6916 ;;
6917 esac
6918 else
6919 enable_fast_install=yes
6920 fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # This can be used to rebuild libtool when needed
6933 LIBTOOL_DEPS="$ltmain"
6934
6935 # Always use our own libtool.
6936 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963 test -z "$LN_S" && LN_S="ln -s"
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 if test -n "${ZSH_VERSION+set}" ; then
6979 setopt NO_GLOB_SUBST
6980 fi
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6983 $as_echo_n "checking for objdir... " >&6; }
6984 if ${lt_cv_objdir+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986 else
6987 rm -f .libs 2>/dev/null
6988 mkdir .libs 2>/dev/null
6989 if test -d .libs; then
6990 lt_cv_objdir=.libs
6991 else
6992 # MS-DOS does not allow filenames that begin with a dot.
6993 lt_cv_objdir=_libs
6994 fi
6995 rmdir .libs 2>/dev/null
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6998 $as_echo "$lt_cv_objdir" >&6; }
6999 objdir=$lt_cv_objdir
7000
7001
7002
7003
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define LT_OBJDIR "$lt_cv_objdir/"
7007 _ACEOF
7008
7009
7010
7011
7012 case $host_os in
7013 aix3*)
7014 # AIX sometimes has problems with the GCC collect2 program. For some
7015 # reason, if we set the COLLECT_NAMES environment variable, the problems
7016 # vanish in a puff of smoke.
7017 if test "X${COLLECT_NAMES+set}" != Xset; then
7018 COLLECT_NAMES=
7019 export COLLECT_NAMES
7020 fi
7021 ;;
7022 esac
7023
7024 # Global variables:
7025 ofile=libtool
7026 can_build_shared=yes
7027
7028 # All known linkers require a `.a' archive for static linking (except MSVC,
7029 # which needs '.lib').
7030 libext=a
7031
7032 with_gnu_ld="$lt_cv_prog_gnu_ld"
7033
7034 old_CC="$CC"
7035 old_CFLAGS="$CFLAGS"
7036
7037 # Set sane defaults for various variables
7038 test -z "$CC" && CC=cc
7039 test -z "$LTCC" && LTCC=$CC
7040 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7041 test -z "$LD" && LD=ld
7042 test -z "$ac_objext" && ac_objext=o
7043
7044 for cc_temp in $compiler""; do
7045 case $cc_temp in
7046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7048 \-*) ;;
7049 *) break;;
7050 esac
7051 done
7052 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7053
7054
7055 # Only perform the check for file, if the check method requires it
7056 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7057 case $deplibs_check_method in
7058 file_magic*)
7059 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7061 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 case $MAGIC_CMD in
7066 [\\/*] | ?:[\\/]*)
7067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 lt_save_MAGIC_CMD="$MAGIC_CMD"
7071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073 for ac_dir in $ac_dummy; do
7074 IFS="$lt_save_ifs"
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/${ac_tool_prefix}file; then
7077 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7078 if test -n "$file_magic_test_file"; then
7079 case $deplibs_check_method in
7080 "file_magic "*)
7081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084 $EGREP "$file_magic_regex" > /dev/null; then
7085 :
7086 else
7087 cat <<_LT_EOF 1>&2
7088
7089 *** Warning: the command libtool uses to detect shared libraries,
7090 *** $file_magic_cmd, produces output that libtool cannot recognize.
7091 *** The result is that libtool may fail to recognize shared libraries
7092 *** as such. This will affect the creation of libtool libraries that
7093 *** depend on shared libraries, but programs linked with such libtool
7094 *** libraries will work regardless of this problem. Nevertheless, you
7095 *** may want to report the problem to your system manager and/or to
7096 *** bug-libtool@gnu.org
7097
7098 _LT_EOF
7099 fi ;;
7100 esac
7101 fi
7102 break
7103 fi
7104 done
7105 IFS="$lt_save_ifs"
7106 MAGIC_CMD="$lt_save_MAGIC_CMD"
7107 ;;
7108 esac
7109 fi
7110
7111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112 if test -n "$MAGIC_CMD"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7114 $as_echo "$MAGIC_CMD" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121
7122
7123
7124 if test -z "$lt_cv_path_MAGIC_CMD"; then
7125 if test -n "$ac_tool_prefix"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7127 $as_echo_n "checking for file... " >&6; }
7128 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 case $MAGIC_CMD in
7132 [\\/*] | ?:[\\/]*)
7133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7134 ;;
7135 *)
7136 lt_save_MAGIC_CMD="$MAGIC_CMD"
7137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139 for ac_dir in $ac_dummy; do
7140 IFS="$lt_save_ifs"
7141 test -z "$ac_dir" && ac_dir=.
7142 if test -f $ac_dir/file; then
7143 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7144 if test -n "$file_magic_test_file"; then
7145 case $deplibs_check_method in
7146 "file_magic "*)
7147 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150 $EGREP "$file_magic_regex" > /dev/null; then
7151 :
7152 else
7153 cat <<_LT_EOF 1>&2
7154
7155 *** Warning: the command libtool uses to detect shared libraries,
7156 *** $file_magic_cmd, produces output that libtool cannot recognize.
7157 *** The result is that libtool may fail to recognize shared libraries
7158 *** as such. This will affect the creation of libtool libraries that
7159 *** depend on shared libraries, but programs linked with such libtool
7160 *** libraries will work regardless of this problem. Nevertheless, you
7161 *** may want to report the problem to your system manager and/or to
7162 *** bug-libtool@gnu.org
7163
7164 _LT_EOF
7165 fi ;;
7166 esac
7167 fi
7168 break
7169 fi
7170 done
7171 IFS="$lt_save_ifs"
7172 MAGIC_CMD="$lt_save_MAGIC_CMD"
7173 ;;
7174 esac
7175 fi
7176
7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178 if test -n "$MAGIC_CMD"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7180 $as_echo "$MAGIC_CMD" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 else
7188 MAGIC_CMD=:
7189 fi
7190 fi
7191
7192 fi
7193 ;;
7194 esac
7195
7196 # Use C for the default configuration in the libtool script
7197
7198 lt_save_CC="$CC"
7199 ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204
7205
7206 # Source file extension for C test sources.
7207 ac_ext=c
7208
7209 # Object file extension for compiled C test sources.
7210 objext=o
7211 objext=$objext
7212
7213 # Code to be used in simple compile tests
7214 lt_simple_compile_test_code="int some_variable = 0;"
7215
7216 # Code to be used in simple link tests
7217 lt_simple_link_test_code='int main(){return(0);}'
7218
7219
7220
7221
7222
7223
7224
7225 # If no C compiler was specified, use CC.
7226 LTCC=${LTCC-"$CC"}
7227
7228 # If no C compiler flags were specified, use CFLAGS.
7229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7230
7231 # Allow CC to be a program name with arguments.
7232 compiler=$CC
7233
7234 # Save the default compiler, since it gets overwritten when the other
7235 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7236 compiler_DEFAULT=$CC
7237
7238 # save warnings/boilerplate of simple test code
7239 ac_outfile=conftest.$ac_objext
7240 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7242 _lt_compiler_boilerplate=`cat conftest.err`
7243 $RM conftest*
7244
7245 ac_outfile=conftest.$ac_objext
7246 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7248 _lt_linker_boilerplate=`cat conftest.err`
7249 $RM -r conftest*
7250
7251
7252 if test -n "$compiler"; then
7253
7254 lt_prog_compiler_no_builtin_flag=
7255
7256 if test "$GCC" = yes; then
7257 case $cc_basename in
7258 nvcc*)
7259 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7260 *)
7261 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7262 esac
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7265 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7266 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 lt_cv_prog_compiler_rtti_exceptions=no
7270 ac_outfile=conftest.$ac_objext
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272 lt_compiler_flag="-fno-rtti -fno-exceptions"
7273 # Insert the option either (1) after the last *FLAGS variable, or
7274 # (2) before a word containing "conftest.", or (3) at the end.
7275 # Note that $ac_compile itself does not contain backslashes and begins
7276 # with a dollar sign (not a hyphen), so the echo should work correctly.
7277 # The option is referenced via a variable to avoid confusing sed.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
7282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7283 (eval "$lt_compile" 2>conftest.err)
7284 ac_status=$?
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 if (exit $ac_status) && test -s "$ac_outfile"; then
7288 # The compiler can only warn and ignore the option if not recognized
7289 # So say no if there are warnings other than the usual output.
7290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7293 lt_cv_prog_compiler_rtti_exceptions=yes
7294 fi
7295 fi
7296 $RM conftest*
7297
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7300 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7301
7302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7304 else
7305 :
7306 fi
7307
7308 fi
7309
7310
7311
7312
7313
7314
7315 lt_prog_compiler_wl=
7316 lt_prog_compiler_pic=
7317 lt_prog_compiler_static=
7318
7319
7320 if test "$GCC" = yes; then
7321 lt_prog_compiler_wl='-Wl,'
7322 lt_prog_compiler_static='-static'
7323
7324 case $host_os in
7325 aix*)
7326 # All AIX code is PIC.
7327 if test "$host_cpu" = ia64; then
7328 # AIX 5 now supports IA64 processor
7329 lt_prog_compiler_static='-Bstatic'
7330 fi
7331 ;;
7332
7333 amigaos*)
7334 case $host_cpu in
7335 powerpc)
7336 # see comment about AmigaOS4 .so support
7337 lt_prog_compiler_pic='-fPIC'
7338 ;;
7339 m68k)
7340 # FIXME: we need at least 68020 code to build shared libraries, but
7341 # adding the `-m68020' flag to GCC prevents building anything better,
7342 # like `-m68040'.
7343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7344 ;;
7345 esac
7346 ;;
7347
7348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7349 # PIC is the default for these OSes.
7350 ;;
7351
7352 mingw* | cygwin* | pw32* | os2* | cegcc*)
7353 # This hack is so that the source file can tell whether it is being
7354 # built for inclusion in a dll (and should export symbols for example).
7355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7356 # (--disable-auto-import) libraries
7357 lt_prog_compiler_pic='-DDLL_EXPORT'
7358 ;;
7359
7360 darwin* | rhapsody*)
7361 # PIC is the default on this platform
7362 # Common symbols not allowed in MH_DYLIB files
7363 lt_prog_compiler_pic='-fno-common'
7364 ;;
7365
7366 haiku*)
7367 # PIC is the default for Haiku.
7368 # The "-static" flag exists, but is broken.
7369 lt_prog_compiler_static=
7370 ;;
7371
7372 hpux*)
7373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7375 # sets the default TLS model and affects inlining.
7376 case $host_cpu in
7377 hppa*64*)
7378 # +Z the default
7379 ;;
7380 *)
7381 lt_prog_compiler_pic='-fPIC'
7382 ;;
7383 esac
7384 ;;
7385
7386 interix[3-9]*)
7387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7388 # Instead, we relocate shared libraries at runtime.
7389 ;;
7390
7391 msdosdjgpp*)
7392 # Just because we use GCC doesn't mean we suddenly get shared libraries
7393 # on systems that don't support them.
7394 lt_prog_compiler_can_build_shared=no
7395 enable_shared=no
7396 ;;
7397
7398 *nto* | *qnx*)
7399 # QNX uses GNU C++, but need to define -shared option too, otherwise
7400 # it will coredump.
7401 lt_prog_compiler_pic='-fPIC -shared'
7402 ;;
7403
7404 sysv4*MP*)
7405 if test -d /usr/nec; then
7406 lt_prog_compiler_pic=-Kconform_pic
7407 fi
7408 ;;
7409
7410 *)
7411 lt_prog_compiler_pic='-fPIC'
7412 ;;
7413 esac
7414
7415 case $cc_basename in
7416 nvcc*) # Cuda Compiler Driver 2.2
7417 lt_prog_compiler_wl='-Xlinker '
7418 lt_prog_compiler_pic='-Xcompiler -fPIC'
7419 ;;
7420 esac
7421 else
7422 # PORTME Check for flag to pass linker flags through the system compiler.
7423 case $host_os in
7424 aix*)
7425 lt_prog_compiler_wl='-Wl,'
7426 if test "$host_cpu" = ia64; then
7427 # AIX 5 now supports IA64 processor
7428 lt_prog_compiler_static='-Bstatic'
7429 else
7430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7431 fi
7432 ;;
7433
7434 mingw* | cygwin* | pw32* | os2* | cegcc*)
7435 # This hack is so that the source file can tell whether it is being
7436 # built for inclusion in a dll (and should export symbols for example).
7437 lt_prog_compiler_pic='-DDLL_EXPORT'
7438 ;;
7439
7440 hpux9* | hpux10* | hpux11*)
7441 lt_prog_compiler_wl='-Wl,'
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 # not for PA HP-UX.
7444 case $host_cpu in
7445 hppa*64*|ia64*)
7446 # +Z the default
7447 ;;
7448 *)
7449 lt_prog_compiler_pic='+Z'
7450 ;;
7451 esac
7452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7453 lt_prog_compiler_static='${wl}-a ${wl}archive'
7454 ;;
7455
7456 irix5* | irix6* | nonstopux*)
7457 lt_prog_compiler_wl='-Wl,'
7458 # PIC (with -KPIC) is the default.
7459 lt_prog_compiler_static='-non_shared'
7460 ;;
7461
7462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7463 case $cc_basename in
7464 # old Intel for x86_64 which still supported -KPIC.
7465 ecc*)
7466 lt_prog_compiler_wl='-Wl,'
7467 lt_prog_compiler_pic='-KPIC'
7468 lt_prog_compiler_static='-static'
7469 ;;
7470 # icc used to be incompatible with GCC.
7471 # ICC 10 doesn't accept -KPIC any more.
7472 icc* | ifort*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_pic='-fPIC'
7475 lt_prog_compiler_static='-static'
7476 ;;
7477 # Lahey Fortran 8.1.
7478 lf95*)
7479 lt_prog_compiler_wl='-Wl,'
7480 lt_prog_compiler_pic='--shared'
7481 lt_prog_compiler_static='--static'
7482 ;;
7483 nagfor*)
7484 # NAG Fortran compiler
7485 lt_prog_compiler_wl='-Wl,-Wl,,'
7486 lt_prog_compiler_pic='-PIC'
7487 lt_prog_compiler_static='-Bstatic'
7488 ;;
7489 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7490 # Portland Group compilers (*not* the Pentium gcc compiler,
7491 # which looks to be a dead project)
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_pic='-fpic'
7494 lt_prog_compiler_static='-Bstatic'
7495 ;;
7496 ccc*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # All Alpha code is PIC.
7499 lt_prog_compiler_static='-non_shared'
7500 ;;
7501 xl* | bgxl* | bgf* | mpixl*)
7502 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7503 lt_prog_compiler_wl='-Wl,'
7504 lt_prog_compiler_pic='-qpic'
7505 lt_prog_compiler_static='-qstaticlink'
7506 ;;
7507 *)
7508 case `$CC -V 2>&1 | sed 5q` in
7509 *Sun\ F* | *Sun*Fortran*)
7510 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
7513 lt_prog_compiler_wl=''
7514 ;;
7515 *Sun\ C*)
7516 # Sun C 5.9
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-Bstatic'
7519 lt_prog_compiler_wl='-Wl,'
7520 ;;
7521 esac
7522 ;;
7523 esac
7524 ;;
7525
7526 newsos6)
7527 lt_prog_compiler_pic='-KPIC'
7528 lt_prog_compiler_static='-Bstatic'
7529 ;;
7530
7531 *nto* | *qnx*)
7532 # QNX uses GNU C++, but need to define -shared option too, otherwise
7533 # it will coredump.
7534 lt_prog_compiler_pic='-fPIC -shared'
7535 ;;
7536
7537 osf3* | osf4* | osf5*)
7538 lt_prog_compiler_wl='-Wl,'
7539 # All OSF/1 code is PIC.
7540 lt_prog_compiler_static='-non_shared'
7541 ;;
7542
7543 rdos*)
7544 lt_prog_compiler_static='-non_shared'
7545 ;;
7546
7547 solaris*)
7548 lt_prog_compiler_pic='-KPIC'
7549 lt_prog_compiler_static='-Bstatic'
7550 case $cc_basename in
7551 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7552 lt_prog_compiler_wl='-Qoption ld ';;
7553 *)
7554 lt_prog_compiler_wl='-Wl,';;
7555 esac
7556 ;;
7557
7558 sunos4*)
7559 lt_prog_compiler_wl='-Qoption ld '
7560 lt_prog_compiler_pic='-PIC'
7561 lt_prog_compiler_static='-Bstatic'
7562 ;;
7563
7564 sysv4 | sysv4.2uw2* | sysv4.3*)
7565 lt_prog_compiler_wl='-Wl,'
7566 lt_prog_compiler_pic='-KPIC'
7567 lt_prog_compiler_static='-Bstatic'
7568 ;;
7569
7570 sysv4*MP*)
7571 if test -d /usr/nec ;then
7572 lt_prog_compiler_pic='-Kconform_pic'
7573 lt_prog_compiler_static='-Bstatic'
7574 fi
7575 ;;
7576
7577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_pic='-KPIC'
7580 lt_prog_compiler_static='-Bstatic'
7581 ;;
7582
7583 unicos*)
7584 lt_prog_compiler_wl='-Wl,'
7585 lt_prog_compiler_can_build_shared=no
7586 ;;
7587
7588 uts4*)
7589 lt_prog_compiler_pic='-pic'
7590 lt_prog_compiler_static='-Bstatic'
7591 ;;
7592
7593 *)
7594 lt_prog_compiler_can_build_shared=no
7595 ;;
7596 esac
7597 fi
7598
7599 case $host_os in
7600 # For platforms which do not support PIC, -DPIC is meaningless:
7601 *djgpp*)
7602 lt_prog_compiler_pic=
7603 ;;
7604 *)
7605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7606 ;;
7607 esac
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7610 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7611 if ${lt_cv_prog_compiler_pic+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7617 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7618 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7619
7620 #
7621 # Check to make sure the PIC flag actually works.
7622 #
7623 if test -n "$lt_prog_compiler_pic"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7625 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7626 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 lt_cv_prog_compiler_pic_works=no
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7632 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7633 # Insert the option either (1) after the last *FLAGS variable, or
7634 # (2) before a word containing "conftest.", or (3) at the end.
7635 # Note that $ac_compile itself does not contain backslashes and begins
7636 # with a dollar sign (not a hyphen), so the echo should work correctly.
7637 # The option is referenced via a variable to avoid confusing sed.
7638 lt_compile=`echo "$ac_compile" | $SED \
7639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7641 -e 's:$: $lt_compiler_flag:'`
7642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7643 (eval "$lt_compile" 2>conftest.err)
7644 ac_status=$?
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 if (exit $ac_status) && test -s "$ac_outfile"; then
7648 # The compiler can only warn and ignore the option if not recognized
7649 # So say no if there are warnings other than the usual output.
7650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7653 lt_cv_prog_compiler_pic_works=yes
7654 fi
7655 fi
7656 $RM conftest*
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7660 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7661
7662 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7663 case $lt_prog_compiler_pic in
7664 "" | " "*) ;;
7665 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7666 esac
7667 else
7668 lt_prog_compiler_pic=
7669 lt_prog_compiler_can_build_shared=no
7670 fi
7671
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 #
7685 # Check to make sure the static flag actually works.
7686 #
7687 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7690 if ${lt_cv_prog_compiler_static_works+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 lt_cv_prog_compiler_static_works=no
7694 save_LDFLAGS="$LDFLAGS"
7695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7698 # The linker can only warn and ignore the option if not recognized
7699 # So say no if there are warnings
7700 if test -s conftest.err; then
7701 # Append any errors to the config.log.
7702 cat conftest.err 1>&5
7703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7705 if diff conftest.exp conftest.er2 >/dev/null; then
7706 lt_cv_prog_compiler_static_works=yes
7707 fi
7708 else
7709 lt_cv_prog_compiler_static_works=yes
7710 fi
7711 fi
7712 $RM -r conftest*
7713 LDFLAGS="$save_LDFLAGS"
7714
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7717 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7718
7719 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7720 :
7721 else
7722 lt_prog_compiler_static=
7723 fi
7724
7725
7726
7727
7728
7729
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7733 if ${lt_cv_prog_compiler_c_o+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 lt_cv_prog_compiler_c_o=no
7737 $RM -r conftest 2>/dev/null
7738 mkdir conftest
7739 cd conftest
7740 mkdir out
7741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742
7743 lt_compiler_flag="-o out/conftest2.$ac_objext"
7744 # Insert the option either (1) after the last *FLAGS variable, or
7745 # (2) before a word containing "conftest.", or (3) at the end.
7746 # Note that $ac_compile itself does not contain backslashes and begins
7747 # with a dollar sign (not a hyphen), so the echo should work correctly.
7748 lt_compile=`echo "$ac_compile" | $SED \
7749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751 -e 's:$: $lt_compiler_flag:'`
7752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7753 (eval "$lt_compile" 2>out/conftest.err)
7754 ac_status=$?
7755 cat out/conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7758 then
7759 # The compiler can only warn and ignore the option if not recognized
7760 # So say no if there are warnings
7761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7764 lt_cv_prog_compiler_c_o=yes
7765 fi
7766 fi
7767 chmod u+w . 2>&5
7768 $RM conftest*
7769 # SGI C++ compiler will create directory out/ii_files/ for
7770 # template instantiation
7771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7772 $RM out/* && rmdir out
7773 cd ..
7774 $RM -r conftest
7775 $RM conftest*
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7779 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7780
7781
7782
7783
7784
7785
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7788 if ${lt_cv_prog_compiler_c_o+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 lt_cv_prog_compiler_c_o=no
7792 $RM -r conftest 2>/dev/null
7793 mkdir conftest
7794 cd conftest
7795 mkdir out
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798 lt_compiler_flag="-o out/conftest2.$ac_objext"
7799 # Insert the option either (1) after the last *FLAGS variable, or
7800 # (2) before a word containing "conftest.", or (3) at the end.
7801 # Note that $ac_compile itself does not contain backslashes and begins
7802 # with a dollar sign (not a hyphen), so the echo should work correctly.
7803 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'`
7807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7808 (eval "$lt_compile" 2>out/conftest.err)
7809 ac_status=$?
7810 cat out/conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7813 then
7814 # The compiler can only warn and ignore the option if not recognized
7815 # So say no if there are warnings
7816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7819 lt_cv_prog_compiler_c_o=yes
7820 fi
7821 fi
7822 chmod u+w . 2>&5
7823 $RM conftest*
7824 # SGI C++ compiler will create directory out/ii_files/ for
7825 # template instantiation
7826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7827 $RM out/* && rmdir out
7828 cd ..
7829 $RM -r conftest
7830 $RM conftest*
7831
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7835
7836
7837
7838
7839 hard_links="nottested"
7840 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7841 # do not overwrite the value of need_locks provided by the user
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7843 $as_echo_n "checking if we can lock with hard links... " >&6; }
7844 hard_links=yes
7845 $RM conftest*
7846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7847 touch conftest.a
7848 ln conftest.a conftest.b 2>&5 || hard_links=no
7849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7851 $as_echo "$hard_links" >&6; }
7852 if test "$hard_links" = no; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7854 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7855 need_locks=warn
7856 fi
7857 else
7858 need_locks=no
7859 fi
7860
7861
7862
7863
7864
7865
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7867 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7868
7869 runpath_var=
7870 allow_undefined_flag=
7871 always_export_symbols=no
7872 archive_cmds=
7873 archive_expsym_cmds=
7874 compiler_needs_object=no
7875 enable_shared_with_static_runtimes=no
7876 export_dynamic_flag_spec=
7877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7878 hardcode_automatic=no
7879 hardcode_direct=no
7880 hardcode_direct_absolute=no
7881 hardcode_libdir_flag_spec=
7882 hardcode_libdir_flag_spec_ld=
7883 hardcode_libdir_separator=
7884 hardcode_minus_L=no
7885 hardcode_shlibpath_var=unsupported
7886 inherit_rpath=no
7887 link_all_deplibs=unknown
7888 module_cmds=
7889 module_expsym_cmds=
7890 old_archive_from_new_cmds=
7891 old_archive_from_expsyms_cmds=
7892 thread_safe_flag_spec=
7893 whole_archive_flag_spec=
7894 # include_expsyms should be a list of space-separated symbols to be *always*
7895 # included in the symbol list
7896 include_expsyms=
7897 # exclude_expsyms can be an extended regexp of symbols to exclude
7898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7900 # as well as any symbol that contains `d'.
7901 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7903 # platforms (ab)use it in PIC code, but their linkers get confused if
7904 # the symbol is explicitly referenced. Since portable code cannot
7905 # rely on this symbol name, it's probably fine to never include it in
7906 # preloaded symbol tables.
7907 # Exclude shared library initialization/finalization symbols.
7908 extract_expsyms_cmds=
7909
7910 case $host_os in
7911 cygwin* | mingw* | pw32* | cegcc*)
7912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7913 # When not using gcc, we currently assume that we are using
7914 # Microsoft Visual C++.
7915 if test "$GCC" != yes; then
7916 with_gnu_ld=no
7917 fi
7918 ;;
7919 interix*)
7920 # we just hope/assume this is gcc and not c89 (= MSVC++)
7921 with_gnu_ld=yes
7922 ;;
7923 openbsd*)
7924 with_gnu_ld=no
7925 ;;
7926 linux* | k*bsd*-gnu | gnu*)
7927 link_all_deplibs=no
7928 ;;
7929 esac
7930
7931 ld_shlibs=yes
7932
7933 # On some targets, GNU ld is compatible enough with the native linker
7934 # that we're better off using the native interface for both.
7935 lt_use_gnu_ld_interface=no
7936 if test "$with_gnu_ld" = yes; then
7937 case $host_os in
7938 aix*)
7939 # The AIX port of GNU ld has always aspired to compatibility
7940 # with the native linker. However, as the warning in the GNU ld
7941 # block says, versions before 2.19.5* couldn't really create working
7942 # shared libraries, regardless of the interface used.
7943 case `$LD -v 2>&1` in
7944 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7945 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7946 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7947 *)
7948 lt_use_gnu_ld_interface=yes
7949 ;;
7950 esac
7951 ;;
7952 *)
7953 lt_use_gnu_ld_interface=yes
7954 ;;
7955 esac
7956 fi
7957
7958 if test "$lt_use_gnu_ld_interface" = yes; then
7959 # If archive_cmds runs LD, not CC, wlarc should be empty
7960 wlarc='${wl}'
7961
7962 # Set some defaults for GNU ld with shared library support. These
7963 # are reset later if shared libraries are not supported. Putting them
7964 # here allows them to be overridden if necessary.
7965 runpath_var=LD_RUN_PATH
7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967 export_dynamic_flag_spec='${wl}--export-dynamic'
7968 # ancient GNU ld didn't support --whole-archive et. al.
7969 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7971 else
7972 whole_archive_flag_spec=
7973 fi
7974 supports_anon_versioning=no
7975 case `$LD -v 2>&1` in
7976 *GNU\ gold*) supports_anon_versioning=yes ;;
7977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7980 *\ 2.11.*) ;; # other 2.11 versions
7981 *) supports_anon_versioning=yes ;;
7982 esac
7983
7984 # See if GNU ld supports shared libraries.
7985 case $host_os in
7986 aix[3-9]*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64; then
7989 ld_shlibs=no
7990 cat <<_LT_EOF 1>&2
7991
7992 *** Warning: the GNU linker, at least up to release 2.19, is reported
7993 *** to be unable to reliably create shared libraries on AIX.
7994 *** Therefore, libtool is disabling shared libraries support. If you
7995 *** really care for shared libraries, you may want to install binutils
7996 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7997 *** You will then need to restart the configuration process.
7998
7999 _LT_EOF
8000 fi
8001 ;;
8002
8003 amigaos*)
8004 case $host_cpu in
8005 powerpc)
8006 # see comment about AmigaOS4 .so support
8007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008 archive_expsym_cmds=''
8009 ;;
8010 m68k)
8011 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)'
8012 hardcode_libdir_flag_spec='-L$libdir'
8013 hardcode_minus_L=yes
8014 ;;
8015 esac
8016 ;;
8017
8018 beos*)
8019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8020 allow_undefined_flag=unsupported
8021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8022 # support --undefined. This deserves some investigation. FIXME
8023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024 else
8025 ld_shlibs=no
8026 fi
8027 ;;
8028
8029 cygwin* | mingw* | pw32* | cegcc*)
8030 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8031 # as there is no search path for DLLs.
8032 hardcode_libdir_flag_spec='-L$libdir'
8033 export_dynamic_flag_spec='${wl}--export-all-symbols'
8034 allow_undefined_flag=unsupported
8035 always_export_symbols=no
8036 enable_shared_with_static_runtimes=yes
8037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8038 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8039
8040 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042 # If the export-symbols file already is a .def file (1st line
8043 # is EXPORTS), use it as is; otherwise, prepend...
8044 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8045 cp $export_symbols $output_objdir/$soname.def;
8046 else
8047 echo EXPORTS > $output_objdir/$soname.def;
8048 cat $export_symbols >> $output_objdir/$soname.def;
8049 fi~
8050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 else
8052 ld_shlibs=no
8053 fi
8054 ;;
8055
8056 haiku*)
8057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8058 link_all_deplibs=yes
8059 ;;
8060
8061 interix[3-9]*)
8062 hardcode_direct=no
8063 hardcode_shlibpath_var=no
8064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8065 export_dynamic_flag_spec='${wl}-E'
8066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8067 # Instead, shared libraries are loaded at an image base (0x10000000 by
8068 # default) and relocated if they conflict, which is a slow very memory
8069 # consuming and fragmenting process. To avoid this, we pick a random,
8070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8073 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'
8074 ;;
8075
8076 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8077 tmp_diet=no
8078 if test "$host_os" = linux-dietlibc; then
8079 case $cc_basename in
8080 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8081 esac
8082 fi
8083 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8084 && test "$tmp_diet" = no
8085 then
8086 tmp_addflag=' $pic_flag'
8087 tmp_sharedflag='-shared'
8088 case $cc_basename,$host_cpu in
8089 pgcc*) # Portland Group C compiler
8090 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8091 tmp_addflag=' $pic_flag'
8092 ;;
8093 pgf77* | pgf90* | pgf95* | pgfortran*)
8094 # Portland Group f77 and f90 compilers
8095 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8096 tmp_addflag=' $pic_flag -Mnomain' ;;
8097 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8098 tmp_addflag=' -i_dynamic' ;;
8099 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8100 tmp_addflag=' -i_dynamic -nofor_main' ;;
8101 ifc* | ifort*) # Intel Fortran compiler
8102 tmp_addflag=' -nofor_main' ;;
8103 lf95*) # Lahey Fortran 8.1
8104 whole_archive_flag_spec=
8105 tmp_sharedflag='--shared' ;;
8106 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8107 tmp_sharedflag='-qmkshrobj'
8108 tmp_addflag= ;;
8109 nvcc*) # Cuda Compiler Driver 2.2
8110 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8111 compiler_needs_object=yes
8112 ;;
8113 esac
8114 case `$CC -V 2>&1 | sed 5q` in
8115 *Sun\ C*) # Sun C 5.9
8116 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8117 compiler_needs_object=yes
8118 tmp_sharedflag='-G' ;;
8119 *Sun\ F*) # Sun Fortran 8.3
8120 tmp_sharedflag='-G' ;;
8121 esac
8122 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123
8124 if test "x$supports_anon_versioning" = xyes; then
8125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8127 echo "local: *; };" >> $output_objdir/$libname.ver~
8128 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8129 fi
8130
8131 case $cc_basename in
8132 xlf* | bgf* | bgxlf* | mpixlf*)
8133 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8134 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8135 hardcode_libdir_flag_spec=
8136 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8138 if test "x$supports_anon_versioning" = xyes; then
8139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8141 echo "local: *; };" >> $output_objdir/$libname.ver~
8142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8143 fi
8144 ;;
8145 esac
8146 else
8147 ld_shlibs=no
8148 fi
8149 ;;
8150
8151 netbsd* | netbsdelf*-gnu)
8152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8154 wlarc=
8155 else
8156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8158 fi
8159 ;;
8160
8161 solaris*)
8162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8163 ld_shlibs=no
8164 cat <<_LT_EOF 1>&2
8165
8166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8167 *** create shared libraries on Solaris systems. Therefore, libtool
8168 *** is disabling shared libraries support. We urge you to upgrade GNU
8169 *** binutils to release 2.9.1 or newer. Another option is to modify
8170 *** your PATH or compiler configuration so that the native linker is
8171 *** used, and then restart.
8172
8173 _LT_EOF
8174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8177 else
8178 ld_shlibs=no
8179 fi
8180 ;;
8181
8182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8183 case `$LD -v 2>&1` in
8184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8185 ld_shlibs=no
8186 cat <<_LT_EOF 1>&2
8187
8188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8189 *** reliably create shared libraries on SCO systems. Therefore, libtool
8190 *** is disabling shared libraries support. We urge you to upgrade GNU
8191 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8192 *** your PATH or compiler configuration so that the native linker is
8193 *** used, and then restart.
8194
8195 _LT_EOF
8196 ;;
8197 *)
8198 # For security reasons, it is highly recommended that you always
8199 # use absolute paths for naming shared libraries, and exclude the
8200 # DT_RUNPATH tag from executables and libraries. But doing so
8201 # requires that you compile everything twice, which is a pain.
8202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8206 else
8207 ld_shlibs=no
8208 fi
8209 ;;
8210 esac
8211 ;;
8212
8213 sunos4*)
8214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215 wlarc=
8216 hardcode_direct=yes
8217 hardcode_shlibpath_var=no
8218 ;;
8219
8220 *)
8221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224 else
8225 ld_shlibs=no
8226 fi
8227 ;;
8228 esac
8229
8230 if test "$ld_shlibs" = no; then
8231 runpath_var=
8232 hardcode_libdir_flag_spec=
8233 export_dynamic_flag_spec=
8234 whole_archive_flag_spec=
8235 fi
8236 else
8237 # PORTME fill in a description of your system's linker (not GNU ld)
8238 case $host_os in
8239 aix3*)
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=yes
8242 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'
8243 # Note: this linker hardcodes the directories in LIBPATH if there
8244 # are no directories specified by -L.
8245 hardcode_minus_L=yes
8246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8247 # Neither direct hardcoding nor static linking is supported with a
8248 # broken collect2.
8249 hardcode_direct=unsupported
8250 fi
8251 ;;
8252
8253 aix[4-9]*)
8254 if test "$host_cpu" = ia64; then
8255 # On IA64, the linker does run time linking by default, so we don't
8256 # have to do anything special.
8257 aix_use_runtimelinking=no
8258 exp_sym_flag='-Bexport'
8259 no_entry_flag=""
8260 else
8261 # If we're using GNU nm, then we don't want the "-C" option.
8262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8263 # Also, AIX nm treats weak defined symbols like other global
8264 # defined symbols, whereas GNU nm marks them as "W".
8265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8266 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8267 else
8268 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'
8269 fi
8270 aix_use_runtimelinking=no
8271
8272 # Test if we are trying to use run time linking or normal
8273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8274 # need to do runtime linking.
8275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8276 for ld_flag in $LDFLAGS; do
8277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8278 aix_use_runtimelinking=yes
8279 break
8280 fi
8281 done
8282 ;;
8283 esac
8284
8285 exp_sym_flag='-bexport'
8286 no_entry_flag='-bnoentry'
8287 fi
8288
8289 # When large executables or shared objects are built, AIX ld can
8290 # have problems creating the table of contents. If linking a library
8291 # or program results in "error TOC overflow" add -mminimal-toc to
8292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8294
8295 archive_cmds=''
8296 hardcode_direct=yes
8297 hardcode_direct_absolute=yes
8298 hardcode_libdir_separator=':'
8299 link_all_deplibs=yes
8300 file_list_spec='${wl}-f,'
8301
8302 if test "$GCC" = yes; then
8303 case $host_os in aix4.[012]|aix4.[012].*)
8304 # We only want to do this on AIX 4.2 and lower, the check
8305 # below for broken collect2 doesn't work under 4.3+
8306 collect2name=`${CC} -print-prog-name=collect2`
8307 if test -f "$collect2name" &&
8308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8309 then
8310 # We have reworked collect2
8311 :
8312 else
8313 # We have old collect2
8314 hardcode_direct=unsupported
8315 # It fails to find uninstalled libraries when the uninstalled
8316 # path is not listed in the libpath. Setting hardcode_minus_L
8317 # to unsupported forces relinking
8318 hardcode_minus_L=yes
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_libdir_separator=
8321 fi
8322 ;;
8323 esac
8324 shared_flag='-shared'
8325 if test "$aix_use_runtimelinking" = yes; then
8326 shared_flag="$shared_flag "'${wl}-G'
8327 fi
8328 link_all_deplibs=no
8329 else
8330 # not using gcc
8331 if test "$host_cpu" = ia64; then
8332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8333 # chokes on -Wl,-G. The following line is correct:
8334 shared_flag='-G'
8335 else
8336 if test "$aix_use_runtimelinking" = yes; then
8337 shared_flag='${wl}-G'
8338 else
8339 shared_flag='${wl}-bM:SRE'
8340 fi
8341 fi
8342 fi
8343
8344 export_dynamic_flag_spec='${wl}-bexpall'
8345 # It seems that -bexpall does not export symbols beginning with
8346 # underscore (_), so it is better to generate a list of symbols to export.
8347 always_export_symbols=yes
8348 if test "$aix_use_runtimelinking" = yes; then
8349 # Warning - without using the other runtime loading flags (-brtl),
8350 # -berok will link without error, but may produce a broken library.
8351 allow_undefined_flag='-berok'
8352 # Determine the default libpath from the value encoded in an
8353 # empty executable.
8354 if test "${lt_cv_aix_libpath+set}" = set; then
8355 aix_libpath=$lt_cv_aix_libpath
8356 else
8357 if ${lt_cv_aix_libpath_+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362
8363 int
8364 main ()
8365 {
8366
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 if ac_fn_c_try_link "$LINENO"; then :
8372
8373 lt_aix_libpath_sed='
8374 /Import File Strings/,/^$/ {
8375 /^0/ {
8376 s/^0 *\([^ ]*\) *$/\1/
8377 p
8378 }
8379 }'
8380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 # Check for a 64-bit object if we didn't find anything.
8382 if test -z "$lt_cv_aix_libpath_"; then
8383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8384 fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 if test -z "$lt_cv_aix_libpath_"; then
8389 lt_cv_aix_libpath_="/usr/lib:/lib"
8390 fi
8391
8392 fi
8393
8394 aix_libpath=$lt_cv_aix_libpath_
8395 fi
8396
8397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8398 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8399 else
8400 if test "$host_cpu" = ia64; then
8401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8402 allow_undefined_flag="-z nodefs"
8403 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"
8404 else
8405 # Determine the default libpath from the value encoded in an
8406 # empty executable.
8407 if test "${lt_cv_aix_libpath+set}" = set; then
8408 aix_libpath=$lt_cv_aix_libpath
8409 else
8410 if ${lt_cv_aix_libpath_+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415
8416 int
8417 main ()
8418 {
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_link "$LINENO"; then :
8425
8426 lt_aix_libpath_sed='
8427 /Import File Strings/,/^$/ {
8428 /^0/ {
8429 s/^0 *\([^ ]*\) *$/\1/
8430 p
8431 }
8432 }'
8433 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434 # Check for a 64-bit object if we didn't find anything.
8435 if test -z "$lt_cv_aix_libpath_"; then
8436 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8437 fi
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 if test -z "$lt_cv_aix_libpath_"; then
8442 lt_cv_aix_libpath_="/usr/lib:/lib"
8443 fi
8444
8445 fi
8446
8447 aix_libpath=$lt_cv_aix_libpath_
8448 fi
8449
8450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8451 # Warning - without using the other run time loading flags,
8452 # -berok will link without error, but may produce a broken library.
8453 no_undefined_flag=' ${wl}-bernotok'
8454 allow_undefined_flag=' ${wl}-berok'
8455 if test "$with_gnu_ld" = yes; then
8456 # We only use this code for GNU lds that support --whole-archive.
8457 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8458 else
8459 # Exported symbols can be pulled into shared objects from archives
8460 whole_archive_flag_spec='$convenience'
8461 fi
8462 archive_cmds_need_lc=yes
8463 # This is similar to how AIX traditionally builds its shared libraries.
8464 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'
8465 fi
8466 fi
8467 ;;
8468
8469 amigaos*)
8470 case $host_cpu in
8471 powerpc)
8472 # see comment about AmigaOS4 .so support
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474 archive_expsym_cmds=''
8475 ;;
8476 m68k)
8477 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)'
8478 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_minus_L=yes
8480 ;;
8481 esac
8482 ;;
8483
8484 bsdi[45]*)
8485 export_dynamic_flag_spec=-rdynamic
8486 ;;
8487
8488 cygwin* | mingw* | pw32* | cegcc*)
8489 # When not using gcc, we currently assume that we are using
8490 # Microsoft Visual C++.
8491 # hardcode_libdir_flag_spec is actually meaningless, as there is
8492 # no search path for DLLs.
8493 case $cc_basename in
8494 cl*)
8495 # Native MSVC
8496 hardcode_libdir_flag_spec=' '
8497 allow_undefined_flag=unsupported
8498 always_export_symbols=yes
8499 file_list_spec='@'
8500 # Tell ltmain to make .lib files, not .a files.
8501 libext=lib
8502 # Tell ltmain to make .dll files, not .so files.
8503 shrext_cmds=".dll"
8504 # FIXME: Setting linknames here is a bad hack.
8505 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8507 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8508 else
8509 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8510 fi~
8511 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8512 linknames='
8513 # The linker will not automatically build a static lib if we build a DLL.
8514 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8515 enable_shared_with_static_runtimes=yes
8516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8517 # Don't use ranlib
8518 old_postinstall_cmds='chmod 644 $oldlib'
8519 postlink_cmds='lt_outputfile="@OUTPUT@"~
8520 lt_tool_outputfile="@TOOL_OUTPUT@"~
8521 case $lt_outputfile in
8522 *.exe|*.EXE) ;;
8523 *)
8524 lt_outputfile="$lt_outputfile.exe"
8525 lt_tool_outputfile="$lt_tool_outputfile.exe"
8526 ;;
8527 esac~
8528 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8529 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8530 $RM "$lt_outputfile.manifest";
8531 fi'
8532 ;;
8533 *)
8534 # Assume MSVC wrapper
8535 hardcode_libdir_flag_spec=' '
8536 allow_undefined_flag=unsupported
8537 # Tell ltmain to make .lib files, not .a files.
8538 libext=lib
8539 # Tell ltmain to make .dll files, not .so files.
8540 shrext_cmds=".dll"
8541 # FIXME: Setting linknames here is a bad hack.
8542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8543 # The linker will automatically build a .lib file if we build a DLL.
8544 old_archive_from_new_cmds='true'
8545 # FIXME: Should let the user specify the lib program.
8546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8547 enable_shared_with_static_runtimes=yes
8548 ;;
8549 esac
8550 ;;
8551
8552 darwin* | rhapsody*)
8553
8554
8555 archive_cmds_need_lc=no
8556 hardcode_direct=no
8557 hardcode_automatic=yes
8558 hardcode_shlibpath_var=unsupported
8559 if test "$lt_cv_ld_force_load" = "yes"; then
8560 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8561 else
8562 whole_archive_flag_spec=''
8563 fi
8564 link_all_deplibs=yes
8565 allow_undefined_flag="$_lt_dar_allow_undefined"
8566 case $cc_basename in
8567 ifort*) _lt_dar_can_shared=yes ;;
8568 *) _lt_dar_can_shared=$GCC ;;
8569 esac
8570 if test "$_lt_dar_can_shared" = "yes"; then
8571 output_verbose_link_cmd=func_echo_all
8572 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8573 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8574 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}"
8575 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}"
8576
8577 else
8578 ld_shlibs=no
8579 fi
8580
8581 ;;
8582
8583 dgux*)
8584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585 hardcode_libdir_flag_spec='-L$libdir'
8586 hardcode_shlibpath_var=no
8587 ;;
8588
8589 freebsd1*)
8590 ld_shlibs=no
8591 ;;
8592
8593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8594 # support. Future versions do this automatically, but an explicit c++rt0.o
8595 # does not break anything, and helps significantly (at the cost of a little
8596 # extra space).
8597 freebsd2.2*)
8598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8599 hardcode_libdir_flag_spec='-R$libdir'
8600 hardcode_direct=yes
8601 hardcode_shlibpath_var=no
8602 ;;
8603
8604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8605 freebsd2*)
8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_direct=yes
8608 hardcode_minus_L=yes
8609 hardcode_shlibpath_var=no
8610 ;;
8611
8612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8613 freebsd* | dragonfly*)
8614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8615 hardcode_libdir_flag_spec='-R$libdir'
8616 hardcode_direct=yes
8617 hardcode_shlibpath_var=no
8618 ;;
8619
8620 hpux9*)
8621 if test "$GCC" = yes; then
8622 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8623 else
8624 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'
8625 fi
8626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8627 hardcode_libdir_separator=:
8628 hardcode_direct=yes
8629
8630 # hardcode_minus_L: Not really in the search PATH,
8631 # but as the default location of the library.
8632 hardcode_minus_L=yes
8633 export_dynamic_flag_spec='${wl}-E'
8634 ;;
8635
8636 hpux10*)
8637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8638 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8639 else
8640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8641 fi
8642 if test "$with_gnu_ld" = no; then
8643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8644 hardcode_libdir_flag_spec_ld='+b $libdir'
8645 hardcode_libdir_separator=:
8646 hardcode_direct=yes
8647 hardcode_direct_absolute=yes
8648 export_dynamic_flag_spec='${wl}-E'
8649 # hardcode_minus_L: Not really in the search PATH,
8650 # but as the default location of the library.
8651 hardcode_minus_L=yes
8652 fi
8653 ;;
8654
8655 hpux11*)
8656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8657 case $host_cpu in
8658 hppa*64*)
8659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 ;;
8661 ia64*)
8662 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8663 ;;
8664 *)
8665 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8666 ;;
8667 esac
8668 else
8669 case $host_cpu in
8670 hppa*64*)
8671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672 ;;
8673 ia64*)
8674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8675 ;;
8676 *)
8677
8678 # Older versions of the 11.00 compiler do not understand -b yet
8679 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8681 $as_echo_n "checking if $CC understands -b... " >&6; }
8682 if ${lt_cv_prog_compiler__b+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 lt_cv_prog_compiler__b=no
8686 save_LDFLAGS="$LDFLAGS"
8687 LDFLAGS="$LDFLAGS -b"
8688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8690 # The linker can only warn and ignore the option if not recognized
8691 # So say no if there are warnings
8692 if test -s conftest.err; then
8693 # Append any errors to the config.log.
8694 cat conftest.err 1>&5
8695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697 if diff conftest.exp conftest.er2 >/dev/null; then
8698 lt_cv_prog_compiler__b=yes
8699 fi
8700 else
8701 lt_cv_prog_compiler__b=yes
8702 fi
8703 fi
8704 $RM -r conftest*
8705 LDFLAGS="$save_LDFLAGS"
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8709 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8710
8711 if test x"$lt_cv_prog_compiler__b" = xyes; then
8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713 else
8714 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8715 fi
8716
8717 ;;
8718 esac
8719 fi
8720 if test "$with_gnu_ld" = no; then
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723
8724 case $host_cpu in
8725 hppa*64*|ia64*)
8726 hardcode_direct=no
8727 hardcode_shlibpath_var=no
8728 ;;
8729 *)
8730 hardcode_direct=yes
8731 hardcode_direct_absolute=yes
8732 export_dynamic_flag_spec='${wl}-E'
8733
8734 # hardcode_minus_L: Not really in the search PATH,
8735 # but as the default location of the library.
8736 hardcode_minus_L=yes
8737 ;;
8738 esac
8739 fi
8740 ;;
8741
8742 irix5* | irix6* | nonstopux*)
8743 if test "$GCC" = yes; then
8744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8745 # Try to use the -exported_symbol ld option, if it does not
8746 # work, assume that -exports_file does not work either and
8747 # implicitly export all symbols.
8748 # This should be the same for all languages, so no per-tag cache variable.
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8750 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8751 if ${lt_cv_irix_exported_symbol+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 save_LDFLAGS="$LDFLAGS"
8755 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int foo (void) { return 0; }
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 lt_cv_irix_exported_symbol=yes
8762 else
8763 lt_cv_irix_exported_symbol=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LDFLAGS="$save_LDFLAGS"
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8770 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8771 if test "$lt_cv_irix_exported_symbol" = yes; then
8772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8773 fi
8774 else
8775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8777 fi
8778 archive_cmds_need_lc='no'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8781 inherit_rpath=yes
8782 link_all_deplibs=yes
8783 ;;
8784
8785 netbsd* | netbsdelf*-gnu)
8786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8788 else
8789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8790 fi
8791 hardcode_libdir_flag_spec='-R$libdir'
8792 hardcode_direct=yes
8793 hardcode_shlibpath_var=no
8794 ;;
8795
8796 newsos6)
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 *nto* | *qnx*)
8805 ;;
8806
8807 openbsd*)
8808 if test -f /usr/libexec/ld.so; then
8809 hardcode_direct=yes
8810 hardcode_shlibpath_var=no
8811 hardcode_direct_absolute=yes
8812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8816 export_dynamic_flag_spec='${wl}-E'
8817 else
8818 case $host_os in
8819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_libdir_flag_spec='-R$libdir'
8822 ;;
8823 *)
8824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8826 ;;
8827 esac
8828 fi
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833
8834 os2*)
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8837 allow_undefined_flag=unsupported
8838 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'
8839 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8840 ;;
8841
8842 osf3*)
8843 if test "$GCC" = yes; then
8844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8845 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8846 else
8847 allow_undefined_flag=' -expect_unresolved \*'
8848 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8849 fi
8850 archive_cmds_need_lc='no'
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 hardcode_libdir_separator=:
8853 ;;
8854
8855 osf4* | osf5*) # as osf3* with the addition of -msym flag
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 else
8861 allow_undefined_flag=' -expect_unresolved \*'
8862 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8863 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~
8864 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8865
8866 # Both c and cxx compiler support -rpath directly
8867 hardcode_libdir_flag_spec='-rpath $libdir'
8868 fi
8869 archive_cmds_need_lc='no'
8870 hardcode_libdir_separator=:
8871 ;;
8872
8873 solaris*)
8874 no_undefined_flag=' -z defs'
8875 if test "$GCC" = yes; then
8876 wlarc='${wl}'
8877 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8879 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8880 else
8881 case `$CC -V 2>&1` in
8882 *"Compilers 5.0"*)
8883 wlarc=''
8884 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8886 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8887 ;;
8888 *)
8889 wlarc='${wl}'
8890 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893 ;;
8894 esac
8895 fi
8896 hardcode_libdir_flag_spec='-R$libdir'
8897 hardcode_shlibpath_var=no
8898 case $host_os in
8899 solaris2.[0-5] | solaris2.[0-5].*) ;;
8900 *)
8901 # The compiler driver will combine and reorder linker options,
8902 # but understands `-z linker_flag'. GCC discards it without `$wl',
8903 # but is careful enough not to reorder.
8904 # Supported since Solaris 2.6 (maybe 2.5.1?)
8905 if test "$GCC" = yes; then
8906 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8907 else
8908 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8909 fi
8910 ;;
8911 esac
8912 link_all_deplibs=yes
8913 ;;
8914
8915 sunos4*)
8916 if test "x$host_vendor" = xsequent; then
8917 # Use $CC to link under sequent, because it throws in some extra .o
8918 # files that make .init and .fini sections work.
8919 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8920 else
8921 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8922 fi
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_direct=yes
8925 hardcode_minus_L=yes
8926 hardcode_shlibpath_var=no
8927 ;;
8928
8929 sysv4)
8930 case $host_vendor in
8931 sni)
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=yes # is this really true???
8934 ;;
8935 siemens)
8936 ## LD is ld it makes a PLAMLIB
8937 ## CC just makes a GrossModule.
8938 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939 reload_cmds='$CC -r -o $output$reload_objs'
8940 hardcode_direct=no
8941 ;;
8942 motorola)
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8945 ;;
8946 esac
8947 runpath_var='LD_RUN_PATH'
8948 hardcode_shlibpath_var=no
8949 ;;
8950
8951 sysv4.3*)
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_shlibpath_var=no
8954 export_dynamic_flag_spec='-Bexport'
8955 ;;
8956
8957 sysv4*MP*)
8958 if test -d /usr/nec; then
8959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_shlibpath_var=no
8961 runpath_var=LD_RUN_PATH
8962 hardcode_runpath_var=yes
8963 ld_shlibs=yes
8964 fi
8965 ;;
8966
8967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968 no_undefined_flag='${wl}-z,text'
8969 archive_cmds_need_lc=no
8970 hardcode_shlibpath_var=no
8971 runpath_var='LD_RUN_PATH'
8972
8973 if test "$GCC" = yes; then
8974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 else
8977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 fi
8980 ;;
8981
8982 sysv5* | sco3.2v5* | sco5v6*)
8983 # Note: We can NOT use -z defs as we might desire, because we do not
8984 # link with -lc, and that would cause any symbols used from libc to
8985 # always be unresolved, which means just about no library would
8986 # ever link correctly. If we're not using GNU ld we use -z text
8987 # though, which does catch some bad symbols but isn't as heavy-handed
8988 # as -z defs.
8989 no_undefined_flag='${wl}-z,text'
8990 allow_undefined_flag='${wl}-z,nodefs'
8991 archive_cmds_need_lc=no
8992 hardcode_shlibpath_var=no
8993 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8994 hardcode_libdir_separator=':'
8995 link_all_deplibs=yes
8996 export_dynamic_flag_spec='${wl}-Bexport'
8997 runpath_var='LD_RUN_PATH'
8998
8999 if test "$GCC" = yes; then
9000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9002 else
9003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 fi
9006 ;;
9007
9008 uts4*)
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 *)
9015 ld_shlibs=no
9016 ;;
9017 esac
9018
9019 if test x$host_vendor = xsni; then
9020 case $host in
9021 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9022 export_dynamic_flag_spec='${wl}-Blargedynsym'
9023 ;;
9024 esac
9025 fi
9026 fi
9027
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9029 $as_echo "$ld_shlibs" >&6; }
9030 test "$ld_shlibs" = no && can_build_shared=no
9031
9032 with_gnu_ld=$with_gnu_ld
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048 #
9049 # Do we need to explicitly link libc?
9050 #
9051 case "x$archive_cmds_need_lc" in
9052 x|xyes)
9053 # Assume -lc should be added
9054 archive_cmds_need_lc=yes
9055
9056 if test "$enable_shared" = yes && test "$GCC" = yes; then
9057 case $archive_cmds in
9058 *'~'*)
9059 # FIXME: we may have to deal with multi-command sequences.
9060 ;;
9061 '$CC '*)
9062 # Test whether the compiler implicitly links with -lc since on some
9063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9064 # to ld, don't add -lc before -lgcc.
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9066 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9067 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 $RM conftest*
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9074 (eval $ac_compile) 2>&5
9075 ac_status=$?
9076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9077 test $ac_status = 0; } 2>conftest.err; then
9078 soname=conftest
9079 lib=conftest
9080 libobjs=conftest.$ac_objext
9081 deplibs=
9082 wl=$lt_prog_compiler_wl
9083 pic_flag=$lt_prog_compiler_pic
9084 compiler_flags=-v
9085 linker_flags=-v
9086 verstring=
9087 output_objdir=.
9088 libname=conftest
9089 lt_save_allow_undefined_flag=$allow_undefined_flag
9090 allow_undefined_flag=
9091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9092 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9093 ac_status=$?
9094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9095 test $ac_status = 0; }
9096 then
9097 lt_cv_archive_cmds_need_lc=no
9098 else
9099 lt_cv_archive_cmds_need_lc=yes
9100 fi
9101 allow_undefined_flag=$lt_save_allow_undefined_flag
9102 else
9103 cat conftest.err 1>&5
9104 fi
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9109 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9110 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9111 ;;
9112 esac
9113 fi
9114 ;;
9115 esac
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9274 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9275
9276 if test "$GCC" = yes; then
9277 case $host_os in
9278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9279 *) lt_awk_arg="/^libraries:/" ;;
9280 esac
9281 case $host_os in
9282 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9283 *) lt_sed_strip_eq="s,=/,/,g" ;;
9284 esac
9285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9286 case $lt_search_path_spec in
9287 *\;*)
9288 # if the path contains ";" then we assume it to be the separator
9289 # otherwise default to the standard path separator (i.e. ":") - it is
9290 # assumed that no part of a normal pathname contains ";" but that should
9291 # okay in the real world where ";" in dirpaths is itself problematic.
9292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9293 ;;
9294 *)
9295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9296 ;;
9297 esac
9298 # Ok, now we have the path, separated by spaces, we can step through it
9299 # and add multilib dir if necessary.
9300 lt_tmp_lt_search_path_spec=
9301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9302 for lt_sys_path in $lt_search_path_spec; do
9303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9305 else
9306 test -d "$lt_sys_path" && \
9307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9308 fi
9309 done
9310 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9311 BEGIN {RS=" "; FS="/|\n";} {
9312 lt_foo="";
9313 lt_count=0;
9314 for (lt_i = NF; lt_i > 0; lt_i--) {
9315 if ($lt_i != "" && $lt_i != ".") {
9316 if ($lt_i == "..") {
9317 lt_count++;
9318 } else {
9319 if (lt_count == 0) {
9320 lt_foo="/" $lt_i lt_foo;
9321 } else {
9322 lt_count--;
9323 }
9324 }
9325 }
9326 }
9327 if (lt_foo != "") { lt_freq[lt_foo]++; }
9328 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9329 }'`
9330 # AWK program above erroneously prepends '/' to C:/dos/paths
9331 # for these hosts.
9332 case $host_os in
9333 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9334 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9335 esac
9336 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9337 else
9338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9339 fi
9340 library_names_spec=
9341 libname_spec='lib$name'
9342 soname_spec=
9343 shrext_cmds=".so"
9344 postinstall_cmds=
9345 postuninstall_cmds=
9346 finish_cmds=
9347 finish_eval=
9348 shlibpath_var=
9349 shlibpath_overrides_runpath=unknown
9350 version_type=none
9351 dynamic_linker="$host_os ld.so"
9352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9353 need_lib_prefix=unknown
9354 hardcode_into_libs=no
9355
9356 # when you set need_version to no, make sure it does not cause -set_version
9357 # flags to be left without arguments
9358 need_version=unknown
9359
9360 case $host_os in
9361 aix3*)
9362 version_type=linux
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9364 shlibpath_var=LIBPATH
9365
9366 # AIX 3 has no versioning support, so we append a major version to the name.
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 ;;
9369
9370 aix[4-9]*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 hardcode_into_libs=yes
9375 if test "$host_cpu" = ia64; then
9376 # AIX 5 supports IA64
9377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 else
9380 # With GCC up to 2.95.x, collect2 would create an import file
9381 # for dependence libraries. The import file would start with
9382 # the line `#! .'. This would cause the generated library to
9383 # depend on `.', always an invalid library. This was fixed in
9384 # development snapshots of GCC prior to 3.0.
9385 case $host_os in
9386 aix4 | aix4.[01] | aix4.[01].*)
9387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9388 echo ' yes '
9389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9390 :
9391 else
9392 can_build_shared=no
9393 fi
9394 ;;
9395 esac
9396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9397 # soname into executable. Probably we can add versioning support to
9398 # collect2, so additional links can be useful in future.
9399 if test "$aix_use_runtimelinking" = yes; then
9400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9401 # instead of lib<name>.a to let people know that these are not
9402 # typical AIX shared libraries.
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 else
9405 # We preserve .a as extension for shared libraries through AIX4.2
9406 # and later when we are not doing run time linking.
9407 library_names_spec='${libname}${release}.a $libname.a'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 fi
9410 shlibpath_var=LIBPATH
9411 fi
9412 ;;
9413
9414 amigaos*)
9415 case $host_cpu in
9416 powerpc)
9417 # Since July 2007 AmigaOS4 officially supports .so libraries.
9418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420 ;;
9421 m68k)
9422 library_names_spec='$libname.ixlibrary $libname.a'
9423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9424 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9425 ;;
9426 esac
9427 ;;
9428
9429 beos*)
9430 library_names_spec='${libname}${shared_ext}'
9431 dynamic_linker="$host_os ld.so"
9432 shlibpath_var=LIBRARY_PATH
9433 ;;
9434
9435 bsdi[45]*)
9436 version_type=linux
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9444 # the default ld.so.conf also contains /usr/contrib/lib and
9445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9446 # libtool to hard-code these into programs
9447 ;;
9448
9449 cygwin* | mingw* | pw32* | cegcc*)
9450 version_type=windows
9451 shrext_cmds=".dll"
9452 need_version=no
9453 need_lib_prefix=no
9454
9455 case $GCC,$cc_basename in
9456 yes,*)
9457 # gcc
9458 library_names_spec='$libname.dll.a'
9459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9460 postinstall_cmds='base_file=`basename \${file}`~
9461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9462 dldir=$destdir/`dirname \$dlpath`~
9463 test -d \$dldir || mkdir -p \$dldir~
9464 $install_prog $dir/$dlname \$dldir/$dlname~
9465 chmod a+x \$dldir/$dlname~
9466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9468 fi'
9469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9470 dlpath=$dir/\$dldll~
9471 $RM \$dlpath'
9472 shlibpath_overrides_runpath=yes
9473
9474 case $host_os in
9475 cygwin*)
9476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9478
9479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9480 ;;
9481 mingw* | cegcc*)
9482 # MinGW DLLs use traditional 'lib' prefix
9483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9484 ;;
9485 pw32*)
9486 # pw32 DLLs use 'pw' prefix rather than 'lib'
9487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9488 ;;
9489 esac
9490 dynamic_linker='Win32 ld.exe'
9491 ;;
9492
9493 *,cl*)
9494 # Native MSVC
9495 libname_spec='$name'
9496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9497 library_names_spec='${libname}.dll.lib'
9498
9499 case $build_os in
9500 mingw*)
9501 sys_lib_search_path_spec=
9502 lt_save_ifs=$IFS
9503 IFS=';'
9504 for lt_path in $LIB
9505 do
9506 IFS=$lt_save_ifs
9507 # Let DOS variable expansion print the short 8.3 style file name.
9508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9510 done
9511 IFS=$lt_save_ifs
9512 # Convert to MSYS style.
9513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9514 ;;
9515 cygwin*)
9516 # Convert to unix form, then to dos form, then back to unix form
9517 # but this time dos style (no spaces!) so that the unix form looks
9518 # like /cygdrive/c/PROGRA~1:/cygdr...
9519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9522 ;;
9523 *)
9524 sys_lib_search_path_spec="$LIB"
9525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9526 # It is most probably a Windows format PATH.
9527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9528 else
9529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9530 fi
9531 # FIXME: find the short name or the path components, as spaces are
9532 # common. (e.g. "Program Files" -> "PROGRA~1")
9533 ;;
9534 esac
9535
9536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9537 postinstall_cmds='base_file=`basename \${file}`~
9538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9539 dldir=$destdir/`dirname \$dlpath`~
9540 test -d \$dldir || mkdir -p \$dldir~
9541 $install_prog $dir/$dlname \$dldir/$dlname'
9542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9543 dlpath=$dir/\$dldll~
9544 $RM \$dlpath'
9545 shlibpath_overrides_runpath=yes
9546 dynamic_linker='Win32 link.exe'
9547 ;;
9548
9549 *)
9550 # Assume MSVC wrapper
9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552 dynamic_linker='Win32 ld.exe'
9553 ;;
9554 esac
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9557 ;;
9558
9559 darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9572 ;;
9573
9574 dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 ;;
9582
9583 freebsd1*)
9584 dynamic_linker=no
9585 ;;
9586
9587 freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9597 fi
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9604 ;;
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9608 ;;
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9623 ;;
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628 esac
9629 ;;
9630
9631 gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 shlibpath_overrides_runpath=no
9639 hardcode_into_libs=yes
9640 ;;
9641
9642 haiku*)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 dynamic_linker="$host_os runtime_loader"
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9652 hardcode_into_libs=yes
9653 ;;
9654
9655 hpux9* | hpux10* | hpux11*)
9656 # Give a soname corresponding to the major version so that dld.sl refuses to
9657 # link against other versions.
9658 version_type=sunos
9659 need_lib_prefix=no
9660 need_version=no
9661 case $host_cpu in
9662 ia64*)
9663 shrext_cmds='.so'
9664 hardcode_into_libs=yes
9665 dynamic_linker="$host_os dld.so"
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 if test "X$HPUX_IA64_MODE" = X32; then
9671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9672 else
9673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9674 fi
9675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9676 ;;
9677 hppa*64*)
9678 shrext_cmds='.sl'
9679 hardcode_into_libs=yes
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9687 ;;
9688 *)
9689 shrext_cmds='.sl'
9690 dynamic_linker="$host_os dld.sl"
9691 shlibpath_var=SHLIB_PATH
9692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 ;;
9696 esac
9697 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9698 postinstall_cmds='chmod 555 $lib'
9699 # or fails outright, so override atomically:
9700 install_override_mode=555
9701 ;;
9702
9703 interix[3-9]*)
9704 version_type=linux
9705 need_lib_prefix=no
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 shlibpath_overrides_runpath=no
9712 hardcode_into_libs=yes
9713 ;;
9714
9715 irix5* | irix6* | nonstopux*)
9716 case $host_os in
9717 nonstopux*) version_type=nonstopux ;;
9718 *)
9719 if test "$lt_cv_prog_gnu_ld" = yes; then
9720 version_type=linux
9721 else
9722 version_type=irix
9723 fi ;;
9724 esac
9725 need_lib_prefix=no
9726 need_version=no
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9729 case $host_os in
9730 irix5* | nonstopux*)
9731 libsuff= shlibsuff=
9732 ;;
9733 *)
9734 case $LD in # libtool.m4 will add one of these switches to LD
9735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9736 libsuff= shlibsuff= libmagic=32-bit;;
9737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9738 libsuff=32 shlibsuff=N32 libmagic=N32;;
9739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9740 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9741 *) libsuff= shlibsuff= libmagic=never-match;;
9742 esac
9743 ;;
9744 esac
9745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9746 shlibpath_overrides_runpath=no
9747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9749 hardcode_into_libs=yes
9750 ;;
9751
9752 # No shared lib support for Linux oldld, aout, or coff.
9753 linux*oldld* | linux*aout* | linux*coff*)
9754 dynamic_linker=no
9755 ;;
9756
9757 # This must be Linux ELF.
9758 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=no
9767
9768 # Some binutils ld are patched to set DT_RUNPATH
9769 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 lt_cv_shlibpath_overrides_runpath=no
9773 save_LDFLAGS=$LDFLAGS
9774 save_libdir=$libdir
9775 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9776 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779
9780 int
9781 main ()
9782 {
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9790 lt_cv_shlibpath_overrides_runpath=yes
9791 fi
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LDFLAGS=$save_LDFLAGS
9796 libdir=$save_libdir
9797
9798 fi
9799
9800 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9801
9802 # This implies no fast_install, which is unacceptable.
9803 # Some rework will be needed to allow for fast_install
9804 # before this can be enabled.
9805 hardcode_into_libs=yes
9806
9807 # Append ld.so.conf contents to the search path
9808 if test -f /etc/ld.so.conf; then
9809 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;s/"//g;/^$/d' | tr '\n' ' '`
9810 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9811 fi
9812
9813 # We used to test for /lib/ld.so.1 and disable shared libraries on
9814 # powerpc, because MkLinux only supported shared libraries with the
9815 # GNU dynamic linker. Since this was broken with cross compilers,
9816 # most powerpc-linux boxes support dynamic linking these days and
9817 # people can always --disable-shared, the test was removed, and we
9818 # assume the GNU/Linux dynamic linker is in use.
9819 dynamic_linker='GNU/Linux ld.so'
9820 ;;
9821
9822 netbsdelf*-gnu)
9823 version_type=linux
9824 need_lib_prefix=no
9825 need_version=no
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 shlibpath_overrides_runpath=no
9830 hardcode_into_libs=yes
9831 dynamic_linker='NetBSD ld.elf_so'
9832 ;;
9833
9834 netbsd*)
9835 version_type=sunos
9836 need_lib_prefix=no
9837 need_version=no
9838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9841 dynamic_linker='NetBSD (a.out) ld.so'
9842 else
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='NetBSD ld.elf_so'
9846 fi
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 hardcode_into_libs=yes
9850 ;;
9851
9852 newsos6)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 shlibpath_overrides_runpath=yes
9857 ;;
9858
9859 *nto* | *qnx*)
9860 version_type=qnx
9861 need_lib_prefix=no
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 hardcode_into_libs=yes
9868 dynamic_linker='ldqnx.so'
9869 ;;
9870
9871 openbsd*)
9872 version_type=sunos
9873 sys_lib_dlsearch_path_spec="/usr/lib"
9874 need_lib_prefix=no
9875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9876 case $host_os in
9877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9878 *) need_version=no ;;
9879 esac
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9884 case $host_os in
9885 openbsd2.[89] | openbsd2.[89].*)
9886 shlibpath_overrides_runpath=no
9887 ;;
9888 *)
9889 shlibpath_overrides_runpath=yes
9890 ;;
9891 esac
9892 else
9893 shlibpath_overrides_runpath=yes
9894 fi
9895 ;;
9896
9897 os2*)
9898 libname_spec='$name'
9899 shrext_cmds=".dll"
9900 need_lib_prefix=no
9901 library_names_spec='$libname${shared_ext} $libname.a'
9902 dynamic_linker='OS/2 ld.exe'
9903 shlibpath_var=LIBPATH
9904 ;;
9905
9906 osf3* | osf4* | osf5*)
9907 version_type=osf
9908 need_lib_prefix=no
9909 need_version=no
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9915 ;;
9916
9917 rdos*)
9918 dynamic_linker=no
9919 ;;
9920
9921 solaris*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 # ldd complains unless libraries are executable
9931 postinstall_cmds='chmod +x $lib'
9932 ;;
9933
9934 sunos4*)
9935 version_type=sunos
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 if test "$with_gnu_ld" = yes; then
9941 need_lib_prefix=no
9942 fi
9943 need_version=yes
9944 ;;
9945
9946 sysv4 | sysv4.3*)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 case $host_vendor in
9952 sni)
9953 shlibpath_overrides_runpath=no
9954 need_lib_prefix=no
9955 runpath_var=LD_RUN_PATH
9956 ;;
9957 siemens)
9958 need_lib_prefix=no
9959 ;;
9960 motorola)
9961 need_lib_prefix=no
9962 need_version=no
9963 shlibpath_overrides_runpath=no
9964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9965 ;;
9966 esac
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec ;then
9971 version_type=linux
9972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9973 soname_spec='$libname${shared_ext}.$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 fi
9976 ;;
9977
9978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9979 version_type=freebsd-elf
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9987 if test "$with_gnu_ld" = yes; then
9988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9989 else
9990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9991 case $host_os in
9992 sco3.2v5*)
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9994 ;;
9995 esac
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/lib'
9998 ;;
9999
10000 tpf*)
10001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=no
10008 hardcode_into_libs=yes
10009 ;;
10010
10011 uts4*)
10012 version_type=linux
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 ;;
10017
10018 *)
10019 dynamic_linker=no
10020 ;;
10021 esac
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10023 $as_echo "$dynamic_linker" >&6; }
10024 test "$dynamic_linker" = no && can_build_shared=no
10025
10026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10027 if test "$GCC" = yes; then
10028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10029 fi
10030
10031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10033 fi
10034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10036 fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10131 hardcode_action=
10132 if test -n "$hardcode_libdir_flag_spec" ||
10133 test -n "$runpath_var" ||
10134 test "X$hardcode_automatic" = "Xyes" ; then
10135
10136 # We can hardcode non-existent directories.
10137 if test "$hardcode_direct" != no &&
10138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10139 # have to relink, otherwise we might link with an installed library
10140 # when we should be linking with a yet-to-be-installed one
10141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10142 test "$hardcode_minus_L" != no; then
10143 # Linking always hardcodes the temporary library directory.
10144 hardcode_action=relink
10145 else
10146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10147 hardcode_action=immediate
10148 fi
10149 else
10150 # We cannot hardcode anything, or else we can only hardcode existing
10151 # directories.
10152 hardcode_action=unsupported
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10155 $as_echo "$hardcode_action" >&6; }
10156
10157 if test "$hardcode_action" = relink ||
10158 test "$inherit_rpath" = yes; then
10159 # Fast installation is not supported
10160 enable_fast_install=no
10161 elif test "$shlibpath_overrides_runpath" = yes ||
10162 test "$enable_shared" = no; then
10163 # Fast installation is not necessary
10164 enable_fast_install=needless
10165 fi
10166
10167
10168
10169
10170
10171
10172 if test "x$enable_dlopen" != xyes; then
10173 enable_dlopen=unknown
10174 enable_dlopen_self=unknown
10175 enable_dlopen_self_static=unknown
10176 else
10177 lt_cv_dlopen=no
10178 lt_cv_dlopen_libs=
10179
10180 case $host_os in
10181 beos*)
10182 lt_cv_dlopen="load_add_on"
10183 lt_cv_dlopen_libs=
10184 lt_cv_dlopen_self=yes
10185 ;;
10186
10187 mingw* | pw32* | cegcc*)
10188 lt_cv_dlopen="LoadLibrary"
10189 lt_cv_dlopen_libs=
10190 ;;
10191
10192 cygwin*)
10193 lt_cv_dlopen="dlopen"
10194 lt_cv_dlopen_libs=
10195 ;;
10196
10197 darwin*)
10198 # if libdl is installed we need to link against it
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10201 if ${ac_cv_lib_dl_dlopen+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldl $LIBS"
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char dlopen ();
10216 int
10217 main ()
10218 {
10219 return dlopen ();
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 ac_cv_lib_dl_dlopen=yes
10226 else
10227 ac_cv_lib_dl_dlopen=no
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10237 else
10238
10239 lt_cv_dlopen="dyld"
10240 lt_cv_dlopen_libs=
10241 lt_cv_dlopen_self=yes
10242
10243 fi
10244
10245 ;;
10246
10247 *)
10248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10249 if test "x$ac_cv_func_shl_load" = xyes; then :
10250 lt_cv_dlopen="shl_load"
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10254 if ${ac_cv_lib_dld_shl_load+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldld $LIBS"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261
10262 /* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char shl_load ();
10269 int
10270 main ()
10271 {
10272 return shl_load ();
10273 ;
10274 return 0;
10275 }
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278 ac_cv_lib_dld_shl_load=yes
10279 else
10280 ac_cv_lib_dld_shl_load=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 LIBS=$ac_check_lib_save_LIBS
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10288 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10290 else
10291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10292 if test "x$ac_cv_func_dlopen" = xyes; then :
10293 lt_cv_dlopen="dlopen"
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10297 if ${ac_cv_lib_dl_dlopen+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-ldl $LIBS"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char dlopen ();
10312 int
10313 main ()
10314 {
10315 return dlopen ();
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_lib_dl_dlopen=yes
10322 else
10323 ac_cv_lib_dl_dlopen=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LIBS=$ac_check_lib_save_LIBS
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10336 if ${ac_cv_lib_svld_dlopen+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 ac_check_lib_save_LIBS=$LIBS
10340 LIBS="-lsvld $LIBS"
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343
10344 /* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 char dlopen ();
10351 int
10352 main ()
10353 {
10354 return dlopen ();
10355 ;
10356 return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360 ac_cv_lib_svld_dlopen=yes
10361 else
10362 ac_cv_lib_svld_dlopen=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_lib_save_LIBS
10367 fi
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10370 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10375 if ${ac_cv_lib_dld_dld_link+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 ac_check_lib_save_LIBS=$LIBS
10379 LIBS="-ldld $LIBS"
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char dld_link ();
10390 int
10391 main ()
10392 {
10393 return dld_link ();
10394 ;
10395 return 0;
10396 }
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10399 ac_cv_lib_dld_dld_link=yes
10400 else
10401 ac_cv_lib_dld_dld_link=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LIBS=$ac_check_lib_save_LIBS
10406 fi
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10409 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10411 fi
10412
10413
10414 fi
10415
10416
10417 fi
10418
10419
10420 fi
10421
10422
10423 fi
10424
10425
10426 fi
10427
10428 ;;
10429 esac
10430
10431 if test "x$lt_cv_dlopen" != xno; then
10432 enable_dlopen=yes
10433 else
10434 enable_dlopen=no
10435 fi
10436
10437 case $lt_cv_dlopen in
10438 dlopen)
10439 save_CPPFLAGS="$CPPFLAGS"
10440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10441
10442 save_LDFLAGS="$LDFLAGS"
10443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10444
10445 save_LIBS="$LIBS"
10446 LIBS="$lt_cv_dlopen_libs $LIBS"
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10450 if ${lt_cv_dlopen_self+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 if test "$cross_compiling" = yes; then :
10454 lt_cv_dlopen_self=cross
10455 else
10456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10457 lt_status=$lt_dlunknown
10458 cat > conftest.$ac_ext <<_LT_EOF
10459 #line $LINENO "configure"
10460 #include "confdefs.h"
10461
10462 #if HAVE_DLFCN_H
10463 #include <dlfcn.h>
10464 #endif
10465
10466 #include <stdio.h>
10467
10468 #ifdef RTLD_GLOBAL
10469 # define LT_DLGLOBAL RTLD_GLOBAL
10470 #else
10471 # ifdef DL_GLOBAL
10472 # define LT_DLGLOBAL DL_GLOBAL
10473 # else
10474 # define LT_DLGLOBAL 0
10475 # endif
10476 #endif
10477
10478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10479 find out it does not work in some platform. */
10480 #ifndef LT_DLLAZY_OR_NOW
10481 # ifdef RTLD_LAZY
10482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10483 # else
10484 # ifdef DL_LAZY
10485 # define LT_DLLAZY_OR_NOW DL_LAZY
10486 # else
10487 # ifdef RTLD_NOW
10488 # define LT_DLLAZY_OR_NOW RTLD_NOW
10489 # else
10490 # ifdef DL_NOW
10491 # define LT_DLLAZY_OR_NOW DL_NOW
10492 # else
10493 # define LT_DLLAZY_OR_NOW 0
10494 # endif
10495 # endif
10496 # endif
10497 # endif
10498 #endif
10499
10500 /* When -fvisbility=hidden is used, assume the code has been annotated
10501 correspondingly for the symbols needed. */
10502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10503 int fnord () __attribute__((visibility("default")));
10504 #endif
10505
10506 int fnord () { return 42; }
10507 int main ()
10508 {
10509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10510 int status = $lt_dlunknown;
10511
10512 if (self)
10513 {
10514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10515 else
10516 {
10517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518 else puts (dlerror ());
10519 }
10520 /* dlclose (self); */
10521 }
10522 else
10523 puts (dlerror ());
10524
10525 return status;
10526 }
10527 _LT_EOF
10528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10529 (eval $ac_link) 2>&5
10530 ac_status=$?
10531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10533 (./conftest; exit; ) >&5 2>/dev/null
10534 lt_status=$?
10535 case x$lt_status in
10536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10539 esac
10540 else :
10541 # compilation failed
10542 lt_cv_dlopen_self=no
10543 fi
10544 fi
10545 rm -fr conftest*
10546
10547
10548 fi
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10550 $as_echo "$lt_cv_dlopen_self" >&6; }
10551
10552 if test "x$lt_cv_dlopen_self" = xyes; then
10553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10555 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10556 if ${lt_cv_dlopen_self_static+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 if test "$cross_compiling" = yes; then :
10560 lt_cv_dlopen_self_static=cross
10561 else
10562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10563 lt_status=$lt_dlunknown
10564 cat > conftest.$ac_ext <<_LT_EOF
10565 #line $LINENO "configure"
10566 #include "confdefs.h"
10567
10568 #if HAVE_DLFCN_H
10569 #include <dlfcn.h>
10570 #endif
10571
10572 #include <stdio.h>
10573
10574 #ifdef RTLD_GLOBAL
10575 # define LT_DLGLOBAL RTLD_GLOBAL
10576 #else
10577 # ifdef DL_GLOBAL
10578 # define LT_DLGLOBAL DL_GLOBAL
10579 # else
10580 # define LT_DLGLOBAL 0
10581 # endif
10582 #endif
10583
10584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10585 find out it does not work in some platform. */
10586 #ifndef LT_DLLAZY_OR_NOW
10587 # ifdef RTLD_LAZY
10588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10589 # else
10590 # ifdef DL_LAZY
10591 # define LT_DLLAZY_OR_NOW DL_LAZY
10592 # else
10593 # ifdef RTLD_NOW
10594 # define LT_DLLAZY_OR_NOW RTLD_NOW
10595 # else
10596 # ifdef DL_NOW
10597 # define LT_DLLAZY_OR_NOW DL_NOW
10598 # else
10599 # define LT_DLLAZY_OR_NOW 0
10600 # endif
10601 # endif
10602 # endif
10603 # endif
10604 #endif
10605
10606 /* When -fvisbility=hidden is used, assume the code has been annotated
10607 correspondingly for the symbols needed. */
10608 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10609 int fnord () __attribute__((visibility("default")));
10610 #endif
10611
10612 int fnord () { return 42; }
10613 int main ()
10614 {
10615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10616 int status = $lt_dlunknown;
10617
10618 if (self)
10619 {
10620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10621 else
10622 {
10623 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624 else puts (dlerror ());
10625 }
10626 /* dlclose (self); */
10627 }
10628 else
10629 puts (dlerror ());
10630
10631 return status;
10632 }
10633 _LT_EOF
10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10635 (eval $ac_link) 2>&5
10636 ac_status=$?
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10639 (./conftest; exit; ) >&5 2>/dev/null
10640 lt_status=$?
10641 case x$lt_status in
10642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10644 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10645 esac
10646 else :
10647 # compilation failed
10648 lt_cv_dlopen_self_static=no
10649 fi
10650 fi
10651 rm -fr conftest*
10652
10653
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10656 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10657 fi
10658
10659 CPPFLAGS="$save_CPPFLAGS"
10660 LDFLAGS="$save_LDFLAGS"
10661 LIBS="$save_LIBS"
10662 ;;
10663 esac
10664
10665 case $lt_cv_dlopen_self in
10666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10667 *) enable_dlopen_self=unknown ;;
10668 esac
10669
10670 case $lt_cv_dlopen_self_static in
10671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10672 *) enable_dlopen_self_static=unknown ;;
10673 esac
10674 fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692 striplib=
10693 old_striplib=
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10695 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10696 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10697 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10698 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 else
10702 # FIXME - insert some real tests, host_os isn't really good enough
10703 case $host_os in
10704 darwin*)
10705 if test -n "$STRIP" ; then
10706 striplib="$STRIP -x"
10707 old_striplib="$STRIP -S"
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10713 fi
10714 ;;
10715 *)
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10718 ;;
10719 esac
10720 fi
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 # Report which library types will actually be built
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10735 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10737 $as_echo "$can_build_shared" >&6; }
10738
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10740 $as_echo_n "checking whether to build shared libraries... " >&6; }
10741 test "$can_build_shared" = "no" && enable_shared=no
10742
10743 # On AIX, shared libraries and static libraries use the same namespace, and
10744 # are all built from PIC.
10745 case $host_os in
10746 aix3*)
10747 test "$enable_shared" = yes && enable_static=no
10748 if test -n "$RANLIB"; then
10749 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10750 postinstall_cmds='$RANLIB $lib'
10751 fi
10752 ;;
10753
10754 aix[4-9]*)
10755 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10756 test "$enable_shared" = yes && enable_static=no
10757 fi
10758 ;;
10759 esac
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10761 $as_echo "$enable_shared" >&6; }
10762
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10764 $as_echo_n "checking whether to build static libraries... " >&6; }
10765 # Make sure either enable_shared or enable_static is yes.
10766 test "$enable_shared" = yes || enable_static=yes
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10768 $as_echo "$enable_static" >&6; }
10769
10770
10771
10772
10773 fi
10774 ac_ext=c
10775 ac_cpp='$CPP $CPPFLAGS'
10776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779
10780 CC="$lt_save_CC"
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794 ac_config_commands="$ac_config_commands libtool"
10795
10796
10797
10798
10799 # Only expand once:
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10810 if test -n "$ac_tool_prefix"; then
10811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 case $PKG_CONFIG in
10819 [\\/]* | ?:[\\/]*)
10820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10821 ;;
10822 *)
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834 done
10835 done
10836 IFS=$as_save_IFS
10837
10838 ;;
10839 esac
10840 fi
10841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10842 if test -n "$PKG_CONFIG"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10844 $as_echo "$PKG_CONFIG" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849
10850
10851 fi
10852 if test -z "$ac_cv_path_PKG_CONFIG"; then
10853 ac_pt_PKG_CONFIG=$PKG_CONFIG
10854 # Extract the first word of "pkg-config", so it can be a program name with args.
10855 set dummy pkg-config; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 case $ac_pt_PKG_CONFIG in
10862 [\\/]* | ?:[\\/]*)
10863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10864 ;;
10865 *)
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10868 do
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10876 fi
10877 done
10878 done
10879 IFS=$as_save_IFS
10880
10881 ;;
10882 esac
10883 fi
10884 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10885 if test -n "$ac_pt_PKG_CONFIG"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10887 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 fi
10892
10893 if test "x$ac_pt_PKG_CONFIG" = x; then
10894 PKG_CONFIG=""
10895 else
10896 case $cross_compiling:$ac_tool_warned in
10897 yes:)
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900 ac_tool_warned=yes ;;
10901 esac
10902 PKG_CONFIG=$ac_pt_PKG_CONFIG
10903 fi
10904 else
10905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10906 fi
10907
10908 fi
10909 if test -n "$PKG_CONFIG"; then
10910 _pkg_min_version=0.22
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10912 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10913 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915 $as_echo "yes" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 PKG_CONFIG=""
10920 fi
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10923 $as_echo_n "checking for GNU make... " >&6; }
10924 if ${_cv_gnu_make_command+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 _cv_gnu_make_command='' ;
10928 for a in "$MAKE" make gmake gnumake ; do
10929 if test -z "$a" ; then continue ; fi ;
10930 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10931 _cv_gnu_make_command=$a ;
10932 break;
10933 fi
10934 done ;
10935
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10938 $as_echo "$_cv_gnu_make_command" >&6; } ;
10939 if test "x$_cv_gnu_make_command" != "x" ; then
10940 ifGNUmake='' ;
10941 else
10942 ifGNUmake='#' ;
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10944 $as_echo "\"Not found\"" >&6; };
10945 fi
10946
10947
10948 GMAKE=$_cv_gnu_make_command
10949
10950
10951 if test "x$GMAKE" = x; then :
10952 as_fn_error $? "You need GNU make" "$LINENO" 5
10953 fi
10954 for ac_prog in bash
10955 do
10956 # Extract the first word of "$ac_prog", so it can be a program name with args.
10957 set dummy $ac_prog; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if ${ac_cv_path__BASH+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $_BASH in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10966 ;;
10967 *)
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979 done
10980 done
10981 IFS=$as_save_IFS
10982
10983 ;;
10984 esac
10985 fi
10986 _BASH=$ac_cv_path__BASH
10987 if test -n "$_BASH"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10989 $as_echo "$_BASH" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 fi
10994
10995
10996 test -n "$_BASH" && break
10997 done
10998
10999 if test "x$_BASH" = x; then :
11000 as_fn_error $? "You need GNU bash" "$LINENO" 5
11001 fi
11002 for ac_prog in time
11003 do
11004 # Extract the first word of "$ac_prog", so it can be a program name with args.
11005 set dummy $ac_prog; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_path_TIME+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 case $TIME in
11012 [\\/]* | ?:[\\/]*)
11013 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11014 ;;
11015 *)
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11018 do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027 done
11028 done
11029 IFS=$as_save_IFS
11030
11031 ;;
11032 esac
11033 fi
11034 TIME=$ac_cv_path_TIME
11035 if test -n "$TIME"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11037 $as_echo "$TIME" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11041 fi
11042
11043
11044 test -n "$TIME" && break
11045 done
11046
11047
11048
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
11051 $as_echo_n "checking for bison >= 2.3... " >&6; }
11052 if test -z "$BISON"; then
11053 ac_path_BISON_found=false
11054 # Loop through the user's path and test for each of PROGNAME-LIST
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11057 do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 for ac_prog in bison; do
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
11063 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
11064 as_awk_strverscmp='
11065 # Use only awk features that work with 7th edition Unix awk (1978).
11066 # My, what an old awk you have, Mr. Solaris!
11067 END {
11068 while (length(v1) && length(v2)) {
11069 # Set d1 to be the next thing to compare from v1, and likewise for d2.
11070 # Normally this is a single character, but if v1 and v2 contain digits,
11071 # compare them as integers and fractions as strverscmp does.
11072 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
11073 # Split v1 and v2 into their leading digit string components d1 and d2,
11074 # and advance v1 and v2 past the leading digit strings.
11075 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
11076 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
11077 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
11078 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
11079 if (d1 ~ /^0/) {
11080 if (d2 ~ /^0/) {
11081 # Compare two fractions.
11082 while (d1 ~ /^0/ && d2 ~ /^0/) {
11083 d1 = substr(d1, 2); len1--
11084 d2 = substr(d2, 2); len2--
11085 }
11086 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
11087 # The two components differ in length, and the common prefix
11088 # contains only leading zeros. Consider the longer to be less.
11089 d1 = -len1
11090 d2 = -len2
11091 } else {
11092 # Otherwise, compare as strings.
11093 d1 = "x" d1
11094 d2 = "x" d2
11095 }
11096 } else {
11097 # A fraction is less than an integer.
11098 exit 1
11099 }
11100 } else {
11101 if (d2 ~ /^0/) {
11102 # An integer is greater than a fraction.
11103 exit 2
11104 } else {
11105 # Compare two integers.
11106 d1 += 0
11107 d2 += 0
11108 }
11109 }
11110 } else {
11111 # The normal case, without worrying about digits.
11112 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
11113 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
11114 }
11115 if (d1 < d2) exit 1
11116 if (d1 > d2) exit 2
11117 }
11118 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
11119 # which mishandles some comparisons of empty strings to integers.
11120 if (length(v2)) exit 1
11121 if (length(v1)) exit 2
11122 }
11123 '
11124 as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
11125 as_arg_v2=2.3
11126 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11127 case $? in #(
11128 1) :
11129 ;; #(
11130 0) :
11131 ac_cv_path_BISON=$ac_path_BISON
11132 ;; #(
11133 2) :
11134 ac_cv_path_BISON=$ac_path_BISON
11135 ;; #(
11136 *) :
11137 ;;
11138 esac
11139
11140 $ac_path_BISON_found && break 3
11141 done
11142 done
11143 done
11144 IFS=$as_save_IFS
11145 if test -z "$ac_cv_path_BISON"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
11149
11150 fi
11151 else
11152 ac_cv_path_BISON=$BISON
11153 fi
11154
11155 BISON=$ac_cv_path_BISON
11156
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11158 $as_echo "$BISON" >&6; }
11159
11160
11161
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
11163 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
11164 if test -z "$FLEX"; then
11165 ac_path_FLEX_found=false
11166 # Loop through the user's path and test for each of PROGNAME-LIST
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_prog in flex; do
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
11175 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
11176 as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
11177 as_arg_v2=2.5.33
11178 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11179 case $? in #(
11180 1) :
11181 ;; #(
11182 0) :
11183 ac_cv_path_FLEX=$ac_path_FLEX
11184 ;; #(
11185 2) :
11186 ac_cv_path_FLEX=$ac_path_FLEX
11187 ;; #(
11188 *) :
11189 ;;
11190 esac
11191
11192 $ac_path_FLEX_found && break 3
11193 done
11194 done
11195 done
11196 IFS=$as_save_IFS
11197 if test -z "$ac_cv_path_FLEX"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
11201
11202 fi
11203 else
11204 ac_cv_path_FLEX=$FLEX
11205 fi
11206
11207 FLEX=$ac_cv_path_FLEX
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11210 $as_echo "$FLEX" >&6; }
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
11215 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
11216 if test -z "$GPERF"; then
11217 ac_path_GPERF_found=false
11218 # Loop through the user's path and test for each of PROGNAME-LIST
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_prog in gperf; do
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
11227 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
11228 as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
11229 as_arg_v2=3.0.3
11230 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11231 case $? in #(
11232 1) :
11233 ;; #(
11234 0) :
11235 ac_cv_path_GPERF=$ac_path_GPERF
11236 ;; #(
11237 2) :
11238 ac_cv_path_GPERF=$ac_path_GPERF
11239 ;; #(
11240 *) :
11241 ;;
11242 esac
11243
11244 $ac_path_GPERF_found && break 3
11245 done
11246 done
11247 done
11248 IFS=$as_save_IFS
11249 if test -z "$ac_cv_path_GPERF"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
11253
11254 fi
11255 else
11256 ac_cv_path_GPERF=$GPERF
11257 fi
11258
11259 GPERF=$ac_cv_path_GPERF
11260
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
11262 $as_echo "$GPERF" >&6; }
11263
11264 # Find a good install program. We prefer a C program (faster),
11265 # so one script is as good as another. But avoid the broken or
11266 # incompatible versions:
11267 # SysV /etc/install, /usr/sbin/install
11268 # SunOS /usr/etc/install
11269 # IRIX /sbin/install
11270 # AIX /bin/install
11271 # AmigaOS /C/install, which installs bootblocks on floppy discs
11272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11275 # OS/2's system install, which has a completely different semantic
11276 # ./install, which can be erroneously created by make from ./install.sh.
11277 # Reject install programs that cannot install multiple files.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11280 if test -z "$INSTALL"; then
11281 if ${ac_cv_path_install+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 # Account for people who put trailing slashes in PATH elements.
11290 case $as_dir/ in #((
11291 ./ | .// | /[cC]/* | \
11292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11294 /usr/ucb/* ) ;;
11295 *)
11296 # OSF1 and SCO ODT 3.0 have their own names for install.
11297 # Don't use installbsd from OSF since it installs stuff as root
11298 # by default.
11299 for ac_prog in ginstall scoinst install; do
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11302 if test $ac_prog = install &&
11303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11304 # AIX install. It has an incompatible calling convention.
11305 :
11306 elif test $ac_prog = install &&
11307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11308 # program-specific install script used by HP pwplus--don't use.
11309 :
11310 else
11311 rm -rf conftest.one conftest.two conftest.dir
11312 echo one > conftest.one
11313 echo two > conftest.two
11314 mkdir conftest.dir
11315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11316 test -s conftest.one && test -s conftest.two &&
11317 test -s conftest.dir/conftest.one &&
11318 test -s conftest.dir/conftest.two
11319 then
11320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11321 break 3
11322 fi
11323 fi
11324 fi
11325 done
11326 done
11327 ;;
11328 esac
11329
11330 done
11331 IFS=$as_save_IFS
11332
11333 rm -rf conftest.one conftest.two conftest.dir
11334
11335 fi
11336 if test "${ac_cv_path_install+set}" = set; then
11337 INSTALL=$ac_cv_path_install
11338 else
11339 # As a last resort, use the slow shell script. Don't cache a
11340 # value for INSTALL within a source directory, because that will
11341 # break other packages using the cache if that directory is
11342 # removed, or if the value is a relative name.
11343 INSTALL=$ac_install_sh
11344 fi
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11347 $as_echo "$INSTALL" >&6; }
11348
11349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11350 # It thinks the first close brace ends the variable substitution.
11351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11352
11353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11354
11355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
11358 $as_echo_n "checking for GNU tar >=1.19... " >&6; }
11359 if test -z "$GNUTAR"; then
11360 ac_path_GNUTAR_found=false
11361 # Loop through the user's path and test for each of PROGNAME-LIST
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11364 do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_prog in tar gtar gnutar; do
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
11370 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
11371
11372 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
11373
11374 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
11375 as_arg_v2=1.19
11376 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11377 case $? in #(
11378 1) :
11379 ;; #(
11380 0) :
11381
11382 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11383 ;; #(
11384 2) :
11385
11386 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11387 ;; #(
11388 *) :
11389 ;;
11390 esac
11391
11392 fi
11393
11394 $ac_path_GNUTAR_found && break 3
11395 done
11396 done
11397 done
11398 IFS=$as_save_IFS
11399 if test -z "$ac_cv_path_GNUTAR"; then
11400 :
11401 fi
11402 else
11403 ac_cv_path_GNUTAR=$GNUTAR
11404 fi
11405
11406 if test "x$ac_cv_path_GNUTAR" != x; then :
11407
11408 GNUTAR=$ac_cv_path_GNUTAR
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
11411 $as_echo "$GNUTAR" >&6; }
11412
11413 else
11414
11415 GNUTAR=:
11416
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419
11420 fi
11421 for ac_prog in git
11422 do
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_GIT+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 if test -n "$GIT"; then
11431 ac_cv_prog_GIT="$GIT" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_GIT="$ac_prog"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 GIT=$ac_cv_prog_GIT
11451 if test -n "$GIT"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
11453 $as_echo "$GIT" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460 test -n "$GIT" && break
11461 done
11462
11463 ac_ext=cpp
11464 ac_cpp='$CXXCPP $CPPFLAGS'
11465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11468 if test -z "$CXX"; then
11469 if test -n "$CCC"; then
11470 CXX=$CCC
11471 else
11472 if test -n "$ac_tool_prefix"; then
11473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11474 do
11475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if ${ac_cv_prog_CXX+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test -n "$CXX"; then
11483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496 done
11497 done
11498 IFS=$as_save_IFS
11499
11500 fi
11501 fi
11502 CXX=$ac_cv_prog_CXX
11503 if test -n "$CXX"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11505 $as_echo "$CXX" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 fi
11510
11511
11512 test -n "$CXX" && break
11513 done
11514 fi
11515 if test -z "$CXX"; then
11516 ac_ct_CXX=$CXX
11517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11518 do
11519 # Extract the first word of "$ac_prog", so it can be a program name with args.
11520 set dummy $ac_prog; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 if test -n "$ac_ct_CXX"; then
11527 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_ac_ct_CXX="$ac_prog"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540 done
11541 done
11542 IFS=$as_save_IFS
11543
11544 fi
11545 fi
11546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11547 if test -n "$ac_ct_CXX"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11549 $as_echo "$ac_ct_CXX" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11553 fi
11554
11555
11556 test -n "$ac_ct_CXX" && break
11557 done
11558
11559 if test "x$ac_ct_CXX" = x; then
11560 CXX="g++"
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563 yes:)
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566 ac_tool_warned=yes ;;
11567 esac
11568 CXX=$ac_ct_CXX
11569 fi
11570 fi
11571
11572 fi
11573 fi
11574 # Provide some information about the compiler.
11575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11576 set X $ac_compile
11577 ac_compiler=$2
11578 for ac_option in --version -v -V -qversion; do
11579 { { ac_try="$ac_compiler $ac_option >&5"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11585 $as_echo "$ac_try_echo"; } >&5
11586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11587 ac_status=$?
11588 if test -s conftest.err; then
11589 sed '10a\
11590 ... rest of stderr output deleted ...
11591 10q' conftest.err >conftest.er1
11592 cat conftest.er1 >&5
11593 fi
11594 rm -f conftest.er1 conftest.err
11595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596 test $ac_status = 0; }
11597 done
11598
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11600 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11601 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 int
11608 main ()
11609 {
11610 #ifndef __GNUC__
11611 choke me
11612 #endif
11613
11614 ;
11615 return 0;
11616 }
11617 _ACEOF
11618 if ac_fn_cxx_try_compile "$LINENO"; then :
11619 ac_compiler_gnu=yes
11620 else
11621 ac_compiler_gnu=no
11622 fi
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11625
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11628 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11629 if test $ac_compiler_gnu = yes; then
11630 GXX=yes
11631 else
11632 GXX=
11633 fi
11634 ac_test_CXXFLAGS=${CXXFLAGS+set}
11635 ac_save_CXXFLAGS=$CXXFLAGS
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11637 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11638 if ${ac_cv_prog_cxx_g+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11642 ac_cxx_werror_flag=yes
11643 ac_cv_prog_cxx_g=no
11644 CXXFLAGS="-g"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 int
11649 main ()
11650 {
11651
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_cxx_try_compile "$LINENO"; then :
11657 ac_cv_prog_cxx_g=yes
11658 else
11659 CXXFLAGS=""
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662
11663 int
11664 main ()
11665 {
11666
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_cxx_try_compile "$LINENO"; then :
11672
11673 else
11674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11675 CXXFLAGS="-g"
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11678
11679 int
11680 main ()
11681 {
11682
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_cxx_try_compile "$LINENO"; then :
11688 ac_cv_prog_cxx_g=yes
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11699 if test "$ac_test_CXXFLAGS" = set; then
11700 CXXFLAGS=$ac_save_CXXFLAGS
11701 elif test $ac_cv_prog_cxx_g = yes; then
11702 if test "$GXX" = yes; then
11703 CXXFLAGS="-g -O2"
11704 else
11705 CXXFLAGS="-g"
11706 fi
11707 else
11708 if test "$GXX" = yes; then
11709 CXXFLAGS="-O2"
11710 else
11711 CXXFLAGS=
11712 fi
11713 fi
11714 ac_ext=c
11715 ac_cpp='$CPP $CPPFLAGS'
11716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720
11721
11722 func_stripname_cnf ()
11723 {
11724 case ${2} in
11725 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11726 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11727 esac
11728 } # func_stripname_cnf
11729
11730 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11731 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11732 (test "X$CXX" != "Xg++"))) ; then
11733 ac_ext=cpp
11734 ac_cpp='$CXXCPP $CPPFLAGS'
11735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11739 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11740 if test -z "$CXXCPP"; then
11741 if ${ac_cv_prog_CXXCPP+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 # Double quotes because CXXCPP needs to be expanded
11745 for CXXCPP in "$CXX -E" "/lib/cpp"
11746 do
11747 ac_preproc_ok=false
11748 for ac_cxx_preproc_warn_flag in '' yes
11749 do
11750 # Use a header file that comes with gcc, so configuring glibc
11751 # with a fresh cross-compiler works.
11752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 # <limits.h> exists even on freestanding compilers.
11754 # On the NeXT, cc -E runs the code through the compiler's parser,
11755 # not just through cpp. "Syntax error" is here to catch this case.
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11763 Syntax error
11764 _ACEOF
11765 if ac_fn_cxx_try_cpp "$LINENO"; then :
11766
11767 else
11768 # Broken: fails on valid input.
11769 continue
11770 fi
11771 rm -f conftest.err conftest.i conftest.$ac_ext
11772
11773 # OK, works on sane cases. Now check whether nonexistent headers
11774 # can be detected and how.
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11777 #include <ac_nonexistent.h>
11778 _ACEOF
11779 if ac_fn_cxx_try_cpp "$LINENO"; then :
11780 # Broken: success on invalid input.
11781 continue
11782 else
11783 # Passes both tests.
11784 ac_preproc_ok=:
11785 break
11786 fi
11787 rm -f conftest.err conftest.i conftest.$ac_ext
11788
11789 done
11790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11791 rm -f conftest.i conftest.err conftest.$ac_ext
11792 if $ac_preproc_ok; then :
11793 break
11794 fi
11795
11796 done
11797 ac_cv_prog_CXXCPP=$CXXCPP
11798
11799 fi
11800 CXXCPP=$ac_cv_prog_CXXCPP
11801 else
11802 ac_cv_prog_CXXCPP=$CXXCPP
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11805 $as_echo "$CXXCPP" >&6; }
11806 ac_preproc_ok=false
11807 for ac_cxx_preproc_warn_flag in '' yes
11808 do
11809 # Use a header file that comes with gcc, so configuring glibc
11810 # with a fresh cross-compiler works.
11811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812 # <limits.h> exists even on freestanding compilers.
11813 # On the NeXT, cc -E runs the code through the compiler's parser,
11814 # not just through cpp. "Syntax error" is here to catch this case.
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817 #ifdef __STDC__
11818 # include <limits.h>
11819 #else
11820 # include <assert.h>
11821 #endif
11822 Syntax error
11823 _ACEOF
11824 if ac_fn_cxx_try_cpp "$LINENO"; then :
11825
11826 else
11827 # Broken: fails on valid input.
11828 continue
11829 fi
11830 rm -f conftest.err conftest.i conftest.$ac_ext
11831
11832 # OK, works on sane cases. Now check whether nonexistent headers
11833 # can be detected and how.
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 #include <ac_nonexistent.h>
11837 _ACEOF
11838 if ac_fn_cxx_try_cpp "$LINENO"; then :
11839 # Broken: success on invalid input.
11840 continue
11841 else
11842 # Passes both tests.
11843 ac_preproc_ok=:
11844 break
11845 fi
11846 rm -f conftest.err conftest.i conftest.$ac_ext
11847
11848 done
11849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11850 rm -f conftest.i conftest.err conftest.$ac_ext
11851 if $ac_preproc_ok; then :
11852
11853 else
11854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11856 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11857 See \`config.log' for more details" "$LINENO" 5; }
11858 fi
11859
11860 ac_ext=c
11861 ac_cpp='$CPP $CPPFLAGS'
11862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
11866 else
11867 _lt_caught_CXX_error=yes
11868 fi
11869
11870 ac_ext=cpp
11871 ac_cpp='$CXXCPP $CPPFLAGS'
11872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11875
11876 archive_cmds_need_lc_CXX=no
11877 allow_undefined_flag_CXX=
11878 always_export_symbols_CXX=no
11879 archive_expsym_cmds_CXX=
11880 compiler_needs_object_CXX=no
11881 export_dynamic_flag_spec_CXX=
11882 hardcode_direct_CXX=no
11883 hardcode_direct_absolute_CXX=no
11884 hardcode_libdir_flag_spec_CXX=
11885 hardcode_libdir_flag_spec_ld_CXX=
11886 hardcode_libdir_separator_CXX=
11887 hardcode_minus_L_CXX=no
11888 hardcode_shlibpath_var_CXX=unsupported
11889 hardcode_automatic_CXX=no
11890 inherit_rpath_CXX=no
11891 module_cmds_CXX=
11892 module_expsym_cmds_CXX=
11893 link_all_deplibs_CXX=unknown
11894 old_archive_cmds_CXX=$old_archive_cmds
11895 reload_flag_CXX=$reload_flag
11896 reload_cmds_CXX=$reload_cmds
11897 no_undefined_flag_CXX=
11898 whole_archive_flag_spec_CXX=
11899 enable_shared_with_static_runtimes_CXX=no
11900
11901 # Source file extension for C++ test sources.
11902 ac_ext=cpp
11903
11904 # Object file extension for compiled C++ test sources.
11905 objext=o
11906 objext_CXX=$objext
11907
11908 # No sense in running all these tests if we already determined that
11909 # the CXX compiler isn't working. Some variables (like enable_shared)
11910 # are currently assumed to apply to all compilers on this platform,
11911 # and will be corrupted by setting them based on a non-working compiler.
11912 if test "$_lt_caught_CXX_error" != yes; then
11913 # Code to be used in simple compile tests
11914 lt_simple_compile_test_code="int some_variable = 0;"
11915
11916 # Code to be used in simple link tests
11917 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11918
11919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11920
11921
11922
11923
11924
11925
11926 # If no C compiler was specified, use CC.
11927 LTCC=${LTCC-"$CC"}
11928
11929 # If no C compiler flags were specified, use CFLAGS.
11930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11931
11932 # Allow CC to be a program name with arguments.
11933 compiler=$CC
11934
11935
11936 # save warnings/boilerplate of simple test code
11937 ac_outfile=conftest.$ac_objext
11938 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11939 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940 _lt_compiler_boilerplate=`cat conftest.err`
11941 $RM conftest*
11942
11943 ac_outfile=conftest.$ac_objext
11944 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11945 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11946 _lt_linker_boilerplate=`cat conftest.err`
11947 $RM -r conftest*
11948
11949
11950 # Allow CC to be a program name with arguments.
11951 lt_save_CC=$CC
11952 lt_save_CFLAGS=$CFLAGS
11953 lt_save_LD=$LD
11954 lt_save_GCC=$GCC
11955 GCC=$GXX
11956 lt_save_with_gnu_ld=$with_gnu_ld
11957 lt_save_path_LD=$lt_cv_path_LD
11958 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11959 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11960 else
11961 $as_unset lt_cv_prog_gnu_ld
11962 fi
11963 if test -n "${lt_cv_path_LDCXX+set}"; then
11964 lt_cv_path_LD=$lt_cv_path_LDCXX
11965 else
11966 $as_unset lt_cv_path_LD
11967 fi
11968 test -z "${LDCXX+set}" || LD=$LDCXX
11969 CC=${CXX-"c++"}
11970 CFLAGS=$CXXFLAGS
11971 compiler=$CC
11972 compiler_CXX=$CC
11973 for cc_temp in $compiler""; do
11974 case $cc_temp in
11975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11977 \-*) ;;
11978 *) break;;
11979 esac
11980 done
11981 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11982
11983
11984 if test -n "$compiler"; then
11985 # We don't want -fno-exception when compiling C++ code, so set the
11986 # no_builtin_flag separately
11987 if test "$GXX" = yes; then
11988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11989 else
11990 lt_prog_compiler_no_builtin_flag_CXX=
11991 fi
11992
11993 if test "$GXX" = yes; then
11994 # Set up default GNU C++ configuration
11995
11996
11997
11998 # Check whether --with-gnu-ld was given.
11999 if test "${with_gnu_ld+set}" = set; then :
12000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12001 else
12002 with_gnu_ld=no
12003 fi
12004
12005 ac_prog=ld
12006 if test "$GCC" = yes; then
12007 # Check if gcc -print-prog-name=ld gives a path.
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12009 $as_echo_n "checking for ld used by $CC... " >&6; }
12010 case $host in
12011 *-*-mingw*)
12012 # gcc leaves a trailing carriage return which upsets mingw
12013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12014 *)
12015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12016 esac
12017 case $ac_prog in
12018 # Accept absolute paths.
12019 [\\/]* | ?:[\\/]*)
12020 re_direlt='/[^/][^/]*/\.\./'
12021 # Canonicalize the pathname of ld
12022 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12023 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12024 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12025 done
12026 test -z "$LD" && LD="$ac_prog"
12027 ;;
12028 "")
12029 # If it fails, then pretend we aren't using GCC.
12030 ac_prog=ld
12031 ;;
12032 *)
12033 # If it is relative, then search for the first ld in PATH.
12034 with_gnu_ld=unknown
12035 ;;
12036 esac
12037 elif test "$with_gnu_ld" = yes; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12039 $as_echo_n "checking for GNU ld... " >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12042 $as_echo_n "checking for non-GNU ld... " >&6; }
12043 fi
12044 if ${lt_cv_path_LD+:} false; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 if test -z "$LD"; then
12048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12049 for ac_dir in $PATH; do
12050 IFS="$lt_save_ifs"
12051 test -z "$ac_dir" && ac_dir=.
12052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12053 lt_cv_path_LD="$ac_dir/$ac_prog"
12054 # Check to see if the program is GNU ld. I'd rather use --version,
12055 # but apparently some variants of GNU ld only accept -v.
12056 # Break only if it was the GNU/non-GNU ld that we prefer.
12057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059 test "$with_gnu_ld" != no && break
12060 ;;
12061 *)
12062 test "$with_gnu_ld" != yes && break
12063 ;;
12064 esac
12065 fi
12066 done
12067 IFS="$lt_save_ifs"
12068 else
12069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12070 fi
12071 fi
12072
12073 LD="$lt_cv_path_LD"
12074 if test -n "$LD"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12076 $as_echo "$LD" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 fi
12081 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12083 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12084 if ${lt_cv_prog_gnu_ld+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12088 case `$LD -v 2>&1 </dev/null` in
12089 *GNU* | *'with BFD'*)
12090 lt_cv_prog_gnu_ld=yes
12091 ;;
12092 *)
12093 lt_cv_prog_gnu_ld=no
12094 ;;
12095 esac
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12098 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12099 with_gnu_ld=$lt_cv_prog_gnu_ld
12100
12101
12102
12103
12104
12105
12106
12107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12108 # archiving commands below assume that GNU ld is being used.
12109 if test "$with_gnu_ld" = yes; then
12110 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12111 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12112
12113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12115
12116 # If archive_cmds runs LD, not CC, wlarc should be empty
12117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12118 # investigate it a little bit more. (MM)
12119 wlarc='${wl}'
12120
12121 # ancient GNU ld didn't support --whole-archive et. al.
12122 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12123 $GREP 'no-whole-archive' > /dev/null; then
12124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12125 else
12126 whole_archive_flag_spec_CXX=
12127 fi
12128 else
12129 with_gnu_ld=no
12130 wlarc=
12131
12132 # A generic and very simple default shared library creation
12133 # command for GNU C++ for the case where it uses the native
12134 # linker, instead of GNU ld. If possible, this setting should
12135 # overridden to take advantage of the native linker features on
12136 # the platform it is being used on.
12137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12138 fi
12139
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
12143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12144
12145 else
12146 GXX=no
12147 with_gnu_ld=no
12148 wlarc=
12149 fi
12150
12151 # PORTME: fill in a description of your system's C++ link characteristics
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12154 ld_shlibs_CXX=yes
12155 case $host_os in
12156 aix3*)
12157 # FIXME: insert proper C++ library support
12158 ld_shlibs_CXX=no
12159 ;;
12160 aix[4-9]*)
12161 if test "$host_cpu" = ia64; then
12162 # On IA64, the linker does run time linking by default, so we don't
12163 # have to do anything special.
12164 aix_use_runtimelinking=no
12165 exp_sym_flag='-Bexport'
12166 no_entry_flag=""
12167 else
12168 aix_use_runtimelinking=no
12169
12170 # Test if we are trying to use run time linking or normal
12171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12172 # need to do runtime linking.
12173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12174 for ld_flag in $LDFLAGS; do
12175 case $ld_flag in
12176 *-brtl*)
12177 aix_use_runtimelinking=yes
12178 break
12179 ;;
12180 esac
12181 done
12182 ;;
12183 esac
12184
12185 exp_sym_flag='-bexport'
12186 no_entry_flag='-bnoentry'
12187 fi
12188
12189 # When large executables or shared objects are built, AIX ld can
12190 # have problems creating the table of contents. If linking a library
12191 # or program results in "error TOC overflow" add -mminimal-toc to
12192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12194
12195 archive_cmds_CXX=''
12196 hardcode_direct_CXX=yes
12197 hardcode_direct_absolute_CXX=yes
12198 hardcode_libdir_separator_CXX=':'
12199 link_all_deplibs_CXX=yes
12200 file_list_spec_CXX='${wl}-f,'
12201
12202 if test "$GXX" = yes; then
12203 case $host_os in aix4.[012]|aix4.[012].*)
12204 # We only want to do this on AIX 4.2 and lower, the check
12205 # below for broken collect2 doesn't work under 4.3+
12206 collect2name=`${CC} -print-prog-name=collect2`
12207 if test -f "$collect2name" &&
12208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12209 then
12210 # We have reworked collect2
12211 :
12212 else
12213 # We have old collect2
12214 hardcode_direct_CXX=unsupported
12215 # It fails to find uninstalled libraries when the uninstalled
12216 # path is not listed in the libpath. Setting hardcode_minus_L
12217 # to unsupported forces relinking
12218 hardcode_minus_L_CXX=yes
12219 hardcode_libdir_flag_spec_CXX='-L$libdir'
12220 hardcode_libdir_separator_CXX=
12221 fi
12222 esac
12223 shared_flag='-shared'
12224 if test "$aix_use_runtimelinking" = yes; then
12225 shared_flag="$shared_flag "'${wl}-G'
12226 fi
12227 else
12228 # not using gcc
12229 if test "$host_cpu" = ia64; then
12230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12231 # chokes on -Wl,-G. The following line is correct:
12232 shared_flag='-G'
12233 else
12234 if test "$aix_use_runtimelinking" = yes; then
12235 shared_flag='${wl}-G'
12236 else
12237 shared_flag='${wl}-bM:SRE'
12238 fi
12239 fi
12240 fi
12241
12242 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12243 # It seems that -bexpall does not export symbols beginning with
12244 # underscore (_), so it is better to generate a list of symbols to
12245 # export.
12246 always_export_symbols_CXX=yes
12247 if test "$aix_use_runtimelinking" = yes; then
12248 # Warning - without using the other runtime loading flags (-brtl),
12249 # -berok will link without error, but may produce a broken library.
12250 allow_undefined_flag_CXX='-berok'
12251 # Determine the default libpath from the value encoded in an empty
12252 # executable.
12253 if test "${lt_cv_aix_libpath+set}" = set; then
12254 aix_libpath=$lt_cv_aix_libpath
12255 else
12256 if ${lt_cv_aix_libpath__CXX+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261
12262 int
12263 main ()
12264 {
12265
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_cxx_try_link "$LINENO"; then :
12271
12272 lt_aix_libpath_sed='
12273 /Import File Strings/,/^$/ {
12274 /^0/ {
12275 s/^0 *\([^ ]*\) *$/\1/
12276 p
12277 }
12278 }'
12279 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12280 # Check for a 64-bit object if we didn't find anything.
12281 if test -z "$lt_cv_aix_libpath__CXX"; then
12282 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12283 fi
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 if test -z "$lt_cv_aix_libpath__CXX"; then
12288 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12289 fi
12290
12291 fi
12292
12293 aix_libpath=$lt_cv_aix_libpath__CXX
12294 fi
12295
12296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297
12298 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12299 else
12300 if test "$host_cpu" = ia64; then
12301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12302 allow_undefined_flag_CXX="-z nodefs"
12303 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"
12304 else
12305 # Determine the default libpath from the value encoded in an
12306 # empty executable.
12307 if test "${lt_cv_aix_libpath+set}" = set; then
12308 aix_libpath=$lt_cv_aix_libpath
12309 else
12310 if ${lt_cv_aix_libpath__CXX+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315
12316 int
12317 main ()
12318 {
12319
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_cxx_try_link "$LINENO"; then :
12325
12326 lt_aix_libpath_sed='
12327 /Import File Strings/,/^$/ {
12328 /^0/ {
12329 s/^0 *\([^ ]*\) *$/\1/
12330 p
12331 }
12332 }'
12333 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12334 # Check for a 64-bit object if we didn't find anything.
12335 if test -z "$lt_cv_aix_libpath__CXX"; then
12336 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337 fi
12338 fi
12339 rm -f core conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
12341 if test -z "$lt_cv_aix_libpath__CXX"; then
12342 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12343 fi
12344
12345 fi
12346
12347 aix_libpath=$lt_cv_aix_libpath__CXX
12348 fi
12349
12350 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12351 # Warning - without using the other run time loading flags,
12352 # -berok will link without error, but may produce a broken library.
12353 no_undefined_flag_CXX=' ${wl}-bernotok'
12354 allow_undefined_flag_CXX=' ${wl}-berok'
12355 if test "$with_gnu_ld" = yes; then
12356 # We only use this code for GNU lds that support --whole-archive.
12357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12358 else
12359 # Exported symbols can be pulled into shared objects from archives
12360 whole_archive_flag_spec_CXX='$convenience'
12361 fi
12362 archive_cmds_need_lc_CXX=yes
12363 # This is similar to how AIX traditionally builds its shared
12364 # libraries.
12365 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'
12366 fi
12367 fi
12368 ;;
12369
12370 beos*)
12371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12372 allow_undefined_flag_CXX=unsupported
12373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12374 # support --undefined. This deserves some investigation. FIXME
12375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12376 else
12377 ld_shlibs_CXX=no
12378 fi
12379 ;;
12380
12381 chorus*)
12382 case $cc_basename in
12383 *)
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
12386 ;;
12387 esac
12388 ;;
12389
12390 cygwin* | mingw* | pw32* | cegcc*)
12391 case $GXX,$cc_basename in
12392 ,cl* | no,cl*)
12393 # Native MSVC
12394 # hardcode_libdir_flag_spec is actually meaningless, as there is
12395 # no search path for DLLs.
12396 hardcode_libdir_flag_spec_CXX=' '
12397 allow_undefined_flag_CXX=unsupported
12398 always_export_symbols_CXX=yes
12399 file_list_spec_CXX='@'
12400 # Tell ltmain to make .lib files, not .a files.
12401 libext=lib
12402 # Tell ltmain to make .dll files, not .so files.
12403 shrext_cmds=".dll"
12404 # FIXME: Setting linknames here is a bad hack.
12405 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12406 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12407 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12408 else
12409 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12410 fi~
12411 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12412 linknames='
12413 # The linker will not automatically build a static lib if we build a DLL.
12414 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12415 enable_shared_with_static_runtimes_CXX=yes
12416 # Don't use ranlib
12417 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12418 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12419 lt_tool_outputfile="@TOOL_OUTPUT@"~
12420 case $lt_outputfile in
12421 *.exe|*.EXE) ;;
12422 *)
12423 lt_outputfile="$lt_outputfile.exe"
12424 lt_tool_outputfile="$lt_tool_outputfile.exe"
12425 ;;
12426 esac~
12427 func_to_tool_file "$lt_outputfile"~
12428 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12429 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12430 $RM "$lt_outputfile.manifest";
12431 fi'
12432 ;;
12433 *)
12434 # g++
12435 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12436 # as there is no search path for DLLs.
12437 hardcode_libdir_flag_spec_CXX='-L$libdir'
12438 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12439 allow_undefined_flag_CXX=unsupported
12440 always_export_symbols_CXX=no
12441 enable_shared_with_static_runtimes_CXX=yes
12442
12443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12444 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'
12445 # If the export-symbols file already is a .def file (1st line
12446 # is EXPORTS), use it as is; otherwise, prepend...
12447 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12448 cp $export_symbols $output_objdir/$soname.def;
12449 else
12450 echo EXPORTS > $output_objdir/$soname.def;
12451 cat $export_symbols >> $output_objdir/$soname.def;
12452 fi~
12453 $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'
12454 else
12455 ld_shlibs_CXX=no
12456 fi
12457 ;;
12458 esac
12459 ;;
12460 darwin* | rhapsody*)
12461
12462
12463 archive_cmds_need_lc_CXX=no
12464 hardcode_direct_CXX=no
12465 hardcode_automatic_CXX=yes
12466 hardcode_shlibpath_var_CXX=unsupported
12467 if test "$lt_cv_ld_force_load" = "yes"; then
12468 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12469 else
12470 whole_archive_flag_spec_CXX=''
12471 fi
12472 link_all_deplibs_CXX=yes
12473 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12474 case $cc_basename in
12475 ifort*) _lt_dar_can_shared=yes ;;
12476 *) _lt_dar_can_shared=$GCC ;;
12477 esac
12478 if test "$_lt_dar_can_shared" = "yes"; then
12479 output_verbose_link_cmd=func_echo_all
12480 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}"
12481 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12482 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}"
12483 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}"
12484 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12485 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}"
12486 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}"
12487 fi
12488
12489 else
12490 ld_shlibs_CXX=no
12491 fi
12492
12493 ;;
12494
12495 dgux*)
12496 case $cc_basename in
12497 ec++*)
12498 # FIXME: insert proper C++ library support
12499 ld_shlibs_CXX=no
12500 ;;
12501 ghcx*)
12502 # Green Hills C++ Compiler
12503 # FIXME: insert proper C++ library support
12504 ld_shlibs_CXX=no
12505 ;;
12506 *)
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12509 ;;
12510 esac
12511 ;;
12512
12513 freebsd[12]*)
12514 # C++ shared libraries reported to be fairly broken before
12515 # switch to ELF
12516 ld_shlibs_CXX=no
12517 ;;
12518
12519 freebsd-elf*)
12520 archive_cmds_need_lc_CXX=no
12521 ;;
12522
12523 freebsd* | dragonfly*)
12524 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12525 # conventions
12526 ld_shlibs_CXX=yes
12527 ;;
12528
12529 gnu*)
12530 ;;
12531
12532 haiku*)
12533 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12534 link_all_deplibs_CXX=yes
12535 ;;
12536
12537 hpux9*)
12538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12539 hardcode_libdir_separator_CXX=:
12540 export_dynamic_flag_spec_CXX='${wl}-E'
12541 hardcode_direct_CXX=yes
12542 hardcode_minus_L_CXX=yes # Not in the search PATH,
12543 # but as the default
12544 # location of the library.
12545
12546 case $cc_basename in
12547 CC*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 aCC*)
12552 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'
12553 # Commands to make compiler produce verbose output that lists
12554 # what "hidden" libraries, object files and flags are used when
12555 # linking a shared library.
12556 #
12557 # There doesn't appear to be a way to prevent this compiler from
12558 # explicitly linking system object files so we need to strip them
12559 # from the output so that they don't get included in the library
12560 # dependencies.
12561 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; func_echo_all "$list"'
12562 ;;
12563 *)
12564 if test "$GXX" = yes; then
12565 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12566 else
12567 # FIXME: insert proper C++ library support
12568 ld_shlibs_CXX=no
12569 fi
12570 ;;
12571 esac
12572 ;;
12573
12574 hpux10*|hpux11*)
12575 if test $with_gnu_ld = no; then
12576 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12577 hardcode_libdir_separator_CXX=:
12578
12579 case $host_cpu in
12580 hppa*64*|ia64*)
12581 ;;
12582 *)
12583 export_dynamic_flag_spec_CXX='${wl}-E'
12584 ;;
12585 esac
12586 fi
12587 case $host_cpu in
12588 hppa*64*|ia64*)
12589 hardcode_direct_CXX=no
12590 hardcode_shlibpath_var_CXX=no
12591 ;;
12592 *)
12593 hardcode_direct_CXX=yes
12594 hardcode_direct_absolute_CXX=yes
12595 hardcode_minus_L_CXX=yes # Not in the search PATH,
12596 # but as the default
12597 # location of the library.
12598 ;;
12599 esac
12600
12601 case $cc_basename in
12602 CC*)
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12605 ;;
12606 aCC*)
12607 case $host_cpu in
12608 hppa*64*)
12609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610 ;;
12611 ia64*)
12612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613 ;;
12614 *)
12615 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12616 ;;
12617 esac
12618 # Commands to make compiler produce verbose output that lists
12619 # what "hidden" libraries, object files and flags are used when
12620 # linking a shared library.
12621 #
12622 # There doesn't appear to be a way to prevent this compiler from
12623 # explicitly linking system object files so we need to strip them
12624 # from the output so that they don't get included in the library
12625 # dependencies.
12626 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; func_echo_all "$list"'
12627 ;;
12628 *)
12629 if test "$GXX" = yes; then
12630 if test $with_gnu_ld = no; then
12631 case $host_cpu in
12632 hppa*64*)
12633 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12634 ;;
12635 ia64*)
12636 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637 ;;
12638 *)
12639 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12640 ;;
12641 esac
12642 fi
12643 else
12644 # FIXME: insert proper C++ library support
12645 ld_shlibs_CXX=no
12646 fi
12647 ;;
12648 esac
12649 ;;
12650
12651 interix[3-9]*)
12652 hardcode_direct_CXX=no
12653 hardcode_shlibpath_var_CXX=no
12654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12655 export_dynamic_flag_spec_CXX='${wl}-E'
12656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12657 # Instead, shared libraries are loaded at an image base (0x10000000 by
12658 # default) and relocated if they conflict, which is a slow very memory
12659 # consuming and fragmenting process. To avoid this, we pick a random,
12660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12662 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'
12663 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'
12664 ;;
12665 irix5* | irix6*)
12666 case $cc_basename in
12667 CC*)
12668 # SGI C++
12669 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12670
12671 # Archives containing C++ object files must be created using
12672 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12673 # necessary to make sure instantiated templates are included
12674 # in the archive.
12675 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12676 ;;
12677 *)
12678 if test "$GXX" = yes; then
12679 if test "$with_gnu_ld" = no; then
12680 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12681 else
12682 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12683 fi
12684 fi
12685 link_all_deplibs_CXX=yes
12686 ;;
12687 esac
12688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12689 hardcode_libdir_separator_CXX=:
12690 inherit_rpath_CXX=yes
12691 ;;
12692
12693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12694 case $cc_basename in
12695 KCC*)
12696 # Kuck and Associates, Inc. (KAI) C++ Compiler
12697
12698 # KCC will only create a shared library if the output file
12699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12700 # to its proper name (with version) after linking.
12701 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'
12702 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'
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12706 #
12707 # There doesn't appear to be a way to prevent this compiler from
12708 # explicitly linking system object files so we need to strip them
12709 # from the output so that they don't get included in the library
12710 # dependencies.
12711 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; func_echo_all "$list"'
12712
12713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12715
12716 # Archives containing C++ object files must be created using
12717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12719 ;;
12720 icpc* | ecpc* )
12721 # Intel C++
12722 with_gnu_ld=yes
12723 # version 8.0 and above of icpc choke on multiply defined symbols
12724 # if we add $predep_objects and $postdep_objects, however 7.1 and
12725 # earlier do not add the objects themselves.
12726 case `$CC -V 2>&1` in
12727 *"Version 7."*)
12728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729 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'
12730 ;;
12731 *) # Version 8.0 or newer
12732 tmp_idyn=
12733 case $host_cpu in
12734 ia64*) tmp_idyn=' -i_dynamic';;
12735 esac
12736 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 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'
12738 ;;
12739 esac
12740 archive_cmds_need_lc_CXX=no
12741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12744 ;;
12745 pgCC* | pgcpp*)
12746 # Portland Group C++ compiler
12747 case `$CC -V` in
12748 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12749 prelink_cmds_CXX='tpldir=Template.dir~
12750 rm -rf $tpldir~
12751 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12752 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12753 old_archive_cmds_CXX='tpldir=Template.dir~
12754 rm -rf $tpldir~
12755 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12756 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12757 $RANLIB $oldlib'
12758 archive_cmds_CXX='tpldir=Template.dir~
12759 rm -rf $tpldir~
12760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12761 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12762 archive_expsym_cmds_CXX='tpldir=Template.dir~
12763 rm -rf $tpldir~
12764 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12765 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12766 ;;
12767 *) # Version 6 and above use weak symbols
12768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12769 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'
12770 ;;
12771 esac
12772
12773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12775 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12776 ;;
12777 cxx*)
12778 # Compaq C++
12779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780 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'
12781
12782 runpath_var=LD_RUN_PATH
12783 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12784 hardcode_libdir_separator_CXX=:
12785
12786 # Commands to make compiler produce verbose output that lists
12787 # what "hidden" libraries, object files and flags are used when
12788 # linking a shared library.
12789 #
12790 # There doesn't appear to be a way to prevent this compiler from
12791 # explicitly linking system object files so we need to strip them
12792 # from the output so that they don't get included in the library
12793 # dependencies.
12794 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12795 ;;
12796 xl* | mpixl* | bgxl*)
12797 # IBM XL 8.0 on PPC, with GNU ld
12798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12800 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 if test "x$supports_anon_versioning" = xyes; then
12802 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12804 echo "local: *; };" >> $output_objdir/$libname.ver~
12805 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12806 fi
12807 ;;
12808 *)
12809 case `$CC -V 2>&1 | sed 5q` in
12810 *Sun\ C*)
12811 # Sun C++ 5.9
12812 no_undefined_flag_CXX=' -zdefs'
12813 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814 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'
12815 hardcode_libdir_flag_spec_CXX='-R$libdir'
12816 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12817 compiler_needs_object_CXX=yes
12818
12819 # Not sure whether something based on
12820 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12821 # would be better.
12822 output_verbose_link_cmd='func_echo_all'
12823
12824 # Archives containing C++ object files must be created using
12825 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12826 # necessary to make sure instantiated templates are included
12827 # in the archive.
12828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12829 ;;
12830 esac
12831 ;;
12832 esac
12833 ;;
12834
12835 lynxos*)
12836 # FIXME: insert proper C++ library support
12837 ld_shlibs_CXX=no
12838 ;;
12839
12840 m88k*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844
12845 mvs*)
12846 case $cc_basename in
12847 cxx*)
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12850 ;;
12851 *)
12852 # FIXME: insert proper C++ library support
12853 ld_shlibs_CXX=no
12854 ;;
12855 esac
12856 ;;
12857
12858 netbsd*)
12859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12861 wlarc=
12862 hardcode_libdir_flag_spec_CXX='-R$libdir'
12863 hardcode_direct_CXX=yes
12864 hardcode_shlibpath_var_CXX=no
12865 fi
12866 # Workaround some broken pre-1.5 toolchains
12867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12868 ;;
12869
12870 *nto* | *qnx*)
12871 ld_shlibs_CXX=yes
12872 ;;
12873
12874 openbsd2*)
12875 # C++ shared libraries are fairly broken
12876 ld_shlibs_CXX=no
12877 ;;
12878
12879 openbsd*)
12880 if test -f /usr/libexec/ld.so; then
12881 hardcode_direct_CXX=yes
12882 hardcode_shlibpath_var_CXX=no
12883 hardcode_direct_absolute_CXX=yes
12884 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12887 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12890 fi
12891 output_verbose_link_cmd=func_echo_all
12892 else
12893 ld_shlibs_CXX=no
12894 fi
12895 ;;
12896
12897 osf3* | osf4* | osf5*)
12898 case $cc_basename in
12899 KCC*)
12900 # Kuck and Associates, Inc. (KAI) C++ Compiler
12901
12902 # KCC will only create a shared library if the output file
12903 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12904 # to its proper name (with version) after linking.
12905 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'
12906
12907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12908 hardcode_libdir_separator_CXX=:
12909
12910 # Archives containing C++ object files must be created using
12911 # the KAI C++ compiler.
12912 case $host in
12913 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12914 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12915 esac
12916 ;;
12917 RCC*)
12918 # Rational C++ 2.4.1
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 cxx*)
12923 case $host in
12924 osf3*)
12925 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12928 ;;
12929 *)
12930 allow_undefined_flag_CXX=' -expect_unresolved \*'
12931 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12932 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12933 echo "-hidden">> $lib.exp~
12934 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12935 $RM $lib.exp'
12936 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12937 ;;
12938 esac
12939
12940 hardcode_libdir_separator_CXX=:
12941
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12945 #
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
12950 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12951 ;;
12952 *)
12953 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12955 case $host in
12956 osf3*)
12957 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12958 ;;
12959 *)
12960 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12961 ;;
12962 esac
12963
12964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12965 hardcode_libdir_separator_CXX=:
12966
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
12970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12971
12972 else
12973 # FIXME: insert proper C++ library support
12974 ld_shlibs_CXX=no
12975 fi
12976 ;;
12977 esac
12978 ;;
12979
12980 psos*)
12981 # FIXME: insert proper C++ library support
12982 ld_shlibs_CXX=no
12983 ;;
12984
12985 sunos4*)
12986 case $cc_basename in
12987 CC*)
12988 # Sun C++ 4.x
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
12991 ;;
12992 lcc*)
12993 # Lucid
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 *)
12998 # FIXME: insert proper C++ library support
12999 ld_shlibs_CXX=no
13000 ;;
13001 esac
13002 ;;
13003
13004 solaris*)
13005 case $cc_basename in
13006 CC* | sunCC*)
13007 # Sun C++ 4.2, 5.x and Centerline C++
13008 archive_cmds_need_lc_CXX=yes
13009 no_undefined_flag_CXX=' -zdefs'
13010 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13012 $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'
13013
13014 hardcode_libdir_flag_spec_CXX='-R$libdir'
13015 hardcode_shlibpath_var_CXX=no
13016 case $host_os in
13017 solaris2.[0-5] | solaris2.[0-5].*) ;;
13018 *)
13019 # The compiler driver will combine and reorder linker options,
13020 # but understands `-z linker_flag'.
13021 # Supported since Solaris 2.6 (maybe 2.5.1?)
13022 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13023 ;;
13024 esac
13025 link_all_deplibs_CXX=yes
13026
13027 output_verbose_link_cmd='func_echo_all'
13028
13029 # Archives containing C++ object files must be created using
13030 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13031 # necessary to make sure instantiated templates are included
13032 # in the archive.
13033 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13034 ;;
13035 gcx*)
13036 # Green Hills C++ Compiler
13037 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13038
13039 # The C++ compiler must be used to create the archive.
13040 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13041 ;;
13042 *)
13043 # GNU C++ compiler with Solaris linker
13044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13045 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13046 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13047 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13048 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13049 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13050
13051 # Commands to make compiler produce verbose output that lists
13052 # what "hidden" libraries, object files and flags are used when
13053 # linking a shared library.
13054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13055 else
13056 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13057 # platform.
13058 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13059 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13060 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13061
13062 # Commands to make compiler produce verbose output that lists
13063 # what "hidden" libraries, object files and flags are used when
13064 # linking a shared library.
13065 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13066 fi
13067
13068 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13069 case $host_os in
13070 solaris2.[0-5] | solaris2.[0-5].*) ;;
13071 *)
13072 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13073 ;;
13074 esac
13075 fi
13076 ;;
13077 esac
13078 ;;
13079
13080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13081 no_undefined_flag_CXX='${wl}-z,text'
13082 archive_cmds_need_lc_CXX=no
13083 hardcode_shlibpath_var_CXX=no
13084 runpath_var='LD_RUN_PATH'
13085
13086 case $cc_basename in
13087 CC*)
13088 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 ;;
13091 *)
13092 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 ;;
13095 esac
13096 ;;
13097
13098 sysv5* | sco3.2v5* | sco5v6*)
13099 # Note: We can NOT use -z defs as we might desire, because we do not
13100 # link with -lc, and that would cause any symbols used from libc to
13101 # always be unresolved, which means just about no library would
13102 # ever link correctly. If we're not using GNU ld we use -z text
13103 # though, which does catch some bad symbols but isn't as heavy-handed
13104 # as -z defs.
13105 no_undefined_flag_CXX='${wl}-z,text'
13106 allow_undefined_flag_CXX='${wl}-z,nodefs'
13107 archive_cmds_need_lc_CXX=no
13108 hardcode_shlibpath_var_CXX=no
13109 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13110 hardcode_libdir_separator_CXX=':'
13111 link_all_deplibs_CXX=yes
13112 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13113 runpath_var='LD_RUN_PATH'
13114
13115 case $cc_basename in
13116 CC*)
13117 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13120 '"$old_archive_cmds_CXX"
13121 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13122 '"$reload_cmds_CXX"
13123 ;;
13124 *)
13125 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13127 ;;
13128 esac
13129 ;;
13130
13131 tandem*)
13132 case $cc_basename in
13133 NCC*)
13134 # NonStop-UX NCC 3.20
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
13138 *)
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13141 ;;
13142 esac
13143 ;;
13144
13145 vxworks*)
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13148 ;;
13149
13150 *)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 ;;
13154 esac
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13157 $as_echo "$ld_shlibs_CXX" >&6; }
13158 test "$ld_shlibs_CXX" = no && can_build_shared=no
13159
13160 GCC_CXX="$GXX"
13161 LD_CXX="$LD"
13162
13163 ## CAVEAT EMPTOR:
13164 ## There is no encapsulation within the following macros, do not change
13165 ## the running order or otherwise move them around unless you know exactly
13166 ## what you are doing...
13167 # Dependencies to place before and after the object being linked:
13168 predep_objects_CXX=
13169 postdep_objects_CXX=
13170 predeps_CXX=
13171 postdeps_CXX=
13172 compiler_lib_search_path_CXX=
13173
13174 cat > conftest.$ac_ext <<_LT_EOF
13175 class Foo
13176 {
13177 public:
13178 Foo (void) { a = 0; }
13179 private:
13180 int a;
13181 };
13182 _LT_EOF
13183
13184
13185 _lt_libdeps_save_CFLAGS=$CFLAGS
13186 case "$CC $CFLAGS " in #(
13187 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13188 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13189 esac
13190
13191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13192 (eval $ac_compile) 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }; then
13196 # Parse the compiler output and extract the necessary
13197 # objects, libraries and library flags.
13198
13199 # Sentinel used to keep track of whether or not we are before
13200 # the conftest object file.
13201 pre_test_object_deps_done=no
13202
13203 for p in `eval "$output_verbose_link_cmd"`; do
13204 case ${prev}${p} in
13205
13206 -L* | -R* | -l*)
13207 # Some compilers place space between "-{L,R}" and the path.
13208 # Remove the space.
13209 if test $p = "-L" ||
13210 test $p = "-R"; then
13211 prev=$p
13212 continue
13213 fi
13214
13215 # Expand the sysroot to ease extracting the directories later.
13216 if test -z "$prev"; then
13217 case $p in
13218 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13219 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13220 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13221 esac
13222 fi
13223 case $p in
13224 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13225 esac
13226 if test "$pre_test_object_deps_done" = no; then
13227 case ${prev} in
13228 -L | -R)
13229 # Internal compiler library paths should come after those
13230 # provided the user. The postdeps already come after the
13231 # user supplied libs so there is no need to process them.
13232 if test -z "$compiler_lib_search_path_CXX"; then
13233 compiler_lib_search_path_CXX="${prev}${p}"
13234 else
13235 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13236 fi
13237 ;;
13238 # The "-l" case would never come before the object being
13239 # linked, so don't bother handling this case.
13240 esac
13241 else
13242 if test -z "$postdeps_CXX"; then
13243 postdeps_CXX="${prev}${p}"
13244 else
13245 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13246 fi
13247 fi
13248 prev=
13249 ;;
13250
13251 *.lto.$objext) ;; # Ignore GCC LTO objects
13252 *.$objext)
13253 # This assumes that the test object file only shows up
13254 # once in the compiler output.
13255 if test "$p" = "conftest.$objext"; then
13256 pre_test_object_deps_done=yes
13257 continue
13258 fi
13259
13260 if test "$pre_test_object_deps_done" = no; then
13261 if test -z "$predep_objects_CXX"; then
13262 predep_objects_CXX="$p"
13263 else
13264 predep_objects_CXX="$predep_objects_CXX $p"
13265 fi
13266 else
13267 if test -z "$postdep_objects_CXX"; then
13268 postdep_objects_CXX="$p"
13269 else
13270 postdep_objects_CXX="$postdep_objects_CXX $p"
13271 fi
13272 fi
13273 ;;
13274
13275 *) ;; # Ignore the rest.
13276
13277 esac
13278 done
13279
13280 # Clean up.
13281 rm -f a.out a.exe
13282 else
13283 echo "libtool.m4: error: problem compiling CXX test program"
13284 fi
13285
13286 $RM -f confest.$objext
13287 CFLAGS=$_lt_libdeps_save_CFLAGS
13288
13289 # PORTME: override above test on systems where it is broken
13290 case $host_os in
13291 interix[3-9]*)
13292 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13293 # hack all around it, let's just trust "g++" to DTRT.
13294 predep_objects_CXX=
13295 postdep_objects_CXX=
13296 postdeps_CXX=
13297 ;;
13298
13299 linux*)
13300 case `$CC -V 2>&1 | sed 5q` in
13301 *Sun\ C*)
13302 # Sun C++ 5.9
13303
13304 # The more standards-conforming stlport4 library is
13305 # incompatible with the Cstd library. Avoid specifying
13306 # it if it's in CXXFLAGS. Ignore libCrun as
13307 # -library=stlport4 depends on it.
13308 case " $CXX $CXXFLAGS " in
13309 *" -library=stlport4 "*)
13310 solaris_use_stlport4=yes
13311 ;;
13312 esac
13313
13314 if test "$solaris_use_stlport4" != yes; then
13315 postdeps_CXX='-library=Cstd -library=Crun'
13316 fi
13317 ;;
13318 esac
13319 ;;
13320
13321 solaris*)
13322 case $cc_basename in
13323 CC* | sunCC*)
13324 # The more standards-conforming stlport4 library is
13325 # incompatible with the Cstd library. Avoid specifying
13326 # it if it's in CXXFLAGS. Ignore libCrun as
13327 # -library=stlport4 depends on it.
13328 case " $CXX $CXXFLAGS " in
13329 *" -library=stlport4 "*)
13330 solaris_use_stlport4=yes
13331 ;;
13332 esac
13333
13334 # Adding this requires a known-good setup of shared libraries for
13335 # Sun compiler versions before 5.6, else PIC objects from an old
13336 # archive will be linked into the output, leading to subtle bugs.
13337 if test "$solaris_use_stlport4" != yes; then
13338 postdeps_CXX='-library=Cstd -library=Crun'
13339 fi
13340 ;;
13341 esac
13342 ;;
13343 esac
13344
13345
13346 case " $postdeps_CXX " in
13347 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13348 esac
13349 compiler_lib_search_dirs_CXX=
13350 if test -n "${compiler_lib_search_path_CXX}"; then
13351 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13352 fi
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384 lt_prog_compiler_wl_CXX=
13385 lt_prog_compiler_pic_CXX=
13386 lt_prog_compiler_static_CXX=
13387
13388
13389 # C++ specific cases for pic, static, wl, etc.
13390 if test "$GXX" = yes; then
13391 lt_prog_compiler_wl_CXX='-Wl,'
13392 lt_prog_compiler_static_CXX='-static'
13393
13394 case $host_os in
13395 aix*)
13396 # All AIX code is PIC.
13397 if test "$host_cpu" = ia64; then
13398 # AIX 5 now supports IA64 processor
13399 lt_prog_compiler_static_CXX='-Bstatic'
13400 fi
13401 ;;
13402
13403 amigaos*)
13404 case $host_cpu in
13405 powerpc)
13406 # see comment about AmigaOS4 .so support
13407 lt_prog_compiler_pic_CXX='-fPIC'
13408 ;;
13409 m68k)
13410 # FIXME: we need at least 68020 code to build shared libraries, but
13411 # adding the `-m68020' flag to GCC prevents building anything better,
13412 # like `-m68040'.
13413 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13414 ;;
13415 esac
13416 ;;
13417
13418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13419 # PIC is the default for these OSes.
13420 ;;
13421 mingw* | cygwin* | os2* | pw32* | cegcc*)
13422 # This hack is so that the source file can tell whether it is being
13423 # built for inclusion in a dll (and should export symbols for example).
13424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13425 # (--disable-auto-import) libraries
13426 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13427 ;;
13428 darwin* | rhapsody*)
13429 # PIC is the default on this platform
13430 # Common symbols not allowed in MH_DYLIB files
13431 lt_prog_compiler_pic_CXX='-fno-common'
13432 ;;
13433 *djgpp*)
13434 # DJGPP does not support shared libraries at all
13435 lt_prog_compiler_pic_CXX=
13436 ;;
13437 haiku*)
13438 # PIC is the default for Haiku.
13439 # The "-static" flag exists, but is broken.
13440 lt_prog_compiler_static_CXX=
13441 ;;
13442 interix[3-9]*)
13443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13444 # Instead, we relocate shared libraries at runtime.
13445 ;;
13446 sysv4*MP*)
13447 if test -d /usr/nec; then
13448 lt_prog_compiler_pic_CXX=-Kconform_pic
13449 fi
13450 ;;
13451 hpux*)
13452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13454 # sets the default TLS model and affects inlining.
13455 case $host_cpu in
13456 hppa*64*)
13457 ;;
13458 *)
13459 lt_prog_compiler_pic_CXX='-fPIC'
13460 ;;
13461 esac
13462 ;;
13463 *qnx* | *nto*)
13464 # QNX uses GNU C++, but need to define -shared option too, otherwise
13465 # it will coredump.
13466 lt_prog_compiler_pic_CXX='-fPIC -shared'
13467 ;;
13468 *)
13469 lt_prog_compiler_pic_CXX='-fPIC'
13470 ;;
13471 esac
13472 else
13473 case $host_os in
13474 aix[4-9]*)
13475 # All AIX code is PIC.
13476 if test "$host_cpu" = ia64; then
13477 # AIX 5 now supports IA64 processor
13478 lt_prog_compiler_static_CXX='-Bstatic'
13479 else
13480 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13481 fi
13482 ;;
13483 chorus*)
13484 case $cc_basename in
13485 cxch68*)
13486 # Green Hills C++ Compiler
13487 # _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"
13488 ;;
13489 esac
13490 ;;
13491 mingw* | cygwin* | os2* | pw32* | cegcc*)
13492 # This hack is so that the source file can tell whether it is being
13493 # built for inclusion in a dll (and should export symbols for example).
13494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13495 ;;
13496 dgux*)
13497 case $cc_basename in
13498 ec++*)
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 ;;
13501 ghcx*)
13502 # Green Hills C++ Compiler
13503 lt_prog_compiler_pic_CXX='-pic'
13504 ;;
13505 *)
13506 ;;
13507 esac
13508 ;;
13509 freebsd* | dragonfly*)
13510 # FreeBSD uses GNU C++
13511 ;;
13512 hpux9* | hpux10* | hpux11*)
13513 case $cc_basename in
13514 CC*)
13515 lt_prog_compiler_wl_CXX='-Wl,'
13516 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13517 if test "$host_cpu" != ia64; then
13518 lt_prog_compiler_pic_CXX='+Z'
13519 fi
13520 ;;
13521 aCC*)
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13524 case $host_cpu in
13525 hppa*64*|ia64*)
13526 # +Z the default
13527 ;;
13528 *)
13529 lt_prog_compiler_pic_CXX='+Z'
13530 ;;
13531 esac
13532 ;;
13533 *)
13534 ;;
13535 esac
13536 ;;
13537 interix*)
13538 # This is c89, which is MS Visual C++ (no shared libs)
13539 # Anyone wants to do a port?
13540 ;;
13541 irix5* | irix6* | nonstopux*)
13542 case $cc_basename in
13543 CC*)
13544 lt_prog_compiler_wl_CXX='-Wl,'
13545 lt_prog_compiler_static_CXX='-non_shared'
13546 # CC pic flag -KPIC is the default.
13547 ;;
13548 *)
13549 ;;
13550 esac
13551 ;;
13552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13553 case $cc_basename in
13554 KCC*)
13555 # KAI C++ Compiler
13556 lt_prog_compiler_wl_CXX='--backend -Wl,'
13557 lt_prog_compiler_pic_CXX='-fPIC'
13558 ;;
13559 ecpc* )
13560 # old Intel C++ for x86_64 which still supported -KPIC.
13561 lt_prog_compiler_wl_CXX='-Wl,'
13562 lt_prog_compiler_pic_CXX='-KPIC'
13563 lt_prog_compiler_static_CXX='-static'
13564 ;;
13565 icpc* )
13566 # Intel C++, used to be incompatible with GCC.
13567 # ICC 10 doesn't accept -KPIC any more.
13568 lt_prog_compiler_wl_CXX='-Wl,'
13569 lt_prog_compiler_pic_CXX='-fPIC'
13570 lt_prog_compiler_static_CXX='-static'
13571 ;;
13572 pgCC* | pgcpp*)
13573 # Portland Group C++ compiler
13574 lt_prog_compiler_wl_CXX='-Wl,'
13575 lt_prog_compiler_pic_CXX='-fpic'
13576 lt_prog_compiler_static_CXX='-Bstatic'
13577 ;;
13578 cxx*)
13579 # Compaq C++
13580 # Make sure the PIC flag is empty. It appears that all Alpha
13581 # Linux and Compaq Tru64 Unix objects are PIC.
13582 lt_prog_compiler_pic_CXX=
13583 lt_prog_compiler_static_CXX='-non_shared'
13584 ;;
13585 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13586 # IBM XL 8.0, 9.0 on PPC and BlueGene
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_pic_CXX='-qpic'
13589 lt_prog_compiler_static_CXX='-qstaticlink'
13590 ;;
13591 *)
13592 case `$CC -V 2>&1 | sed 5q` in
13593 *Sun\ C*)
13594 # Sun C++ 5.9
13595 lt_prog_compiler_pic_CXX='-KPIC'
13596 lt_prog_compiler_static_CXX='-Bstatic'
13597 lt_prog_compiler_wl_CXX='-Qoption ld '
13598 ;;
13599 esac
13600 ;;
13601 esac
13602 ;;
13603 lynxos*)
13604 ;;
13605 m88k*)
13606 ;;
13607 mvs*)
13608 case $cc_basename in
13609 cxx*)
13610 lt_prog_compiler_pic_CXX='-W c,exportall'
13611 ;;
13612 *)
13613 ;;
13614 esac
13615 ;;
13616 netbsd* | netbsdelf*-gnu)
13617 ;;
13618 *qnx* | *nto*)
13619 # QNX uses GNU C++, but need to define -shared option too, otherwise
13620 # it will coredump.
13621 lt_prog_compiler_pic_CXX='-fPIC -shared'
13622 ;;
13623 osf3* | osf4* | osf5*)
13624 case $cc_basename in
13625 KCC*)
13626 lt_prog_compiler_wl_CXX='--backend -Wl,'
13627 ;;
13628 RCC*)
13629 # Rational C++ 2.4.1
13630 lt_prog_compiler_pic_CXX='-pic'
13631 ;;
13632 cxx*)
13633 # Digital/Compaq C++
13634 lt_prog_compiler_wl_CXX='-Wl,'
13635 # Make sure the PIC flag is empty. It appears that all Alpha
13636 # Linux and Compaq Tru64 Unix objects are PIC.
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_static_CXX='-non_shared'
13639 ;;
13640 *)
13641 ;;
13642 esac
13643 ;;
13644 psos*)
13645 ;;
13646 solaris*)
13647 case $cc_basename in
13648 CC* | sunCC*)
13649 # Sun C++ 4.2, 5.x and Centerline C++
13650 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_static_CXX='-Bstatic'
13652 lt_prog_compiler_wl_CXX='-Qoption ld '
13653 ;;
13654 gcx*)
13655 # Green Hills C++ Compiler
13656 lt_prog_compiler_pic_CXX='-PIC'
13657 ;;
13658 *)
13659 ;;
13660 esac
13661 ;;
13662 sunos4*)
13663 case $cc_basename in
13664 CC*)
13665 # Sun C++ 4.x
13666 lt_prog_compiler_pic_CXX='-pic'
13667 lt_prog_compiler_static_CXX='-Bstatic'
13668 ;;
13669 lcc*)
13670 # Lucid
13671 lt_prog_compiler_pic_CXX='-pic'
13672 ;;
13673 *)
13674 ;;
13675 esac
13676 ;;
13677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13678 case $cc_basename in
13679 CC*)
13680 lt_prog_compiler_wl_CXX='-Wl,'
13681 lt_prog_compiler_pic_CXX='-KPIC'
13682 lt_prog_compiler_static_CXX='-Bstatic'
13683 ;;
13684 esac
13685 ;;
13686 tandem*)
13687 case $cc_basename in
13688 NCC*)
13689 # NonStop-UX NCC 3.20
13690 lt_prog_compiler_pic_CXX='-KPIC'
13691 ;;
13692 *)
13693 ;;
13694 esac
13695 ;;
13696 vxworks*)
13697 ;;
13698 *)
13699 lt_prog_compiler_can_build_shared_CXX=no
13700 ;;
13701 esac
13702 fi
13703
13704 case $host_os in
13705 # For platforms which do not support PIC, -DPIC is meaningless:
13706 *djgpp*)
13707 lt_prog_compiler_pic_CXX=
13708 ;;
13709 *)
13710 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13711 ;;
13712 esac
13713
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13715 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13716 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13722 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13723 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13724
13725 #
13726 # Check to make sure the PIC flag actually works.
13727 #
13728 if test -n "$lt_prog_compiler_pic_CXX"; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13730 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13731 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 lt_cv_prog_compiler_pic_works_CXX=no
13735 ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13737 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13738 # Insert the option either (1) after the last *FLAGS variable, or
13739 # (2) before a word containing "conftest.", or (3) at the end.
13740 # Note that $ac_compile itself does not contain backslashes and begins
13741 # with a dollar sign (not a hyphen), so the echo should work correctly.
13742 # The option is referenced via a variable to avoid confusing sed.
13743 lt_compile=`echo "$ac_compile" | $SED \
13744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746 -e 's:$: $lt_compiler_flag:'`
13747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13748 (eval "$lt_compile" 2>conftest.err)
13749 ac_status=$?
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 if (exit $ac_status) && test -s "$ac_outfile"; then
13753 # The compiler can only warn and ignore the option if not recognized
13754 # So say no if there are warnings other than the usual output.
13755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13758 lt_cv_prog_compiler_pic_works_CXX=yes
13759 fi
13760 fi
13761 $RM conftest*
13762
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13765 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13766
13767 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13768 case $lt_prog_compiler_pic_CXX in
13769 "" | " "*) ;;
13770 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13771 esac
13772 else
13773 lt_prog_compiler_pic_CXX=
13774 lt_prog_compiler_can_build_shared_CXX=no
13775 fi
13776
13777 fi
13778
13779
13780
13781
13782
13783 #
13784 # Check to make sure the static flag actually works.
13785 #
13786 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13789 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 lt_cv_prog_compiler_static_works_CXX=no
13793 save_LDFLAGS="$LDFLAGS"
13794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13797 # The linker can only warn and ignore the option if not recognized
13798 # So say no if there are warnings
13799 if test -s conftest.err; then
13800 # Append any errors to the config.log.
13801 cat conftest.err 1>&5
13802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13804 if diff conftest.exp conftest.er2 >/dev/null; then
13805 lt_cv_prog_compiler_static_works_CXX=yes
13806 fi
13807 else
13808 lt_cv_prog_compiler_static_works_CXX=yes
13809 fi
13810 fi
13811 $RM -r conftest*
13812 LDFLAGS="$save_LDFLAGS"
13813
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13816 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13817
13818 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13819 :
13820 else
13821 lt_prog_compiler_static_CXX=
13822 fi
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13829 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 lt_cv_prog_compiler_c_o_CXX=no
13833 $RM -r conftest 2>/dev/null
13834 mkdir conftest
13835 cd conftest
13836 mkdir out
13837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13838
13839 lt_compiler_flag="-o out/conftest2.$ac_objext"
13840 # Insert the option either (1) after the last *FLAGS variable, or
13841 # (2) before a word containing "conftest.", or (3) at the end.
13842 # Note that $ac_compile itself does not contain backslashes and begins
13843 # with a dollar sign (not a hyphen), so the echo should work correctly.
13844 lt_compile=`echo "$ac_compile" | $SED \
13845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13847 -e 's:$: $lt_compiler_flag:'`
13848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13849 (eval "$lt_compile" 2>out/conftest.err)
13850 ac_status=$?
13851 cat out/conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13854 then
13855 # The compiler can only warn and ignore the option if not recognized
13856 # So say no if there are warnings
13857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13860 lt_cv_prog_compiler_c_o_CXX=yes
13861 fi
13862 fi
13863 chmod u+w . 2>&5
13864 $RM conftest*
13865 # SGI C++ compiler will create directory out/ii_files/ for
13866 # template instantiation
13867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13868 $RM out/* && rmdir out
13869 cd ..
13870 $RM -r conftest
13871 $RM conftest*
13872
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13875 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13876
13877
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13881 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 lt_cv_prog_compiler_c_o_CXX=no
13885 $RM -r conftest 2>/dev/null
13886 mkdir conftest
13887 cd conftest
13888 mkdir out
13889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13890
13891 lt_compiler_flag="-o out/conftest2.$ac_objext"
13892 # Insert the option either (1) after the last *FLAGS variable, or
13893 # (2) before a word containing "conftest.", or (3) at the end.
13894 # Note that $ac_compile itself does not contain backslashes and begins
13895 # with a dollar sign (not a hyphen), so the echo should work correctly.
13896 lt_compile=`echo "$ac_compile" | $SED \
13897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13899 -e 's:$: $lt_compiler_flag:'`
13900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13901 (eval "$lt_compile" 2>out/conftest.err)
13902 ac_status=$?
13903 cat out/conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13906 then
13907 # The compiler can only warn and ignore the option if not recognized
13908 # So say no if there are warnings
13909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13912 lt_cv_prog_compiler_c_o_CXX=yes
13913 fi
13914 fi
13915 chmod u+w . 2>&5
13916 $RM conftest*
13917 # SGI C++ compiler will create directory out/ii_files/ for
13918 # template instantiation
13919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13920 $RM out/* && rmdir out
13921 cd ..
13922 $RM -r conftest
13923 $RM conftest*
13924
13925 fi
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13927 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13928
13929
13930
13931
13932 hard_links="nottested"
13933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13934 # do not overwrite the value of need_locks provided by the user
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13936 $as_echo_n "checking if we can lock with hard links... " >&6; }
13937 hard_links=yes
13938 $RM conftest*
13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940 touch conftest.a
13941 ln conftest.a conftest.b 2>&5 || hard_links=no
13942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13944 $as_echo "$hard_links" >&6; }
13945 if test "$hard_links" = no; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13947 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13948 need_locks=warn
13949 fi
13950 else
13951 need_locks=no
13952 fi
13953
13954
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13958
13959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13961 case $host_os in
13962 aix[4-9]*)
13963 # If we're using GNU nm, then we don't want the "-C" option.
13964 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13965 # Also, AIX nm treats weak defined symbols like other global defined
13966 # symbols, whereas GNU nm marks them as "W".
13967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13968 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13969 else
13970 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'
13971 fi
13972 ;;
13973 pw32*)
13974 export_symbols_cmds_CXX="$ltdll_cmds"
13975 ;;
13976 cygwin* | mingw* | cegcc*)
13977 case $cc_basename in
13978 cl*) ;;
13979 *)
13980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13981 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13982 ;;
13983 esac
13984 ;;
13985 linux* | k*bsd*-gnu | gnu*)
13986 link_all_deplibs_CXX=no
13987 ;;
13988 *)
13989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13990 ;;
13991 esac
13992
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13994 $as_echo "$ld_shlibs_CXX" >&6; }
13995 test "$ld_shlibs_CXX" = no && can_build_shared=no
13996
13997 with_gnu_ld_CXX=$with_gnu_ld
13998
13999
14000
14001
14002
14003
14004 #
14005 # Do we need to explicitly link libc?
14006 #
14007 case "x$archive_cmds_need_lc_CXX" in
14008 x|xyes)
14009 # Assume -lc should be added
14010 archive_cmds_need_lc_CXX=yes
14011
14012 if test "$enable_shared" = yes && test "$GCC" = yes; then
14013 case $archive_cmds_CXX in
14014 *'~'*)
14015 # FIXME: we may have to deal with multi-command sequences.
14016 ;;
14017 '$CC '*)
14018 # Test whether the compiler implicitly links with -lc since on some
14019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14020 # to ld, don't add -lc before -lgcc.
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14022 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14023 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 $RM conftest*
14027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14030 (eval $ac_compile) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; } 2>conftest.err; then
14034 soname=conftest
14035 lib=conftest
14036 libobjs=conftest.$ac_objext
14037 deplibs=
14038 wl=$lt_prog_compiler_wl_CXX
14039 pic_flag=$lt_prog_compiler_pic_CXX
14040 compiler_flags=-v
14041 linker_flags=-v
14042 verstring=
14043 output_objdir=.
14044 libname=conftest
14045 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14046 allow_undefined_flag_CXX=
14047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14048 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14049 ac_status=$?
14050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14051 test $ac_status = 0; }
14052 then
14053 lt_cv_archive_cmds_need_lc_CXX=no
14054 else
14055 lt_cv_archive_cmds_need_lc_CXX=yes
14056 fi
14057 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14058 else
14059 cat conftest.err 1>&5
14060 fi
14061 $RM conftest*
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14065 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14066 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14067 ;;
14068 esac
14069 fi
14070 ;;
14071 esac
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14137 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14138
14139 library_names_spec=
14140 libname_spec='lib$name'
14141 soname_spec=
14142 shrext_cmds=".so"
14143 postinstall_cmds=
14144 postuninstall_cmds=
14145 finish_cmds=
14146 finish_eval=
14147 shlibpath_var=
14148 shlibpath_overrides_runpath=unknown
14149 version_type=none
14150 dynamic_linker="$host_os ld.so"
14151 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14152 need_lib_prefix=unknown
14153 hardcode_into_libs=no
14154
14155 # when you set need_version to no, make sure it does not cause -set_version
14156 # flags to be left without arguments
14157 need_version=unknown
14158
14159 case $host_os in
14160 aix3*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14163 shlibpath_var=LIBPATH
14164
14165 # AIX 3 has no versioning support, so we append a major version to the name.
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 ;;
14168
14169 aix[4-9]*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 hardcode_into_libs=yes
14174 if test "$host_cpu" = ia64; then
14175 # AIX 5 supports IA64
14176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 else
14179 # With GCC up to 2.95.x, collect2 would create an import file
14180 # for dependence libraries. The import file would start with
14181 # the line `#! .'. This would cause the generated library to
14182 # depend on `.', always an invalid library. This was fixed in
14183 # development snapshots of GCC prior to 3.0.
14184 case $host_os in
14185 aix4 | aix4.[01] | aix4.[01].*)
14186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14187 echo ' yes '
14188 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14189 :
14190 else
14191 can_build_shared=no
14192 fi
14193 ;;
14194 esac
14195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14196 # soname into executable. Probably we can add versioning support to
14197 # collect2, so additional links can be useful in future.
14198 if test "$aix_use_runtimelinking" = yes; then
14199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14200 # instead of lib<name>.a to let people know that these are not
14201 # typical AIX shared libraries.
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 else
14204 # We preserve .a as extension for shared libraries through AIX4.2
14205 # and later when we are not doing run time linking.
14206 library_names_spec='${libname}${release}.a $libname.a'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 fi
14209 shlibpath_var=LIBPATH
14210 fi
14211 ;;
14212
14213 amigaos*)
14214 case $host_cpu in
14215 powerpc)
14216 # Since July 2007 AmigaOS4 officially supports .so libraries.
14217 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 ;;
14220 m68k)
14221 library_names_spec='$libname.ixlibrary $libname.a'
14222 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14223 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14224 ;;
14225 esac
14226 ;;
14227
14228 beos*)
14229 library_names_spec='${libname}${shared_ext}'
14230 dynamic_linker="$host_os ld.so"
14231 shlibpath_var=LIBRARY_PATH
14232 ;;
14233
14234 bsdi[45]*)
14235 version_type=linux
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14240 shlibpath_var=LD_LIBRARY_PATH
14241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14243 # the default ld.so.conf also contains /usr/contrib/lib and
14244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14245 # libtool to hard-code these into programs
14246 ;;
14247
14248 cygwin* | mingw* | pw32* | cegcc*)
14249 version_type=windows
14250 shrext_cmds=".dll"
14251 need_version=no
14252 need_lib_prefix=no
14253
14254 case $GCC,$cc_basename in
14255 yes,*)
14256 # gcc
14257 library_names_spec='$libname.dll.a'
14258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14259 postinstall_cmds='base_file=`basename \${file}`~
14260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14261 dldir=$destdir/`dirname \$dlpath`~
14262 test -d \$dldir || mkdir -p \$dldir~
14263 $install_prog $dir/$dlname \$dldir/$dlname~
14264 chmod a+x \$dldir/$dlname~
14265 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14266 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14267 fi'
14268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14269 dlpath=$dir/\$dldll~
14270 $RM \$dlpath'
14271 shlibpath_overrides_runpath=yes
14272
14273 case $host_os in
14274 cygwin*)
14275 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14276 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14277
14278 ;;
14279 mingw* | cegcc*)
14280 # MinGW DLLs use traditional 'lib' prefix
14281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14282 ;;
14283 pw32*)
14284 # pw32 DLLs use 'pw' prefix rather than 'lib'
14285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286 ;;
14287 esac
14288 dynamic_linker='Win32 ld.exe'
14289 ;;
14290
14291 *,cl*)
14292 # Native MSVC
14293 libname_spec='$name'
14294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295 library_names_spec='${libname}.dll.lib'
14296
14297 case $build_os in
14298 mingw*)
14299 sys_lib_search_path_spec=
14300 lt_save_ifs=$IFS
14301 IFS=';'
14302 for lt_path in $LIB
14303 do
14304 IFS=$lt_save_ifs
14305 # Let DOS variable expansion print the short 8.3 style file name.
14306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14308 done
14309 IFS=$lt_save_ifs
14310 # Convert to MSYS style.
14311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14312 ;;
14313 cygwin*)
14314 # Convert to unix form, then to dos form, then back to unix form
14315 # but this time dos style (no spaces!) so that the unix form looks
14316 # like /cygdrive/c/PROGRA~1:/cygdr...
14317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14320 ;;
14321 *)
14322 sys_lib_search_path_spec="$LIB"
14323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14324 # It is most probably a Windows format PATH.
14325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14326 else
14327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14328 fi
14329 # FIXME: find the short name or the path components, as spaces are
14330 # common. (e.g. "Program Files" -> "PROGRA~1")
14331 ;;
14332 esac
14333
14334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14335 postinstall_cmds='base_file=`basename \${file}`~
14336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14337 dldir=$destdir/`dirname \$dlpath`~
14338 test -d \$dldir || mkdir -p \$dldir~
14339 $install_prog $dir/$dlname \$dldir/$dlname'
14340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14341 dlpath=$dir/\$dldll~
14342 $RM \$dlpath'
14343 shlibpath_overrides_runpath=yes
14344 dynamic_linker='Win32 link.exe'
14345 ;;
14346
14347 *)
14348 # Assume MSVC wrapper
14349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14350 dynamic_linker='Win32 ld.exe'
14351 ;;
14352 esac
14353 # FIXME: first we should search . and the directory the executable is in
14354 shlibpath_var=PATH
14355 ;;
14356
14357 darwin* | rhapsody*)
14358 dynamic_linker="$host_os dyld"
14359 version_type=darwin
14360 need_lib_prefix=no
14361 need_version=no
14362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14363 soname_spec='${libname}${release}${major}$shared_ext'
14364 shlibpath_overrides_runpath=yes
14365 shlibpath_var=DYLD_LIBRARY_PATH
14366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14367
14368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14369 ;;
14370
14371 dgux*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 ;;
14379
14380 freebsd1*)
14381 dynamic_linker=no
14382 ;;
14383
14384 freebsd* | dragonfly*)
14385 # DragonFly does not have aout. When/if they implement a new
14386 # versioning mechanism, adjust this.
14387 if test -x /usr/bin/objformat; then
14388 objformat=`/usr/bin/objformat`
14389 else
14390 case $host_os in
14391 freebsd[123]*) objformat=aout ;;
14392 *) objformat=elf ;;
14393 esac
14394 fi
14395 version_type=freebsd-$objformat
14396 case $version_type in
14397 freebsd-elf*)
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14399 need_version=no
14400 need_lib_prefix=no
14401 ;;
14402 freebsd-*)
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14404 need_version=yes
14405 ;;
14406 esac
14407 shlibpath_var=LD_LIBRARY_PATH
14408 case $host_os in
14409 freebsd2*)
14410 shlibpath_overrides_runpath=yes
14411 ;;
14412 freebsd3.[01]* | freebsdelf3.[01]*)
14413 shlibpath_overrides_runpath=yes
14414 hardcode_into_libs=yes
14415 ;;
14416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14418 shlibpath_overrides_runpath=no
14419 hardcode_into_libs=yes
14420 ;;
14421 *) # from 4.6 on, and DragonFly
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425 esac
14426 ;;
14427
14428 gnu*)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=no
14436 hardcode_into_libs=yes
14437 ;;
14438
14439 haiku*)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 dynamic_linker="$host_os runtime_loader"
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 shlibpath_var=LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes
14448 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14449 hardcode_into_libs=yes
14450 ;;
14451
14452 hpux9* | hpux10* | hpux11*)
14453 # Give a soname corresponding to the major version so that dld.sl refuses to
14454 # link against other versions.
14455 version_type=sunos
14456 need_lib_prefix=no
14457 need_version=no
14458 case $host_cpu in
14459 ia64*)
14460 shrext_cmds='.so'
14461 hardcode_into_libs=yes
14462 dynamic_linker="$host_os dld.so"
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 if test "X$HPUX_IA64_MODE" = X32; then
14468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14469 else
14470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14471 fi
14472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14473 ;;
14474 hppa*64*)
14475 shrext_cmds='.sl'
14476 hardcode_into_libs=yes
14477 dynamic_linker="$host_os dld.sl"
14478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14484 ;;
14485 *)
14486 shrext_cmds='.sl'
14487 dynamic_linker="$host_os dld.sl"
14488 shlibpath_var=SHLIB_PATH
14489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 ;;
14493 esac
14494 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14495 postinstall_cmds='chmod 555 $lib'
14496 # or fails outright, so override atomically:
14497 install_override_mode=555
14498 ;;
14499
14500 interix[3-9]*)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=no
14509 hardcode_into_libs=yes
14510 ;;
14511
14512 irix5* | irix6* | nonstopux*)
14513 case $host_os in
14514 nonstopux*) version_type=nonstopux ;;
14515 *)
14516 if test "$lt_cv_prog_gnu_ld" = yes; then
14517 version_type=linux
14518 else
14519 version_type=irix
14520 fi ;;
14521 esac
14522 need_lib_prefix=no
14523 need_version=no
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14526 case $host_os in
14527 irix5* | nonstopux*)
14528 libsuff= shlibsuff=
14529 ;;
14530 *)
14531 case $LD in # libtool.m4 will add one of these switches to LD
14532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14533 libsuff= shlibsuff= libmagic=32-bit;;
14534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14535 libsuff=32 shlibsuff=N32 libmagic=N32;;
14536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14538 *) libsuff= shlibsuff= libmagic=never-match;;
14539 esac
14540 ;;
14541 esac
14542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14543 shlibpath_overrides_runpath=no
14544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14546 hardcode_into_libs=yes
14547 ;;
14548
14549 # No shared lib support for Linux oldld, aout, or coff.
14550 linux*oldld* | linux*aout* | linux*coff*)
14551 dynamic_linker=no
14552 ;;
14553
14554 # This must be Linux ELF.
14555 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14556 version_type=linux
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=no
14564
14565 # Some binutils ld are patched to set DT_RUNPATH
14566 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_shlibpath_overrides_runpath=no
14570 save_LDFLAGS=$LDFLAGS
14571 save_libdir=$libdir
14572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576
14577 int
14578 main ()
14579 {
14580
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 if ac_fn_cxx_try_link "$LINENO"; then :
14586 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14587 lt_cv_shlibpath_overrides_runpath=yes
14588 fi
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LDFLAGS=$save_LDFLAGS
14593 libdir=$save_libdir
14594
14595 fi
14596
14597 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14598
14599 # This implies no fast_install, which is unacceptable.
14600 # Some rework will be needed to allow for fast_install
14601 # before this can be enabled.
14602 hardcode_into_libs=yes
14603
14604 # Append ld.so.conf contents to the search path
14605 if test -f /etc/ld.so.conf; then
14606 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;s/"//g;/^$/d' | tr '\n' ' '`
14607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14608 fi
14609
14610 # We used to test for /lib/ld.so.1 and disable shared libraries on
14611 # powerpc, because MkLinux only supported shared libraries with the
14612 # GNU dynamic linker. Since this was broken with cross compilers,
14613 # most powerpc-linux boxes support dynamic linking these days and
14614 # people can always --disable-shared, the test was removed, and we
14615 # assume the GNU/Linux dynamic linker is in use.
14616 dynamic_linker='GNU/Linux ld.so'
14617 ;;
14618
14619 netbsdelf*-gnu)
14620 version_type=linux
14621 need_lib_prefix=no
14622 need_version=no
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=no
14627 hardcode_into_libs=yes
14628 dynamic_linker='NetBSD ld.elf_so'
14629 ;;
14630
14631 netbsd*)
14632 version_type=sunos
14633 need_lib_prefix=no
14634 need_version=no
14635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14638 dynamic_linker='NetBSD (a.out) ld.so'
14639 else
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='NetBSD ld.elf_so'
14643 fi
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 hardcode_into_libs=yes
14647 ;;
14648
14649 newsos6)
14650 version_type=linux
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 ;;
14655
14656 *nto* | *qnx*)
14657 version_type=qnx
14658 need_lib_prefix=no
14659 need_version=no
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14665 dynamic_linker='ldqnx.so'
14666 ;;
14667
14668 openbsd*)
14669 version_type=sunos
14670 sys_lib_dlsearch_path_spec="/usr/lib"
14671 need_lib_prefix=no
14672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14673 case $host_os in
14674 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14675 *) need_version=no ;;
14676 esac
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14681 case $host_os in
14682 openbsd2.[89] | openbsd2.[89].*)
14683 shlibpath_overrides_runpath=no
14684 ;;
14685 *)
14686 shlibpath_overrides_runpath=yes
14687 ;;
14688 esac
14689 else
14690 shlibpath_overrides_runpath=yes
14691 fi
14692 ;;
14693
14694 os2*)
14695 libname_spec='$name'
14696 shrext_cmds=".dll"
14697 need_lib_prefix=no
14698 library_names_spec='$libname${shared_ext} $libname.a'
14699 dynamic_linker='OS/2 ld.exe'
14700 shlibpath_var=LIBPATH
14701 ;;
14702
14703 osf3* | osf4* | osf5*)
14704 version_type=osf
14705 need_lib_prefix=no
14706 need_version=no
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14712 ;;
14713
14714 rdos*)
14715 dynamic_linker=no
14716 ;;
14717
14718 solaris*)
14719 version_type=linux
14720 need_lib_prefix=no
14721 need_version=no
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes
14726 hardcode_into_libs=yes
14727 # ldd complains unless libraries are executable
14728 postinstall_cmds='chmod +x $lib'
14729 ;;
14730
14731 sunos4*)
14732 version_type=sunos
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 shlibpath_overrides_runpath=yes
14737 if test "$with_gnu_ld" = yes; then
14738 need_lib_prefix=no
14739 fi
14740 need_version=yes
14741 ;;
14742
14743 sysv4 | sysv4.3*)
14744 version_type=linux
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 case $host_vendor in
14749 sni)
14750 shlibpath_overrides_runpath=no
14751 need_lib_prefix=no
14752 runpath_var=LD_RUN_PATH
14753 ;;
14754 siemens)
14755 need_lib_prefix=no
14756 ;;
14757 motorola)
14758 need_lib_prefix=no
14759 need_version=no
14760 shlibpath_overrides_runpath=no
14761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14762 ;;
14763 esac
14764 ;;
14765
14766 sysv4*MP*)
14767 if test -d /usr/nec ;then
14768 version_type=linux
14769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14770 soname_spec='$libname${shared_ext}.$major'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 fi
14773 ;;
14774
14775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14776 version_type=freebsd-elf
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=yes
14783 hardcode_into_libs=yes
14784 if test "$with_gnu_ld" = yes; then
14785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14786 else
14787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14788 case $host_os in
14789 sco3.2v5*)
14790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14791 ;;
14792 esac
14793 fi
14794 sys_lib_dlsearch_path_spec='/usr/lib'
14795 ;;
14796
14797 tpf*)
14798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14799 version_type=linux
14800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 ;;
14807
14808 uts4*)
14809 version_type=linux
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 ;;
14814
14815 *)
14816 dynamic_linker=no
14817 ;;
14818 esac
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14820 $as_echo "$dynamic_linker" >&6; }
14821 test "$dynamic_linker" = no && can_build_shared=no
14822
14823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14824 if test "$GCC" = yes; then
14825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14826 fi
14827
14828 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14829 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14830 fi
14831 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14832 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14833 fi
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14873 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14874 hardcode_action_CXX=
14875 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14876 test -n "$runpath_var_CXX" ||
14877 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14878
14879 # We can hardcode non-existent directories.
14880 if test "$hardcode_direct_CXX" != no &&
14881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14882 # have to relink, otherwise we might link with an installed library
14883 # when we should be linking with a yet-to-be-installed one
14884 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14885 test "$hardcode_minus_L_CXX" != no; then
14886 # Linking always hardcodes the temporary library directory.
14887 hardcode_action_CXX=relink
14888 else
14889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14890 hardcode_action_CXX=immediate
14891 fi
14892 else
14893 # We cannot hardcode anything, or else we can only hardcode existing
14894 # directories.
14895 hardcode_action_CXX=unsupported
14896 fi
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14898 $as_echo "$hardcode_action_CXX" >&6; }
14899
14900 if test "$hardcode_action_CXX" = relink ||
14901 test "$inherit_rpath_CXX" = yes; then
14902 # Fast installation is not supported
14903 enable_fast_install=no
14904 elif test "$shlibpath_overrides_runpath" = yes ||
14905 test "$enable_shared" = no; then
14906 # Fast installation is not necessary
14907 enable_fast_install=needless
14908 fi
14909
14910
14911
14912
14913
14914
14915
14916 fi # test -n "$compiler"
14917
14918 CC=$lt_save_CC
14919 CFLAGS=$lt_save_CFLAGS
14920 LDCXX=$LD
14921 LD=$lt_save_LD
14922 GCC=$lt_save_GCC
14923 with_gnu_ld=$lt_save_with_gnu_ld
14924 lt_cv_path_LDCXX=$lt_cv_path_LD
14925 lt_cv_path_LD=$lt_save_path_LD
14926 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14927 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14928 fi # test "$_lt_caught_CXX_error" != yes
14929
14930 ac_ext=c
14931 ac_cpp='$CPP $CPPFLAGS'
14932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14935
14936
14937 ac_ext=mm
14938 ac_cpp='$OBJCXXCPP $CPPFLAGS'
14939 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14942 if test -n "$ac_tool_prefix"; then
14943 for ac_prog in g++ objc++ objcxx c++ CXX
14944 do
14945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14948 $as_echo_n "checking for $ac_word... " >&6; }
14949 if ${ac_cv_prog_OBJCXX+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 if test -n "$OBJCXX"; then
14953 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
14954 else
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14962 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14965 fi
14966 done
14967 done
14968 IFS=$as_save_IFS
14969
14970 fi
14971 fi
14972 OBJCXX=$ac_cv_prog_OBJCXX
14973 if test -n "$OBJCXX"; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14975 $as_echo "$OBJCXX" >&6; }
14976 else
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980
14981
14982 test -n "$OBJCXX" && break
14983 done
14984 fi
14985 if test -z "$OBJCXX"; then
14986 ac_ct_OBJCXX=$OBJCXX
14987 for ac_prog in g++ objc++ objcxx c++ CXX
14988 do
14989 # Extract the first word of "$ac_prog", so it can be a program name with args.
14990 set dummy $ac_prog; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
14994 $as_echo_n "(cached) " >&6
14995 else
14996 if test -n "$ac_ct_OBJCXX"; then
14997 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
14998 else
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002 IFS=$as_save_IFS
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15006 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008 break 2
15009 fi
15010 done
15011 done
15012 IFS=$as_save_IFS
15013
15014 fi
15015 fi
15016 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15017 if test -n "$ac_ct_OBJCXX"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15019 $as_echo "$ac_ct_OBJCXX" >&6; }
15020 else
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 $as_echo "no" >&6; }
15023 fi
15024
15025
15026 test -n "$ac_ct_OBJCXX" && break
15027 done
15028
15029 if test "x$ac_ct_OBJCXX" = x; then
15030 OBJCXX="g++"
15031 else
15032 case $cross_compiling:$ac_tool_warned in
15033 yes:)
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15036 ac_tool_warned=yes ;;
15037 esac
15038 OBJCXX=$ac_ct_OBJCXX
15039 fi
15040 fi
15041
15042 # Provide some information about the compiler.
15043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15044 set X $ac_compile
15045 ac_compiler=$2
15046 for ac_option in --version -v -V -qversion; do
15047 { { ac_try="$ac_compiler $ac_option >&5"
15048 case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051 esac
15052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15053 $as_echo "$ac_try_echo"; } >&5
15054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15055 ac_status=$?
15056 if test -s conftest.err; then
15057 sed '10a\
15058 ... rest of stderr output deleted ...
15059 10q' conftest.err >conftest.er1
15060 cat conftest.er1 >&5
15061 fi
15062 rm -f conftest.er1 conftest.err
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; }
15065 done
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15068 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15069 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074
15075 int
15076 main ()
15077 {
15078 #ifndef __GNUC__
15079 choke me
15080 #endif
15081
15082 ;
15083 return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_objcxx_try_compile "$LINENO"; then :
15087 ac_compiler_gnu=yes
15088 else
15089 ac_compiler_gnu=no
15090 fi
15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15096 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15097 if test $ac_compiler_gnu = yes; then
15098 GOBJCXX=yes
15099 else
15100 GOBJCXX=
15101 fi
15102 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15103 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15105 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15106 if ${ac_cv_prog_objcxx_g+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15110 ac_objcxx_werror_flag=yes
15111 ac_cv_prog_objcxx_g=no
15112 OBJCXXFLAGS="-g"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115
15116 int
15117 main ()
15118 {
15119
15120 ;
15121 return 0;
15122 }
15123 _ACEOF
15124 if ac_fn_objcxx_try_compile "$LINENO"; then :
15125 ac_cv_prog_objcxx_g=yes
15126 else
15127 OBJCXXFLAGS=""
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130
15131 int
15132 main ()
15133 {
15134
15135 ;
15136 return 0;
15137 }
15138 _ACEOF
15139 if ac_fn_objcxx_try_compile "$LINENO"; then :
15140
15141 else
15142 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15143 OBJCXXFLAGS="-g"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146
15147 int
15148 main ()
15149 {
15150
15151 ;
15152 return 0;
15153 }
15154 _ACEOF
15155 if ac_fn_objcxx_try_compile "$LINENO"; then :
15156 ac_cv_prog_objcxx_g=yes
15157 fi
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 fi
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15164 fi
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15166 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
15167 if test "$ac_test_OBJCXXFLAGS" = set; then
15168 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15169 elif test $ac_cv_prog_objcxx_g = yes; then
15170 if test "$GOBJCXX" = yes; then
15171 OBJCXXFLAGS="-g -O2"
15172 else
15173 OBJCXXFLAGS="-g"
15174 fi
15175 else
15176 if test "$GOBJCXX" = yes; then
15177 OBJCXXFLAGS="-O2"
15178 else
15179 OBJCXXFLAGS=
15180 fi
15181 fi
15182 ac_ext=c
15183 ac_cpp='$CPP $CPPFLAGS'
15184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15187
15188 ac_ext=cpp
15189 ac_cpp='$CXXCPP $CPPFLAGS'
15190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15193
15194
15195 # Check whether --enable-universal-binary was given.
15196 if test "${enable_universal_binary+set}" = set; then :
15197 enableval=$enable_universal_binary;
15198 case $enableval in #(
15199 no) :
15200 ;; #(
15201 *) :
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15204 $as_echo_n "checking for universal binary support... " >&6; }
15205 case $host_vendor in #(
15206 apple) :
15207
15208 case $host_cpu in #(
15209 armv6|i386|x86_64) :
15210
15211 for cy_arch in armv6 i386 x86_64; do
15212 cy_save_CXXFLAGS=$CXXFLAGS
15213
15214 for element in "-arch $cy_arch"; do
15215 haveit=
15216 for x in $CXXFLAGS; do
15217
15218 acl_save_prefix="$prefix"
15219 prefix="$acl_final_prefix"
15220 acl_save_exec_prefix="$exec_prefix"
15221 exec_prefix="$acl_final_exec_prefix"
15222 eval x=\"$x\"
15223 exec_prefix="$acl_save_exec_prefix"
15224 prefix="$acl_save_prefix"
15225
15226 if test "X$x" = "X$element"; then
15227 haveit=yes
15228 break
15229 fi
15230 done
15231 if test -z "$haveit"; then
15232 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15233 fi
15234 done
15235
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239 int
15240 main ()
15241 {
15242
15243 ;
15244 return 0;
15245 }
15246 _ACEOF
15247 if ac_fn_cxx_try_link "$LINENO"; then :
15248
15249
15250 for element in $cy_arch; do
15251 haveit=
15252 for x in $cy_arches; do
15253
15254 acl_save_prefix="$prefix"
15255 prefix="$acl_final_prefix"
15256 acl_save_exec_prefix="$exec_prefix"
15257 exec_prefix="$acl_final_exec_prefix"
15258 eval x=\"$x\"
15259 exec_prefix="$acl_save_exec_prefix"
15260 prefix="$acl_save_prefix"
15261
15262 if test "X$x" = "X$element"; then
15263 haveit=yes
15264 break
15265 fi
15266 done
15267 if test -z "$haveit"; then
15268 cy_arches="${cy_arches}${cy_arches:+ }$element"
15269 fi
15270 done
15271
15272
15273 for element in "-arch $cy_arch"; do
15274 haveit=
15275 for x in $CFLAGS; do
15276
15277 acl_save_prefix="$prefix"
15278 prefix="$acl_final_prefix"
15279 acl_save_exec_prefix="$exec_prefix"
15280 exec_prefix="$acl_final_exec_prefix"
15281 eval x=\"$x\"
15282 exec_prefix="$acl_save_exec_prefix"
15283 prefix="$acl_save_prefix"
15284
15285 if test "X$x" = "X$element"; then
15286 haveit=yes
15287 break
15288 fi
15289 done
15290 if test -z "$haveit"; then
15291 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15292 fi
15293 done
15294
15295
15296 for element in "-arch $cy_arch"; do
15297 haveit=
15298 for x in $LDFLAGS; do
15299
15300 acl_save_prefix="$prefix"
15301 prefix="$acl_final_prefix"
15302 acl_save_exec_prefix="$exec_prefix"
15303 exec_prefix="$acl_final_exec_prefix"
15304 eval x=\"$x\"
15305 exec_prefix="$acl_save_exec_prefix"
15306 prefix="$acl_save_prefix"
15307
15308 if test "X$x" = "X$element"; then
15309 haveit=yes
15310 break
15311 fi
15312 done
15313 if test -z "$haveit"; then
15314 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15315 fi
15316 done
15317
15318
15319 for element in "-arch $cy_arch"; do
15320 haveit=
15321 for x in $OBJCXXFLAGS; do
15322
15323 acl_save_prefix="$prefix"
15324 prefix="$acl_final_prefix"
15325 acl_save_exec_prefix="$exec_prefix"
15326 exec_prefix="$acl_final_exec_prefix"
15327 eval x=\"$x\"
15328 exec_prefix="$acl_save_exec_prefix"
15329 prefix="$acl_save_prefix"
15330
15331 if test "X$x" = "X$element"; then
15332 haveit=yes
15333 break
15334 fi
15335 done
15336 if test -z "$haveit"; then
15337 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15338 fi
15339 done
15340
15341
15342 else
15343
15344 CXXFLAGS=$cy_save_CXXFLAGS
15345
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 done
15350 ;; #(
15351 *) :
15352 ;;
15353 esac
15354 ;; #(
15355 *) :
15356 ;;
15357 esac
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15359 $as_echo "${cy_arches-no}" >&6; }
15360 ;;
15361 esac
15362
15363 else
15364
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15366 $as_echo_n "checking for universal binary support... " >&6; }
15367 case $host_vendor in #(
15368 apple) :
15369
15370 case $host_cpu in #(
15371 armv6|i386|x86_64) :
15372
15373 for cy_arch in armv6 i386 x86_64; do
15374 cy_save_CXXFLAGS=$CXXFLAGS
15375
15376 for element in "-arch $cy_arch"; do
15377 haveit=
15378 for x in $CXXFLAGS; do
15379
15380 acl_save_prefix="$prefix"
15381 prefix="$acl_final_prefix"
15382 acl_save_exec_prefix="$exec_prefix"
15383 exec_prefix="$acl_final_exec_prefix"
15384 eval x=\"$x\"
15385 exec_prefix="$acl_save_exec_prefix"
15386 prefix="$acl_save_prefix"
15387
15388 if test "X$x" = "X$element"; then
15389 haveit=yes
15390 break
15391 fi
15392 done
15393 if test -z "$haveit"; then
15394 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15395 fi
15396 done
15397
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400
15401 int
15402 main ()
15403 {
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_cxx_try_link "$LINENO"; then :
15410
15411
15412 for element in $cy_arch; do
15413 haveit=
15414 for x in $cy_arches; do
15415
15416 acl_save_prefix="$prefix"
15417 prefix="$acl_final_prefix"
15418 acl_save_exec_prefix="$exec_prefix"
15419 exec_prefix="$acl_final_exec_prefix"
15420 eval x=\"$x\"
15421 exec_prefix="$acl_save_exec_prefix"
15422 prefix="$acl_save_prefix"
15423
15424 if test "X$x" = "X$element"; then
15425 haveit=yes
15426 break
15427 fi
15428 done
15429 if test -z "$haveit"; then
15430 cy_arches="${cy_arches}${cy_arches:+ }$element"
15431 fi
15432 done
15433
15434
15435 for element in "-arch $cy_arch"; do
15436 haveit=
15437 for x in $CFLAGS; do
15438
15439 acl_save_prefix="$prefix"
15440 prefix="$acl_final_prefix"
15441 acl_save_exec_prefix="$exec_prefix"
15442 exec_prefix="$acl_final_exec_prefix"
15443 eval x=\"$x\"
15444 exec_prefix="$acl_save_exec_prefix"
15445 prefix="$acl_save_prefix"
15446
15447 if test "X$x" = "X$element"; then
15448 haveit=yes
15449 break
15450 fi
15451 done
15452 if test -z "$haveit"; then
15453 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15454 fi
15455 done
15456
15457
15458 for element in "-arch $cy_arch"; do
15459 haveit=
15460 for x in $LDFLAGS; do
15461
15462 acl_save_prefix="$prefix"
15463 prefix="$acl_final_prefix"
15464 acl_save_exec_prefix="$exec_prefix"
15465 exec_prefix="$acl_final_exec_prefix"
15466 eval x=\"$x\"
15467 exec_prefix="$acl_save_exec_prefix"
15468 prefix="$acl_save_prefix"
15469
15470 if test "X$x" = "X$element"; then
15471 haveit=yes
15472 break
15473 fi
15474 done
15475 if test -z "$haveit"; then
15476 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15477 fi
15478 done
15479
15480
15481 for element in "-arch $cy_arch"; do
15482 haveit=
15483 for x in $OBJCXXFLAGS; do
15484
15485 acl_save_prefix="$prefix"
15486 prefix="$acl_final_prefix"
15487 acl_save_exec_prefix="$exec_prefix"
15488 exec_prefix="$acl_final_exec_prefix"
15489 eval x=\"$x\"
15490 exec_prefix="$acl_save_exec_prefix"
15491 prefix="$acl_save_prefix"
15492
15493 if test "X$x" = "X$element"; then
15494 haveit=yes
15495 break
15496 fi
15497 done
15498 if test -z "$haveit"; then
15499 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15500 fi
15501 done
15502
15503
15504 else
15505
15506 CXXFLAGS=$cy_save_CXXFLAGS
15507
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511 done
15512 ;; #(
15513 *) :
15514 ;;
15515 esac
15516 ;; #(
15517 *) :
15518 ;;
15519 esac
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15521 $as_echo "${cy_arches-no}" >&6; }
15522
15523 fi
15524
15525
15526 # Check whether --with-frameworks was given.
15527 if test "${with_frameworks+set}" = set; then :
15528 withval=$with_frameworks;
15529 for cy_framework in $withval; do
15530
15531 for element in -F$cy_framework; do
15532 haveit=
15533 for x in $CFLAGS; do
15534
15535 acl_save_prefix="$prefix"
15536 prefix="$acl_final_prefix"
15537 acl_save_exec_prefix="$exec_prefix"
15538 exec_prefix="$acl_final_exec_prefix"
15539 eval x=\"$x\"
15540 exec_prefix="$acl_save_exec_prefix"
15541 prefix="$acl_save_prefix"
15542
15543 if test "X$x" = "X$element"; then
15544 haveit=yes
15545 break
15546 fi
15547 done
15548 if test -z "$haveit"; then
15549 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15550 fi
15551 done
15552
15553
15554 for element in -F$cy_framework; do
15555 haveit=
15556 for x in $CXXFLAGS; do
15557
15558 acl_save_prefix="$prefix"
15559 prefix="$acl_final_prefix"
15560 acl_save_exec_prefix="$exec_prefix"
15561 exec_prefix="$acl_final_exec_prefix"
15562 eval x=\"$x\"
15563 exec_prefix="$acl_save_exec_prefix"
15564 prefix="$acl_save_prefix"
15565
15566 if test "X$x" = "X$element"; then
15567 haveit=yes
15568 break
15569 fi
15570 done
15571 if test -z "$haveit"; then
15572 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15573 fi
15574 done
15575
15576
15577 for element in -F$cy_framework; do
15578 haveit=
15579 for x in $OBJCCXXFLAGS; do
15580
15581 acl_save_prefix="$prefix"
15582 prefix="$acl_final_prefix"
15583 acl_save_exec_prefix="$exec_prefix"
15584 exec_prefix="$acl_final_exec_prefix"
15585 eval x=\"$x\"
15586 exec_prefix="$acl_save_exec_prefix"
15587 prefix="$acl_save_prefix"
15588
15589 if test "X$x" = "X$element"; then
15590 haveit=yes
15591 break
15592 fi
15593 done
15594 if test -z "$haveit"; then
15595 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
15596 fi
15597 done
15598
15599 done
15600
15601 fi
15602
15603
15604 apr_found="no"
15605
15606 if test "$target_os" = "os2-emx"; then
15607 # Scripts don't pass test -x on OS/2
15608 TEST_X="test -f"
15609 else
15610 TEST_X="test -x"
15611 fi
15612
15613 acceptable_majors="1"
15614
15615 apr_temp_acceptable_apr_config=""
15616 for apr_temp_major in $acceptable_majors
15617 do
15618 case $apr_temp_major in
15619 0)
15620 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
15621 ;;
15622 *)
15623 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
15624 ;;
15625 esac
15626 done
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
15629 $as_echo_n "checking for APR... " >&6; }
15630
15631 # Check whether --with-apr was given.
15632 if test "${with_apr+set}" = set; then :
15633 withval=$with_apr;
15634 if test "$withval" = "no" || test "$withval" = "yes"; then
15635 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
15636 fi
15637
15638 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15639 do
15640 for lookdir in "$withval/bin" "$withval"
15641 do
15642 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
15643 apr_config="$lookdir/$apr_temp_apr_config_file"
15644
15645 apr_found="yes"
15646 break 2
15647 fi
15648 done
15649 done
15650
15651 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
15652 apr_config="$withval"
15653 apr_found="yes"
15654 fi
15655
15656 if test "$apr_found" != "yes"; then
15657 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
15658 fi
15659
15660 else
15661
15662 if test -n "1" && test "1" = "1"; then
15663 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15664 do
15665 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
15666 apr_config="$apr_temp_apr_config_file"
15667
15668 apr_found="yes"
15669 break
15670 else
15671 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
15672 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
15673 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
15674
15675 apr_found="yes"
15676 break 2
15677 fi
15678 done
15679 fi
15680 done
15681 fi
15682 if test "$apr_found" = "no" && test -d ""; then
15683 apr_temp_abs_srcdir="`cd && pwd`"
15684 apr_found="reconfig"
15685 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
15686 case $apr_bundled_major in
15687 "")
15688 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
15689 ;;
15690 0)
15691 apr_temp_apr_config_file="apr-config"
15692 ;;
15693 *)
15694 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
15695 ;;
15696 esac
15697 if test -n ""; then
15698 apr_config="/$apr_temp_apr_config_file"
15699 else
15700 apr_config="/$apr_temp_apr_config_file"
15701 fi
15702 fi
15703
15704 fi
15705
15706
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
15708 $as_echo "$apr_found" >&6; }
15709
15710 case $apr_found in #(
15711 yes) :
15712
15713
15714 for element in `$apr_config --includes`; do
15715 haveit=
15716 for x in $CPPFLAGS; do
15717
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
15722 eval x=\"$x\"
15723 exec_prefix="$acl_save_exec_prefix"
15724 prefix="$acl_save_prefix"
15725
15726 if test "X$x" = "X$element"; then
15727 haveit=yes
15728 break
15729 fi
15730 done
15731 if test -z "$haveit"; then
15732 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15733 fi
15734 done
15735
15736 LTLIBAPR=`$apr_config --link-libtool`
15737
15738 ;; #(
15739 *) :
15740 as_fn_error $? "You need apr" "$LINENO" 5 ;;
15741 esac
15742
15743
15744 # Check whether --enable-javascript was given.
15745 if test "${enable_javascript+set}" = set; then :
15746 enableval=$enable_javascript;
15747 case $enableval in #(
15748 yes) :
15749
15750
15751
15752 pkg_failed=no
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15754 $as_echo_n "checking for WEBKIT... " >&6; }
15755
15756 if test -n "$WEBKIT_CFLAGS"; then
15757 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15758 elif test -n "$PKG_CONFIG"; then
15759 if test -n "$PKG_CONFIG" && \
15760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15761 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15762 ac_status=$?
15763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15764 test $ac_status = 0; }; then
15765 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15766 test "x$?" != "x0" && pkg_failed=yes
15767 else
15768 pkg_failed=yes
15769 fi
15770 else
15771 pkg_failed=untried
15772 fi
15773 if test -n "$WEBKIT_LIBS"; then
15774 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15775 elif test -n "$PKG_CONFIG"; then
15776 if test -n "$PKG_CONFIG" && \
15777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15778 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 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_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15783 test "x$?" != "x0" && pkg_failed=yes
15784 else
15785 pkg_failed=yes
15786 fi
15787 else
15788 pkg_failed=untried
15789 fi
15790
15791
15792
15793 if test $pkg_failed = yes; then
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 $as_echo "no" >&6; }
15796
15797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15798 _pkg_short_errors_supported=yes
15799 else
15800 _pkg_short_errors_supported=no
15801 fi
15802 if test $_pkg_short_errors_supported = yes; then
15803 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
15804 else
15805 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
15806 fi
15807 # Put the nasty error message in config.log where it belongs
15808 echo "$WEBKIT_PKG_ERRORS" >&5
15809
15810
15811
15812 pkg_failed=no
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15814 $as_echo_n "checking for WEBKIT... " >&6; }
15815
15816 if test -n "$WEBKIT_CFLAGS"; then
15817 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15818 elif test -n "$PKG_CONFIG"; then
15819 if test -n "$PKG_CONFIG" && \
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15821 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15822 ac_status=$?
15823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15824 test $ac_status = 0; }; then
15825 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15826 test "x$?" != "x0" && pkg_failed=yes
15827 else
15828 pkg_failed=yes
15829 fi
15830 else
15831 pkg_failed=untried
15832 fi
15833 if test -n "$WEBKIT_LIBS"; then
15834 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15835 elif test -n "$PKG_CONFIG"; then
15836 if test -n "$PKG_CONFIG" && \
15837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15838 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15839 ac_status=$?
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; }; then
15842 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15843 test "x$?" != "x0" && pkg_failed=yes
15844 else
15845 pkg_failed=yes
15846 fi
15847 else
15848 pkg_failed=untried
15849 fi
15850
15851
15852
15853 if test $pkg_failed = yes; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855 $as_echo "no" >&6; }
15856
15857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15858 _pkg_short_errors_supported=yes
15859 else
15860 _pkg_short_errors_supported=no
15861 fi
15862 if test $_pkg_short_errors_supported = yes; then
15863 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
15864 else
15865 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
15866 fi
15867 # Put the nasty error message in config.log where it belongs
15868 echo "$WEBKIT_PKG_ERRORS" >&5
15869
15870
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15873 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15874 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877
15878 ac_check_framework_save_LIBS=$LIBS
15879 LIBS="-framework JavaScriptCore $LIBS"
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882
15883 #include <JavaScriptCore/JSBase.h>
15884
15885 int
15886 main ()
15887 {
15888 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15889 ;
15890 return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_cxx_try_link "$LINENO"; then :
15894
15895 ac_cv_framework_JavaScriptCore=yes
15896
15897 else
15898 ac_cv_framework_JavaScriptCore=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext \
15901 conftest$ac_exeext conftest.$ac_ext
15902 LIBS=$ac_check_framework_save_LIBS
15903
15904 fi
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15906 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15907 if test $ac_cv_framework_JavaScriptCore = yes; then :
15908
15909
15910 for element in "-framework JavaScriptCore $LIBS"; do
15911 haveit=
15912 for x in $LIBS; do
15913
15914 acl_save_prefix="$prefix"
15915 prefix="$acl_final_prefix"
15916 acl_save_exec_prefix="$exec_prefix"
15917 exec_prefix="$acl_final_exec_prefix"
15918 eval x=\"$x\"
15919 exec_prefix="$acl_save_exec_prefix"
15920 prefix="$acl_save_prefix"
15921
15922 if test "X$x" = "X$element"; then
15923 haveit=yes
15924 break
15925 fi
15926 done
15927 if test -z "$haveit"; then
15928 LIBS="${LIBS}${LIBS:+ }$element"
15929 fi
15930 done
15931
15932 CY_EXECUTE=1
15933
15934 fi
15935
15936 elif test $pkg_failed = untried; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938 $as_echo "no" >&6; }
15939
15940
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15942 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15943 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946
15947 ac_check_framework_save_LIBS=$LIBS
15948 LIBS="-framework JavaScriptCore $LIBS"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 #include <JavaScriptCore/JSBase.h>
15953
15954 int
15955 main ()
15956 {
15957 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_cxx_try_link "$LINENO"; then :
15963
15964 ac_cv_framework_JavaScriptCore=yes
15965
15966 else
15967 ac_cv_framework_JavaScriptCore=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LIBS=$ac_check_framework_save_LIBS
15972
15973 fi
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15975 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15976 if test $ac_cv_framework_JavaScriptCore = yes; then :
15977
15978
15979 for element in "-framework JavaScriptCore $LIBS"; do
15980 haveit=
15981 for x in $LIBS; do
15982
15983 acl_save_prefix="$prefix"
15984 prefix="$acl_final_prefix"
15985 acl_save_exec_prefix="$exec_prefix"
15986 exec_prefix="$acl_final_exec_prefix"
15987 eval x=\"$x\"
15988 exec_prefix="$acl_save_exec_prefix"
15989 prefix="$acl_save_prefix"
15990
15991 if test "X$x" = "X$element"; then
15992 haveit=yes
15993 break
15994 fi
15995 done
15996 if test -z "$haveit"; then
15997 LIBS="${LIBS}${LIBS:+ }$element"
15998 fi
15999 done
16000
16001 CY_EXECUTE=1
16002
16003 fi
16004
16005 else
16006 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16007 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16009 $as_echo "yes" >&6; }
16010
16011 CY_EXECUTE=1
16012
16013 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16014 haveit=
16015 for x in $CXXFLAGS; do
16016
16017 acl_save_prefix="$prefix"
16018 prefix="$acl_final_prefix"
16019 acl_save_exec_prefix="$exec_prefix"
16020 exec_prefix="$acl_final_exec_prefix"
16021 eval x=\"$x\"
16022 exec_prefix="$acl_save_exec_prefix"
16023 prefix="$acl_save_prefix"
16024
16025 if test "X$x" = "X$element"; then
16026 haveit=yes
16027 break
16028 fi
16029 done
16030 if test -z "$haveit"; then
16031 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16032 fi
16033 done
16034
16035
16036 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16037 haveit=
16038 for x in $LIBS; do
16039
16040 acl_save_prefix="$prefix"
16041 prefix="$acl_final_prefix"
16042 acl_save_exec_prefix="$exec_prefix"
16043 exec_prefix="$acl_final_exec_prefix"
16044 eval x=\"$x\"
16045 exec_prefix="$acl_save_exec_prefix"
16046 prefix="$acl_save_prefix"
16047
16048 if test "X$x" = "X$element"; then
16049 haveit=yes
16050 break
16051 fi
16052 done
16053 if test -z "$haveit"; then
16054 LIBS="${LIBS}${LIBS:+ }$element"
16055 fi
16056 done
16057
16058
16059 fi
16060
16061 elif test $pkg_failed = untried; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16063 $as_echo "no" >&6; }
16064
16065
16066 pkg_failed=no
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16068 $as_echo_n "checking for WEBKIT... " >&6; }
16069
16070 if test -n "$WEBKIT_CFLAGS"; then
16071 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16072 elif test -n "$PKG_CONFIG"; then
16073 if test -n "$PKG_CONFIG" && \
16074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16075 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16076 ac_status=$?
16077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078 test $ac_status = 0; }; then
16079 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16080 test "x$?" != "x0" && pkg_failed=yes
16081 else
16082 pkg_failed=yes
16083 fi
16084 else
16085 pkg_failed=untried
16086 fi
16087 if test -n "$WEBKIT_LIBS"; then
16088 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16089 elif test -n "$PKG_CONFIG"; then
16090 if test -n "$PKG_CONFIG" && \
16091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16092 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16093 ac_status=$?
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; then
16096 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16097 test "x$?" != "x0" && pkg_failed=yes
16098 else
16099 pkg_failed=yes
16100 fi
16101 else
16102 pkg_failed=untried
16103 fi
16104
16105
16106
16107 if test $pkg_failed = yes; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110
16111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16112 _pkg_short_errors_supported=yes
16113 else
16114 _pkg_short_errors_supported=no
16115 fi
16116 if test $_pkg_short_errors_supported = yes; then
16117 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16118 else
16119 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16120 fi
16121 # Put the nasty error message in config.log where it belongs
16122 echo "$WEBKIT_PKG_ERRORS" >&5
16123
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16127 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16128 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16129 $as_echo_n "(cached) " >&6
16130 else
16131
16132 ac_check_framework_save_LIBS=$LIBS
16133 LIBS="-framework JavaScriptCore $LIBS"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136
16137 #include <JavaScriptCore/JSBase.h>
16138
16139 int
16140 main ()
16141 {
16142 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16143 ;
16144 return 0;
16145 }
16146 _ACEOF
16147 if ac_fn_cxx_try_link "$LINENO"; then :
16148
16149 ac_cv_framework_JavaScriptCore=yes
16150
16151 else
16152 ac_cv_framework_JavaScriptCore=no
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext \
16155 conftest$ac_exeext conftest.$ac_ext
16156 LIBS=$ac_check_framework_save_LIBS
16157
16158 fi
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16160 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16161 if test $ac_cv_framework_JavaScriptCore = yes; then :
16162
16163
16164 for element in "-framework JavaScriptCore $LIBS"; do
16165 haveit=
16166 for x in $LIBS; do
16167
16168 acl_save_prefix="$prefix"
16169 prefix="$acl_final_prefix"
16170 acl_save_exec_prefix="$exec_prefix"
16171 exec_prefix="$acl_final_exec_prefix"
16172 eval x=\"$x\"
16173 exec_prefix="$acl_save_exec_prefix"
16174 prefix="$acl_save_prefix"
16175
16176 if test "X$x" = "X$element"; then
16177 haveit=yes
16178 break
16179 fi
16180 done
16181 if test -z "$haveit"; then
16182 LIBS="${LIBS}${LIBS:+ }$element"
16183 fi
16184 done
16185
16186 CY_EXECUTE=1
16187
16188 fi
16189
16190 elif test $pkg_failed = untried; then
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16193
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16196 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16197 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200
16201 ac_check_framework_save_LIBS=$LIBS
16202 LIBS="-framework JavaScriptCore $LIBS"
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205
16206 #include <JavaScriptCore/JSBase.h>
16207
16208 int
16209 main ()
16210 {
16211 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16212 ;
16213 return 0;
16214 }
16215 _ACEOF
16216 if ac_fn_cxx_try_link "$LINENO"; then :
16217
16218 ac_cv_framework_JavaScriptCore=yes
16219
16220 else
16221 ac_cv_framework_JavaScriptCore=no
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225 LIBS=$ac_check_framework_save_LIBS
16226
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16229 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16230 if test $ac_cv_framework_JavaScriptCore = yes; then :
16231
16232
16233 for element in "-framework JavaScriptCore $LIBS"; do
16234 haveit=
16235 for x in $LIBS; do
16236
16237 acl_save_prefix="$prefix"
16238 prefix="$acl_final_prefix"
16239 acl_save_exec_prefix="$exec_prefix"
16240 exec_prefix="$acl_final_exec_prefix"
16241 eval x=\"$x\"
16242 exec_prefix="$acl_save_exec_prefix"
16243 prefix="$acl_save_prefix"
16244
16245 if test "X$x" = "X$element"; then
16246 haveit=yes
16247 break
16248 fi
16249 done
16250 if test -z "$haveit"; then
16251 LIBS="${LIBS}${LIBS:+ }$element"
16252 fi
16253 done
16254
16255 CY_EXECUTE=1
16256
16257 fi
16258
16259 else
16260 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16261 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16263 $as_echo "yes" >&6; }
16264
16265 CY_EXECUTE=1
16266
16267 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16268 haveit=
16269 for x in $CXXFLAGS; do
16270
16271 acl_save_prefix="$prefix"
16272 prefix="$acl_final_prefix"
16273 acl_save_exec_prefix="$exec_prefix"
16274 exec_prefix="$acl_final_exec_prefix"
16275 eval x=\"$x\"
16276 exec_prefix="$acl_save_exec_prefix"
16277 prefix="$acl_save_prefix"
16278
16279 if test "X$x" = "X$element"; then
16280 haveit=yes
16281 break
16282 fi
16283 done
16284 if test -z "$haveit"; then
16285 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16286 fi
16287 done
16288
16289
16290 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16291 haveit=
16292 for x in $LIBS; do
16293
16294 acl_save_prefix="$prefix"
16295 prefix="$acl_final_prefix"
16296 acl_save_exec_prefix="$exec_prefix"
16297 exec_prefix="$acl_final_exec_prefix"
16298 eval x=\"$x\"
16299 exec_prefix="$acl_save_exec_prefix"
16300 prefix="$acl_save_prefix"
16301
16302 if test "X$x" = "X$element"; then
16303 haveit=yes
16304 break
16305 fi
16306 done
16307 if test -z "$haveit"; then
16308 LIBS="${LIBS}${LIBS:+ }$element"
16309 fi
16310 done
16311
16312
16313 fi
16314
16315 else
16316 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16317 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16319 $as_echo "yes" >&6; }
16320
16321 CY_EXECUTE=1
16322
16323 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16324 haveit=
16325 for x in $CXXFLAGS; do
16326
16327 acl_save_prefix="$prefix"
16328 prefix="$acl_final_prefix"
16329 acl_save_exec_prefix="$exec_prefix"
16330 exec_prefix="$acl_final_exec_prefix"
16331 eval x=\"$x\"
16332 exec_prefix="$acl_save_exec_prefix"
16333 prefix="$acl_save_prefix"
16334
16335 if test "X$x" = "X$element"; then
16336 haveit=yes
16337 break
16338 fi
16339 done
16340 if test -z "$haveit"; then
16341 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16342 fi
16343 done
16344
16345
16346 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16347 haveit=
16348 for x in $LIBS; do
16349
16350 acl_save_prefix="$prefix"
16351 prefix="$acl_final_prefix"
16352 acl_save_exec_prefix="$exec_prefix"
16353 exec_prefix="$acl_final_exec_prefix"
16354 eval x=\"$x\"
16355 exec_prefix="$acl_save_exec_prefix"
16356 prefix="$acl_save_prefix"
16357
16358 if test "X$x" = "X$element"; then
16359 haveit=yes
16360 break
16361 fi
16362 done
16363 if test -z "$haveit"; then
16364 LIBS="${LIBS}${LIBS:+ }$element"
16365 fi
16366 done
16367
16368
16369 fi
16370
16371 ;; #(
16372 no) :
16373
16374 CY_EXECUTE=0
16375
16376 ;; #(
16377 JavaScriptCore) :
16378
16379
16380
16381 pkg_failed=no
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16383 $as_echo_n "checking for WEBKIT... " >&6; }
16384
16385 if test -n "$WEBKIT_CFLAGS"; then
16386 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16387 elif test -n "$PKG_CONFIG"; then
16388 if test -n "$PKG_CONFIG" && \
16389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16390 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16391 ac_status=$?
16392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16393 test $ac_status = 0; }; then
16394 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16395 test "x$?" != "x0" && pkg_failed=yes
16396 else
16397 pkg_failed=yes
16398 fi
16399 else
16400 pkg_failed=untried
16401 fi
16402 if test -n "$WEBKIT_LIBS"; then
16403 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16404 elif test -n "$PKG_CONFIG"; then
16405 if test -n "$PKG_CONFIG" && \
16406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16407 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; then
16411 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16412 test "x$?" != "x0" && pkg_failed=yes
16413 else
16414 pkg_failed=yes
16415 fi
16416 else
16417 pkg_failed=untried
16418 fi
16419
16420
16421
16422 if test $pkg_failed = yes; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424 $as_echo "no" >&6; }
16425
16426 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16427 _pkg_short_errors_supported=yes
16428 else
16429 _pkg_short_errors_supported=no
16430 fi
16431 if test $_pkg_short_errors_supported = yes; then
16432 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
16433 else
16434 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
16435 fi
16436 # Put the nasty error message in config.log where it belongs
16437 echo "$WEBKIT_PKG_ERRORS" >&5
16438
16439
16440
16441 pkg_failed=no
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16443 $as_echo_n "checking for WEBKIT... " >&6; }
16444
16445 if test -n "$WEBKIT_CFLAGS"; then
16446 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16447 elif test -n "$PKG_CONFIG"; then
16448 if test -n "$PKG_CONFIG" && \
16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16450 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16451 ac_status=$?
16452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16453 test $ac_status = 0; }; then
16454 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16455 test "x$?" != "x0" && pkg_failed=yes
16456 else
16457 pkg_failed=yes
16458 fi
16459 else
16460 pkg_failed=untried
16461 fi
16462 if test -n "$WEBKIT_LIBS"; then
16463 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16464 elif test -n "$PKG_CONFIG"; then
16465 if test -n "$PKG_CONFIG" && \
16466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16467 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16468 ac_status=$?
16469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16470 test $ac_status = 0; }; then
16471 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16472 test "x$?" != "x0" && pkg_failed=yes
16473 else
16474 pkg_failed=yes
16475 fi
16476 else
16477 pkg_failed=untried
16478 fi
16479
16480
16481
16482 if test $pkg_failed = yes; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16485
16486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16487 _pkg_short_errors_supported=yes
16488 else
16489 _pkg_short_errors_supported=no
16490 fi
16491 if test $_pkg_short_errors_supported = yes; then
16492 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16493 else
16494 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16495 fi
16496 # Put the nasty error message in config.log where it belongs
16497 echo "$WEBKIT_PKG_ERRORS" >&5
16498
16499
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16502 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16503 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506
16507 ac_check_framework_save_LIBS=$LIBS
16508 LIBS="-framework JavaScriptCore $LIBS"
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511
16512 #include <JavaScriptCore/JSBase.h>
16513
16514 int
16515 main ()
16516 {
16517 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16518 ;
16519 return 0;
16520 }
16521 _ACEOF
16522 if ac_fn_cxx_try_link "$LINENO"; then :
16523
16524 ac_cv_framework_JavaScriptCore=yes
16525
16526 else
16527 ac_cv_framework_JavaScriptCore=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_framework_save_LIBS
16532
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16535 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16536 if test $ac_cv_framework_JavaScriptCore = yes; then :
16537
16538
16539 for element in "-framework JavaScriptCore $LIBS"; do
16540 haveit=
16541 for x in $LIBS; do
16542
16543 acl_save_prefix="$prefix"
16544 prefix="$acl_final_prefix"
16545 acl_save_exec_prefix="$exec_prefix"
16546 exec_prefix="$acl_final_exec_prefix"
16547 eval x=\"$x\"
16548 exec_prefix="$acl_save_exec_prefix"
16549 prefix="$acl_save_prefix"
16550
16551 if test "X$x" = "X$element"; then
16552 haveit=yes
16553 break
16554 fi
16555 done
16556 if test -z "$haveit"; then
16557 LIBS="${LIBS}${LIBS:+ }$element"
16558 fi
16559 done
16560
16561 CY_EXECUTE=1
16562
16563 fi
16564
16565 elif test $pkg_failed = untried; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16568
16569
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16571 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16572 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16573 $as_echo_n "(cached) " >&6
16574 else
16575
16576 ac_check_framework_save_LIBS=$LIBS
16577 LIBS="-framework JavaScriptCore $LIBS"
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580
16581 #include <JavaScriptCore/JSBase.h>
16582
16583 int
16584 main ()
16585 {
16586 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16587 ;
16588 return 0;
16589 }
16590 _ACEOF
16591 if ac_fn_cxx_try_link "$LINENO"; then :
16592
16593 ac_cv_framework_JavaScriptCore=yes
16594
16595 else
16596 ac_cv_framework_JavaScriptCore=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_framework_save_LIBS
16601
16602 fi
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16604 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16605 if test $ac_cv_framework_JavaScriptCore = yes; then :
16606
16607
16608 for element in "-framework JavaScriptCore $LIBS"; do
16609 haveit=
16610 for x in $LIBS; do
16611
16612 acl_save_prefix="$prefix"
16613 prefix="$acl_final_prefix"
16614 acl_save_exec_prefix="$exec_prefix"
16615 exec_prefix="$acl_final_exec_prefix"
16616 eval x=\"$x\"
16617 exec_prefix="$acl_save_exec_prefix"
16618 prefix="$acl_save_prefix"
16619
16620 if test "X$x" = "X$element"; then
16621 haveit=yes
16622 break
16623 fi
16624 done
16625 if test -z "$haveit"; then
16626 LIBS="${LIBS}${LIBS:+ }$element"
16627 fi
16628 done
16629
16630 CY_EXECUTE=1
16631
16632 fi
16633
16634 else
16635 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16636 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638 $as_echo "yes" >&6; }
16639
16640 CY_EXECUTE=1
16641
16642 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16643 haveit=
16644 for x in $CXXFLAGS; do
16645
16646 acl_save_prefix="$prefix"
16647 prefix="$acl_final_prefix"
16648 acl_save_exec_prefix="$exec_prefix"
16649 exec_prefix="$acl_final_exec_prefix"
16650 eval x=\"$x\"
16651 exec_prefix="$acl_save_exec_prefix"
16652 prefix="$acl_save_prefix"
16653
16654 if test "X$x" = "X$element"; then
16655 haveit=yes
16656 break
16657 fi
16658 done
16659 if test -z "$haveit"; then
16660 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16661 fi
16662 done
16663
16664
16665 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16666 haveit=
16667 for x in $LIBS; do
16668
16669 acl_save_prefix="$prefix"
16670 prefix="$acl_final_prefix"
16671 acl_save_exec_prefix="$exec_prefix"
16672 exec_prefix="$acl_final_exec_prefix"
16673 eval x=\"$x\"
16674 exec_prefix="$acl_save_exec_prefix"
16675 prefix="$acl_save_prefix"
16676
16677 if test "X$x" = "X$element"; then
16678 haveit=yes
16679 break
16680 fi
16681 done
16682 if test -z "$haveit"; then
16683 LIBS="${LIBS}${LIBS:+ }$element"
16684 fi
16685 done
16686
16687
16688 fi
16689
16690 elif test $pkg_failed = untried; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692 $as_echo "no" >&6; }
16693
16694
16695 pkg_failed=no
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16697 $as_echo_n "checking for WEBKIT... " >&6; }
16698
16699 if test -n "$WEBKIT_CFLAGS"; then
16700 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16701 elif test -n "$PKG_CONFIG"; then
16702 if test -n "$PKG_CONFIG" && \
16703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16704 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16705 ac_status=$?
16706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16707 test $ac_status = 0; }; then
16708 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16709 test "x$?" != "x0" && pkg_failed=yes
16710 else
16711 pkg_failed=yes
16712 fi
16713 else
16714 pkg_failed=untried
16715 fi
16716 if test -n "$WEBKIT_LIBS"; then
16717 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16718 elif test -n "$PKG_CONFIG"; then
16719 if test -n "$PKG_CONFIG" && \
16720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16721 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16722 ac_status=$?
16723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; }; then
16725 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16726 test "x$?" != "x0" && pkg_failed=yes
16727 else
16728 pkg_failed=yes
16729 fi
16730 else
16731 pkg_failed=untried
16732 fi
16733
16734
16735
16736 if test $pkg_failed = yes; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16739
16740 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16741 _pkg_short_errors_supported=yes
16742 else
16743 _pkg_short_errors_supported=no
16744 fi
16745 if test $_pkg_short_errors_supported = yes; then
16746 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
16747 else
16748 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
16749 fi
16750 # Put the nasty error message in config.log where it belongs
16751 echo "$WEBKIT_PKG_ERRORS" >&5
16752
16753
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16756 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16757 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16760
16761 ac_check_framework_save_LIBS=$LIBS
16762 LIBS="-framework JavaScriptCore $LIBS"
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765
16766 #include <JavaScriptCore/JSBase.h>
16767
16768 int
16769 main ()
16770 {
16771 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_cxx_try_link "$LINENO"; then :
16777
16778 ac_cv_framework_JavaScriptCore=yes
16779
16780 else
16781 ac_cv_framework_JavaScriptCore=no
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16785 LIBS=$ac_check_framework_save_LIBS
16786
16787 fi
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16789 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16790 if test $ac_cv_framework_JavaScriptCore = yes; then :
16791
16792
16793 for element in "-framework JavaScriptCore $LIBS"; do
16794 haveit=
16795 for x in $LIBS; do
16796
16797 acl_save_prefix="$prefix"
16798 prefix="$acl_final_prefix"
16799 acl_save_exec_prefix="$exec_prefix"
16800 exec_prefix="$acl_final_exec_prefix"
16801 eval x=\"$x\"
16802 exec_prefix="$acl_save_exec_prefix"
16803 prefix="$acl_save_prefix"
16804
16805 if test "X$x" = "X$element"; then
16806 haveit=yes
16807 break
16808 fi
16809 done
16810 if test -z "$haveit"; then
16811 LIBS="${LIBS}${LIBS:+ }$element"
16812 fi
16813 done
16814
16815 CY_EXECUTE=1
16816
16817 fi
16818
16819 elif test $pkg_failed = untried; then
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16825 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16826 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829
16830 ac_check_framework_save_LIBS=$LIBS
16831 LIBS="-framework JavaScriptCore $LIBS"
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834
16835 #include <JavaScriptCore/JSBase.h>
16836
16837 int
16838 main ()
16839 {
16840 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_cxx_try_link "$LINENO"; then :
16846
16847 ac_cv_framework_JavaScriptCore=yes
16848
16849 else
16850 ac_cv_framework_JavaScriptCore=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_framework_save_LIBS
16855
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16858 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16859 if test $ac_cv_framework_JavaScriptCore = yes; then :
16860
16861
16862 for element in "-framework JavaScriptCore $LIBS"; do
16863 haveit=
16864 for x in $LIBS; do
16865
16866 acl_save_prefix="$prefix"
16867 prefix="$acl_final_prefix"
16868 acl_save_exec_prefix="$exec_prefix"
16869 exec_prefix="$acl_final_exec_prefix"
16870 eval x=\"$x\"
16871 exec_prefix="$acl_save_exec_prefix"
16872 prefix="$acl_save_prefix"
16873
16874 if test "X$x" = "X$element"; then
16875 haveit=yes
16876 break
16877 fi
16878 done
16879 if test -z "$haveit"; then
16880 LIBS="${LIBS}${LIBS:+ }$element"
16881 fi
16882 done
16883
16884 CY_EXECUTE=1
16885
16886 fi
16887
16888 else
16889 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16890 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16892 $as_echo "yes" >&6; }
16893
16894 CY_EXECUTE=1
16895
16896 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16897 haveit=
16898 for x in $CXXFLAGS; do
16899
16900 acl_save_prefix="$prefix"
16901 prefix="$acl_final_prefix"
16902 acl_save_exec_prefix="$exec_prefix"
16903 exec_prefix="$acl_final_exec_prefix"
16904 eval x=\"$x\"
16905 exec_prefix="$acl_save_exec_prefix"
16906 prefix="$acl_save_prefix"
16907
16908 if test "X$x" = "X$element"; then
16909 haveit=yes
16910 break
16911 fi
16912 done
16913 if test -z "$haveit"; then
16914 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16915 fi
16916 done
16917
16918
16919 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16920 haveit=
16921 for x in $LIBS; do
16922
16923 acl_save_prefix="$prefix"
16924 prefix="$acl_final_prefix"
16925 acl_save_exec_prefix="$exec_prefix"
16926 exec_prefix="$acl_final_exec_prefix"
16927 eval x=\"$x\"
16928 exec_prefix="$acl_save_exec_prefix"
16929 prefix="$acl_save_prefix"
16930
16931 if test "X$x" = "X$element"; then
16932 haveit=yes
16933 break
16934 fi
16935 done
16936 if test -z "$haveit"; then
16937 LIBS="${LIBS}${LIBS:+ }$element"
16938 fi
16939 done
16940
16941
16942 fi
16943
16944 else
16945 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16946 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16948 $as_echo "yes" >&6; }
16949
16950 CY_EXECUTE=1
16951
16952 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16953 haveit=
16954 for x in $CXXFLAGS; do
16955
16956 acl_save_prefix="$prefix"
16957 prefix="$acl_final_prefix"
16958 acl_save_exec_prefix="$exec_prefix"
16959 exec_prefix="$acl_final_exec_prefix"
16960 eval x=\"$x\"
16961 exec_prefix="$acl_save_exec_prefix"
16962 prefix="$acl_save_prefix"
16963
16964 if test "X$x" = "X$element"; then
16965 haveit=yes
16966 break
16967 fi
16968 done
16969 if test -z "$haveit"; then
16970 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16971 fi
16972 done
16973
16974
16975 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16976 haveit=
16977 for x in $LIBS; do
16978
16979 acl_save_prefix="$prefix"
16980 prefix="$acl_final_prefix"
16981 acl_save_exec_prefix="$exec_prefix"
16982 exec_prefix="$acl_final_exec_prefix"
16983 eval x=\"$x\"
16984 exec_prefix="$acl_save_exec_prefix"
16985 prefix="$acl_save_prefix"
16986
16987 if test "X$x" = "X$element"; then
16988 haveit=yes
16989 break
16990 fi
16991 done
16992 if test -z "$haveit"; then
16993 LIBS="${LIBS}${LIBS:+ }$element"
16994 fi
16995 done
16996
16997
16998 fi
16999
17000 ;; #(
17001 *) :
17002 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17003 esac
17004
17005 else
17006
17007
17008
17009 pkg_failed=no
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17011 $as_echo_n "checking for WEBKIT... " >&6; }
17012
17013 if test -n "$WEBKIT_CFLAGS"; then
17014 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17015 elif test -n "$PKG_CONFIG"; then
17016 if test -n "$PKG_CONFIG" && \
17017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17018 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; }; then
17022 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17023 test "x$?" != "x0" && pkg_failed=yes
17024 else
17025 pkg_failed=yes
17026 fi
17027 else
17028 pkg_failed=untried
17029 fi
17030 if test -n "$WEBKIT_LIBS"; then
17031 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17032 elif test -n "$PKG_CONFIG"; then
17033 if test -n "$PKG_CONFIG" && \
17034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17035 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; then
17039 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17040 test "x$?" != "x0" && pkg_failed=yes
17041 else
17042 pkg_failed=yes
17043 fi
17044 else
17045 pkg_failed=untried
17046 fi
17047
17048
17049
17050 if test $pkg_failed = yes; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17053
17054 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17055 _pkg_short_errors_supported=yes
17056 else
17057 _pkg_short_errors_supported=no
17058 fi
17059 if test $_pkg_short_errors_supported = yes; then
17060 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
17061 else
17062 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
17063 fi
17064 # Put the nasty error message in config.log where it belongs
17065 echo "$WEBKIT_PKG_ERRORS" >&5
17066
17067
17068
17069 pkg_failed=no
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17071 $as_echo_n "checking for WEBKIT... " >&6; }
17072
17073 if test -n "$WEBKIT_CFLAGS"; then
17074 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17075 elif test -n "$PKG_CONFIG"; then
17076 if test -n "$PKG_CONFIG" && \
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17078 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17079 ac_status=$?
17080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17081 test $ac_status = 0; }; then
17082 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17083 test "x$?" != "x0" && pkg_failed=yes
17084 else
17085 pkg_failed=yes
17086 fi
17087 else
17088 pkg_failed=untried
17089 fi
17090 if test -n "$WEBKIT_LIBS"; then
17091 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17092 elif test -n "$PKG_CONFIG"; then
17093 if test -n "$PKG_CONFIG" && \
17094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17095 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17096 ac_status=$?
17097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17098 test $ac_status = 0; }; then
17099 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17100 test "x$?" != "x0" && pkg_failed=yes
17101 else
17102 pkg_failed=yes
17103 fi
17104 else
17105 pkg_failed=untried
17106 fi
17107
17108
17109
17110 if test $pkg_failed = yes; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112 $as_echo "no" >&6; }
17113
17114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17115 _pkg_short_errors_supported=yes
17116 else
17117 _pkg_short_errors_supported=no
17118 fi
17119 if test $_pkg_short_errors_supported = yes; then
17120 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
17121 else
17122 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
17123 fi
17124 # Put the nasty error message in config.log where it belongs
17125 echo "$WEBKIT_PKG_ERRORS" >&5
17126
17127
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17130 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17131 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134
17135 ac_check_framework_save_LIBS=$LIBS
17136 LIBS="-framework JavaScriptCore $LIBS"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139
17140 #include <JavaScriptCore/JSBase.h>
17141
17142 int
17143 main ()
17144 {
17145 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17146 ;
17147 return 0;
17148 }
17149 _ACEOF
17150 if ac_fn_cxx_try_link "$LINENO"; then :
17151
17152 ac_cv_framework_JavaScriptCore=yes
17153
17154 else
17155 ac_cv_framework_JavaScriptCore=no
17156 fi
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159 LIBS=$ac_check_framework_save_LIBS
17160
17161 fi
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17163 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17164 if test $ac_cv_framework_JavaScriptCore = yes; then :
17165
17166
17167 for element in "-framework JavaScriptCore $LIBS"; do
17168 haveit=
17169 for x in $LIBS; do
17170
17171 acl_save_prefix="$prefix"
17172 prefix="$acl_final_prefix"
17173 acl_save_exec_prefix="$exec_prefix"
17174 exec_prefix="$acl_final_exec_prefix"
17175 eval x=\"$x\"
17176 exec_prefix="$acl_save_exec_prefix"
17177 prefix="$acl_save_prefix"
17178
17179 if test "X$x" = "X$element"; then
17180 haveit=yes
17181 break
17182 fi
17183 done
17184 if test -z "$haveit"; then
17185 LIBS="${LIBS}${LIBS:+ }$element"
17186 fi
17187 done
17188
17189 CY_EXECUTE=1
17190
17191 fi
17192
17193 elif test $pkg_failed = untried; then
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17195 $as_echo "no" >&6; }
17196
17197
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17199 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17200 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17201 $as_echo_n "(cached) " >&6
17202 else
17203
17204 ac_check_framework_save_LIBS=$LIBS
17205 LIBS="-framework JavaScriptCore $LIBS"
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208
17209 #include <JavaScriptCore/JSBase.h>
17210
17211 int
17212 main ()
17213 {
17214 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17215 ;
17216 return 0;
17217 }
17218 _ACEOF
17219 if ac_fn_cxx_try_link "$LINENO"; then :
17220
17221 ac_cv_framework_JavaScriptCore=yes
17222
17223 else
17224 ac_cv_framework_JavaScriptCore=no
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17228 LIBS=$ac_check_framework_save_LIBS
17229
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17232 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17233 if test $ac_cv_framework_JavaScriptCore = yes; then :
17234
17235
17236 for element in "-framework JavaScriptCore $LIBS"; do
17237 haveit=
17238 for x in $LIBS; do
17239
17240 acl_save_prefix="$prefix"
17241 prefix="$acl_final_prefix"
17242 acl_save_exec_prefix="$exec_prefix"
17243 exec_prefix="$acl_final_exec_prefix"
17244 eval x=\"$x\"
17245 exec_prefix="$acl_save_exec_prefix"
17246 prefix="$acl_save_prefix"
17247
17248 if test "X$x" = "X$element"; then
17249 haveit=yes
17250 break
17251 fi
17252 done
17253 if test -z "$haveit"; then
17254 LIBS="${LIBS}${LIBS:+ }$element"
17255 fi
17256 done
17257
17258 CY_EXECUTE=1
17259
17260 fi
17261
17262 else
17263 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17264 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266 $as_echo "yes" >&6; }
17267
17268 CY_EXECUTE=1
17269
17270 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17271 haveit=
17272 for x in $CXXFLAGS; do
17273
17274 acl_save_prefix="$prefix"
17275 prefix="$acl_final_prefix"
17276 acl_save_exec_prefix="$exec_prefix"
17277 exec_prefix="$acl_final_exec_prefix"
17278 eval x=\"$x\"
17279 exec_prefix="$acl_save_exec_prefix"
17280 prefix="$acl_save_prefix"
17281
17282 if test "X$x" = "X$element"; then
17283 haveit=yes
17284 break
17285 fi
17286 done
17287 if test -z "$haveit"; then
17288 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17289 fi
17290 done
17291
17292
17293 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17294 haveit=
17295 for x in $LIBS; do
17296
17297 acl_save_prefix="$prefix"
17298 prefix="$acl_final_prefix"
17299 acl_save_exec_prefix="$exec_prefix"
17300 exec_prefix="$acl_final_exec_prefix"
17301 eval x=\"$x\"
17302 exec_prefix="$acl_save_exec_prefix"
17303 prefix="$acl_save_prefix"
17304
17305 if test "X$x" = "X$element"; then
17306 haveit=yes
17307 break
17308 fi
17309 done
17310 if test -z "$haveit"; then
17311 LIBS="${LIBS}${LIBS:+ }$element"
17312 fi
17313 done
17314
17315
17316 fi
17317
17318 elif test $pkg_failed = untried; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320 $as_echo "no" >&6; }
17321
17322
17323 pkg_failed=no
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17325 $as_echo_n "checking for WEBKIT... " >&6; }
17326
17327 if test -n "$WEBKIT_CFLAGS"; then
17328 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17329 elif test -n "$PKG_CONFIG"; then
17330 if test -n "$PKG_CONFIG" && \
17331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17332 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17333 ac_status=$?
17334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17335 test $ac_status = 0; }; then
17336 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17337 test "x$?" != "x0" && pkg_failed=yes
17338 else
17339 pkg_failed=yes
17340 fi
17341 else
17342 pkg_failed=untried
17343 fi
17344 if test -n "$WEBKIT_LIBS"; then
17345 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17346 elif test -n "$PKG_CONFIG"; then
17347 if test -n "$PKG_CONFIG" && \
17348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17349 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17350 ac_status=$?
17351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17352 test $ac_status = 0; }; then
17353 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17354 test "x$?" != "x0" && pkg_failed=yes
17355 else
17356 pkg_failed=yes
17357 fi
17358 else
17359 pkg_failed=untried
17360 fi
17361
17362
17363
17364 if test $pkg_failed = yes; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366 $as_echo "no" >&6; }
17367
17368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17369 _pkg_short_errors_supported=yes
17370 else
17371 _pkg_short_errors_supported=no
17372 fi
17373 if test $_pkg_short_errors_supported = yes; then
17374 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
17375 else
17376 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
17377 fi
17378 # Put the nasty error message in config.log where it belongs
17379 echo "$WEBKIT_PKG_ERRORS" >&5
17380
17381
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17384 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17385 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388
17389 ac_check_framework_save_LIBS=$LIBS
17390 LIBS="-framework JavaScriptCore $LIBS"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393
17394 #include <JavaScriptCore/JSBase.h>
17395
17396 int
17397 main ()
17398 {
17399 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17400 ;
17401 return 0;
17402 }
17403 _ACEOF
17404 if ac_fn_cxx_try_link "$LINENO"; then :
17405
17406 ac_cv_framework_JavaScriptCore=yes
17407
17408 else
17409 ac_cv_framework_JavaScriptCore=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_framework_save_LIBS
17414
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17417 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17418 if test $ac_cv_framework_JavaScriptCore = yes; then :
17419
17420
17421 for element in "-framework JavaScriptCore $LIBS"; do
17422 haveit=
17423 for x in $LIBS; do
17424
17425 acl_save_prefix="$prefix"
17426 prefix="$acl_final_prefix"
17427 acl_save_exec_prefix="$exec_prefix"
17428 exec_prefix="$acl_final_exec_prefix"
17429 eval x=\"$x\"
17430 exec_prefix="$acl_save_exec_prefix"
17431 prefix="$acl_save_prefix"
17432
17433 if test "X$x" = "X$element"; then
17434 haveit=yes
17435 break
17436 fi
17437 done
17438 if test -z "$haveit"; then
17439 LIBS="${LIBS}${LIBS:+ }$element"
17440 fi
17441 done
17442
17443 CY_EXECUTE=1
17444
17445 fi
17446
17447 elif test $pkg_failed = untried; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17449 $as_echo "no" >&6; }
17450
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17453 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17454 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17455 $as_echo_n "(cached) " >&6
17456 else
17457
17458 ac_check_framework_save_LIBS=$LIBS
17459 LIBS="-framework JavaScriptCore $LIBS"
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462
17463 #include <JavaScriptCore/JSBase.h>
17464
17465 int
17466 main ()
17467 {
17468 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 if ac_fn_cxx_try_link "$LINENO"; then :
17474
17475 ac_cv_framework_JavaScriptCore=yes
17476
17477 else
17478 ac_cv_framework_JavaScriptCore=no
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_framework_save_LIBS
17483
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17486 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17487 if test $ac_cv_framework_JavaScriptCore = yes; then :
17488
17489
17490 for element in "-framework JavaScriptCore $LIBS"; do
17491 haveit=
17492 for x in $LIBS; do
17493
17494 acl_save_prefix="$prefix"
17495 prefix="$acl_final_prefix"
17496 acl_save_exec_prefix="$exec_prefix"
17497 exec_prefix="$acl_final_exec_prefix"
17498 eval x=\"$x\"
17499 exec_prefix="$acl_save_exec_prefix"
17500 prefix="$acl_save_prefix"
17501
17502 if test "X$x" = "X$element"; then
17503 haveit=yes
17504 break
17505 fi
17506 done
17507 if test -z "$haveit"; then
17508 LIBS="${LIBS}${LIBS:+ }$element"
17509 fi
17510 done
17511
17512 CY_EXECUTE=1
17513
17514 fi
17515
17516 else
17517 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17518 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17520 $as_echo "yes" >&6; }
17521
17522 CY_EXECUTE=1
17523
17524 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17525 haveit=
17526 for x in $CXXFLAGS; do
17527
17528 acl_save_prefix="$prefix"
17529 prefix="$acl_final_prefix"
17530 acl_save_exec_prefix="$exec_prefix"
17531 exec_prefix="$acl_final_exec_prefix"
17532 eval x=\"$x\"
17533 exec_prefix="$acl_save_exec_prefix"
17534 prefix="$acl_save_prefix"
17535
17536 if test "X$x" = "X$element"; then
17537 haveit=yes
17538 break
17539 fi
17540 done
17541 if test -z "$haveit"; then
17542 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17543 fi
17544 done
17545
17546
17547 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17548 haveit=
17549 for x in $LIBS; do
17550
17551 acl_save_prefix="$prefix"
17552 prefix="$acl_final_prefix"
17553 acl_save_exec_prefix="$exec_prefix"
17554 exec_prefix="$acl_final_exec_prefix"
17555 eval x=\"$x\"
17556 exec_prefix="$acl_save_exec_prefix"
17557 prefix="$acl_save_prefix"
17558
17559 if test "X$x" = "X$element"; then
17560 haveit=yes
17561 break
17562 fi
17563 done
17564 if test -z "$haveit"; then
17565 LIBS="${LIBS}${LIBS:+ }$element"
17566 fi
17567 done
17568
17569
17570 fi
17571
17572 else
17573 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17574 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576 $as_echo "yes" >&6; }
17577
17578 CY_EXECUTE=1
17579
17580 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17581 haveit=
17582 for x in $CXXFLAGS; do
17583
17584 acl_save_prefix="$prefix"
17585 prefix="$acl_final_prefix"
17586 acl_save_exec_prefix="$exec_prefix"
17587 exec_prefix="$acl_final_exec_prefix"
17588 eval x=\"$x\"
17589 exec_prefix="$acl_save_exec_prefix"
17590 prefix="$acl_save_prefix"
17591
17592 if test "X$x" = "X$element"; then
17593 haveit=yes
17594 break
17595 fi
17596 done
17597 if test -z "$haveit"; then
17598 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17599 fi
17600 done
17601
17602
17603 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17604 haveit=
17605 for x in $LIBS; do
17606
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17611 eval x=\"$x\"
17612 exec_prefix="$acl_save_exec_prefix"
17613 prefix="$acl_save_prefix"
17614
17615 if test "X$x" = "X$element"; then
17616 haveit=yes
17617 break
17618 fi
17619 done
17620 if test -z "$haveit"; then
17621 LIBS="${LIBS}${LIBS:+ }$element"
17622 fi
17623 done
17624
17625
17626 fi
17627
17628
17629 fi
17630
17631
17632
17633
17634 case $CY_EXECUTE in #(
17635 1) :
17636
17637
17638 for ac_header in ffi.h ffi/ffi.h
17639 do :
17640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17641 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17643 cat >>confdefs.h <<_ACEOF
17644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17645 _ACEOF
17646 break
17647 fi
17648
17649 done
17650
17651 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17652
17653
17654
17655 pkg_failed=no
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17657 $as_echo_n "checking for LIBFFI... " >&6; }
17658
17659 if test -n "$LIBFFI_CFLAGS"; then
17660 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17661 elif test -n "$PKG_CONFIG"; then
17662 if test -n "$PKG_CONFIG" && \
17663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17664 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17665 ac_status=$?
17666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17667 test $ac_status = 0; }; then
17668 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17669 test "x$?" != "x0" && pkg_failed=yes
17670 else
17671 pkg_failed=yes
17672 fi
17673 else
17674 pkg_failed=untried
17675 fi
17676 if test -n "$LIBFFI_LIBS"; then
17677 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17678 elif test -n "$PKG_CONFIG"; then
17679 if test -n "$PKG_CONFIG" && \
17680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17681 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17682 ac_status=$?
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; }; then
17685 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17686 test "x$?" != "x0" && pkg_failed=yes
17687 else
17688 pkg_failed=yes
17689 fi
17690 else
17691 pkg_failed=untried
17692 fi
17693
17694
17695
17696 if test $pkg_failed = yes; then
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17699
17700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17701 _pkg_short_errors_supported=yes
17702 else
17703 _pkg_short_errors_supported=no
17704 fi
17705 if test $_pkg_short_errors_supported = yes; then
17706 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
17707 else
17708 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
17709 fi
17710 # Put the nasty error message in config.log where it belongs
17711 echo "$LIBFFI_PKG_ERRORS" >&5
17712
17713
17714 as_fn_error $? "You need libffi" "$LINENO" 5
17715
17716 elif test $pkg_failed = untried; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718 $as_echo "no" >&6; }
17719
17720 as_fn_error $? "You need libffi" "$LINENO" 5
17721
17722 else
17723 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17724 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17726 $as_echo "yes" >&6; }
17727
17728
17729 for element in `$PKG_CONFIG --cflags libffi`; do
17730 haveit=
17731 for x in $CXXFLAGS; do
17732
17733 acl_save_prefix="$prefix"
17734 prefix="$acl_final_prefix"
17735 acl_save_exec_prefix="$exec_prefix"
17736 exec_prefix="$acl_final_exec_prefix"
17737 eval x=\"$x\"
17738 exec_prefix="$acl_save_exec_prefix"
17739 prefix="$acl_save_prefix"
17740
17741 if test "X$x" = "X$element"; then
17742 haveit=yes
17743 break
17744 fi
17745 done
17746 if test -z "$haveit"; then
17747 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17748 fi
17749 done
17750
17751
17752 for element in `$PKG_CONFIG --libs libffi`; do
17753 haveit=
17754 for x in $LIBS; do
17755
17756 acl_save_prefix="$prefix"
17757 prefix="$acl_final_prefix"
17758 acl_save_exec_prefix="$exec_prefix"
17759 exec_prefix="$acl_final_exec_prefix"
17760 eval x=\"$x\"
17761 exec_prefix="$acl_save_exec_prefix"
17762 prefix="$acl_save_prefix"
17763
17764 if test "X$x" = "X$element"; then
17765 haveit=yes
17766 break
17767 fi
17768 done
17769 if test -z "$haveit"; then
17770 LIBS="${LIBS}${LIBS:+ }$element"
17771 fi
17772 done
17773
17774
17775 fi
17776
17777
17778 else
17779
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17781 $as_echo_n "checking for library containing ffi_call... " >&6; }
17782 if ${ac_cv_search_ffi_call+:} false; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17785 ac_func_search_save_LIBS=$LIBS
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17788
17789 /* Override any GCC internal prototype to avoid an error.
17790 Use char because int might match the return type of a GCC
17791 builtin and then its argument prototype would still apply. */
17792 #ifdef __cplusplus
17793 extern "C"
17794 #endif
17795 char ffi_call ();
17796 int
17797 main ()
17798 {
17799 return ffi_call ();
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 for ac_lib in '' ffi; do
17805 if test -z "$ac_lib"; then
17806 ac_res="none required"
17807 else
17808 ac_res=-l$ac_lib
17809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17810 fi
17811 if ac_fn_cxx_try_link "$LINENO"; then :
17812 ac_cv_search_ffi_call=$ac_res
17813 fi
17814 rm -f core conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext
17816 if ${ac_cv_search_ffi_call+:} false; then :
17817 break
17818 fi
17819 done
17820 if ${ac_cv_search_ffi_call+:} false; then :
17821
17822 else
17823 ac_cv_search_ffi_call=no
17824 fi
17825 rm conftest.$ac_ext
17826 LIBS=$ac_func_search_save_LIBS
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17829 $as_echo "$ac_cv_search_ffi_call" >&6; }
17830 ac_res=$ac_cv_search_ffi_call
17831 if test "$ac_res" != no; then :
17832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17833
17834 fi
17835
17836 case $ac_cv_search_ffi_call in #(
17837 no) :
17838
17839
17840 pkg_failed=no
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17842 $as_echo_n "checking for LIBFFI... " >&6; }
17843
17844 if test -n "$LIBFFI_CFLAGS"; then
17845 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17846 elif test -n "$PKG_CONFIG"; then
17847 if test -n "$PKG_CONFIG" && \
17848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17849 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17850 ac_status=$?
17851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17852 test $ac_status = 0; }; then
17853 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17854 test "x$?" != "x0" && pkg_failed=yes
17855 else
17856 pkg_failed=yes
17857 fi
17858 else
17859 pkg_failed=untried
17860 fi
17861 if test -n "$LIBFFI_LIBS"; then
17862 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17863 elif test -n "$PKG_CONFIG"; then
17864 if test -n "$PKG_CONFIG" && \
17865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17866 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17867 ac_status=$?
17868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17869 test $ac_status = 0; }; then
17870 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17871 test "x$?" != "x0" && pkg_failed=yes
17872 else
17873 pkg_failed=yes
17874 fi
17875 else
17876 pkg_failed=untried
17877 fi
17878
17879
17880
17881 if test $pkg_failed = yes; then
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883 $as_echo "no" >&6; }
17884
17885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17886 _pkg_short_errors_supported=yes
17887 else
17888 _pkg_short_errors_supported=no
17889 fi
17890 if test $_pkg_short_errors_supported = yes; then
17891 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
17892 else
17893 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
17894 fi
17895 # Put the nasty error message in config.log where it belongs
17896 echo "$LIBFFI_PKG_ERRORS" >&5
17897
17898
17899 as_fn_error $? "You need libffi" "$LINENO" 5
17900
17901 elif test $pkg_failed = untried; then
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903 $as_echo "no" >&6; }
17904
17905 as_fn_error $? "You need libffi" "$LINENO" 5
17906
17907 else
17908 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17909 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17912
17913
17914 for element in `$PKG_CONFIG --cflags libffi`; do
17915 haveit=
17916 for x in $CXXFLAGS; do
17917
17918 acl_save_prefix="$prefix"
17919 prefix="$acl_final_prefix"
17920 acl_save_exec_prefix="$exec_prefix"
17921 exec_prefix="$acl_final_exec_prefix"
17922 eval x=\"$x\"
17923 exec_prefix="$acl_save_exec_prefix"
17924 prefix="$acl_save_prefix"
17925
17926 if test "X$x" = "X$element"; then
17927 haveit=yes
17928 break
17929 fi
17930 done
17931 if test -z "$haveit"; then
17932 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17933 fi
17934 done
17935
17936
17937 for element in `$PKG_CONFIG --libs libffi`; do
17938 haveit=
17939 for x in $LIBS; do
17940
17941 acl_save_prefix="$prefix"
17942 prefix="$acl_final_prefix"
17943 acl_save_exec_prefix="$exec_prefix"
17944 exec_prefix="$acl_final_exec_prefix"
17945 eval x=\"$x\"
17946 exec_prefix="$acl_save_exec_prefix"
17947 prefix="$acl_save_prefix"
17948
17949 if test "X$x" = "X$element"; then
17950 haveit=yes
17951 break
17952 fi
17953 done
17954 if test -z "$haveit"; then
17955 LIBS="${LIBS}${LIBS:+ }$element"
17956 fi
17957 done
17958
17959
17960 fi
17961 ;; #(
17962 *) :
17963 ;;
17964 esac
17965
17966 fi
17967 ac_ext=mm
17968 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17969 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17972
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17974 $as_echo_n "checking if we really have Objective C++... " >&6; }
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977
17978 // This space intentionally left blank
17979
17980 _ACEOF
17981 if ac_fn_objcxx_try_compile "$LINENO"; then :
17982
17983 CY_OBJECTIVEC=1
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17985 $as_echo "yes" >&6; }
17986
17987 else
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17989 $as_echo "no" >&6; }
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992 if test "x$CY_OBJECTIVEC" = x1; then :
17993
17994
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17996 $as_echo_n "checking for framework CoreFoundation... " >&6; }
17997 if ${ac_cv_framework_CoreFoundation+:} false; then :
17998 $as_echo_n "(cached) " >&6
17999 else
18000
18001 ac_check_framework_save_LIBS=$LIBS
18002 LIBS="-framework CoreFoundation $LIBS"
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18005
18006 #include <CoreFoundation/CFBase.h>
18007
18008 int
18009 main ()
18010 {
18011 CFAllocatorGetDefault();
18012 ;
18013 return 0;
18014 }
18015 _ACEOF
18016 if ac_fn_objcxx_try_link "$LINENO"; then :
18017
18018 ac_cv_framework_CoreFoundation=yes
18019
18020 else
18021 ac_cv_framework_CoreFoundation=no
18022 fi
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_framework_save_LIBS
18026
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18029 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18030 if test $ac_cv_framework_CoreFoundation = yes; then :
18031
18032
18033 for element in "-framework CoreFoundation $LIBS"; do
18034 haveit=
18035 for x in $LIBS; do
18036
18037 acl_save_prefix="$prefix"
18038 prefix="$acl_final_prefix"
18039 acl_save_exec_prefix="$exec_prefix"
18040 exec_prefix="$acl_final_exec_prefix"
18041 eval x=\"$x\"
18042 exec_prefix="$acl_save_exec_prefix"
18043 prefix="$acl_save_prefix"
18044
18045 if test "X$x" = "X$element"; then
18046 haveit=yes
18047 break
18048 fi
18049 done
18050 if test -z "$haveit"; then
18051 LIBS="${LIBS}${LIBS:+ }$element"
18052 fi
18053 done
18054
18055
18056
18057
18058
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18060 $as_echo_n "checking for framework Foundation... " >&6; }
18061 if ${ac_cv_framework_Foundation+:} false; then :
18062 $as_echo_n "(cached) " >&6
18063 else
18064
18065 ac_check_framework_save_LIBS=$LIBS
18066 LIBS="-framework Foundation $LIBS"
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18069
18070 #include <Foundation/NSObject.h>
18071
18072 int
18073 main ()
18074 {
18075 [[NSObject alloc] init];
18076 ;
18077 return 0;
18078 }
18079 _ACEOF
18080 if ac_fn_objcxx_try_link "$LINENO"; then :
18081
18082 ac_cv_framework_Foundation=yes
18083
18084 else
18085 ac_cv_framework_Foundation=no
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_framework_save_LIBS
18090
18091 fi
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18093 $as_echo "$ac_cv_framework_Foundation" >&6; }
18094 if test $ac_cv_framework_Foundation = yes; then :
18095
18096
18097 for element in "-framework Foundation $LIBS"; do
18098 haveit=
18099 for x in $LIBS; do
18100
18101 acl_save_prefix="$prefix"
18102 prefix="$acl_final_prefix"
18103 acl_save_exec_prefix="$exec_prefix"
18104 exec_prefix="$acl_final_exec_prefix"
18105 eval x=\"$x\"
18106 exec_prefix="$acl_save_exec_prefix"
18107 prefix="$acl_save_prefix"
18108
18109 if test "X$x" = "X$element"; then
18110 haveit=yes
18111 break
18112 fi
18113 done
18114 if test -z "$haveit"; then
18115 LIBS="${LIBS}${LIBS:+ }$element"
18116 fi
18117 done
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_FRAMEWORK_FOUNDATION 1
18121 _ACEOF
18122
18123
18124 fi
18125
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18128 $as_echo_n "checking for framework WebKit... " >&6; }
18129 if ${ac_cv_framework_WebKit+:} false; then :
18130 $as_echo_n "(cached) " >&6
18131 else
18132
18133 ac_check_framework_save_LIBS=$LIBS
18134 LIBS="-framework WebKit $LIBS"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18137
18138 #include <WebKit/WebScriptObject.h>
18139
18140 int
18141 main ()
18142 {
18143 [[WebScriptObject alloc] init];
18144 ;
18145 return 0;
18146 }
18147 _ACEOF
18148 if ac_fn_objcxx_try_link "$LINENO"; then :
18149
18150 ac_cv_framework_WebKit=yes
18151
18152 else
18153 ac_cv_framework_WebKit=no
18154 fi
18155 rm -f core conftest.err conftest.$ac_objext \
18156 conftest$ac_exeext conftest.$ac_ext
18157 LIBS=$ac_check_framework_save_LIBS
18158
18159 fi
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18161 $as_echo "$ac_cv_framework_WebKit" >&6; }
18162 if test $ac_cv_framework_WebKit = yes; then :
18163
18164
18165 for element in "-framework WebKit $LIBS"; do
18166 haveit=
18167 for x in $LIBS; do
18168
18169 acl_save_prefix="$prefix"
18170 prefix="$acl_final_prefix"
18171 acl_save_exec_prefix="$exec_prefix"
18172 exec_prefix="$acl_final_exec_prefix"
18173 eval x=\"$x\"
18174 exec_prefix="$acl_save_exec_prefix"
18175 prefix="$acl_save_prefix"
18176
18177 if test "X$x" = "X$element"; then
18178 haveit=yes
18179 break
18180 fi
18181 done
18182 if test -z "$haveit"; then
18183 LIBS="${LIBS}${LIBS:+ }$element"
18184 fi
18185 done
18186
18187 cat >>confdefs.h <<_ACEOF
18188 #define HAVE_FRAMEWORK_WEBKIT 1
18189 _ACEOF
18190
18191
18192 fi
18193
18194
18195 else
18196
18197
18198 for ac_prog in gnustep-config
18199 do
18200 # Extract the first word of "$ac_prog", so it can be a program name with args.
18201 set dummy $ac_prog; ac_word=$2
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18203 $as_echo_n "checking for $ac_word... " >&6; }
18204 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 if test -n "$GNUSTEP_CONFIG"; then
18208 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18209 else
18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18211 for as_dir in $PATH
18212 do
18213 IFS=$as_save_IFS
18214 test -z "$as_dir" && as_dir=.
18215 for ac_exec_ext in '' $ac_executable_extensions; do
18216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18217 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18219 break 2
18220 fi
18221 done
18222 done
18223 IFS=$as_save_IFS
18224
18225 fi
18226 fi
18227 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18228 if test -n "$GNUSTEP_CONFIG"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18230 $as_echo "$GNUSTEP_CONFIG" >&6; }
18231 else
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18234 fi
18235
18236
18237 test -n "$GNUSTEP_CONFIG" && break
18238 done
18239
18240 if test "x$GNUSTEP_CONFIG" != x; then :
18241
18242
18243
18244 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18245 haveit=
18246 for x in $OBJCXXFLAGS; do
18247
18248 acl_save_prefix="$prefix"
18249 prefix="$acl_final_prefix"
18250 acl_save_exec_prefix="$exec_prefix"
18251 exec_prefix="$acl_final_exec_prefix"
18252 eval x=\"$x\"
18253 exec_prefix="$acl_save_exec_prefix"
18254 prefix="$acl_save_prefix"
18255
18256 if test "X$x" = "X$element"; then
18257 haveit=yes
18258 break
18259 fi
18260 done
18261 if test -z "$haveit"; then
18262 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18263 fi
18264 done
18265
18266
18267 for element in `$GNUSTEP_CONFIG --base-libs`; do
18268 haveit=
18269 for x in $LIBS; do
18270
18271 acl_save_prefix="$prefix"
18272 prefix="$acl_final_prefix"
18273 acl_save_exec_prefix="$exec_prefix"
18274 exec_prefix="$acl_final_exec_prefix"
18275 eval x=\"$x\"
18276 exec_prefix="$acl_save_exec_prefix"
18277 prefix="$acl_save_prefix"
18278
18279 if test "X$x" = "X$element"; then
18280 haveit=yes
18281 break
18282 fi
18283 done
18284 if test -z "$haveit"; then
18285 LIBS="${LIBS}${LIBS:+ }$element"
18286 fi
18287 done
18288
18289
18290 else
18291 CY_OBJECTIVEC=0
18292
18293 fi
18294
18295 fi
18296
18297 fi
18298 ac_ext=cpp
18299 ac_cpp='$CXXCPP $CPPFLAGS'
18300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303
18304 ;; #(
18305 *) :
18306 ;;
18307 esac
18308
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
18310 $as_echo_n "checking for a readline compatible library... " >&6; }
18311 if ${ax_cv_lib_readline+:} false; then :
18312 $as_echo_n "(cached) " >&6
18313 else
18314
18315 ORIG_LIBS="$LIBS"
18316 for readline_lib in readline edit editline; do
18317 for termcap_lib in "" termcap curses ncurses; do
18318 if test -z "$termcap_lib"; then
18319 TRY_LIB="-l$readline_lib"
18320 else
18321 TRY_LIB="-l$readline_lib -l$termcap_lib"
18322 fi
18323 LIBS="$ORIG_LIBS $TRY_LIB"
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char readline ();
18334 int
18335 main ()
18336 {
18337 return readline ();
18338 ;
18339 return 0;
18340 }
18341 _ACEOF
18342 if ac_fn_cxx_try_link "$LINENO"; then :
18343 ax_cv_lib_readline="$TRY_LIB"
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 if test -n "$ax_cv_lib_readline"; then
18348 break
18349 fi
18350 done
18351 if test -n "$ax_cv_lib_readline"; then
18352 break
18353 fi
18354 done
18355 if test -z "$ax_cv_lib_readline"; then
18356 ax_cv_lib_readline="no"
18357 fi
18358 LIBS="$ORIG_LIBS"
18359
18360 fi
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
18362 $as_echo "$ax_cv_lib_readline" >&6; }
18363
18364 if test "$ax_cv_lib_readline" != "no"; then
18365 LIBS="$LIBS $ax_cv_lib_readline"
18366
18367 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
18368
18369 for ac_header in readline.h readline/readline.h
18370 do :
18371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18372 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18374 cat >>confdefs.h <<_ACEOF
18375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18376 _ACEOF
18377
18378 fi
18379
18380 done
18381
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18383 $as_echo_n "checking whether readline supports history... " >&6; }
18384 if ${ax_cv_lib_readline_history+:} false; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387
18388 ax_cv_lib_readline_history="no"
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18391
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 char add_history ();
18399 int
18400 main ()
18401 {
18402 return add_history ();
18403 ;
18404 return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_cxx_try_link "$LINENO"; then :
18408 ax_cv_lib_readline_history="yes"
18409 fi
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412
18413 fi
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
18415 $as_echo "$ax_cv_lib_readline_history" >&6; }
18416 if test "$ax_cv_lib_readline_history" = "yes"; then
18417
18418 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18419
18420 for ac_header in history.h readline/history.h
18421 do :
18422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18425 cat >>confdefs.h <<_ACEOF
18426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18427 _ACEOF
18428
18429 fi
18430
18431 done
18432
18433 fi
18434 fi
18435
18436 case $vl_cv_lib_readline in #(
18437 no) :
18438 as_fn_error $? "You need readline" "$LINENO" 5 ;; #(
18439 *) :
18440 ;;
18441 esac
18442 ac_ext=c
18443 ac_cpp='$CPP $CPPFLAGS'
18444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18447
18448
18449 if test "X$prefix" = "XNONE"; then
18450 acl_final_prefix="$ac_default_prefix"
18451 else
18452 acl_final_prefix="$prefix"
18453 fi
18454 if test "X$exec_prefix" = "XNONE"; then
18455 acl_final_exec_prefix='${prefix}'
18456 else
18457 acl_final_exec_prefix="$exec_prefix"
18458 fi
18459 acl_save_prefix="$prefix"
18460 prefix="$acl_final_prefix"
18461 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18462 prefix="$acl_save_prefix"
18463
18464
18465 # Check whether --with-gnu-ld was given.
18466 if test "${with_gnu_ld+set}" = set; then :
18467 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18468 else
18469 with_gnu_ld=no
18470 fi
18471
18472 # Prepare PATH_SEPARATOR.
18473 # The user is always right.
18474 if test "${PATH_SEPARATOR+set}" != set; then
18475 echo "#! /bin/sh" >conf$$.sh
18476 echo "exit 0" >>conf$$.sh
18477 chmod +x conf$$.sh
18478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18479 PATH_SEPARATOR=';'
18480 else
18481 PATH_SEPARATOR=:
18482 fi
18483 rm -f conf$$.sh
18484 fi
18485 ac_prog=ld
18486 if test "$GCC" = yes; then
18487 # Check if gcc -print-prog-name=ld gives a path.
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18489 $as_echo_n "checking for ld used by GCC... " >&6; }
18490 case $host in
18491 *-*-mingw*)
18492 # gcc leaves a trailing carriage return which upsets mingw
18493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18494 *)
18495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18496 esac
18497 case $ac_prog in
18498 # Accept absolute paths.
18499 [\\/]* | [A-Za-z]:[\\/]*)
18500 re_direlt='/[^/][^/]*/\.\./'
18501 # Canonicalize the path of ld
18502 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18503 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18504 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18505 done
18506 test -z "$LD" && LD="$ac_prog"
18507 ;;
18508 "")
18509 # If it fails, then pretend we aren't using GCC.
18510 ac_prog=ld
18511 ;;
18512 *)
18513 # If it is relative, then search for the first ld in PATH.
18514 with_gnu_ld=unknown
18515 ;;
18516 esac
18517 elif test "$with_gnu_ld" = yes; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18519 $as_echo_n "checking for GNU ld... " >&6; }
18520 else
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18522 $as_echo_n "checking for non-GNU ld... " >&6; }
18523 fi
18524 if ${acl_cv_path_LD+:} false; then :
18525 $as_echo_n "(cached) " >&6
18526 else
18527 if test -z "$LD"; then
18528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18529 for ac_dir in $PATH; do
18530 test -z "$ac_dir" && ac_dir=.
18531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18532 acl_cv_path_LD="$ac_dir/$ac_prog"
18533 # Check to see if the program is GNU ld. I'd rather use --version,
18534 # but apparently some GNU ld's only accept -v.
18535 # Break only if it was the GNU/non-GNU ld that we prefer.
18536 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18537 *GNU* | *'with BFD'*)
18538 test "$with_gnu_ld" != no && break ;;
18539 *)
18540 test "$with_gnu_ld" != yes && break ;;
18541 esac
18542 fi
18543 done
18544 IFS="$ac_save_ifs"
18545 else
18546 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18547 fi
18548 fi
18549
18550 LD="$acl_cv_path_LD"
18551 if test -n "$LD"; then
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18553 $as_echo "$LD" >&6; }
18554 else
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 $as_echo "no" >&6; }
18557 fi
18558 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18561 if ${acl_cv_prog_gnu_ld+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18565 case `$LD -v 2>&1 </dev/null` in
18566 *GNU* | *'with BFD'*)
18567 acl_cv_prog_gnu_ld=yes ;;
18568 *)
18569 acl_cv_prog_gnu_ld=no ;;
18570 esac
18571 fi
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18573 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18574 with_gnu_ld=$acl_cv_prog_gnu_ld
18575
18576
18577
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18580 $as_echo_n "checking for shared library run path origin... " >&6; }
18581 if ${acl_cv_rpath+:} false; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584
18585 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18586 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18587 . ./conftest.sh
18588 rm -f ./conftest.sh
18589 acl_cv_rpath=done
18590
18591 fi
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18593 $as_echo "$acl_cv_rpath" >&6; }
18594 wl="$acl_cv_wl"
18595 acl_libext="$acl_cv_libext"
18596 acl_shlibext="$acl_cv_shlibext"
18597 acl_libname_spec="$acl_cv_libname_spec"
18598 acl_library_names_spec="$acl_cv_library_names_spec"
18599 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18600 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18601 acl_hardcode_direct="$acl_cv_hardcode_direct"
18602 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18603 # Check whether --enable-rpath was given.
18604 if test "${enable_rpath+set}" = set; then :
18605 enableval=$enable_rpath; :
18606 else
18607 enable_rpath=yes
18608 fi
18609
18610
18611
18612
18613 acl_libdirstem=lib
18614 acl_libdirstem2=
18615 case "$host_os" in
18616 solaris*)
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18618 $as_echo_n "checking for 64-bit host... " >&6; }
18619 if ${gl_cv_solaris_64bit+:} false; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18624
18625 #ifdef _LP64
18626 sixtyfour bits
18627 #endif
18628
18629 _ACEOF
18630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18631 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18632 gl_cv_solaris_64bit=yes
18633 else
18634 gl_cv_solaris_64bit=no
18635 fi
18636 rm -f conftest*
18637
18638
18639 fi
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18641 $as_echo "$gl_cv_solaris_64bit" >&6; }
18642 if test $gl_cv_solaris_64bit = yes; then
18643 acl_libdirstem=lib/64
18644 case "$host_cpu" in
18645 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18646 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18647 esac
18648 fi
18649 ;;
18650 *)
18651 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18652 if test -n "$searchpath"; then
18653 acl_save_IFS="${IFS= }"; IFS=":"
18654 for searchdir in $searchpath; do
18655 if test -d "$searchdir"; then
18656 case "$searchdir" in
18657 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18658 */../ | */.. )
18659 # Better ignore directories of this form. They are misleading.
18660 ;;
18661 *) searchdir=`cd "$searchdir" && pwd`
18662 case "$searchdir" in
18663 */lib64 ) acl_libdirstem=lib64 ;;
18664 esac ;;
18665 esac
18666 fi
18667 done
18668 IFS="$acl_save_IFS"
18669 fi
18670 ;;
18671 esac
18672 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685 use_additional=yes
18686
18687 acl_save_prefix="$prefix"
18688 prefix="$acl_final_prefix"
18689 acl_save_exec_prefix="$exec_prefix"
18690 exec_prefix="$acl_final_exec_prefix"
18691
18692 eval additional_includedir=\"$includedir\"
18693 eval additional_libdir=\"$libdir\"
18694
18695 exec_prefix="$acl_save_exec_prefix"
18696 prefix="$acl_save_prefix"
18697
18698
18699 # Check whether --with-libiconv-prefix was given.
18700 if test "${with_libiconv_prefix+set}" = set; then :
18701 withval=$with_libiconv_prefix;
18702 if test "X$withval" = "Xno"; then
18703 use_additional=no
18704 else
18705 if test "X$withval" = "X"; then
18706
18707 acl_save_prefix="$prefix"
18708 prefix="$acl_final_prefix"
18709 acl_save_exec_prefix="$exec_prefix"
18710 exec_prefix="$acl_final_exec_prefix"
18711
18712 eval additional_includedir=\"$includedir\"
18713 eval additional_libdir=\"$libdir\"
18714
18715 exec_prefix="$acl_save_exec_prefix"
18716 prefix="$acl_save_prefix"
18717
18718 else
18719 additional_includedir="$withval/include"
18720 additional_libdir="$withval/$acl_libdirstem"
18721 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18722 && ! test -d "$withval/$acl_libdirstem"; then
18723 additional_libdir="$withval/$acl_libdirstem2"
18724 fi
18725 fi
18726 fi
18727
18728 fi
18729
18730 LIBICONV=
18731 LTLIBICONV=
18732 INCICONV=
18733 LIBICONV_PREFIX=
18734 HAVE_LIBICONV=
18735 rpathdirs=
18736 ltrpathdirs=
18737 names_already_handled=
18738 names_next_round='iconv '
18739 while test -n "$names_next_round"; do
18740 names_this_round="$names_next_round"
18741 names_next_round=
18742 for name in $names_this_round; do
18743 already_handled=
18744 for n in $names_already_handled; do
18745 if test "$n" = "$name"; then
18746 already_handled=yes
18747 break
18748 fi
18749 done
18750 if test -z "$already_handled"; then
18751 names_already_handled="$names_already_handled $name"
18752 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18753 eval value=\"\$HAVE_LIB$uppername\"
18754 if test -n "$value"; then
18755 if test "$value" = yes; then
18756 eval value=\"\$LIB$uppername\"
18757 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18758 eval value=\"\$LTLIB$uppername\"
18759 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18760 else
18761 :
18762 fi
18763 else
18764 found_dir=
18765 found_la=
18766 found_so=
18767 found_a=
18768 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18769 if test -n "$acl_shlibext"; then
18770 shrext=".$acl_shlibext" # typically: shrext=.so
18771 else
18772 shrext=
18773 fi
18774 if test $use_additional = yes; then
18775 dir="$additional_libdir"
18776 if test -n "$acl_shlibext"; then
18777 if test -f "$dir/$libname$shrext"; then
18778 found_dir="$dir"
18779 found_so="$dir/$libname$shrext"
18780 else
18781 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18782 ver=`(cd "$dir" && \
18783 for f in "$libname$shrext".*; do echo "$f"; done \
18784 | sed -e "s,^$libname$shrext\\\\.,," \
18785 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18786 | sed 1q ) 2>/dev/null`
18787 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18788 found_dir="$dir"
18789 found_so="$dir/$libname$shrext.$ver"
18790 fi
18791 else
18792 eval library_names=\"$acl_library_names_spec\"
18793 for f in $library_names; do
18794 if test -f "$dir/$f"; then
18795 found_dir="$dir"
18796 found_so="$dir/$f"
18797 break
18798 fi
18799 done
18800 fi
18801 fi
18802 fi
18803 if test "X$found_dir" = "X"; then
18804 if test -f "$dir/$libname.$acl_libext"; then
18805 found_dir="$dir"
18806 found_a="$dir/$libname.$acl_libext"
18807 fi
18808 fi
18809 if test "X$found_dir" != "X"; then
18810 if test -f "$dir/$libname.la"; then
18811 found_la="$dir/$libname.la"
18812 fi
18813 fi
18814 fi
18815 if test "X$found_dir" = "X"; then
18816 for x in $LDFLAGS $LTLIBICONV; do
18817
18818 acl_save_prefix="$prefix"
18819 prefix="$acl_final_prefix"
18820 acl_save_exec_prefix="$exec_prefix"
18821 exec_prefix="$acl_final_exec_prefix"
18822 eval x=\"$x\"
18823 exec_prefix="$acl_save_exec_prefix"
18824 prefix="$acl_save_prefix"
18825
18826 case "$x" in
18827 -L*)
18828 dir=`echo "X$x" | sed -e 's/^X-L//'`
18829 if test -n "$acl_shlibext"; then
18830 if test -f "$dir/$libname$shrext"; then
18831 found_dir="$dir"
18832 found_so="$dir/$libname$shrext"
18833 else
18834 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18835 ver=`(cd "$dir" && \
18836 for f in "$libname$shrext".*; do echo "$f"; done \
18837 | sed -e "s,^$libname$shrext\\\\.,," \
18838 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18839 | sed 1q ) 2>/dev/null`
18840 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18841 found_dir="$dir"
18842 found_so="$dir/$libname$shrext.$ver"
18843 fi
18844 else
18845 eval library_names=\"$acl_library_names_spec\"
18846 for f in $library_names; do
18847 if test -f "$dir/$f"; then
18848 found_dir="$dir"
18849 found_so="$dir/$f"
18850 break
18851 fi
18852 done
18853 fi
18854 fi
18855 fi
18856 if test "X$found_dir" = "X"; then
18857 if test -f "$dir/$libname.$acl_libext"; then
18858 found_dir="$dir"
18859 found_a="$dir/$libname.$acl_libext"
18860 fi
18861 fi
18862 if test "X$found_dir" != "X"; then
18863 if test -f "$dir/$libname.la"; then
18864 found_la="$dir/$libname.la"
18865 fi
18866 fi
18867 ;;
18868 esac
18869 if test "X$found_dir" != "X"; then
18870 break
18871 fi
18872 done
18873 fi
18874 if test "X$found_dir" != "X"; then
18875 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18876 if test "X$found_so" != "X"; then
18877 if test "$enable_rpath" = no \
18878 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18879 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18881 else
18882 haveit=
18883 for x in $ltrpathdirs; do
18884 if test "X$x" = "X$found_dir"; then
18885 haveit=yes
18886 break
18887 fi
18888 done
18889 if test -z "$haveit"; then
18890 ltrpathdirs="$ltrpathdirs $found_dir"
18891 fi
18892 if test "$acl_hardcode_direct" = yes; then
18893 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18894 else
18895 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18896 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18897 haveit=
18898 for x in $rpathdirs; do
18899 if test "X$x" = "X$found_dir"; then
18900 haveit=yes
18901 break
18902 fi
18903 done
18904 if test -z "$haveit"; then
18905 rpathdirs="$rpathdirs $found_dir"
18906 fi
18907 else
18908 haveit=
18909 for x in $LDFLAGS $LIBICONV; do
18910
18911 acl_save_prefix="$prefix"
18912 prefix="$acl_final_prefix"
18913 acl_save_exec_prefix="$exec_prefix"
18914 exec_prefix="$acl_final_exec_prefix"
18915 eval x=\"$x\"
18916 exec_prefix="$acl_save_exec_prefix"
18917 prefix="$acl_save_prefix"
18918
18919 if test "X$x" = "X-L$found_dir"; then
18920 haveit=yes
18921 break
18922 fi
18923 done
18924 if test -z "$haveit"; then
18925 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18926 fi
18927 if test "$acl_hardcode_minus_L" != no; then
18928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18929 else
18930 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18931 fi
18932 fi
18933 fi
18934 fi
18935 else
18936 if test "X$found_a" != "X"; then
18937 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18938 else
18939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18940 fi
18941 fi
18942 additional_includedir=
18943 case "$found_dir" in
18944 */$acl_libdirstem | */$acl_libdirstem/)
18945 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18946 if test "$name" = 'iconv'; then
18947 LIBICONV_PREFIX="$basedir"
18948 fi
18949 additional_includedir="$basedir/include"
18950 ;;
18951 */$acl_libdirstem2 | */$acl_libdirstem2/)
18952 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18953 if test "$name" = 'iconv'; then
18954 LIBICONV_PREFIX="$basedir"
18955 fi
18956 additional_includedir="$basedir/include"
18957 ;;
18958 esac
18959 if test "X$additional_includedir" != "X"; then
18960 if test "X$additional_includedir" != "X/usr/include"; then
18961 haveit=
18962 if test "X$additional_includedir" = "X/usr/local/include"; then
18963 if test -n "$GCC"; then
18964 case $host_os in
18965 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18966 esac
18967 fi
18968 fi
18969 if test -z "$haveit"; then
18970 for x in $CPPFLAGS $INCICONV; do
18971
18972 acl_save_prefix="$prefix"
18973 prefix="$acl_final_prefix"
18974 acl_save_exec_prefix="$exec_prefix"
18975 exec_prefix="$acl_final_exec_prefix"
18976 eval x=\"$x\"
18977 exec_prefix="$acl_save_exec_prefix"
18978 prefix="$acl_save_prefix"
18979
18980 if test "X$x" = "X-I$additional_includedir"; then
18981 haveit=yes
18982 break
18983 fi
18984 done
18985 if test -z "$haveit"; then
18986 if test -d "$additional_includedir"; then
18987 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18988 fi
18989 fi
18990 fi
18991 fi
18992 fi
18993 if test -n "$found_la"; then
18994 save_libdir="$libdir"
18995 case "$found_la" in
18996 */* | *\\*) . "$found_la" ;;
18997 *) . "./$found_la" ;;
18998 esac
18999 libdir="$save_libdir"
19000 for dep in $dependency_libs; do
19001 case "$dep" in
19002 -L*)
19003 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19004 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19005 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19006 haveit=
19007 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19008 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19009 if test -n "$GCC"; then
19010 case $host_os in
19011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19012 esac
19013 fi
19014 fi
19015 if test -z "$haveit"; then
19016 haveit=
19017 for x in $LDFLAGS $LIBICONV; do
19018
19019 acl_save_prefix="$prefix"
19020 prefix="$acl_final_prefix"
19021 acl_save_exec_prefix="$exec_prefix"
19022 exec_prefix="$acl_final_exec_prefix"
19023 eval x=\"$x\"
19024 exec_prefix="$acl_save_exec_prefix"
19025 prefix="$acl_save_prefix"
19026
19027 if test "X$x" = "X-L$additional_libdir"; then
19028 haveit=yes
19029 break
19030 fi
19031 done
19032 if test -z "$haveit"; then
19033 if test -d "$additional_libdir"; then
19034 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19035 fi
19036 fi
19037 haveit=
19038 for x in $LDFLAGS $LTLIBICONV; do
19039
19040 acl_save_prefix="$prefix"
19041 prefix="$acl_final_prefix"
19042 acl_save_exec_prefix="$exec_prefix"
19043 exec_prefix="$acl_final_exec_prefix"
19044 eval x=\"$x\"
19045 exec_prefix="$acl_save_exec_prefix"
19046 prefix="$acl_save_prefix"
19047
19048 if test "X$x" = "X-L$additional_libdir"; then
19049 haveit=yes
19050 break
19051 fi
19052 done
19053 if test -z "$haveit"; then
19054 if test -d "$additional_libdir"; then
19055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19056 fi
19057 fi
19058 fi
19059 fi
19060 ;;
19061 -R*)
19062 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19063 if test "$enable_rpath" != no; then
19064 haveit=
19065 for x in $rpathdirs; do
19066 if test "X$x" = "X$dir"; then
19067 haveit=yes
19068 break
19069 fi
19070 done
19071 if test -z "$haveit"; then
19072 rpathdirs="$rpathdirs $dir"
19073 fi
19074 haveit=
19075 for x in $ltrpathdirs; do
19076 if test "X$x" = "X$dir"; then
19077 haveit=yes
19078 break
19079 fi
19080 done
19081 if test -z "$haveit"; then
19082 ltrpathdirs="$ltrpathdirs $dir"
19083 fi
19084 fi
19085 ;;
19086 -l*)
19087 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19088 ;;
19089 *.la)
19090 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19091 ;;
19092 *)
19093 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19094 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19095 ;;
19096 esac
19097 done
19098 fi
19099 else
19100 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19102 fi
19103 fi
19104 fi
19105 done
19106 done
19107 if test "X$rpathdirs" != "X"; then
19108 if test -n "$acl_hardcode_libdir_separator"; then
19109 alldirs=
19110 for found_dir in $rpathdirs; do
19111 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19112 done
19113 acl_save_libdir="$libdir"
19114 libdir="$alldirs"
19115 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19116 libdir="$acl_save_libdir"
19117 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19118 else
19119 for found_dir in $rpathdirs; do
19120 acl_save_libdir="$libdir"
19121 libdir="$found_dir"
19122 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19123 libdir="$acl_save_libdir"
19124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19125 done
19126 fi
19127 fi
19128 if test "X$ltrpathdirs" != "X"; then
19129 for found_dir in $ltrpathdirs; do
19130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19131 done
19132 fi
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145 am_save_CPPFLAGS="$CPPFLAGS"
19146
19147 for element in $INCICONV; do
19148 haveit=
19149 for x in $CPPFLAGS; do
19150
19151 acl_save_prefix="$prefix"
19152 prefix="$acl_final_prefix"
19153 acl_save_exec_prefix="$exec_prefix"
19154 exec_prefix="$acl_final_exec_prefix"
19155 eval x=\"$x\"
19156 exec_prefix="$acl_save_exec_prefix"
19157 prefix="$acl_save_prefix"
19158
19159 if test "X$x" = "X$element"; then
19160 haveit=yes
19161 break
19162 fi
19163 done
19164 if test -z "$haveit"; then
19165 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19166 fi
19167 done
19168
19169
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19171 $as_echo_n "checking for iconv... " >&6; }
19172 if ${am_cv_func_iconv+:} false; then :
19173 $as_echo_n "(cached) " >&6
19174 else
19175
19176 am_cv_func_iconv="no, consider installing GNU libiconv"
19177 am_cv_lib_iconv=no
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <stdlib.h>
19181 #include <iconv.h>
19182 int
19183 main ()
19184 {
19185 iconv_t cd = iconv_open("","");
19186 iconv(cd,NULL,NULL,NULL,NULL);
19187 iconv_close(cd);
19188 ;
19189 return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_link "$LINENO"; then :
19193 am_cv_func_iconv=yes
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197 if test "$am_cv_func_iconv" != yes; then
19198 am_save_LIBS="$LIBS"
19199 LIBS="$LIBS $LIBICONV"
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19202 #include <stdlib.h>
19203 #include <iconv.h>
19204 int
19205 main ()
19206 {
19207 iconv_t cd = iconv_open("","");
19208 iconv(cd,NULL,NULL,NULL,NULL);
19209 iconv_close(cd);
19210 ;
19211 return 0;
19212 }
19213 _ACEOF
19214 if ac_fn_c_try_link "$LINENO"; then :
19215 am_cv_lib_iconv=yes
19216 am_cv_func_iconv=yes
19217 fi
19218 rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 LIBS="$am_save_LIBS"
19221 fi
19222
19223 fi
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19225 $as_echo "$am_cv_func_iconv" >&6; }
19226 if test "$am_cv_func_iconv" = yes; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19228 $as_echo_n "checking for working iconv... " >&6; }
19229 if ${am_cv_func_iconv_works+:} false; then :
19230 $as_echo_n "(cached) " >&6
19231 else
19232
19233 am_save_LIBS="$LIBS"
19234 if test $am_cv_lib_iconv = yes; then
19235 LIBS="$LIBS $LIBICONV"
19236 fi
19237 if test "$cross_compiling" = yes; then :
19238 case "$host_os" in
19239 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19240 *) am_cv_func_iconv_works="guessing yes" ;;
19241 esac
19242 else
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245
19246 #include <iconv.h>
19247 #include <string.h>
19248 int main ()
19249 {
19250 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19251 returns. */
19252 {
19253 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19254 if (cd_utf8_to_88591 != (iconv_t)(-1))
19255 {
19256 static const char input[] = "\342\202\254"; /* EURO SIGN */
19257 char buf[10];
19258 const char *inptr = input;
19259 size_t inbytesleft = strlen (input);
19260 char *outptr = buf;
19261 size_t outbytesleft = sizeof (buf);
19262 size_t res = iconv (cd_utf8_to_88591,
19263 (char **) &inptr, &inbytesleft,
19264 &outptr, &outbytesleft);
19265 if (res == 0)
19266 return 1;
19267 }
19268 }
19269 /* Test against Solaris 10 bug: Failures are not distinguishable from
19270 successful returns. */
19271 {
19272 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19273 if (cd_ascii_to_88591 != (iconv_t)(-1))
19274 {
19275 static const char input[] = "\263";
19276 char buf[10];
19277 const char *inptr = input;
19278 size_t inbytesleft = strlen (input);
19279 char *outptr = buf;
19280 size_t outbytesleft = sizeof (buf);
19281 size_t res = iconv (cd_ascii_to_88591,
19282 (char **) &inptr, &inbytesleft,
19283 &outptr, &outbytesleft);
19284 if (res == 0)
19285 return 1;
19286 }
19287 }
19288 #if 0 /* This bug could be worked around by the caller. */
19289 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19290 {
19291 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19292 if (cd_88591_to_utf8 != (iconv_t)(-1))
19293 {
19294 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19295 char buf[50];
19296 const char *inptr = input;
19297 size_t inbytesleft = strlen (input);
19298 char *outptr = buf;
19299 size_t outbytesleft = sizeof (buf);
19300 size_t res = iconv (cd_88591_to_utf8,
19301 (char **) &inptr, &inbytesleft,
19302 &outptr, &outbytesleft);
19303 if ((int)res > 0)
19304 return 1;
19305 }
19306 }
19307 #endif
19308 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19309 provided. */
19310 if (/* Try standardized names. */
19311 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19312 /* Try IRIX, OSF/1 names. */
19313 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19314 /* Try AIX names. */
19315 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19316 /* Try HP-UX names. */
19317 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19318 return 1;
19319 return 0;
19320 }
19321 _ACEOF
19322 if ac_fn_c_try_run "$LINENO"; then :
19323 am_cv_func_iconv_works=yes
19324 else
19325 am_cv_func_iconv_works=no
19326 fi
19327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19328 conftest.$ac_objext conftest.beam conftest.$ac_ext
19329 fi
19330
19331 LIBS="$am_save_LIBS"
19332
19333 fi
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19335 $as_echo "$am_cv_func_iconv_works" >&6; }
19336 case "$am_cv_func_iconv_works" in
19337 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19338 *) am_func_iconv=yes ;;
19339 esac
19340 else
19341 am_func_iconv=no am_cv_lib_iconv=no
19342 fi
19343 if test "$am_func_iconv" = yes; then
19344
19345 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19346
19347 fi
19348 if test "$am_cv_lib_iconv" = yes; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19350 $as_echo_n "checking how to link with libiconv... " >&6; }
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19352 $as_echo "$LIBICONV" >&6; }
19353 else
19354 CPPFLAGS="$am_save_CPPFLAGS"
19355 LIBICONV=
19356 LTLIBICONV=
19357 fi
19358
19359
19360
19361 if test "$am_cv_func_iconv" = yes; then
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19363 $as_echo_n "checking for iconv declaration... " >&6; }
19364 if ${am_cv_proto_iconv+:} false; then :
19365 $as_echo_n "(cached) " >&6
19366 else
19367
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19370
19371 #include <stdlib.h>
19372 #include <iconv.h>
19373 extern
19374 #ifdef __cplusplus
19375 "C"
19376 #endif
19377 #if defined(__STDC__) || defined(__cplusplus)
19378 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19379 #else
19380 size_t iconv();
19381 #endif
19382
19383 int
19384 main ()
19385 {
19386
19387 ;
19388 return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392 am_cv_proto_iconv_arg1=""
19393 else
19394 am_cv_proto_iconv_arg1="const"
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 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);"
19398 fi
19399
19400 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19402 $am_cv_proto_iconv" >&5
19403 $as_echo "
19404 $am_cv_proto_iconv" >&6; }
19405
19406 cat >>confdefs.h <<_ACEOF
19407 #define ICONV_CONST $am_cv_proto_iconv_arg1
19408 _ACEOF
19409
19410 fi
19411
19412 case $am_cv_func_iconv in #(
19413 yes) :
19414 ;; #(
19415 *) :
19416
19417 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
19418 case $cy_iconv_prefix_arg in #(
19419 -I*) :
19420
19421
19422 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
19423 haveit=
19424 for x in $cy_iconv_prefixes; do
19425
19426 acl_save_prefix="$prefix"
19427 prefix="$acl_final_prefix"
19428 acl_save_exec_prefix="$exec_prefix"
19429 exec_prefix="$acl_final_exec_prefix"
19430 eval x=\"$x\"
19431 exec_prefix="$acl_save_exec_prefix"
19432 prefix="$acl_save_prefix"
19433
19434 if test "X$x" = "X$element"; then
19435 haveit=yes
19436 break
19437 fi
19438 done
19439 if test -z "$haveit"; then
19440 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19441 fi
19442 done
19443
19444 ;; #(
19445 -L*) :
19446
19447
19448 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
19449 haveit=
19450 for x in $cy_iconv_prefixes; do
19451
19452 acl_save_prefix="$prefix"
19453 prefix="$acl_final_prefix"
19454 acl_save_exec_prefix="$exec_prefix"
19455 exec_prefix="$acl_final_exec_prefix"
19456 eval x=\"$x\"
19457 exec_prefix="$acl_save_exec_prefix"
19458 prefix="$acl_save_prefix"
19459
19460 if test "X$x" = "X$element"; then
19461 haveit=yes
19462 break
19463 fi
19464 done
19465 if test -z "$haveit"; then
19466 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19467 fi
19468 done
19469
19470 ;; #(
19471 *) :
19472 ;;
19473 esac
19474 done
19475 for with_libiconv_prefix in $cy_iconv_prefixes; do
19476 { am_cv_func_iconv=; unset am_cv_func_iconv;}
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488 use_additional=yes
19489
19490 acl_save_prefix="$prefix"
19491 prefix="$acl_final_prefix"
19492 acl_save_exec_prefix="$exec_prefix"
19493 exec_prefix="$acl_final_exec_prefix"
19494
19495 eval additional_includedir=\"$includedir\"
19496 eval additional_libdir=\"$libdir\"
19497
19498 exec_prefix="$acl_save_exec_prefix"
19499 prefix="$acl_save_prefix"
19500
19501
19502 # Check whether --with-libiconv-prefix was given.
19503 if test "${with_libiconv_prefix+set}" = set; then :
19504 withval=$with_libiconv_prefix;
19505 if test "X$withval" = "Xno"; then
19506 use_additional=no
19507 else
19508 if test "X$withval" = "X"; then
19509
19510 acl_save_prefix="$prefix"
19511 prefix="$acl_final_prefix"
19512 acl_save_exec_prefix="$exec_prefix"
19513 exec_prefix="$acl_final_exec_prefix"
19514
19515 eval additional_includedir=\"$includedir\"
19516 eval additional_libdir=\"$libdir\"
19517
19518 exec_prefix="$acl_save_exec_prefix"
19519 prefix="$acl_save_prefix"
19520
19521 else
19522 additional_includedir="$withval/include"
19523 additional_libdir="$withval/$acl_libdirstem"
19524 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19525 && ! test -d "$withval/$acl_libdirstem"; then
19526 additional_libdir="$withval/$acl_libdirstem2"
19527 fi
19528 fi
19529 fi
19530
19531 fi
19532
19533 LIBICONV=
19534 LTLIBICONV=
19535 INCICONV=
19536 LIBICONV_PREFIX=
19537 HAVE_LIBICONV=
19538 rpathdirs=
19539 ltrpathdirs=
19540 names_already_handled=
19541 names_next_round='iconv '
19542 while test -n "$names_next_round"; do
19543 names_this_round="$names_next_round"
19544 names_next_round=
19545 for name in $names_this_round; do
19546 already_handled=
19547 for n in $names_already_handled; do
19548 if test "$n" = "$name"; then
19549 already_handled=yes
19550 break
19551 fi
19552 done
19553 if test -z "$already_handled"; then
19554 names_already_handled="$names_already_handled $name"
19555 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19556 eval value=\"\$HAVE_LIB$uppername\"
19557 if test -n "$value"; then
19558 if test "$value" = yes; then
19559 eval value=\"\$LIB$uppername\"
19560 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19561 eval value=\"\$LTLIB$uppername\"
19562 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19563 else
19564 :
19565 fi
19566 else
19567 found_dir=
19568 found_la=
19569 found_so=
19570 found_a=
19571 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19572 if test -n "$acl_shlibext"; then
19573 shrext=".$acl_shlibext" # typically: shrext=.so
19574 else
19575 shrext=
19576 fi
19577 if test $use_additional = yes; then
19578 dir="$additional_libdir"
19579 if test -n "$acl_shlibext"; then
19580 if test -f "$dir/$libname$shrext"; then
19581 found_dir="$dir"
19582 found_so="$dir/$libname$shrext"
19583 else
19584 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19585 ver=`(cd "$dir" && \
19586 for f in "$libname$shrext".*; do echo "$f"; done \
19587 | sed -e "s,^$libname$shrext\\\\.,," \
19588 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19589 | sed 1q ) 2>/dev/null`
19590 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19591 found_dir="$dir"
19592 found_so="$dir/$libname$shrext.$ver"
19593 fi
19594 else
19595 eval library_names=\"$acl_library_names_spec\"
19596 for f in $library_names; do
19597 if test -f "$dir/$f"; then
19598 found_dir="$dir"
19599 found_so="$dir/$f"
19600 break
19601 fi
19602 done
19603 fi
19604 fi
19605 fi
19606 if test "X$found_dir" = "X"; then
19607 if test -f "$dir/$libname.$acl_libext"; then
19608 found_dir="$dir"
19609 found_a="$dir/$libname.$acl_libext"
19610 fi
19611 fi
19612 if test "X$found_dir" != "X"; then
19613 if test -f "$dir/$libname.la"; then
19614 found_la="$dir/$libname.la"
19615 fi
19616 fi
19617 fi
19618 if test "X$found_dir" = "X"; then
19619 for x in $LDFLAGS $LTLIBICONV; do
19620
19621 acl_save_prefix="$prefix"
19622 prefix="$acl_final_prefix"
19623 acl_save_exec_prefix="$exec_prefix"
19624 exec_prefix="$acl_final_exec_prefix"
19625 eval x=\"$x\"
19626 exec_prefix="$acl_save_exec_prefix"
19627 prefix="$acl_save_prefix"
19628
19629 case "$x" in
19630 -L*)
19631 dir=`echo "X$x" | sed -e 's/^X-L//'`
19632 if test -n "$acl_shlibext"; then
19633 if test -f "$dir/$libname$shrext"; then
19634 found_dir="$dir"
19635 found_so="$dir/$libname$shrext"
19636 else
19637 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19638 ver=`(cd "$dir" && \
19639 for f in "$libname$shrext".*; do echo "$f"; done \
19640 | sed -e "s,^$libname$shrext\\\\.,," \
19641 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19642 | sed 1q ) 2>/dev/null`
19643 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19644 found_dir="$dir"
19645 found_so="$dir/$libname$shrext.$ver"
19646 fi
19647 else
19648 eval library_names=\"$acl_library_names_spec\"
19649 for f in $library_names; do
19650 if test -f "$dir/$f"; then
19651 found_dir="$dir"
19652 found_so="$dir/$f"
19653 break
19654 fi
19655 done
19656 fi
19657 fi
19658 fi
19659 if test "X$found_dir" = "X"; then
19660 if test -f "$dir/$libname.$acl_libext"; then
19661 found_dir="$dir"
19662 found_a="$dir/$libname.$acl_libext"
19663 fi
19664 fi
19665 if test "X$found_dir" != "X"; then
19666 if test -f "$dir/$libname.la"; then
19667 found_la="$dir/$libname.la"
19668 fi
19669 fi
19670 ;;
19671 esac
19672 if test "X$found_dir" != "X"; then
19673 break
19674 fi
19675 done
19676 fi
19677 if test "X$found_dir" != "X"; then
19678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19679 if test "X$found_so" != "X"; then
19680 if test "$enable_rpath" = no \
19681 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19682 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19683 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19684 else
19685 haveit=
19686 for x in $ltrpathdirs; do
19687 if test "X$x" = "X$found_dir"; then
19688 haveit=yes
19689 break
19690 fi
19691 done
19692 if test -z "$haveit"; then
19693 ltrpathdirs="$ltrpathdirs $found_dir"
19694 fi
19695 if test "$acl_hardcode_direct" = yes; then
19696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19697 else
19698 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19699 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19700 haveit=
19701 for x in $rpathdirs; do
19702 if test "X$x" = "X$found_dir"; then
19703 haveit=yes
19704 break
19705 fi
19706 done
19707 if test -z "$haveit"; then
19708 rpathdirs="$rpathdirs $found_dir"
19709 fi
19710 else
19711 haveit=
19712 for x in $LDFLAGS $LIBICONV; do
19713
19714 acl_save_prefix="$prefix"
19715 prefix="$acl_final_prefix"
19716 acl_save_exec_prefix="$exec_prefix"
19717 exec_prefix="$acl_final_exec_prefix"
19718 eval x=\"$x\"
19719 exec_prefix="$acl_save_exec_prefix"
19720 prefix="$acl_save_prefix"
19721
19722 if test "X$x" = "X-L$found_dir"; then
19723 haveit=yes
19724 break
19725 fi
19726 done
19727 if test -z "$haveit"; then
19728 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19729 fi
19730 if test "$acl_hardcode_minus_L" != no; then
19731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19732 else
19733 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19734 fi
19735 fi
19736 fi
19737 fi
19738 else
19739 if test "X$found_a" != "X"; then
19740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19741 else
19742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19743 fi
19744 fi
19745 additional_includedir=
19746 case "$found_dir" in
19747 */$acl_libdirstem | */$acl_libdirstem/)
19748 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19749 if test "$name" = 'iconv'; then
19750 LIBICONV_PREFIX="$basedir"
19751 fi
19752 additional_includedir="$basedir/include"
19753 ;;
19754 */$acl_libdirstem2 | */$acl_libdirstem2/)
19755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19756 if test "$name" = 'iconv'; then
19757 LIBICONV_PREFIX="$basedir"
19758 fi
19759 additional_includedir="$basedir/include"
19760 ;;
19761 esac
19762 if test "X$additional_includedir" != "X"; then
19763 if test "X$additional_includedir" != "X/usr/include"; then
19764 haveit=
19765 if test "X$additional_includedir" = "X/usr/local/include"; then
19766 if test -n "$GCC"; then
19767 case $host_os in
19768 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19769 esac
19770 fi
19771 fi
19772 if test -z "$haveit"; then
19773 for x in $CPPFLAGS $INCICONV; do
19774
19775 acl_save_prefix="$prefix"
19776 prefix="$acl_final_prefix"
19777 acl_save_exec_prefix="$exec_prefix"
19778 exec_prefix="$acl_final_exec_prefix"
19779 eval x=\"$x\"
19780 exec_prefix="$acl_save_exec_prefix"
19781 prefix="$acl_save_prefix"
19782
19783 if test "X$x" = "X-I$additional_includedir"; then
19784 haveit=yes
19785 break
19786 fi
19787 done
19788 if test -z "$haveit"; then
19789 if test -d "$additional_includedir"; then
19790 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19791 fi
19792 fi
19793 fi
19794 fi
19795 fi
19796 if test -n "$found_la"; then
19797 save_libdir="$libdir"
19798 case "$found_la" in
19799 */* | *\\*) . "$found_la" ;;
19800 *) . "./$found_la" ;;
19801 esac
19802 libdir="$save_libdir"
19803 for dep in $dependency_libs; do
19804 case "$dep" in
19805 -L*)
19806 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19807 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19808 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19809 haveit=
19810 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19811 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19812 if test -n "$GCC"; then
19813 case $host_os in
19814 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19815 esac
19816 fi
19817 fi
19818 if test -z "$haveit"; then
19819 haveit=
19820 for x in $LDFLAGS $LIBICONV; do
19821
19822 acl_save_prefix="$prefix"
19823 prefix="$acl_final_prefix"
19824 acl_save_exec_prefix="$exec_prefix"
19825 exec_prefix="$acl_final_exec_prefix"
19826 eval x=\"$x\"
19827 exec_prefix="$acl_save_exec_prefix"
19828 prefix="$acl_save_prefix"
19829
19830 if test "X$x" = "X-L$additional_libdir"; then
19831 haveit=yes
19832 break
19833 fi
19834 done
19835 if test -z "$haveit"; then
19836 if test -d "$additional_libdir"; then
19837 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19838 fi
19839 fi
19840 haveit=
19841 for x in $LDFLAGS $LTLIBICONV; do
19842
19843 acl_save_prefix="$prefix"
19844 prefix="$acl_final_prefix"
19845 acl_save_exec_prefix="$exec_prefix"
19846 exec_prefix="$acl_final_exec_prefix"
19847 eval x=\"$x\"
19848 exec_prefix="$acl_save_exec_prefix"
19849 prefix="$acl_save_prefix"
19850
19851 if test "X$x" = "X-L$additional_libdir"; then
19852 haveit=yes
19853 break
19854 fi
19855 done
19856 if test -z "$haveit"; then
19857 if test -d "$additional_libdir"; then
19858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19859 fi
19860 fi
19861 fi
19862 fi
19863 ;;
19864 -R*)
19865 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19866 if test "$enable_rpath" != no; then
19867 haveit=
19868 for x in $rpathdirs; do
19869 if test "X$x" = "X$dir"; then
19870 haveit=yes
19871 break
19872 fi
19873 done
19874 if test -z "$haveit"; then
19875 rpathdirs="$rpathdirs $dir"
19876 fi
19877 haveit=
19878 for x in $ltrpathdirs; do
19879 if test "X$x" = "X$dir"; then
19880 haveit=yes
19881 break
19882 fi
19883 done
19884 if test -z "$haveit"; then
19885 ltrpathdirs="$ltrpathdirs $dir"
19886 fi
19887 fi
19888 ;;
19889 -l*)
19890 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19891 ;;
19892 *.la)
19893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19894 ;;
19895 *)
19896 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19898 ;;
19899 esac
19900 done
19901 fi
19902 else
19903 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19905 fi
19906 fi
19907 fi
19908 done
19909 done
19910 if test "X$rpathdirs" != "X"; then
19911 if test -n "$acl_hardcode_libdir_separator"; then
19912 alldirs=
19913 for found_dir in $rpathdirs; do
19914 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19915 done
19916 acl_save_libdir="$libdir"
19917 libdir="$alldirs"
19918 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19919 libdir="$acl_save_libdir"
19920 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19921 else
19922 for found_dir in $rpathdirs; do
19923 acl_save_libdir="$libdir"
19924 libdir="$found_dir"
19925 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19926 libdir="$acl_save_libdir"
19927 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19928 done
19929 fi
19930 fi
19931 if test "X$ltrpathdirs" != "X"; then
19932 for found_dir in $ltrpathdirs; do
19933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19934 done
19935 fi
19936
19937
19938
19939
19940
19941
19942
19943
19944 done
19945 ;;
19946 esac
19947 case $am_cv_func_iconv in #(
19948 yes) :
19949 ;; #(
19950 *) :
19951 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
19952 esac
19953 ac_ext=cpp
19954 ac_cpp='$CXXCPP $CPPFLAGS'
19955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19958
19959 SO=$acl_shlibext
19960
19961 if test "x$CY_OBJECTIVEC" = x1; then :
19962
19963 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
19965
19966 if test -n "$ac_tool_prefix"; then
19967 for ac_prog in otool
19968 do
19969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19972 $as_echo_n "checking for $ac_word... " >&6; }
19973 if ${ac_cv_prog__OTOOL+:} false; then :
19974 $as_echo_n "(cached) " >&6
19975 else
19976 if test -n "$_OTOOL"; then
19977 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
19978 else
19979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19980 for as_dir in $PATH
19981 do
19982 IFS=$as_save_IFS
19983 test -z "$as_dir" && as_dir=.
19984 for ac_exec_ext in '' $ac_executable_extensions; do
19985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19986 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
19987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19988 break 2
19989 fi
19990 done
19991 done
19992 IFS=$as_save_IFS
19993
19994 fi
19995 fi
19996 _OTOOL=$ac_cv_prog__OTOOL
19997 if test -n "$_OTOOL"; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
19999 $as_echo "$_OTOOL" >&6; }
20000 else
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20002 $as_echo "no" >&6; }
20003 fi
20004
20005
20006 test -n "$_OTOOL" && break
20007 done
20008 fi
20009 if test -z "$_OTOOL"; then
20010 ac_ct__OTOOL=$_OTOOL
20011 for ac_prog in otool
20012 do
20013 # Extract the first word of "$ac_prog", so it can be a program name with args.
20014 set dummy $ac_prog; ac_word=$2
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20016 $as_echo_n "checking for $ac_word... " >&6; }
20017 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20018 $as_echo_n "(cached) " >&6
20019 else
20020 if test -n "$ac_ct__OTOOL"; then
20021 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20022 else
20023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024 for as_dir in $PATH
20025 do
20026 IFS=$as_save_IFS
20027 test -z "$as_dir" && as_dir=.
20028 for ac_exec_ext in '' $ac_executable_extensions; do
20029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20030 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20032 break 2
20033 fi
20034 done
20035 done
20036 IFS=$as_save_IFS
20037
20038 fi
20039 fi
20040 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20041 if test -n "$ac_ct__OTOOL"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20043 $as_echo "$ac_ct__OTOOL" >&6; }
20044 else
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20047 fi
20048
20049
20050 test -n "$ac_ct__OTOOL" && break
20051 done
20052
20053 if test "x$ac_ct__OTOOL" = x; then
20054 _OTOOL=""
20055 else
20056 case $cross_compiling:$ac_tool_warned in
20057 yes:)
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20060 ac_tool_warned=yes ;;
20061 esac
20062 _OTOOL=$ac_ct__OTOOL
20063 fi
20064 fi
20065
20066 if test "x$_OTOOL" = x; then :
20067 as_fn_error $? "You need otool" "$LINENO" 5
20068 fi
20069 if test -n "$ac_tool_prefix"; then
20070 for ac_prog in lipo
20071 do
20072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20075 $as_echo_n "checking for $ac_word... " >&6; }
20076 if ${ac_cv_prog__LIPO+:} false; then :
20077 $as_echo_n "(cached) " >&6
20078 else
20079 if test -n "$_LIPO"; then
20080 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20081 else
20082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20083 for as_dir in $PATH
20084 do
20085 IFS=$as_save_IFS
20086 test -z "$as_dir" && as_dir=.
20087 for ac_exec_ext in '' $ac_executable_extensions; do
20088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20089 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20091 break 2
20092 fi
20093 done
20094 done
20095 IFS=$as_save_IFS
20096
20097 fi
20098 fi
20099 _LIPO=$ac_cv_prog__LIPO
20100 if test -n "$_LIPO"; then
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20102 $as_echo "$_LIPO" >&6; }
20103 else
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20105 $as_echo "no" >&6; }
20106 fi
20107
20108
20109 test -n "$_LIPO" && break
20110 done
20111 fi
20112 if test -z "$_LIPO"; then
20113 ac_ct__LIPO=$_LIPO
20114 for ac_prog in lipo
20115 do
20116 # Extract the first word of "$ac_prog", so it can be a program name with args.
20117 set dummy $ac_prog; ac_word=$2
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20119 $as_echo_n "checking for $ac_word... " >&6; }
20120 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20121 $as_echo_n "(cached) " >&6
20122 else
20123 if test -n "$ac_ct__LIPO"; then
20124 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20125 else
20126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20127 for as_dir in $PATH
20128 do
20129 IFS=$as_save_IFS
20130 test -z "$as_dir" && as_dir=.
20131 for ac_exec_ext in '' $ac_executable_extensions; do
20132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20133 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20135 break 2
20136 fi
20137 done
20138 done
20139 IFS=$as_save_IFS
20140
20141 fi
20142 fi
20143 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20144 if test -n "$ac_ct__LIPO"; then
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20146 $as_echo "$ac_ct__LIPO" >&6; }
20147 else
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20150 fi
20151
20152
20153 test -n "$ac_ct__LIPO" && break
20154 done
20155
20156 if test "x$ac_ct__LIPO" = x; then
20157 _LIPO=""
20158 else
20159 case $cross_compiling:$ac_tool_warned in
20160 yes:)
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20163 ac_tool_warned=yes ;;
20164 esac
20165 _LIPO=$ac_ct__LIPO
20166 fi
20167 fi
20168
20169 if test "x$_LIPO" = x; then :
20170 as_fn_error $? "You need lipo" "$LINENO" 5
20171 fi
20172 if test -n "$ac_tool_prefix"; then
20173 for ac_prog in nm
20174 do
20175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20178 $as_echo_n "checking for $ac_word... " >&6; }
20179 if ${ac_cv_prog__NM+:} false; then :
20180 $as_echo_n "(cached) " >&6
20181 else
20182 if test -n "$_NM"; then
20183 ac_cv_prog__NM="$_NM" # Let the user override the test.
20184 else
20185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20186 for as_dir in $PATH
20187 do
20188 IFS=$as_save_IFS
20189 test -z "$as_dir" && as_dir=.
20190 for ac_exec_ext in '' $ac_executable_extensions; do
20191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20192 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20194 break 2
20195 fi
20196 done
20197 done
20198 IFS=$as_save_IFS
20199
20200 fi
20201 fi
20202 _NM=$ac_cv_prog__NM
20203 if test -n "$_NM"; then
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20205 $as_echo "$_NM" >&6; }
20206 else
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20208 $as_echo "no" >&6; }
20209 fi
20210
20211
20212 test -n "$_NM" && break
20213 done
20214 fi
20215 if test -z "$_NM"; then
20216 ac_ct__NM=$_NM
20217 for ac_prog in nm
20218 do
20219 # Extract the first word of "$ac_prog", so it can be a program name with args.
20220 set dummy $ac_prog; ac_word=$2
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20222 $as_echo_n "checking for $ac_word... " >&6; }
20223 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20224 $as_echo_n "(cached) " >&6
20225 else
20226 if test -n "$ac_ct__NM"; then
20227 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20228 else
20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20231 do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20236 ac_cv_prog_ac_ct__NM="$ac_prog"
20237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20238 break 2
20239 fi
20240 done
20241 done
20242 IFS=$as_save_IFS
20243
20244 fi
20245 fi
20246 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20247 if test -n "$ac_ct__NM"; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20249 $as_echo "$ac_ct__NM" >&6; }
20250 else
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20252 $as_echo "no" >&6; }
20253 fi
20254
20255
20256 test -n "$ac_ct__NM" && break
20257 done
20258
20259 if test "x$ac_ct__NM" = x; then
20260 _NM=""
20261 else
20262 case $cross_compiling:$ac_tool_warned in
20263 yes:)
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20266 ac_tool_warned=yes ;;
20267 esac
20268 _NM=$ac_ct__NM
20269 fi
20270 fi
20271
20272 if test "x$_NM" = x; then :
20273 as_fn_error $? "You need nm" "$LINENO" 5
20274 fi
20275 CY_OBJECTIVEC_MACH=1
20276
20277 CY_ATTACH_GROUP=procmod
20278
20279
20280 fi
20281
20282
20283
20284 fi
20285 if test "x$GMAKE" != xmake; then :
20286
20287 ac_config_files="$ac_config_files Makefile"
20288
20289
20290 fi
20291 ac_config_files="$ac_config_files GNUmakefile"
20292
20293 cat >confcache <<\_ACEOF
20294 # This file is a shell script that caches the results of configure
20295 # tests run on this system so they can be shared between configure
20296 # scripts and configure runs, see configure's option --config-cache.
20297 # It is not useful on other systems. If it contains results you don't
20298 # want to keep, you may remove or edit it.
20299 #
20300 # config.status only pays attention to the cache file if you give it
20301 # the --recheck option to rerun configure.
20302 #
20303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20305 # following values.
20306
20307 _ACEOF
20308
20309 # The following way of writing the cache mishandles newlines in values,
20310 # but we know of no workaround that is simple, portable, and efficient.
20311 # So, we kill variables containing newlines.
20312 # Ultrix sh set writes to stderr and can't be redirected directly,
20313 # and sets the high bit in the cache file unless we assign to the vars.
20314 (
20315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20316 eval ac_val=\$$ac_var
20317 case $ac_val in #(
20318 *${as_nl}*)
20319 case $ac_var in #(
20320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20322 esac
20323 case $ac_var in #(
20324 _ | IFS | as_nl) ;; #(
20325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20326 *) { eval $ac_var=; unset $ac_var;} ;;
20327 esac ;;
20328 esac
20329 done
20330
20331 (set) 2>&1 |
20332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20333 *${as_nl}ac_space=\ *)
20334 # `set' does not quote correctly, so add quotes: double-quote
20335 # substitution turns \\\\ into \\, and sed turns \\ into \.
20336 sed -n \
20337 "s/'/'\\\\''/g;
20338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20339 ;; #(
20340 *)
20341 # `set' quotes correctly as required by POSIX, so do not add quotes.
20342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20343 ;;
20344 esac |
20345 sort
20346 ) |
20347 sed '
20348 /^ac_cv_env_/b end
20349 t clear
20350 :clear
20351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20352 t end
20353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20354 :end' >>confcache
20355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20356 if test -w "$cache_file"; then
20357 if test "x$cache_file" != "x/dev/null"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20359 $as_echo "$as_me: updating cache $cache_file" >&6;}
20360 if test ! -f "$cache_file" || test -h "$cache_file"; then
20361 cat confcache >"$cache_file"
20362 else
20363 case $cache_file in #(
20364 */* | ?:*)
20365 mv -f confcache "$cache_file"$$ &&
20366 mv -f "$cache_file"$$ "$cache_file" ;; #(
20367 *)
20368 mv -f confcache "$cache_file" ;;
20369 esac
20370 fi
20371 fi
20372 else
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20375 fi
20376 fi
20377 rm -f confcache
20378
20379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20380 # Let make expand exec_prefix.
20381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20382
20383 # Transform confdefs.h into DEFS.
20384 # Protect against shell expansion while executing Makefile rules.
20385 # Protect against Makefile macro expansion.
20386 #
20387 # If the first sed substitution is executed (which looks for macros that
20388 # take arguments), then branch to the quote section. Otherwise,
20389 # look for a macro that doesn't take arguments.
20390 ac_script='
20391 :mline
20392 /\\$/{
20393 N
20394 s,\\\n,,
20395 b mline
20396 }
20397 t clear
20398 :clear
20399 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20400 t quote
20401 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20402 t quote
20403 b any
20404 :quote
20405 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20406 s/\[/\\&/g
20407 s/\]/\\&/g
20408 s/\$/$$/g
20409 H
20410 :any
20411 ${
20412 g
20413 s/^\n//
20414 s/\n/ /g
20415 p
20416 }
20417 '
20418 DEFS=`sed -n "$ac_script" confdefs.h`
20419
20420
20421 ac_libobjs=
20422 ac_ltlibobjs=
20423 U=
20424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20425 # 1. Remove the extension, and $U if already installed.
20426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20429 # will be set to the directory where LIBOBJS objects are built.
20430 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20431 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20432 done
20433 LIBOBJS=$ac_libobjs
20434
20435 LTLIBOBJS=$ac_ltlibobjs
20436
20437
20438
20439 : "${CONFIG_STATUS=./config.status}"
20440 ac_write_fail=0
20441 ac_clean_files_save=$ac_clean_files
20442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20445 as_write_fail=0
20446 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20447 #! $SHELL
20448 # Generated by $as_me.
20449 # Run this file to recreate the current configuration.
20450 # Compiler output produced by configure, useful for debugging
20451 # configure, is in config.log if it exists.
20452
20453 debug=false
20454 ac_cs_recheck=false
20455 ac_cs_silent=false
20456
20457 SHELL=\${CONFIG_SHELL-$SHELL}
20458 export SHELL
20459 _ASEOF
20460 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20461 ## -------------------- ##
20462 ## M4sh Initialization. ##
20463 ## -------------------- ##
20464
20465 # Be more Bourne compatible
20466 DUALCASE=1; export DUALCASE # for MKS sh
20467 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20468 emulate sh
20469 NULLCMD=:
20470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20471 # is contrary to our usage. Disable this feature.
20472 alias -g '${1+"$@"}'='"$@"'
20473 setopt NO_GLOB_SUBST
20474 else
20475 case `(set -o) 2>/dev/null` in #(
20476 *posix*) :
20477 set -o posix ;; #(
20478 *) :
20479 ;;
20480 esac
20481 fi
20482
20483
20484 as_nl='
20485 '
20486 export as_nl
20487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20488 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20491 # Prefer a ksh shell builtin over an external printf program on Solaris,
20492 # but without wasting forks for bash or zsh.
20493 if test -z "$BASH_VERSION$ZSH_VERSION" \
20494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20495 as_echo='print -r --'
20496 as_echo_n='print -rn --'
20497 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20498 as_echo='printf %s\n'
20499 as_echo_n='printf %s'
20500 else
20501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20503 as_echo_n='/usr/ucb/echo -n'
20504 else
20505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20506 as_echo_n_body='eval
20507 arg=$1;
20508 case $arg in #(
20509 *"$as_nl"*)
20510 expr "X$arg" : "X\\(.*\\)$as_nl";
20511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20512 esac;
20513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20514 '
20515 export as_echo_n_body
20516 as_echo_n='sh -c $as_echo_n_body as_echo'
20517 fi
20518 export as_echo_body
20519 as_echo='sh -c $as_echo_body as_echo'
20520 fi
20521
20522 # The user is always right.
20523 if test "${PATH_SEPARATOR+set}" != set; then
20524 PATH_SEPARATOR=:
20525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20527 PATH_SEPARATOR=';'
20528 }
20529 fi
20530
20531
20532 # IFS
20533 # We need space, tab and new line, in precisely that order. Quoting is
20534 # there to prevent editors from complaining about space-tab.
20535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20536 # splitting by setting IFS to empty value.)
20537 IFS=" "" $as_nl"
20538
20539 # Find who we are. Look in the path if we contain no directory separator.
20540 as_myself=
20541 case $0 in #((
20542 *[\\/]* ) as_myself=$0 ;;
20543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544 for as_dir in $PATH
20545 do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20549 done
20550 IFS=$as_save_IFS
20551
20552 ;;
20553 esac
20554 # We did not find ourselves, most probably we were run as `sh COMMAND'
20555 # in which case we are not to be found in the path.
20556 if test "x$as_myself" = x; then
20557 as_myself=$0
20558 fi
20559 if test ! -f "$as_myself"; then
20560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561 exit 1
20562 fi
20563
20564 # Unset variables that we do not need and which cause bugs (e.g. in
20565 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20566 # suppresses any "Segmentation fault" message there. '((' could
20567 # trigger a bug in pdksh 5.2.14.
20568 for as_var in BASH_ENV ENV MAIL MAILPATH
20569 do eval test x\${$as_var+set} = xset \
20570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20571 done
20572 PS1='$ '
20573 PS2='> '
20574 PS4='+ '
20575
20576 # NLS nuisances.
20577 LC_ALL=C
20578 export LC_ALL
20579 LANGUAGE=C
20580 export LANGUAGE
20581
20582 # CDPATH.
20583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20584
20585
20586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20587 # ----------------------------------------
20588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20590 # script with STATUS, using 1 if that was 0.
20591 as_fn_error ()
20592 {
20593 as_status=$1; test $as_status -eq 0 && as_status=1
20594 if test "$4"; then
20595 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20597 fi
20598 $as_echo "$as_me: error: $2" >&2
20599 as_fn_exit $as_status
20600 } # as_fn_error
20601
20602
20603 # as_fn_set_status STATUS
20604 # -----------------------
20605 # Set $? to STATUS, without forking.
20606 as_fn_set_status ()
20607 {
20608 return $1
20609 } # as_fn_set_status
20610
20611 # as_fn_exit STATUS
20612 # -----------------
20613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20614 as_fn_exit ()
20615 {
20616 set +e
20617 as_fn_set_status $1
20618 exit $1
20619 } # as_fn_exit
20620
20621 # as_fn_unset VAR
20622 # ---------------
20623 # Portably unset VAR.
20624 as_fn_unset ()
20625 {
20626 { eval $1=; unset $1;}
20627 }
20628 as_unset=as_fn_unset
20629 # as_fn_append VAR VALUE
20630 # ----------------------
20631 # Append the text in VALUE to the end of the definition contained in VAR. Take
20632 # advantage of any shell optimizations that allow amortized linear growth over
20633 # repeated appends, instead of the typical quadratic growth present in naive
20634 # implementations.
20635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20636 eval 'as_fn_append ()
20637 {
20638 eval $1+=\$2
20639 }'
20640 else
20641 as_fn_append ()
20642 {
20643 eval $1=\$$1\$2
20644 }
20645 fi # as_fn_append
20646
20647 # as_fn_arith ARG...
20648 # ------------------
20649 # Perform arithmetic evaluation on the ARGs, and store the result in the
20650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20651 # must be portable across $(()) and expr.
20652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20653 eval 'as_fn_arith ()
20654 {
20655 as_val=$(( $* ))
20656 }'
20657 else
20658 as_fn_arith ()
20659 {
20660 as_val=`expr "$@" || test $? -eq 1`
20661 }
20662 fi # as_fn_arith
20663
20664
20665 if expr a : '\(a\)' >/dev/null 2>&1 &&
20666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20667 as_expr=expr
20668 else
20669 as_expr=false
20670 fi
20671
20672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20673 as_basename=basename
20674 else
20675 as_basename=false
20676 fi
20677
20678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20679 as_dirname=dirname
20680 else
20681 as_dirname=false
20682 fi
20683
20684 as_me=`$as_basename -- "$0" ||
20685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20686 X"$0" : 'X\(//\)$' \| \
20687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20688 $as_echo X/"$0" |
20689 sed '/^.*\/\([^/][^/]*\)\/*$/{
20690 s//\1/
20691 q
20692 }
20693 /^X\/\(\/\/\)$/{
20694 s//\1/
20695 q
20696 }
20697 /^X\/\(\/\).*/{
20698 s//\1/
20699 q
20700 }
20701 s/.*/./; q'`
20702
20703 # Avoid depending upon Character Ranges.
20704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20707 as_cr_digits='0123456789'
20708 as_cr_alnum=$as_cr_Letters$as_cr_digits
20709
20710 ECHO_C= ECHO_N= ECHO_T=
20711 case `echo -n x` in #(((((
20712 -n*)
20713 case `echo 'xy\c'` in
20714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20715 xy) ECHO_C='\c';;
20716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20717 ECHO_T=' ';;
20718 esac;;
20719 *)
20720 ECHO_N='-n';;
20721 esac
20722
20723 rm -f conf$$ conf$$.exe conf$$.file
20724 if test -d conf$$.dir; then
20725 rm -f conf$$.dir/conf$$.file
20726 else
20727 rm -f conf$$.dir
20728 mkdir conf$$.dir 2>/dev/null
20729 fi
20730 if (echo >conf$$.file) 2>/dev/null; then
20731 if ln -s conf$$.file conf$$ 2>/dev/null; then
20732 as_ln_s='ln -s'
20733 # ... but there are two gotchas:
20734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20736 # In both cases, we have to default to `cp -p'.
20737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20738 as_ln_s='cp -p'
20739 elif ln conf$$.file conf$$ 2>/dev/null; then
20740 as_ln_s=ln
20741 else
20742 as_ln_s='cp -p'
20743 fi
20744 else
20745 as_ln_s='cp -p'
20746 fi
20747 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20748 rmdir conf$$.dir 2>/dev/null
20749
20750
20751 # as_fn_mkdir_p
20752 # -------------
20753 # Create "$as_dir" as a directory, including parents if necessary.
20754 as_fn_mkdir_p ()
20755 {
20756
20757 case $as_dir in #(
20758 -*) as_dir=./$as_dir;;
20759 esac
20760 test -d "$as_dir" || eval $as_mkdir_p || {
20761 as_dirs=
20762 while :; do
20763 case $as_dir in #(
20764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20765 *) as_qdir=$as_dir;;
20766 esac
20767 as_dirs="'$as_qdir' $as_dirs"
20768 as_dir=`$as_dirname -- "$as_dir" ||
20769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20770 X"$as_dir" : 'X\(//\)[^/]' \| \
20771 X"$as_dir" : 'X\(//\)$' \| \
20772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20773 $as_echo X"$as_dir" |
20774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20775 s//\1/
20776 q
20777 }
20778 /^X\(\/\/\)[^/].*/{
20779 s//\1/
20780 q
20781 }
20782 /^X\(\/\/\)$/{
20783 s//\1/
20784 q
20785 }
20786 /^X\(\/\).*/{
20787 s//\1/
20788 q
20789 }
20790 s/.*/./; q'`
20791 test -d "$as_dir" && break
20792 done
20793 test -z "$as_dirs" || eval "mkdir $as_dirs"
20794 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20795
20796
20797 } # as_fn_mkdir_p
20798 if mkdir -p . 2>/dev/null; then
20799 as_mkdir_p='mkdir -p "$as_dir"'
20800 else
20801 test -d ./-p && rmdir ./-p
20802 as_mkdir_p=false
20803 fi
20804
20805 if test -x / >/dev/null 2>&1; then
20806 as_test_x='test -x'
20807 else
20808 if ls -dL / >/dev/null 2>&1; then
20809 as_ls_L_option=L
20810 else
20811 as_ls_L_option=
20812 fi
20813 as_test_x='
20814 eval sh -c '\''
20815 if test -d "$1"; then
20816 test -d "$1/.";
20817 else
20818 case $1 in #(
20819 -*)set "./$1";;
20820 esac;
20821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20822 ???[sx]*):;;*)false;;esac;fi
20823 '\'' sh
20824 '
20825 fi
20826 as_executable_p=$as_test_x
20827
20828 # Sed expression to map a string onto a valid CPP name.
20829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20830
20831 # Sed expression to map a string onto a valid variable name.
20832 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20833
20834
20835 exec 6>&1
20836 ## ----------------------------------- ##
20837 ## Main body of $CONFIG_STATUS script. ##
20838 ## ----------------------------------- ##
20839 _ASEOF
20840 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20841
20842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20843 # Save the log message, to keep $0 and so on meaningful, and to
20844 # report actual input values of CONFIG_FILES etc. instead of their
20845 # values after options handling.
20846 ac_log="
20847 This file was extended by Cycript $as_me 0.9, which was
20848 generated by GNU Autoconf 2.68. Invocation command line was
20849
20850 CONFIG_FILES = $CONFIG_FILES
20851 CONFIG_HEADERS = $CONFIG_HEADERS
20852 CONFIG_LINKS = $CONFIG_LINKS
20853 CONFIG_COMMANDS = $CONFIG_COMMANDS
20854 $ $0 $@
20855
20856 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20857 "
20858
20859 _ACEOF
20860
20861 case $ac_config_files in *"
20862 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20863 esac
20864
20865
20866
20867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20868 # Files that config.status was made for.
20869 config_files="$ac_config_files"
20870 config_commands="$ac_config_commands"
20871
20872 _ACEOF
20873
20874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20875 ac_cs_usage="\
20876 \`$as_me' instantiates files and other configuration actions
20877 from templates according to the current configuration. Unless the files
20878 and actions are specified as TAGs, all are instantiated by default.
20879
20880 Usage: $0 [OPTION]... [TAG]...
20881
20882 -h, --help print this help, then exit
20883 -V, --version print version number and configuration settings, then exit
20884 --config print configuration, then exit
20885 -q, --quiet, --silent
20886 do not print progress messages
20887 -d, --debug don't remove temporary files
20888 --recheck update $as_me by reconfiguring in the same conditions
20889 --file=FILE[:TEMPLATE]
20890 instantiate the configuration file FILE
20891
20892 Configuration files:
20893 $config_files
20894
20895 Configuration commands:
20896 $config_commands
20897
20898 Report bugs to <saurik@saurik.com>.
20899 Cycript home page: <http://www.cycript.org/>."
20900
20901 _ACEOF
20902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20904 ac_cs_version="\\
20905 Cycript config.status 0.9
20906 configured by $0, generated by GNU Autoconf 2.68,
20907 with options \\"\$ac_cs_config\\"
20908
20909 Copyright (C) 2010 Free Software Foundation, Inc.
20910 This config.status script is free software; the Free Software Foundation
20911 gives unlimited permission to copy, distribute and modify it."
20912
20913 ac_pwd='$ac_pwd'
20914 srcdir='$srcdir'
20915 INSTALL='$INSTALL'
20916 test -n "\$AWK" || AWK=awk
20917 _ACEOF
20918
20919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20920 # The default lists apply if the user does not specify any file.
20921 ac_need_defaults=:
20922 while test $# != 0
20923 do
20924 case $1 in
20925 --*=?*)
20926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20928 ac_shift=:
20929 ;;
20930 --*=)
20931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20932 ac_optarg=
20933 ac_shift=:
20934 ;;
20935 *)
20936 ac_option=$1
20937 ac_optarg=$2
20938 ac_shift=shift
20939 ;;
20940 esac
20941
20942 case $ac_option in
20943 # Handling of the options.
20944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20945 ac_cs_recheck=: ;;
20946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20947 $as_echo "$ac_cs_version"; exit ;;
20948 --config | --confi | --conf | --con | --co | --c )
20949 $as_echo "$ac_cs_config"; exit ;;
20950 --debug | --debu | --deb | --de | --d | -d )
20951 debug=: ;;
20952 --file | --fil | --fi | --f )
20953 $ac_shift
20954 case $ac_optarg in
20955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20956 '') as_fn_error $? "missing file argument" ;;
20957 esac
20958 as_fn_append CONFIG_FILES " '$ac_optarg'"
20959 ac_need_defaults=false;;
20960 --he | --h | --help | --hel | -h )
20961 $as_echo "$ac_cs_usage"; exit ;;
20962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20964 ac_cs_silent=: ;;
20965
20966 # This is an error.
20967 -*) as_fn_error $? "unrecognized option: \`$1'
20968 Try \`$0 --help' for more information." ;;
20969
20970 *) as_fn_append ac_config_targets " $1"
20971 ac_need_defaults=false ;;
20972
20973 esac
20974 shift
20975 done
20976
20977 ac_configure_extra_args=
20978
20979 if $ac_cs_silent; then
20980 exec 6>/dev/null
20981 ac_configure_extra_args="$ac_configure_extra_args --silent"
20982 fi
20983
20984 _ACEOF
20985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986 if \$ac_cs_recheck; then
20987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20988 shift
20989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20990 CONFIG_SHELL='$SHELL'
20991 export CONFIG_SHELL
20992 exec "\$@"
20993 fi
20994
20995 _ACEOF
20996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997 exec 5>>config.log
20998 {
20999 echo
21000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21001 ## Running $as_me. ##
21002 _ASBOX
21003 $as_echo "$ac_log"
21004 } >&5
21005
21006 _ACEOF
21007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21008 #
21009 # INIT-COMMANDS
21010 #
21011
21012
21013 # The HP-UX ksh and POSIX shell print the target directory to stdout
21014 # if CDPATH is set.
21015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21016
21017 sed_quote_subst='$sed_quote_subst'
21018 double_quote_subst='$double_quote_subst'
21019 delay_variable_subst='$delay_variable_subst'
21020 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21021 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21022 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21023 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21024 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21025 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21026 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21027 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21028 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21029 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21030 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21031 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21032 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21033 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21034 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21035 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21036 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21037 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21038 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21039 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21040 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21041 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21042 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21043 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21044 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21045 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21046 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21047 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21048 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21049 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21050 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21051 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21052 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21053 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21054 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21055 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21056 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21057 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21058 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21059 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21060 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21061 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21062 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21063 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21064 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21065 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21066 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21067 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21068 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21069 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21070 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21071 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21072 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21073 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21074 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21075 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21076 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21077 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21078 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21079 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21080 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21081 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21082 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21083 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21084 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21085 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21086 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21087 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21088 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21089 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21090 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21091 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21092 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21093 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21094 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21095 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21096 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21097 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21098 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21099 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21100 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21101 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21102 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21103 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21104 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21105 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21106 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21107 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21108 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21109 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21110 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21111 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21112 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21113 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21114 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21115 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21116 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21117 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21118 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21119 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21120 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21121 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21122 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21123 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21124 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21125 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21126 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21127 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21128 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21129 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21130 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21131 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21132 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21133 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21134 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21135 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21136 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21137 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21138 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21139 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21140 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21141 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21142 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21143 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21144 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21145 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21146 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21147 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21148 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21149 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21150 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21151 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21152 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21153 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21154 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21155 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21156 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21157 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21158 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21159 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21160 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21161 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21162 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21163 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21164 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21165 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21166 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21167 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21168 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21169 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21170 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21171 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21172 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21173 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21174 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21175 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21176 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21177 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21178 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21179 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21180 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21181 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21182 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21183 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21184 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21185 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21186 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21187 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21188 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21189 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21190 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21191 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21192 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21193 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21194 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21195 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21196 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21197 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21198 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21199 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21200 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21201 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21202 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21203 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21204 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21205
21206 LTCC='$LTCC'
21207 LTCFLAGS='$LTCFLAGS'
21208 compiler='$compiler_DEFAULT'
21209
21210 # A function that is used when there is no print builtin or printf.
21211 func_fallback_echo ()
21212 {
21213 eval 'cat <<_LTECHO_EOF
21214 \$1
21215 _LTECHO_EOF'
21216 }
21217
21218 # Quote evaled strings.
21219 for var in SHELL \
21220 ECHO \
21221 SED \
21222 GREP \
21223 EGREP \
21224 FGREP \
21225 LD \
21226 NM \
21227 LN_S \
21228 lt_SP2NL \
21229 lt_NL2SP \
21230 reload_flag \
21231 OBJDUMP \
21232 deplibs_check_method \
21233 file_magic_cmd \
21234 file_magic_glob \
21235 want_nocaseglob \
21236 DLLTOOL \
21237 sharedlib_from_linklib_cmd \
21238 AR \
21239 AR_FLAGS \
21240 archiver_list_spec \
21241 STRIP \
21242 RANLIB \
21243 CC \
21244 CFLAGS \
21245 compiler \
21246 lt_cv_sys_global_symbol_pipe \
21247 lt_cv_sys_global_symbol_to_cdecl \
21248 lt_cv_sys_global_symbol_to_c_name_address \
21249 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21250 nm_file_list_spec \
21251 lt_prog_compiler_no_builtin_flag \
21252 lt_prog_compiler_pic \
21253 lt_prog_compiler_wl \
21254 lt_prog_compiler_static \
21255 lt_cv_prog_compiler_c_o \
21256 need_locks \
21257 MANIFEST_TOOL \
21258 DSYMUTIL \
21259 NMEDIT \
21260 LIPO \
21261 OTOOL \
21262 OTOOL64 \
21263 shrext_cmds \
21264 export_dynamic_flag_spec \
21265 whole_archive_flag_spec \
21266 compiler_needs_object \
21267 with_gnu_ld \
21268 allow_undefined_flag \
21269 no_undefined_flag \
21270 hardcode_libdir_flag_spec \
21271 hardcode_libdir_flag_spec_ld \
21272 hardcode_libdir_separator \
21273 exclude_expsyms \
21274 include_expsyms \
21275 file_list_spec \
21276 variables_saved_for_relink \
21277 libname_spec \
21278 library_names_spec \
21279 soname_spec \
21280 install_override_mode \
21281 finish_eval \
21282 old_striplib \
21283 striplib \
21284 compiler_lib_search_dirs \
21285 predep_objects \
21286 postdep_objects \
21287 predeps \
21288 postdeps \
21289 compiler_lib_search_path \
21290 LD_CXX \
21291 reload_flag_CXX \
21292 compiler_CXX \
21293 lt_prog_compiler_no_builtin_flag_CXX \
21294 lt_prog_compiler_pic_CXX \
21295 lt_prog_compiler_wl_CXX \
21296 lt_prog_compiler_static_CXX \
21297 lt_cv_prog_compiler_c_o_CXX \
21298 export_dynamic_flag_spec_CXX \
21299 whole_archive_flag_spec_CXX \
21300 compiler_needs_object_CXX \
21301 with_gnu_ld_CXX \
21302 allow_undefined_flag_CXX \
21303 no_undefined_flag_CXX \
21304 hardcode_libdir_flag_spec_CXX \
21305 hardcode_libdir_flag_spec_ld_CXX \
21306 hardcode_libdir_separator_CXX \
21307 exclude_expsyms_CXX \
21308 include_expsyms_CXX \
21309 file_list_spec_CXX \
21310 compiler_lib_search_dirs_CXX \
21311 predep_objects_CXX \
21312 postdep_objects_CXX \
21313 predeps_CXX \
21314 postdeps_CXX \
21315 compiler_lib_search_path_CXX; do
21316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21317 *[\\\\\\\`\\"\\\$]*)
21318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21319 ;;
21320 *)
21321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21322 ;;
21323 esac
21324 done
21325
21326 # Double-quote double-evaled strings.
21327 for var in reload_cmds \
21328 old_postinstall_cmds \
21329 old_postuninstall_cmds \
21330 old_archive_cmds \
21331 extract_expsyms_cmds \
21332 old_archive_from_new_cmds \
21333 old_archive_from_expsyms_cmds \
21334 archive_cmds \
21335 archive_expsym_cmds \
21336 module_cmds \
21337 module_expsym_cmds \
21338 export_symbols_cmds \
21339 prelink_cmds \
21340 postlink_cmds \
21341 postinstall_cmds \
21342 postuninstall_cmds \
21343 finish_cmds \
21344 sys_lib_search_path_spec \
21345 sys_lib_dlsearch_path_spec \
21346 reload_cmds_CXX \
21347 old_archive_cmds_CXX \
21348 old_archive_from_new_cmds_CXX \
21349 old_archive_from_expsyms_cmds_CXX \
21350 archive_cmds_CXX \
21351 archive_expsym_cmds_CXX \
21352 module_cmds_CXX \
21353 module_expsym_cmds_CXX \
21354 export_symbols_cmds_CXX \
21355 prelink_cmds_CXX \
21356 postlink_cmds_CXX; do
21357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21358 *[\\\\\\\`\\"\\\$]*)
21359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21360 ;;
21361 *)
21362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21363 ;;
21364 esac
21365 done
21366
21367 ac_aux_dir='$ac_aux_dir'
21368 xsi_shell='$xsi_shell'
21369 lt_shell_append='$lt_shell_append'
21370
21371 # See if we are running on zsh, and set the options which allow our
21372 # commands through without removal of \ escapes INIT.
21373 if test -n "\${ZSH_VERSION+set}" ; then
21374 setopt NO_GLOB_SUBST
21375 fi
21376
21377
21378 PACKAGE='$PACKAGE'
21379 VERSION='$VERSION'
21380 TIMESTAMP='$TIMESTAMP'
21381 RM='$RM'
21382 ofile='$ofile'
21383
21384
21385
21386
21387
21388
21389 _ACEOF
21390
21391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21392
21393 # Handling of arguments.
21394 for ac_config_target in $ac_config_targets
21395 do
21396 case $ac_config_target in
21397 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21398 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21399 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
21400
21401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21402 esac
21403 done
21404
21405
21406 # If the user did not use the arguments to specify the items to instantiate,
21407 # then the envvar interface is used. Set only those that are not.
21408 # We use the long form for the default assignment because of an extremely
21409 # bizarre bug on SunOS 4.1.3.
21410 if $ac_need_defaults; then
21411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21412 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21413 fi
21414
21415 # Have a temporary directory for convenience. Make it in the build tree
21416 # simply because there is no reason against having it here, and in addition,
21417 # creating and moving files from /tmp can sometimes cause problems.
21418 # Hook for its removal unless debugging.
21419 # Note that there is a small window in which the directory will not be cleaned:
21420 # after its creation but before its name has been assigned to `$tmp'.
21421 $debug ||
21422 {
21423 tmp= ac_tmp=
21424 trap 'exit_status=$?
21425 : "${ac_tmp:=$tmp}"
21426 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21427 ' 0
21428 trap 'as_fn_exit 1' 1 2 13 15
21429 }
21430 # Create a (secure) tmp directory for tmp files.
21431
21432 {
21433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21434 test -d "$tmp"
21435 } ||
21436 {
21437 tmp=./conf$$-$RANDOM
21438 (umask 077 && mkdir "$tmp")
21439 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21440 ac_tmp=$tmp
21441
21442 # Set up the scripts for CONFIG_FILES section.
21443 # No need to generate them if there are no CONFIG_FILES.
21444 # This happens for instance with `./config.status config.h'.
21445 if test -n "$CONFIG_FILES"; then
21446
21447
21448 ac_cr=`echo X | tr X '\015'`
21449 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21450 # But we know of no other shell where ac_cr would be empty at this
21451 # point, so we can use a bashism as a fallback.
21452 if test "x$ac_cr" = x; then
21453 eval ac_cr=\$\'\\r\'
21454 fi
21455 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21456 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21457 ac_cs_awk_cr='\\r'
21458 else
21459 ac_cs_awk_cr=$ac_cr
21460 fi
21461
21462 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21463 _ACEOF
21464
21465
21466 {
21467 echo "cat >conf$$subs.awk <<_ACEOF" &&
21468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21469 echo "_ACEOF"
21470 } >conf$$subs.sh ||
21471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21473 ac_delim='%!_!# '
21474 for ac_last_try in false false false false false :; do
21475 . ./conf$$subs.sh ||
21476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21477
21478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21479 if test $ac_delim_n = $ac_delim_num; then
21480 break
21481 elif $ac_last_try; then
21482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21483 else
21484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485 fi
21486 done
21487 rm -f conf$$subs.sh
21488
21489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21490 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21491 _ACEOF
21492 sed -n '
21493 h
21494 s/^/S["/; s/!.*/"]=/
21495 p
21496 g
21497 s/^[^!]*!//
21498 :repl
21499 t repl
21500 s/'"$ac_delim"'$//
21501 t delim
21502 :nl
21503 h
21504 s/\(.\{148\}\)..*/\1/
21505 t more1
21506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21507 p
21508 n
21509 b repl
21510 :more1
21511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21512 p
21513 g
21514 s/.\{148\}//
21515 t nl
21516 :delim
21517 h
21518 s/\(.\{148\}\)..*/\1/
21519 t more2
21520 s/["\\]/\\&/g; s/^/"/; s/$/"/
21521 p
21522 b
21523 :more2
21524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21525 p
21526 g
21527 s/.\{148\}//
21528 t delim
21529 ' <conf$$subs.awk | sed '
21530 /^[^""]/{
21531 N
21532 s/\n//
21533 }
21534 ' >>$CONFIG_STATUS || ac_write_fail=1
21535 rm -f conf$$subs.awk
21536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537 _ACAWK
21538 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21539 for (key in S) S_is_set[key] = 1
21540 FS = "\a"
21541
21542 }
21543 {
21544 line = $ 0
21545 nfields = split(line, field, "@")
21546 substed = 0
21547 len = length(field[1])
21548 for (i = 2; i < nfields; i++) {
21549 key = field[i]
21550 keylen = length(key)
21551 if (S_is_set[key]) {
21552 value = S[key]
21553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21554 len += length(value) + length(field[++i])
21555 substed = 1
21556 } else
21557 len += 1 + keylen
21558 }
21559
21560 print line
21561 }
21562
21563 _ACAWK
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21568 else
21569 cat
21570 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21571 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21572 _ACEOF
21573
21574 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21575 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21576 # trailing colons and then remove the whole line if VPATH becomes empty
21577 # (actually we leave an empty line to preserve line numbers).
21578 if test "x$srcdir" = x.; then
21579 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21580 h
21581 s///
21582 s/^/:/
21583 s/[ ]*$/:/
21584 s/:\$(srcdir):/:/g
21585 s/:\${srcdir}:/:/g
21586 s/:@srcdir@:/:/g
21587 s/^:*//
21588 s/:*$//
21589 x
21590 s/\(=[ ]*\).*/\1/
21591 G
21592 s/\n//
21593 s/^[^=]*=[ ]*$//
21594 }'
21595 fi
21596
21597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21598 fi # test -n "$CONFIG_FILES"
21599
21600
21601 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21602 shift
21603 for ac_tag
21604 do
21605 case $ac_tag in
21606 :[FHLC]) ac_mode=$ac_tag; continue;;
21607 esac
21608 case $ac_mode$ac_tag in
21609 :[FHL]*:*);;
21610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21611 :[FH]-) ac_tag=-:-;;
21612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21613 esac
21614 ac_save_IFS=$IFS
21615 IFS=:
21616 set x $ac_tag
21617 IFS=$ac_save_IFS
21618 shift
21619 ac_file=$1
21620 shift
21621
21622 case $ac_mode in
21623 :L) ac_source=$1;;
21624 :[FH])
21625 ac_file_inputs=
21626 for ac_f
21627 do
21628 case $ac_f in
21629 -) ac_f="$ac_tmp/stdin";;
21630 *) # Look for the file first in the build tree, then in the source tree
21631 # (if the path is not absolute). The absolute path cannot be DOS-style,
21632 # because $ac_f cannot contain `:'.
21633 test -f "$ac_f" ||
21634 case $ac_f in
21635 [\\/$]*) false;;
21636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21637 esac ||
21638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21639 esac
21640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21641 as_fn_append ac_file_inputs " '$ac_f'"
21642 done
21643
21644 # Let's still pretend it is `configure' which instantiates (i.e., don't
21645 # use $as_me), people would be surprised to read:
21646 # /* config.h. Generated by config.status. */
21647 configure_input='Generated from '`
21648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21649 `' by configure.'
21650 if test x"$ac_file" != x-; then
21651 configure_input="$ac_file. $configure_input"
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21653 $as_echo "$as_me: creating $ac_file" >&6;}
21654 fi
21655 # Neutralize special characters interpreted by sed in replacement strings.
21656 case $configure_input in #(
21657 *\&* | *\|* | *\\* )
21658 ac_sed_conf_input=`$as_echo "$configure_input" |
21659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21660 *) ac_sed_conf_input=$configure_input;;
21661 esac
21662
21663 case $ac_tag in
21664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21666 esac
21667 ;;
21668 esac
21669
21670 ac_dir=`$as_dirname -- "$ac_file" ||
21671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672 X"$ac_file" : 'X\(//\)[^/]' \| \
21673 X"$ac_file" : 'X\(//\)$' \| \
21674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21675 $as_echo X"$ac_file" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677 s//\1/
21678 q
21679 }
21680 /^X\(\/\/\)[^/].*/{
21681 s//\1/
21682 q
21683 }
21684 /^X\(\/\/\)$/{
21685 s//\1/
21686 q
21687 }
21688 /^X\(\/\).*/{
21689 s//\1/
21690 q
21691 }
21692 s/.*/./; q'`
21693 as_dir="$ac_dir"; as_fn_mkdir_p
21694 ac_builddir=.
21695
21696 case "$ac_dir" in
21697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21698 *)
21699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21700 # A ".." for each directory in $ac_dir_suffix.
21701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21702 case $ac_top_builddir_sub in
21703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21705 esac ;;
21706 esac
21707 ac_abs_top_builddir=$ac_pwd
21708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21709 # for backward compatibility:
21710 ac_top_builddir=$ac_top_build_prefix
21711
21712 case $srcdir in
21713 .) # We are building in place.
21714 ac_srcdir=.
21715 ac_top_srcdir=$ac_top_builddir_sub
21716 ac_abs_top_srcdir=$ac_pwd ;;
21717 [\\/]* | ?:[\\/]* ) # Absolute name.
21718 ac_srcdir=$srcdir$ac_dir_suffix;
21719 ac_top_srcdir=$srcdir
21720 ac_abs_top_srcdir=$srcdir ;;
21721 *) # Relative name.
21722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21723 ac_top_srcdir=$ac_top_build_prefix$srcdir
21724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21725 esac
21726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21727
21728
21729 case $ac_mode in
21730 :F)
21731 #
21732 # CONFIG_FILE
21733 #
21734
21735 case $INSTALL in
21736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21738 esac
21739 _ACEOF
21740
21741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21742 # If the template does not know about datarootdir, expand it.
21743 # FIXME: This hack should be removed a few years after 2.60.
21744 ac_datarootdir_hack=; ac_datarootdir_seen=
21745 ac_sed_dataroot='
21746 /datarootdir/ {
21747 p
21748 q
21749 }
21750 /@datadir@/p
21751 /@docdir@/p
21752 /@infodir@/p
21753 /@localedir@/p
21754 /@mandir@/p'
21755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21756 *datarootdir*) ac_datarootdir_seen=yes;;
21757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21759 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21760 _ACEOF
21761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762 ac_datarootdir_hack='
21763 s&@datadir@&$datadir&g
21764 s&@docdir@&$docdir&g
21765 s&@infodir@&$infodir&g
21766 s&@localedir@&$localedir&g
21767 s&@mandir@&$mandir&g
21768 s&\\\${datarootdir}&$datarootdir&g' ;;
21769 esac
21770 _ACEOF
21771
21772 # Neutralize VPATH when `$srcdir' = `.'.
21773 # Shell code in configure.ac might set extrasub.
21774 # FIXME: do we really want to maintain this feature?
21775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776 ac_sed_extra="$ac_vpsub
21777 $extrasub
21778 _ACEOF
21779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21780 :t
21781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21782 s|@configure_input@|$ac_sed_conf_input|;t t
21783 s&@top_builddir@&$ac_top_builddir_sub&;t t
21784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21785 s&@srcdir@&$ac_srcdir&;t t
21786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21787 s&@top_srcdir@&$ac_top_srcdir&;t t
21788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21789 s&@builddir@&$ac_builddir&;t t
21790 s&@abs_builddir@&$ac_abs_builddir&;t t
21791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21792 s&@INSTALL@&$ac_INSTALL&;t t
21793 $ac_datarootdir_hack
21794 "
21795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21797
21798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21801 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21803 which seems to be undefined. Please make sure it is defined" >&5
21804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21805 which seems to be undefined. Please make sure it is defined" >&2;}
21806
21807 rm -f "$ac_tmp/stdin"
21808 case $ac_file in
21809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21811 esac \
21812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21813 ;;
21814
21815
21816 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21817 $as_echo "$as_me: executing $ac_file commands" >&6;}
21818 ;;
21819 esac
21820
21821
21822 case $ac_file$ac_mode in
21823 "libtool":C)
21824
21825 # See if we are running on zsh, and set the options which allow our
21826 # commands through without removal of \ escapes.
21827 if test -n "${ZSH_VERSION+set}" ; then
21828 setopt NO_GLOB_SUBST
21829 fi
21830
21831 cfgfile="${ofile}T"
21832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21833 $RM "$cfgfile"
21834
21835 cat <<_LT_EOF >> "$cfgfile"
21836 #! $SHELL
21837
21838 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21839 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21841 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21842 #
21843 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21844 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21845 # Inc.
21846 # Written by Gordon Matzigkeit, 1996
21847 #
21848 # This file is part of GNU Libtool.
21849 #
21850 # GNU Libtool is free software; you can redistribute it and/or
21851 # modify it under the terms of the GNU General Public License as
21852 # published by the Free Software Foundation; either version 2 of
21853 # the License, or (at your option) any later version.
21854 #
21855 # As a special exception to the GNU General Public License,
21856 # if you distribute this file as part of a program or library that
21857 # is built using GNU Libtool, you may include this file under the
21858 # same distribution terms that you use for the rest of that program.
21859 #
21860 # GNU Libtool is distributed in the hope that it will be useful,
21861 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21862 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21863 # GNU General Public License for more details.
21864 #
21865 # You should have received a copy of the GNU General Public License
21866 # along with GNU Libtool; see the file COPYING. If not, a copy
21867 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21868 # obtained by writing to the Free Software Foundation, Inc.,
21869 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21870
21871
21872 # The names of the tagged configurations supported by this script.
21873 available_tags="CXX "
21874
21875 # ### BEGIN LIBTOOL CONFIG
21876
21877 # Which release of libtool.m4 was used?
21878 macro_version=$macro_version
21879 macro_revision=$macro_revision
21880
21881 # Whether or not to build static libraries.
21882 build_old_libs=$enable_static
21883
21884 # Whether or not to build shared libraries.
21885 build_libtool_libs=$enable_shared
21886
21887 # What type of objects to build.
21888 pic_mode=$pic_mode
21889
21890 # Whether or not to optimize for fast installation.
21891 fast_install=$enable_fast_install
21892
21893 # Shell to use when invoking shell scripts.
21894 SHELL=$lt_SHELL
21895
21896 # An echo program that protects backslashes.
21897 ECHO=$lt_ECHO
21898
21899 # The host system.
21900 host_alias=$host_alias
21901 host=$host
21902 host_os=$host_os
21903
21904 # The build system.
21905 build_alias=$build_alias
21906 build=$build
21907 build_os=$build_os
21908
21909 # A sed program that does not truncate output.
21910 SED=$lt_SED
21911
21912 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21913 Xsed="\$SED -e 1s/^X//"
21914
21915 # A grep program that handles long lines.
21916 GREP=$lt_GREP
21917
21918 # An ERE matcher.
21919 EGREP=$lt_EGREP
21920
21921 # A literal string matcher.
21922 FGREP=$lt_FGREP
21923
21924 # A BSD- or MS-compatible name lister.
21925 NM=$lt_NM
21926
21927 # Whether we need soft or hard links.
21928 LN_S=$lt_LN_S
21929
21930 # What is the maximum length of a command?
21931 max_cmd_len=$max_cmd_len
21932
21933 # Object file suffix (normally "o").
21934 objext=$ac_objext
21935
21936 # Executable file suffix (normally "").
21937 exeext=$exeext
21938
21939 # whether the shell understands "unset".
21940 lt_unset=$lt_unset
21941
21942 # turn spaces into newlines.
21943 SP2NL=$lt_lt_SP2NL
21944
21945 # turn newlines into spaces.
21946 NL2SP=$lt_lt_NL2SP
21947
21948 # convert \$build file names to \$host format.
21949 to_host_file_cmd=$lt_cv_to_host_file_cmd
21950
21951 # convert \$build files to toolchain format.
21952 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21953
21954 # An object symbol dumper.
21955 OBJDUMP=$lt_OBJDUMP
21956
21957 # Method to check whether dependent libraries are shared objects.
21958 deplibs_check_method=$lt_deplibs_check_method
21959
21960 # Command to use when deplibs_check_method = "file_magic".
21961 file_magic_cmd=$lt_file_magic_cmd
21962
21963 # How to find potential files when deplibs_check_method = "file_magic".
21964 file_magic_glob=$lt_file_magic_glob
21965
21966 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21967 want_nocaseglob=$lt_want_nocaseglob
21968
21969 # DLL creation program.
21970 DLLTOOL=$lt_DLLTOOL
21971
21972 # Command to associate shared and link libraries.
21973 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21974
21975 # The archiver.
21976 AR=$lt_AR
21977
21978 # Flags to create an archive.
21979 AR_FLAGS=$lt_AR_FLAGS
21980
21981 # How to feed a file listing to the archiver.
21982 archiver_list_spec=$lt_archiver_list_spec
21983
21984 # A symbol stripping program.
21985 STRIP=$lt_STRIP
21986
21987 # Commands used to install an old-style archive.
21988 RANLIB=$lt_RANLIB
21989 old_postinstall_cmds=$lt_old_postinstall_cmds
21990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21991
21992 # Whether to use a lock for old archive extraction.
21993 lock_old_archive_extraction=$lock_old_archive_extraction
21994
21995 # A C compiler.
21996 LTCC=$lt_CC
21997
21998 # LTCC compiler flags.
21999 LTCFLAGS=$lt_CFLAGS
22000
22001 # Take the output of nm and produce a listing of raw symbols and C names.
22002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22003
22004 # Transform the output of nm in a proper C declaration.
22005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22006
22007 # Transform the output of nm in a C name address pair.
22008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22009
22010 # Transform the output of nm in a C name address pair when lib prefix is needed.
22011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22012
22013 # Specify filename containing input files for \$NM.
22014 nm_file_list_spec=$lt_nm_file_list_spec
22015
22016 # The root where to search for dependent libraries,and in which our libraries should be installed.
22017 lt_sysroot=$lt_sysroot
22018
22019 # The name of the directory that contains temporary libtool files.
22020 objdir=$objdir
22021
22022 # Used to examine libraries when file_magic_cmd begins with "file".
22023 MAGIC_CMD=$MAGIC_CMD
22024
22025 # Must we lock files when doing compilation?
22026 need_locks=$lt_need_locks
22027
22028 # Manifest tool.
22029 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22030
22031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22032 DSYMUTIL=$lt_DSYMUTIL
22033
22034 # Tool to change global to local symbols on Mac OS X.
22035 NMEDIT=$lt_NMEDIT
22036
22037 # Tool to manipulate fat objects and archives on Mac OS X.
22038 LIPO=$lt_LIPO
22039
22040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22041 OTOOL=$lt_OTOOL
22042
22043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22044 OTOOL64=$lt_OTOOL64
22045
22046 # Old archive suffix (normally "a").
22047 libext=$libext
22048
22049 # Shared library suffix (normally ".so").
22050 shrext_cmds=$lt_shrext_cmds
22051
22052 # The commands to extract the exported symbol list from a shared archive.
22053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22054
22055 # Variables whose values should be saved in libtool wrapper scripts and
22056 # restored at link time.
22057 variables_saved_for_relink=$lt_variables_saved_for_relink
22058
22059 # Do we need the "lib" prefix for modules?
22060 need_lib_prefix=$need_lib_prefix
22061
22062 # Do we need a version for libraries?
22063 need_version=$need_version
22064
22065 # Library versioning type.
22066 version_type=$version_type
22067
22068 # Shared library runtime path variable.
22069 runpath_var=$runpath_var
22070
22071 # Shared library path variable.
22072 shlibpath_var=$shlibpath_var
22073
22074 # Is shlibpath searched before the hard-coded library search path?
22075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22076
22077 # Format of library name prefix.
22078 libname_spec=$lt_libname_spec
22079
22080 # List of archive names. First name is the real one, the rest are links.
22081 # The last name is the one that the linker finds with -lNAME
22082 library_names_spec=$lt_library_names_spec
22083
22084 # The coded name of the library, if different from the real name.
22085 soname_spec=$lt_soname_spec
22086
22087 # Permission mode override for installation of shared libraries.
22088 install_override_mode=$lt_install_override_mode
22089
22090 # Command to use after installation of a shared archive.
22091 postinstall_cmds=$lt_postinstall_cmds
22092
22093 # Command to use after uninstallation of a shared archive.
22094 postuninstall_cmds=$lt_postuninstall_cmds
22095
22096 # Commands used to finish a libtool library installation in a directory.
22097 finish_cmds=$lt_finish_cmds
22098
22099 # As "finish_cmds", except a single script fragment to be evaled but
22100 # not shown.
22101 finish_eval=$lt_finish_eval
22102
22103 # Whether we should hardcode library paths into libraries.
22104 hardcode_into_libs=$hardcode_into_libs
22105
22106 # Compile-time system search path for libraries.
22107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22108
22109 # Run-time system search path for libraries.
22110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22111
22112 # Whether dlopen is supported.
22113 dlopen_support=$enable_dlopen
22114
22115 # Whether dlopen of programs is supported.
22116 dlopen_self=$enable_dlopen_self
22117
22118 # Whether dlopen of statically linked programs is supported.
22119 dlopen_self_static=$enable_dlopen_self_static
22120
22121 # Commands to strip libraries.
22122 old_striplib=$lt_old_striplib
22123 striplib=$lt_striplib
22124
22125
22126 # The linker used to build libraries.
22127 LD=$lt_LD
22128
22129 # How to create reloadable object files.
22130 reload_flag=$lt_reload_flag
22131 reload_cmds=$lt_reload_cmds
22132
22133 # Commands used to build an old-style archive.
22134 old_archive_cmds=$lt_old_archive_cmds
22135
22136 # A language specific compiler.
22137 CC=$lt_compiler
22138
22139 # Is the compiler the GNU compiler?
22140 with_gcc=$GCC
22141
22142 # Compiler flag to turn off builtin functions.
22143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22144
22145 # Additional compiler flags for building library objects.
22146 pic_flag=$lt_lt_prog_compiler_pic
22147
22148 # How to pass a linker flag through the compiler.
22149 wl=$lt_lt_prog_compiler_wl
22150
22151 # Compiler flag to prevent dynamic linking.
22152 link_static_flag=$lt_lt_prog_compiler_static
22153
22154 # Does compiler simultaneously support -c and -o options?
22155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22156
22157 # Whether or not to add -lc for building shared libraries.
22158 build_libtool_need_lc=$archive_cmds_need_lc
22159
22160 # Whether or not to disallow shared libs when runtime libs are static.
22161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22162
22163 # Compiler flag to allow reflexive dlopens.
22164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22165
22166 # Compiler flag to generate shared objects directly from archives.
22167 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22168
22169 # Whether the compiler copes with passing no objects directly.
22170 compiler_needs_object=$lt_compiler_needs_object
22171
22172 # Create an old-style archive from a shared archive.
22173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22174
22175 # Create a temporary old-style archive to link instead of a shared archive.
22176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22177
22178 # Commands used to build a shared archive.
22179 archive_cmds=$lt_archive_cmds
22180 archive_expsym_cmds=$lt_archive_expsym_cmds
22181
22182 # Commands used to build a loadable module if different from building
22183 # a shared archive.
22184 module_cmds=$lt_module_cmds
22185 module_expsym_cmds=$lt_module_expsym_cmds
22186
22187 # Whether we are building with GNU ld or not.
22188 with_gnu_ld=$lt_with_gnu_ld
22189
22190 # Flag that allows shared libraries with undefined symbols to be built.
22191 allow_undefined_flag=$lt_allow_undefined_flag
22192
22193 # Flag that enforces no undefined symbols.
22194 no_undefined_flag=$lt_no_undefined_flag
22195
22196 # Flag to hardcode \$libdir into a binary during linking.
22197 # This must work even if \$libdir does not exist
22198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22199
22200 # If ld is used when linking, flag to hardcode \$libdir into a binary
22201 # during linking. This must work even if \$libdir does not exist.
22202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22203
22204 # Whether we need a single "-rpath" flag with a separated argument.
22205 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22206
22207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22208 # DIR into the resulting binary.
22209 hardcode_direct=$hardcode_direct
22210
22211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22212 # DIR into the resulting binary and the resulting library dependency is
22213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22214 # library is relocated.
22215 hardcode_direct_absolute=$hardcode_direct_absolute
22216
22217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22218 # into the resulting binary.
22219 hardcode_minus_L=$hardcode_minus_L
22220
22221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22222 # into the resulting binary.
22223 hardcode_shlibpath_var=$hardcode_shlibpath_var
22224
22225 # Set to "yes" if building a shared library automatically hardcodes DIR
22226 # into the library and all subsequent libraries and executables linked
22227 # against it.
22228 hardcode_automatic=$hardcode_automatic
22229
22230 # Set to yes if linker adds runtime paths of dependent libraries
22231 # to runtime path list.
22232 inherit_rpath=$inherit_rpath
22233
22234 # Whether libtool must link a program against all its dependency libraries.
22235 link_all_deplibs=$link_all_deplibs
22236
22237 # Set to "yes" if exported symbols are required.
22238 always_export_symbols=$always_export_symbols
22239
22240 # The commands to list exported symbols.
22241 export_symbols_cmds=$lt_export_symbols_cmds
22242
22243 # Symbols that should not be listed in the preloaded symbols.
22244 exclude_expsyms=$lt_exclude_expsyms
22245
22246 # Symbols that must always be exported.
22247 include_expsyms=$lt_include_expsyms
22248
22249 # Commands necessary for linking programs (against libraries) with templates.
22250 prelink_cmds=$lt_prelink_cmds
22251
22252 # Commands necessary for finishing linking programs.
22253 postlink_cmds=$lt_postlink_cmds
22254
22255 # Specify filename containing input files.
22256 file_list_spec=$lt_file_list_spec
22257
22258 # How to hardcode a shared library path into an executable.
22259 hardcode_action=$hardcode_action
22260
22261 # The directories searched by this compiler when creating a shared library.
22262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22263
22264 # Dependencies to place before and after the objects being linked to
22265 # create a shared library.
22266 predep_objects=$lt_predep_objects
22267 postdep_objects=$lt_postdep_objects
22268 predeps=$lt_predeps
22269 postdeps=$lt_postdeps
22270
22271 # The library search path used internally by the compiler when linking
22272 # a shared library.
22273 compiler_lib_search_path=$lt_compiler_lib_search_path
22274
22275 # ### END LIBTOOL CONFIG
22276
22277 _LT_EOF
22278
22279 case $host_os in
22280 aix3*)
22281 cat <<\_LT_EOF >> "$cfgfile"
22282 # AIX sometimes has problems with the GCC collect2 program. For some
22283 # reason, if we set the COLLECT_NAMES environment variable, the problems
22284 # vanish in a puff of smoke.
22285 if test "X${COLLECT_NAMES+set}" != Xset; then
22286 COLLECT_NAMES=
22287 export COLLECT_NAMES
22288 fi
22289 _LT_EOF
22290 ;;
22291 esac
22292
22293
22294 ltmain="$ac_aux_dir/ltmain.sh"
22295
22296
22297 # We use sed instead of cat because bash on DJGPP gets confused if
22298 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22299 # text mode, it properly converts lines to CR/LF. This bash problem
22300 # is reportedly fixed, but why not run on old versions too?
22301 sed '$q' "$ltmain" >> "$cfgfile" \
22302 || (rm -f "$cfgfile"; exit 1)
22303
22304 if test x"$xsi_shell" = xyes; then
22305 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22306 func_dirname ()\
22307 {\
22308 \ case ${1} in\
22309 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22310 \ * ) func_dirname_result="${3}" ;;\
22311 \ esac\
22312 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22313 && mv -f "$cfgfile.tmp" "$cfgfile" \
22314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22315 test 0 -eq $? || _lt_function_replace_fail=:
22316
22317
22318 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22319 func_basename ()\
22320 {\
22321 \ func_basename_result="${1##*/}"\
22322 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22323 && mv -f "$cfgfile.tmp" "$cfgfile" \
22324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22325 test 0 -eq $? || _lt_function_replace_fail=:
22326
22327
22328 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22329 func_dirname_and_basename ()\
22330 {\
22331 \ case ${1} in\
22332 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22333 \ * ) func_dirname_result="${3}" ;;\
22334 \ esac\
22335 \ func_basename_result="${1##*/}"\
22336 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22337 && mv -f "$cfgfile.tmp" "$cfgfile" \
22338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22339 test 0 -eq $? || _lt_function_replace_fail=:
22340
22341
22342 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22343 func_stripname ()\
22344 {\
22345 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22346 \ # positional parameters, so assign one to ordinary parameter first.\
22347 \ func_stripname_result=${3}\
22348 \ func_stripname_result=${func_stripname_result#"${1}"}\
22349 \ func_stripname_result=${func_stripname_result%"${2}"}\
22350 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22351 && mv -f "$cfgfile.tmp" "$cfgfile" \
22352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22353 test 0 -eq $? || _lt_function_replace_fail=:
22354
22355
22356 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22357 func_split_long_opt ()\
22358 {\
22359 \ func_split_long_opt_name=${1%%=*}\
22360 \ func_split_long_opt_arg=${1#*=}\
22361 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22362 && mv -f "$cfgfile.tmp" "$cfgfile" \
22363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22364 test 0 -eq $? || _lt_function_replace_fail=:
22365
22366
22367 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22368 func_split_short_opt ()\
22369 {\
22370 \ func_split_short_opt_arg=${1#??}\
22371 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22372 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22373 && mv -f "$cfgfile.tmp" "$cfgfile" \
22374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22375 test 0 -eq $? || _lt_function_replace_fail=:
22376
22377
22378 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22379 func_lo2o ()\
22380 {\
22381 \ case ${1} in\
22382 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22383 \ *) func_lo2o_result=${1} ;;\
22384 \ esac\
22385 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22386 && mv -f "$cfgfile.tmp" "$cfgfile" \
22387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22388 test 0 -eq $? || _lt_function_replace_fail=:
22389
22390
22391 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22392 func_xform ()\
22393 {\
22394 func_xform_result=${1%.*}.lo\
22395 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22396 && mv -f "$cfgfile.tmp" "$cfgfile" \
22397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398 test 0 -eq $? || _lt_function_replace_fail=:
22399
22400
22401 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22402 func_arith ()\
22403 {\
22404 func_arith_result=$(( $* ))\
22405 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22406 && mv -f "$cfgfile.tmp" "$cfgfile" \
22407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22408 test 0 -eq $? || _lt_function_replace_fail=:
22409
22410
22411 sed -e '/^func_len ()$/,/^} # func_len /c\
22412 func_len ()\
22413 {\
22414 func_len_result=${#1}\
22415 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22416 && mv -f "$cfgfile.tmp" "$cfgfile" \
22417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22418 test 0 -eq $? || _lt_function_replace_fail=:
22419
22420 fi
22421
22422 if test x"$lt_shell_append" = xyes; then
22423 sed -e '/^func_append ()$/,/^} # func_append /c\
22424 func_append ()\
22425 {\
22426 eval "${1}+=\\${2}"\
22427 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22428 && mv -f "$cfgfile.tmp" "$cfgfile" \
22429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22430 test 0 -eq $? || _lt_function_replace_fail=:
22431
22432
22433 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22434 func_append_quoted ()\
22435 {\
22436 \ func_quote_for_eval "${2}"\
22437 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22438 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22439 && mv -f "$cfgfile.tmp" "$cfgfile" \
22440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22441 test 0 -eq $? || _lt_function_replace_fail=:
22442
22443
22444 # Save a `func_append' function call where possible by direct use of '+='
22445 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22446 && mv -f "$cfgfile.tmp" "$cfgfile" \
22447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22448 test 0 -eq $? || _lt_function_replace_fail=:
22449 else
22450 # Save a `func_append' function call even when '+=' is not available
22451 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22452 && mv -f "$cfgfile.tmp" "$cfgfile" \
22453 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22454 test 0 -eq $? || _lt_function_replace_fail=:
22455 fi
22456
22457 if test x"$_lt_function_replace_fail" = x":"; then
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22459 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22460 fi
22461
22462
22463 mv -f "$cfgfile" "$ofile" ||
22464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22465 chmod +x "$ofile"
22466
22467
22468 cat <<_LT_EOF >> "$ofile"
22469
22470 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22471
22472 # The linker used to build libraries.
22473 LD=$lt_LD_CXX
22474
22475 # How to create reloadable object files.
22476 reload_flag=$lt_reload_flag_CXX
22477 reload_cmds=$lt_reload_cmds_CXX
22478
22479 # Commands used to build an old-style archive.
22480 old_archive_cmds=$lt_old_archive_cmds_CXX
22481
22482 # A language specific compiler.
22483 CC=$lt_compiler_CXX
22484
22485 # Is the compiler the GNU compiler?
22486 with_gcc=$GCC_CXX
22487
22488 # Compiler flag to turn off builtin functions.
22489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22490
22491 # Additional compiler flags for building library objects.
22492 pic_flag=$lt_lt_prog_compiler_pic_CXX
22493
22494 # How to pass a linker flag through the compiler.
22495 wl=$lt_lt_prog_compiler_wl_CXX
22496
22497 # Compiler flag to prevent dynamic linking.
22498 link_static_flag=$lt_lt_prog_compiler_static_CXX
22499
22500 # Does compiler simultaneously support -c and -o options?
22501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22502
22503 # Whether or not to add -lc for building shared libraries.
22504 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22505
22506 # Whether or not to disallow shared libs when runtime libs are static.
22507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22508
22509 # Compiler flag to allow reflexive dlopens.
22510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22511
22512 # Compiler flag to generate shared objects directly from archives.
22513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22514
22515 # Whether the compiler copes with passing no objects directly.
22516 compiler_needs_object=$lt_compiler_needs_object_CXX
22517
22518 # Create an old-style archive from a shared archive.
22519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22520
22521 # Create a temporary old-style archive to link instead of a shared archive.
22522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22523
22524 # Commands used to build a shared archive.
22525 archive_cmds=$lt_archive_cmds_CXX
22526 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22527
22528 # Commands used to build a loadable module if different from building
22529 # a shared archive.
22530 module_cmds=$lt_module_cmds_CXX
22531 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22532
22533 # Whether we are building with GNU ld or not.
22534 with_gnu_ld=$lt_with_gnu_ld_CXX
22535
22536 # Flag that allows shared libraries with undefined symbols to be built.
22537 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22538
22539 # Flag that enforces no undefined symbols.
22540 no_undefined_flag=$lt_no_undefined_flag_CXX
22541
22542 # Flag to hardcode \$libdir into a binary during linking.
22543 # This must work even if \$libdir does not exist
22544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22545
22546 # If ld is used when linking, flag to hardcode \$libdir into a binary
22547 # during linking. This must work even if \$libdir does not exist.
22548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22549
22550 # Whether we need a single "-rpath" flag with a separated argument.
22551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22552
22553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22554 # DIR into the resulting binary.
22555 hardcode_direct=$hardcode_direct_CXX
22556
22557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22558 # DIR into the resulting binary and the resulting library dependency is
22559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22560 # library is relocated.
22561 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22562
22563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22564 # into the resulting binary.
22565 hardcode_minus_L=$hardcode_minus_L_CXX
22566
22567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22568 # into the resulting binary.
22569 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22570
22571 # Set to "yes" if building a shared library automatically hardcodes DIR
22572 # into the library and all subsequent libraries and executables linked
22573 # against it.
22574 hardcode_automatic=$hardcode_automatic_CXX
22575
22576 # Set to yes if linker adds runtime paths of dependent libraries
22577 # to runtime path list.
22578 inherit_rpath=$inherit_rpath_CXX
22579
22580 # Whether libtool must link a program against all its dependency libraries.
22581 link_all_deplibs=$link_all_deplibs_CXX
22582
22583 # Set to "yes" if exported symbols are required.
22584 always_export_symbols=$always_export_symbols_CXX
22585
22586 # The commands to list exported symbols.
22587 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22588
22589 # Symbols that should not be listed in the preloaded symbols.
22590 exclude_expsyms=$lt_exclude_expsyms_CXX
22591
22592 # Symbols that must always be exported.
22593 include_expsyms=$lt_include_expsyms_CXX
22594
22595 # Commands necessary for linking programs (against libraries) with templates.
22596 prelink_cmds=$lt_prelink_cmds_CXX
22597
22598 # Commands necessary for finishing linking programs.
22599 postlink_cmds=$lt_postlink_cmds_CXX
22600
22601 # Specify filename containing input files.
22602 file_list_spec=$lt_file_list_spec_CXX
22603
22604 # How to hardcode a shared library path into an executable.
22605 hardcode_action=$hardcode_action_CXX
22606
22607 # The directories searched by this compiler when creating a shared library.
22608 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22609
22610 # Dependencies to place before and after the objects being linked to
22611 # create a shared library.
22612 predep_objects=$lt_predep_objects_CXX
22613 postdep_objects=$lt_postdep_objects_CXX
22614 predeps=$lt_predeps_CXX
22615 postdeps=$lt_postdeps_CXX
22616
22617 # The library search path used internally by the compiler when linking
22618 # a shared library.
22619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22620
22621 # ### END LIBTOOL TAG CONFIG: CXX
22622 _LT_EOF
22623
22624 ;;
22625
22626 esac
22627 done # for ac_tag
22628
22629
22630 as_fn_exit 0
22631 _ACEOF
22632 ac_clean_files=$ac_clean_files_save
22633
22634 test $ac_write_fail = 0 ||
22635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22636
22637
22638 # configure is writing to config.log, and then calls config.status.
22639 # config.status does its own redirection, appending to config.log.
22640 # Unfortunately, on DOS this fails, as config.log is still kept open
22641 # by configure, so config.status won't be able to write to it; its
22642 # output is simply discarded. So we exec the FD to /dev/null,
22643 # effectively closing config.log, so it can be properly (re)opened and
22644 # appended to by config.status. When coming back to configure, we
22645 # need to make the FD available again.
22646 if test "$no_create" != yes; then
22647 ac_cs_success=:
22648 ac_config_status_args=
22649 test "$silent" = yes &&
22650 ac_config_status_args="$ac_config_status_args --quiet"
22651 exec 5>/dev/null
22652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22653 exec 5>>config.log
22654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22655 # would make configure fail if this is the last instruction.
22656 $ac_cs_success || as_fn_exit 1
22657 fi
22658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22661 fi
22662